KoMacro::MacroItem Class Reference
#include <macroitem.h>
Inheritance diagram for KoMacro::MacroItem:

Detailed Description
The MacroItem class is an item in a Macro and represents one single execution step.Each MacroItem points to 0..1 Action instances which implement the execution. So, the MacroItem provides a simple state-pattern on the one hand (depending on the for this MacroItem choosen Action implementation) and holds the by the user defined modifications like e.g. the comment on the other hand.
Definition at line 46 of file macroitem.h.
Public Types | |
| typedef QValueList< KSharedPtr< MacroItem > > | List |
| A list of MacroItem instances. | |
Public Member Functions | |
| MacroItem () | |
| Constructor. | |
| ~MacroItem () | |
| Destructor. | |
| QString | comment () const |
| void | setComment (const QString &comment) |
| Set the comment. | |
| KSharedPtr< Action > | action () const |
| void | setAction (KSharedPtr< Action > action) |
| Set the Action. | |
| QVariant | variant (const QString &name, bool checkaction=false) const |
| KSharedPtr< Variable > | variable (const QString &name, bool checkaction=false) const |
| QMap< QString, KSharedPtr< Variable > > | variables () const |
| bool | setVariant (const QString &name, const QVariant &variant) |
| Set the QVariant. | |
| KSharedPtr< Variable > | addVariable (const QString &name, const QVariant &variant) |
| Add a new variable with the vaiablename. | |
Member Typedef Documentation
|
|
A list of MacroItem instances.
Definition at line 54 of file macroitem.h. |
Constructor & Destructor Documentation
|
|
Constructor.
Definition at line 111 of file macroitem.cpp. |
|
|
Destructor.
Definition at line 117 of file macroitem.cpp. |
Member Function Documentation
|
|
Definition at line 132 of file macroitem.cpp. |
|
||||||||||||
|
Add a new variable with the vaiablename.
Definition at line 204 of file macroitem.cpp. References setVariant(), and variable(). |
|
|
Definition at line 122 of file macroitem.cpp. |
|
|
Set the Action.
Definition at line 137 of file macroitem.cpp. |
|
|
Set the comment.
Definition at line 127 of file macroitem.cpp. |
|
||||||||||||
|
Set the QVariant.
Definition at line 162 of file macroitem.cpp. References variable(). Referenced by addVariable(). |
|
||||||||||||
|
Definition at line 148 of file macroitem.cpp. Referenced by addVariable(), setVariant(), and variant(). |
|
|
Definition at line 157 of file macroitem.cpp. |
|
||||||||||||
|
Definition at line 142 of file macroitem.cpp. References variable(). |
The documentation for this class was generated from the following files:
