lib
Kross::Api::ScriptActionCollection Class Reference
#include <scriptaction.h>
Detailed Description
A collection to store ScriptAction shared pointers.A ScriptAction instance could be stored within multiple ScriptActionCollection instances.
Definition at line 192 of file scriptaction.h.
Public Member Functions | |
ScriptActionCollection (const QString &text, KActionCollection *ac, const char *name) | |
~ScriptActionCollection () | |
ScriptAction::Ptr | action (const QCString &name) |
QValueList< ScriptAction::Ptr > | actions () |
KActionMenu * | actionMenu () |
void | attach (ScriptAction::Ptr action) |
void | detach (ScriptAction::Ptr action) |
void | clear () |
Constructor & Destructor Documentation
Kross::Api::ScriptActionCollection::ScriptActionCollection | ( | const QString & | text, | |
KActionCollection * | ac, | |||
const char * | name | |||
) | [inline] |
Constructor.
- Parameters:
-
text The text used to display some describing caption. ac The KActionCollection which should be used to as initial content for the KActionMenu m_actionmenu . name The internal name.
Definition at line 240 of file scriptaction.h.
Kross::Api::ScriptActionCollection::~ScriptActionCollection | ( | ) | [inline] |
Member Function Documentation
ScriptAction::Ptr Kross::Api::ScriptActionCollection::action | ( | const QCString & | name | ) | [inline] |
- Returns:
- the ScriptAction instance which has the name
name
or NULL if there exists no such action.
Definition at line 257 of file scriptaction.h.
KActionMenu* Kross::Api::ScriptActionCollection::actionMenu | ( | ) | [inline] |
QValueList<ScriptAction::Ptr> Kross::Api::ScriptActionCollection::actions | ( | ) | [inline] |
void Kross::Api::ScriptActionCollection::attach | ( | ScriptAction::Ptr | action | ) | [inline] |
Attach a ScriptAction instance to this ScriptActionCollection .
Definition at line 272 of file scriptaction.h.
void Kross::Api::ScriptActionCollection::clear | ( | void | ) | [inline] |
Clear this ScriptActionCollection .
The collection will be empty and there are no actions attach any longer.
Definition at line 295 of file scriptaction.h.
void Kross::Api::ScriptActionCollection::detach | ( | ScriptAction::Ptr | action | ) | [inline] |
Detach a ScriptAction instance from this ScriptActionCollection .
Definition at line 283 of file scriptaction.h.
The documentation for this class was generated from the following file: