lib

PlainCommand Class Reference

#include <kformulacommand.h>

Inheritance diagram for PlainCommand:

KNamedCommand KCommand Command KFCChangeBaseSize FontCommand KFCAdd KFCAddReplacing KFCRemove KFCRemoveEnclosing KFCRemoveSelection CharFamilyCommand CharStyleCommand KFCAddGenericIndex KFCReplace KFCAddIndex List of all members.

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 51 of file kformulacommand.h.


Public Member Functions

 PlainCommand (const QString &name)
virtual ~PlainCommand ()

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 38 of file kformulacommand.cc.


Member Function Documentation

static int PlainCommand::getEvilDestructionCount  )  [inline, static]
 

debug only.

Definition at line 69 of file kformulacommand.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys