39 KoListBox( TQWidget *parent = 0,
const char *name = 0, WFlags f = 0 );
101 void addCommand(
KCommand *command,
bool execute=
true);
110 void setUndoLimit(
int limit);
118 void setRedoLimit(
int limit);
126 void updateActions();
152 virtual void documentSaved();
155 void slotUndoAboutToShow();
156 void slotUndoActivated(
int );
157 void slotRedoAboutToShow();
158 void slotRedoActivated(
int );
159 void slotUndoActivated( TQListBoxItem *);
160 void slotRedoActivated( TQListBoxItem *);
161 void slotChangeRedoNumberOfSelectedItem(
int );
162 void slotChangeUndoNumberOfSelectedItem(
int );
188 TQPtrList<KCommand> m_commands;
190 TQPopupMenu *m_undoPopup, *m_redoPopup;
191 int m_undoLimit, m_redoLimit;
194 virtual void virtual_hook(
int id,
void* data );
196 class KoCommandHistoryPrivate;
197 KoCommandHistoryPrivate *d;
The command history stores a (user) configurable amount of Commands.
void commandExecuted()
Emitted every time a command is executed (whether by addCommand, undo or redo).
void documentRestored()
Emitted every time we reach the index where you saved the document for the last time.
void commandExecuted(KCommand *cmd)
Emitted every time a command is executed (whether by addCommand, undo or redo).