KoMacro::Macro Class Reference
#include <macro.h>
Inheritance diagram for KoMacro::Macro:

Detailed Description
The Macro class implements all the action-handling.Internaly the Macro provides a collection of MacroItem instances which each of them points to an Action instance.
Definition at line 41 of file macro.h.
Public Types | |
| typedef QMap< QString, KSharedPtr< Macro > > | Map |
| A QMap of Macro instances accessible by there unique name. | |
Public Slots | |
| virtual KSharedPtr< Context > | execute (QObject *sender) |
| Called if the Macro should be executed. | |
Public Member Functions | |
| Macro (const QString &name) | |
| Constructor. | |
| virtual | ~Macro () |
| Destructor. | |
| const QString | name () const |
| void | setName (const QString &name) |
Set the name this Macro instance has. | |
| virtual const QString | toString () const |
| QValueList< KSharedPtr< MacroItem > > & | items () const |
| void | addItem (KSharedPtr< MacroItem > item) |
Add the MacroItem item to the list of items this Macro has. | |
| void | clearItems () |
| Removes all MacroItem instances this Macro has. | |
Member Typedef Documentation
|
|
A QMap of Macro instances accessible by there unique name. Each class should use this typemap rather then the QMap direct. That way we are more flexible on future changes. |
Constructor & Destructor Documentation
|
|
Constructor.
|
|
|
Destructor.
|
Member Function Documentation
|
|
Add the MacroItem
|
|
|
Removes all MacroItem instances this Macro has.
|
|
|
Called if the Macro should be executed.
|
|
|
|
|
|
Definition at line 73 of file macro.cpp. Referenced by toString(). |
|
|
Set the
|
|
|
Definition at line 85 of file macro.cpp. References name(). |
The documentation for this class was generated from the following files:
