Internal class to represent combo box with the list of modules in the toolbar.
#include <LightApp_ModuleAction.h>

Signals | |
| void | activatedId (int) |
| Emitted when the combo box item is activated. | |
Public Member Functions | |
| ComboAction (QObject *parent) | |
| Constructor. | |
| QList< QtxComboBox * > | widgets () const |
| Get list of associated widgets. | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Customize action events. | |
| QString | shortcutActionName () const |
| Return shortcut action name for the action. | |
| void | setShortcutActionName (const QString &) |
| Set shortcut action name to the action. | |
Protected Member Functions | |
| virtual QWidget * | createWidget (QWidget *) |
| Create combo box widget by request from the toolbar. | |
| virtual void | addedTo (QWidget *) |
| Called when the action is added to the widget. | |
| virtual void | removedFrom (QWidget *) |
| Called when the action is removed from the widget. | |
| virtual void | customEvent (QEvent *) |
| Process notification events. | |
| LightApp_ModuleAction.ComboAction::ComboAction | ( | QObject * | parent | ) |
| parent | parent object |
| QList< QtxComboBox * > LightApp_ModuleAction.ComboAction::widgets | ( | ) | const |
| parent | parent widget (should be QToolBar or its successor) |
References test_table.l.
| void LightApp_ModuleAction.ComboAction::activatedId | ( | int | id | ) | [signal] |
| item | identifier |
Sends a notification event to the action when it is added to the widget or removed from it in order to perform custom processing.
| o | object |
| e | event |
true if further event processing should be stopped | QString QtxAction::shortcutActionName | ( | ) | const [inherited] |
References QtxAction.myShortcutActionName.
| void QtxAction::setShortcutActionName | ( | const QString & | shortcutAction | ) | [inherited] |
Shortcut action name is used for shortcuts customization.
| shortcutAction | shortcut action name |
References QtxAction.myShortcutActionName.
| void QtxAction::addedTo | ( | QWidget * | ) | [protected, virtual, inherited] |
This method can be redefined in the subclasses to customize the action behavior. Base implementation does nothing.
| w | widget (should be menu or toolbar) |
Reimplemented in LightApp_ModuleAction, QtxActionSet, QtxDockAction, QtxWorkspaceAction, and QtxWorkstackAction.
| void QtxAction::removedFrom | ( | QWidget * | ) | [protected, virtual, inherited] |
This method can be redefined in the subclasses to customize the action behavior. Base implementation does nothing.
| w | widget (should be menu or toolbar) |
Reimplemented in LightApp_ModuleAction, QtxActionSet, QtxDockAction, QtxWorkspaceAction, and QtxWorkstackAction.
| void QtxAction::customEvent | ( | QEvent * | e | ) | [protected, virtual, inherited] |
Calls addedTo() method when the action is added to the widget and removedFrom() when it is removed from the widget in order to perform custom processing.
| e | noification event |
References QtxAction.addedTo(), QtxAction.ActionNotify.isAdded(), QtxAction.removedFrom(), and QtxAction.ActionNotify.widget().