KoMacro::Action Class Reference
#include <action.h>
Inheritance diagram for KoMacro::Action:

Detailed Description
The Action class extendes KAction to implement some additional functionality KAction doesn't provide.
Definition at line 38 of file action.h.
Public Types | |
| typedef QMap< QString, KSharedPtr< Action > > | Map |
| Shared pointer to implement reference-counting. | |
Public Slots | |
| virtual void | activate (KSharedPtr< Context > context)=0 |
Called if the Action should be executed within the defined context . | |
Public Member Functions | |
| Action (const QString &name, const QString &text=QString::null) | |
| Constructor. | |
| virtual | ~Action () |
| Destructor. | |
| virtual const QString | toString () const |
| const QString | name () const |
| The name this Action has. | |
| void | setName (const QString &name) |
Set the name of the Action to name . | |
| const QString | text () const |
| void | setText (const QString &text) |
| Set the i18n-caption text this Action has. | |
| const QString | comment () const |
| void | setComment (const QString &comment) |
Set the comment associated with this action. | |
| bool | hasVariable (const QString &name) const |
| KSharedPtr< Variable > | variable (const QString &name) const |
| Variable::Map | variables () const |
| QStringList | variableNames () const |
| void | setVariable (KSharedPtr< Variable > variable) |
Append the Variable variable to list of variables this Action provides. | |
| void | setVariable (const QString &name, const QString &text, const QVariant &variant) |
| Set the variable. | |
| void | removeVariable (const QString &name) |
Remove the variable defined with name . | |
| virtual bool | notifyUpdated (const KSharedPtr< MacroItem > ¯oitem, const QString &name) |
This function is called, when the KoMacro::Variable with name name used within the KoMacro::MacroItem macroitem got changed. | |
Properties | |
| QString | name |
| Property to get/set the name. | |
| QString | text |
| Property to get/set the text. | |
| QString | comment |
| Property to get/set the comment. | |
Member Typedef Documentation
|
|
Shared pointer to implement reference-counting.
|
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor.
Definition at line 69 of file action.cpp. References KoMacro::Manager::self(), and setText(). |
|
|
Destructor.
Definition at line 82 of file action.cpp. |
Member Function Documentation
|
|
Called if the Action should be executed within the defined
|
|
|
|
|
|
Definition at line 125 of file action.cpp. |
|
|
The name this Action has.
Referenced by KexiMacro::OpenAction::activate(), KexiMacro::ExecuteAction::activate(), setVariable(), and toString(). |
|
||||||||||||
|
This function is called, when the KoMacro::Variable with name
|
|
|
Remove the variable defined with If there exists no such variable, nothing is done. Definition at line 162 of file action.cpp. |
|
|
Set the
Definition at line 120 of file action.cpp. |
|
|
Set the name of the Action to
Definition at line 100 of file action.cpp. |
|
|
Set the i18n-caption text this Action has.
Definition at line 110 of file action.cpp. Referenced by Action(), and KexiMacro::KexiAction::KexiAction(). |
|
||||||||||||||||
|
Set the variable.
Definition at line 154 of file action.cpp. References KoMacro::Variable::setName(), KoMacro::Variable::setText(), setVariable(), and variable(). |
|
|
Append the Variable
Definition at line 145 of file action.cpp. References name(). Referenced by KexiMacro::DataTableAction::DataTableAction(), KexiMacro::ExecuteAction::ExecuteAction(), KexiMacro::MessageAction::MessageAction(), KexiMacro::NavigateAction::NavigateAction(), KexiMacro::OpenAction::OpenAction(), and setVariable(). |
|
|
|
|
|
Definition at line 90 of file action.cpp. References name(). |
|
|
Definition at line 130 of file action.cpp. Referenced by KexiMacro::OpenAction::notifyUpdated(), KexiMacro::NavigateAction::notifyUpdated(), KexiMacro::ExecuteAction::notifyUpdated(), and setVariable(). |
|
|
Definition at line 140 of file action.cpp. |
|
|
Definition at line 135 of file action.cpp. |
Property Documentation
|
|
Property to get/set the comment.
|
|
|
Property to get/set the name.
|
|
|
Property to get/set the text.
|
The documentation for this class was generated from the following files:
