org.kde.koala
Class KCommand
public
class
KCommand
extends Object
implements QtSupport
The abstract base class for all Commands. Commands are used to
store information needed for Undo/Redo functionality...
UNKNOWN: The abstract base class for all Commands.
protected KCommand(Class dummy)
public void execute()
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.
UNKNOWN: The main method: executes this command.
public String name()
Returns: the name of this command, translated, since it will appear
in the menus.
UNKNOWN:
public void unexecute()
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.
UNKNOWN: Unexecutes (undo) this command.