Version: 9.12.0
LightApp_ModuleAction::ActionSet Class Reference

Internal class to represent list of modules buttons. More...

Inheritance diagram for LightApp_ModuleAction::ActionSet:
Inheritance graph

Public Member Functions

 ActionSet (QObject *)
 Constructor. More...
 
QActionmoduleAction (const QString &) const
 Get action corresponding to the specified module. More...
 
int moduleId (const QString &) const
 Get module action identifier. More...
 
int moduleId (QAction *) const
 Get module action identifier. More...
 
void setVisible (bool)
 Show/hide modules actions. More...
 
- Public Member Functions inherited from QtxActionSet
 QtxActionSet (QObject *=0)
 Constructor. More...
 
virtual ~QtxActionSet ()
 Destructor. More...
 
QList< QAction * > actions () const
 Get list of child actions. More...
 
void setActions (const QList< QAction * > &)
 Assign child actions. More...
 
void insertActions (const QList< QAction * > &, const int=-1)
 Insert actions at the specified position. More...
 
int insertAction (QAction *, const int id=-1, const int=-1)
 Insert action at the specified position. More...
 
int insertAction (const QString &, const int id=-1, const int=-1)
 Insert action at the specified position. More...
 
int insertAction (const QString &, const QIcon &, const int id=-1, const int=-1)
 Insert action at the specified position. More...
 
void removeAction (QAction *)
 Remove specified action. More...
 
void removeAction (const int)
 Remove specified action. More...
 
void clear ()
 Remove all actions. More...
 
- Public Member Functions inherited from QtxAction
 QtxAction (QObject *=0, bool=false, const QString &=QString())
 Constructor. More...
 
 QtxAction (const QString &, const QString &, int, QObject *, bool=false, const QString &=QString())
 Constructor. More...
 
 QtxAction (const QString &, const QString &, const QKeySequence &, QObject *, bool=false, const QString &=QString())
 Constructor. More...
 
 QtxAction (const QString &, const QIcon &, const QString &, int, QObject *, bool=false, const QString &=QString())
 Constructor. More...
 
 QtxAction (const QString &, const QIcon &, const QString &, const QKeySequence &, QObject *, bool=false, const QString &=QString())
 Constructor. More...
 
virtual ~QtxAction ()
 Destructor. More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Customize action events. More...
 
QString shortcutActionName () const
 Return shortcut action name for the action. More...
 
void setShortcutActionName (const QString &)
 Set shortcut action name to the action. More...
 

Additional Inherited Members

- Signals inherited from QtxActionSet
void triggered (int)
 Emitted when some child action is activated by the user. More...
 
void triggered (QAction *)
 Emitted when some child action is activated by the user. More...
 
- Protected Member Functions inherited from QtxActionSet
virtual void addedTo (QWidget *)
 Called when this action set is added to the menu bar (or toolbar). More...
 
virtual void removedFrom (QWidget *)
 Called when this action set is removed from the menu bar (or toolbar). More...
 
virtual void actionAdded (QAction *)
 Notify that action was added. More...
 
virtual void actionRemoved (QAction *)
 Notify that action was removed. More...
 
QActionaction (int) const
 Get action by specified identifier. More...
 
int actionId (QAction *) const
 Get action identifier for the action. More...
 
void setActionId (QAction *, const int)
 Set action identifier for the action. More...
 
virtual bool isEmptyAction () const
 Check if the action itself should be invisible (only child action are shown) More...
 
virtual void updateAction ()
 Update action set. More...
 
virtual void updateAction (QWidget *)
 Update action set for the specified widget. More...
 
- Protected Member Functions inherited from QtxAction
virtual void customEvent (QEvent *)
 Process notification events. More...
 

Detailed Description

Internal class to represent list of modules buttons.

Constructor & Destructor Documentation

◆ ActionSet()

LightApp_ModuleAction::ActionSet::ActionSet ( QObject parent)

Constructor.

Parameters
parentparent object

Member Function Documentation

◆ moduleAction()

QAction * LightApp_ModuleAction::ActionSet::moduleAction ( const QString &  name) const

Get action corresponding to the specified module.

Parameters
namemodule name
Returns
module action or 0 if name is invalid

◆ moduleId() [1/2]

int LightApp_ModuleAction::ActionSet::moduleId ( const QString &  name) const

Get module action identifier.

Parameters
namemodule name
Returns
module action ID or -1 if name is invalid

◆ moduleId() [2/2]

int LightApp_ModuleAction::ActionSet::moduleId ( QAction a) const

Get module action identifier.

Parameters
amodule action
Returns
module action ID or -1 if a is null or invalid

◆ setVisible()

void LightApp_ModuleAction::ActionSet::setVisible ( bool  on)

Show/hide modules actions.

Parameters
onnew visibility state

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