Kross::Api::ScriptActionCollection Class Reference

#include <scriptaction.h>

Public Member Functions

 ScriptActionCollection (const TQString &text, TDEActionCollection *ac, const char *name)
 
 ~ScriptActionCollection ()
 
ScriptAction::Ptr action (const TQCString &name)
 
TQValueList< ScriptAction::Ptr > actions ()
 
TDEActionMenu * actionMenu ()
 
void attach (ScriptAction::Ptr action)
 
void detach (ScriptAction::Ptr action)
 
void clear ()
 

Detailed Description

A collection to store ScriptAction shared pointers.

A ScriptAction instance could be stored within multiple ScriptActionCollection instances.

Definition at line 193 of file scriptaction.h.

Constructor & Destructor Documentation

◆ ScriptActionCollection()

Kross::Api::ScriptActionCollection::ScriptActionCollection ( const TQString &  text,
TDEActionCollection *  ac,
const char *  name 
)
inline

Constructor.

Parameters
textThe text used to display some describing caption.
acThe TDEActionCollection which should be used to as initial content for the TDEActionMenu m_actionmenu .
nameThe internal name.

Definition at line 241 of file scriptaction.h.

◆ ~ScriptActionCollection()

Kross::Api::ScriptActionCollection::~ScriptActionCollection ( )
inline

Destructor.

Definition at line 249 of file scriptaction.h.

Member Function Documentation

◆ action()

ScriptAction::Ptr Kross::Api::ScriptActionCollection::action ( const TQCString &  name)
inline
Returns
the ScriptAction instance which has the name name or NULL if there exists no such action.

Definition at line 258 of file scriptaction.h.

◆ actionMenu()

TDEActionMenu * Kross::Api::ScriptActionCollection::actionMenu ( )
inline
Returns
the TDEActionMenu m_actionmenu .

Definition at line 268 of file scriptaction.h.

◆ actions()

TQValueList< ScriptAction::Ptr > Kross::Api::ScriptActionCollection::actions ( )
inline
Returns
a list of actions.

Definition at line 263 of file scriptaction.h.

◆ attach()

void Kross::Api::ScriptActionCollection::attach ( ScriptAction::Ptr  action)
inline

Attach a ScriptAction instance to this ScriptActionCollection .

Definition at line 273 of file scriptaction.h.

◆ clear()

void Kross::Api::ScriptActionCollection::clear ( )
inline

Clear this ScriptActionCollection .

The collection will be empty and there are no actions attach any longer.

Definition at line 296 of file scriptaction.h.

◆ detach()

void Kross::Api::ScriptActionCollection::detach ( ScriptAction::Ptr  action)
inline

Detach a ScriptAction instance from this ScriptActionCollection .

Definition at line 284 of file scriptaction.h.


The documentation for this class was generated from the following file: