#include <kformulacommand.h>
Public Member Functions | |
| PlainCommand (const TQString &name) | |
Public Member Functions inherited from KNamedCommand | |
| virtual TQString | name () const |
| void | setName (const TQString &name) |
Public Member Functions inherited from KCommand | |
| virtual void | execute ()=0 |
| virtual void | unexecute ()=0 |
Static Public Member Functions | |
| static int | getEvilDestructionCount () |
Additional Inherited Members | |
Protected Member Functions inherited from KNamedCommand | |
| KNamedCommand (const TQString &name) | |
Detailed Description
Base for all kformula commands.
Each command works in the same way. The constructor sets up everything. After the command is created you can execute it. To create a command doesn't mean to execute it. These are two different things.
If the command execution fails or has nothing to do in the first place you must not put it in the command history. isSenseless() will return true then.
If you don't like what you've done feel free to unexecute() .
Definition at line 52 of file kformulacommand.h.
Constructor & Destructor Documentation
◆ PlainCommand()
| PlainCommand::PlainCommand | ( | const TQString & | name | ) |
Sets up the command.
Be careful not to change the cursor in the constructor of any command. Each command must use the selection it finds when it is executed for the first time. This way you can use the KMacroCommand .
- Parameters
-
name a description to be used as menu entry.
Definition at line 39 of file kformulacommand.cpp.
◆ ~PlainCommand()
|
virtual |
Definition at line 45 of file kformulacommand.cpp.
Member Function Documentation
◆ getEvilDestructionCount()
|
inlinestatic |
debug only.
Definition at line 70 of file kformulacommand.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from