23 #ifndef LIGHTAPP_MODULEACTION_H
24 #define LIGHTAPP_MODULEACTION_H
31 #pragma warning ( disable:4251 )
48 typedef enum { Buttons = 0x01,
51 All = Buttons | List | AddRemove
59 QStringList modules()
const;
61 QIcon moduleIcon(
const QString& )
const;
62 void setModuleIcon(
const QString&,
const QIcon& );
64 QAction* moduleAction(
const QString& )
const;
66 void insertModule(
const QString&,
const QIcon&,
const int = -1 );
67 void insertModule(
const QString&,
const QIcon&,
bool,
const int = -1 );
68 void removeModule(
const QString& );
69 void insertExtension(
const QString&);
70 void removeExtension(
const QString&);
71 void updateExtActions();
73 QString activeModule()
const;
75 void setMode(
const Mode& );
76 void setModeEnabled(
const Mode&,
bool );
77 bool isModeEnabled(
const Mode& )
const;
80 void setActiveModule(
const QString& );
87 virtual bool event(
QEvent* );
100 void activate(
int,
bool =
true );
104 void onTriggered(
int );
105 void onComboActivated(
int );
#define LIGHTAPP_EXPORT
Definition: LightApp.h:36
Internal class to represent list of modules buttons.
Definition: LightApp_ModuleAction.cxx:49
Internal class to represent custom event for transfer the activation item id.
Definition: LightApp_ModuleAction.cxx:196
Internal class to represent combo box with the list of modules in the toolbar.
Definition: LightApp_ModuleAction.h:119
virtual QWidget * createWidget(QWidget *)
Create combo box widget by request from the toolbar.
Definition: LightApp_ModuleAction.cxx:171
QList< QtxComboBox * > widgets() const
Get list of associated widgets.
Definition: LightApp_ModuleAction.cxx:154
ComboAction(QObject *parent)
Constructor.
Definition: LightApp_ModuleAction.cxx:144
void activatedId(int)
Emitted when the combo box item is activated.
An action, representing the list of modules to be inserted to the toolbar.
Definition: LightApp_ModuleAction.h:39
QSignalMapper * myMapper
Definition: LightApp_ModuleAction.h:115
int myMode
Definition: LightApp_ModuleAction.h:114
QtxAction * myInfo
Definition: LightApp_ModuleAction.h:111
QtxAction * myAdd
Definition: LightApp_ModuleAction.h:109
ComboAction * myCombo
Definition: LightApp_ModuleAction.h:108
QtxAction * myRemove
Definition: LightApp_ModuleAction.h:110
QAction * mySeparator
Definition: LightApp_ModuleAction.h:113
ActionSet * mySet
Definition: LightApp_ModuleAction.h:112
void removing(const QString &)
void moduleActivated(const QString &)
Emitted when the module is activated.
For more information see QT documentation.
Definition: SUIT_Application.h:42
Generic action class.
Definition: QtxAction.h:39
virtual void addedTo(QWidget *)
Called when the action is added to the widget.
Definition: QtxAction.cxx:286
virtual void removedFrom(QWidget *)
Called when the action is removed from the widget.
Definition: QtxAction.cxx:299
Enhanced version of Qt combo box class.
Definition: QtxComboBox.h:39
Application resources manager.
Definition: QtxResourceMgr.h:53