[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficeui
From: David Faure <faure () kde ! org>
Date: 2006-02-14 21:04:21
Message-ID: 1139951061.665916.26282.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 509483 by dfaure:
Merged from the kdelibs version: commandExecuted(KCommand*) signal.
M +4 -0 KoCommandHistory.cpp
M +9 -0 KoCommandHistory.h
--- trunk/koffice/lib/kofficeui/KoCommandHistory.cpp #509482:509483
@@ -210,6 +210,7 @@
{
command->execute();
emit commandExecuted();
+ emit commandExecuted(command);
}
}
@@ -220,6 +221,7 @@
d->m_present->unexecute();
emit commandExecuted();
+ emit commandExecuted(d->m_present);
if (m_redo != 0) {
m_redo->setEnabled(true);
m_redo->setText(i18n("&Redo: %1").arg(d->m_present->name()));
@@ -253,6 +255,7 @@
if(m_first) {
d->m_present->execute();
emit commandExecuted();
+ emit commandExecuted(d->m_present);
m_first=false;
m_commands.first();
if(d->m_savedAt==0)
@@ -262,6 +265,7 @@
d->m_present=m_commands.current();
d->m_present->execute();
emit commandExecuted();
+ emit commandExecuted(d->m_present);
++index;
if(index==d->m_savedAt)
emit documentRestored();
--- trunk/koffice/lib/kofficeui/KoCommandHistory.h #509482:509483
@@ -160,7 +160,16 @@
* You can use this to update the GUI, for instance.
*/
void commandExecuted();
+
/**
+ * Emitted every time a command is executed
+ * (whether by addCommand, undo or redo).
+ * You can use this to update the GUI, for instance.
+ * @param command was executed
+ */
+ void commandExecuted(KCommand *command);
+
+ /**
* Emitted every time we reach the index where you
* saved the document for the last time. See @ref #documentSaved
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic