[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui
From: Daniel Teske <teske () squorn ! de>
Date: 2005-05-31 22:01:57
Message-ID: 1117576917.413763.8485.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 420374 by teske:
Adds the signal
void commandExecuted(KCommand *command);
to KCommandHistory
M +4 -0 kcommand.cpp
M +12 -0 kcommand.h
--- trunk/KDE/kdelibs/kdeui/kcommand.cpp #420373:420374
@@ -175,6 +175,7 @@
{
command->execute();
emit commandExecuted();
+ emit commandExecuted(command);
}
}
@@ -185,6 +186,7 @@
d->m_present->unexecute();
emit commandExecuted();
+ emit commandExecuted(d->m_present);
if (m_redo) {
m_redo->setEnabled(true);
m_redo->setText(i18n("&Redo: %1").arg(d->m_present->name()));
@@ -218,6 +220,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)
@@ -227,6 +230,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/KDE/kdelibs/kdeui/kcommand.h #420373:420374
@@ -251,9 +251,21 @@
* Emitted every time a command is executed
* (whether by addCommand, undo or redo).
* You can use this to update the GUI, for instance.
+ *
+ * KDE4 TODO: remove
*/
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
+ * @since 3.5
+ */
+ void commandExecuted(KCommand *command);
+
+ /**
* Emitted every time we reach the index where you
* saved the document for the last time. See documentSaved
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic