lib
PlainCommand Class Reference
#include <kformulacommand.h>
Inheritance diagram for PlainCommand:

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.
Public Member Functions | |
PlainCommand (const QString &name) | |
Static Public Member Functions | |
static int | getEvilDestructionCount () |
Constructor & Destructor Documentation
PlainCommand::PlainCommand | ( | const QString & | 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.cc.
Member Function Documentation
static int PlainCommand::getEvilDestructionCount | ( | ) | [inline, static] |
The documentation for this class was generated from the following files: