lib Library API Documentation

PlainCommand Class Reference

Base for all kformula commands. More...

#include <kformulacommand.h>

List of all members.

Public Member Functions

 PlainCommand (const QString &name)

Static Public Member Functions

int getEvilDestructionCount ()


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.


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.

References PlainCommand().

Referenced by PlainCommand().


Member Function Documentation

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 Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:23 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003