KDE3Support
k3command.h
Go to the documentation of this file.
362 K3UndoRedoAction( Type type, KActionCollection* actionCollection, K3CommandHistory* commandHistory );
The command history stores a (user) configurable amount of Commands.
Definition k3command.h:180
void commandHistoryChanged()
Emitted whenever the command history has changed, i.e.
void documentRestored()
Emitted every time we reach the index where you saved the document for the last time.
QList< K3Command * > undoCommands(int maxCommands=0) const
Definition k3command.cpp:312
QList< K3Command * > redoCommands(int maxCommands=0) const
Definition k3command.cpp:323
void addCommand(K3Command *command, bool execute=true)
Adds a command to the history.
Definition k3command.cpp:188
void setRedoLimit(int limit)
Sets the maximum number of items in the redo history.
Definition k3command.cpp:259
void commandExecuted(K3Command *command)
Emitted every time a command is executed (whether by addCommand, undo or redo).
void setUndoLimit(int limit)
Sets the maximum number of items in the undo history.
Definition k3command.cpp:252
virtual QString name() const =0
void addCommand(K3Command *command)
Appends a command to this macro command.
Definition k3command.cpp:88
virtual void virtual_hook(int id, void *data)
Definition k3command.cpp:442
virtual void virtual_hook(int id, void *data)
Definition k3command.cpp:439
This type of action is used to show undo or redo actions in the menu or in the toolbars.
Definition k3command.h:358
K3UndoRedoAction(Type type, KActionCollection *actionCollection, K3CommandHistory *commandHistory)
Definition k3command.cpp:360
KToolBarPopupAction(const KIcon &icon, const QString &text, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.