#include <kcommand.h>
Inheritance diagram for KCommand:

Public Methods | |
| virtual void | execute ()=0 |
| virtual void | unexecute ()=0 |
| virtual QString | name () const=0 |
Protected Methods | |
| KCommand () | |
Definition at line 36 of file kcommand.h.
|
|
Creates a command. Definition at line 42 of file kcommand.h. |
|
|
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 KMacroCommand. |
|
|
Implemented in KNamedCommand. |
|
|
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 KMacroCommand. |
1.2.18