KDE3Support
#include <k3command.h>
Public Member Functions | |
virtual | ~K3Command () |
virtual void | execute ()=0 |
virtual QString | name () const =0 |
virtual void | unexecute ()=0 |
Protected Member Functions | |
K3Command () | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
The abstract base class for all Commands.
Commands are used to store information needed for Undo/Redo functionality...
Note: you might want to use the QUndo framework instead. It didn't exist when K3Command was written.
Definition at line 41 of file k3command.h.
Constructor & Destructor Documentation
|
protected |
Creates a command.
Definition at line 33 of file k3command.cpp.
|
virtual |
Definition at line 38 of file k3command.cpp.
Member Function Documentation
|
pure virtual |
The main method: executes this command.
Implement here what this command is about, and remember to record any information that will be helpful for unexecute.
Implemented in K3MacroCommand.
|
pure virtual |
- Returns
- the name of this command, translated, since it will appear in the menus.
Implemented in K3NamedCommand.
|
pure virtual |
Unexecutes (undo) this command.
Implement here the steps to take for undoing the command. If your application uses actions for everything (it should), and if you implement unexecute correctly, the application is in the same state after unexecute as it was before execute. This means, the next call to execute will do the same thing as it did the first time.
Implemented in K3MacroCommand.
|
protectedvirtual |
Reimplemented in K3MacroCommand, and K3NamedCommand.
Definition at line 436 of file k3command.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.