23 #ifndef QTXACTIONSET_H
24 #define QTXACTIONSET_H
31 #pragma warning( disable:4251 )
47 int insertAction(
QAction*,
const int id = -1,
const int = -1 );
48 int insertAction(
const QString&,
const int id = -1,
const int = -1 );
49 int insertAction(
const QString&,
const QIcon&,
const int id = -1,
const int = -1 );
52 void removeAction(
const int );
62 void onActionTriggered(
bool =
false );
68 virtual void actionAdded(
QAction* );
69 virtual void actionRemoved(
QAction* );
73 void setActionId(
QAction*,
const int );
75 virtual bool isEmptyAction()
const;
77 virtual void updateAction();
78 virtual void updateAction(
QWidget* );
81 int generateId()
const;
91 #pragma warning( default:4251 )
#define QTX_EXPORT
Definition: Qtx.h:36
For more information see QT documentation.
Definition: SUIT_Application.h:42
An action class which is represented in the menu bar (or toolbar) as a group of items (which can be c...
Definition: QtxActionSet.h:35
void triggered(QAction *)
Emitted when some child action is activated by the user.
QList< QAction * > ActionList
Definition: QtxActionSet.h:84
void triggered(int)
Emitted when some child action is activated by the user.
ActionList mySet
actions list
Definition: QtxActionSet.h:87
Generic action class.
Definition: QtxAction.h:40
virtual void addedTo(QWidget *)
Called when the action is added to the widget.
Definition: QtxAction.cxx:250
virtual void removedFrom(QWidget *)
Called when the action is removed from the widget.
Definition: QtxAction.cxx:263