26 #ifndef QTXACTIONTOOLMGR_H
27 #define QTXACTIONTOOLMGR_H
40 #pragma warning( disable:4251 )
51 ToolNode(
const int _id ) : id( _id ), visible( true ) {};
68 int createToolBar(
const QString&,
int = -1,
QMainWindow* = 0,
bool =
true );
69 int createToolBar(
const QString&,
const QString&,
int = -1,
QMainWindow* = 0,
bool =
true );
70 int createToolBar(
const QString&,
bool, Qt::ToolBarAreas = Qt::AllToolBarAreas,
72 int createToolBar(
const QString&,
const QString&,
bool, Qt::ToolBarAreas = Qt::AllToolBarAreas,
74 void removeToolBar(
const QString& );
75 void removeToolBar(
const int );
77 int insert(
const int,
const int,
const int = -1 );
78 int insert(
QAction*,
const int,
const int = -1 );
79 int insert(
const int,
const QString&,
const int = -1 );
80 int insert(
QAction*,
const QString&,
const int = -1 );
82 int append(
const int,
const int );
83 int append(
QAction*,
const int );
84 int append(
const int,
const QString& );
85 int append(
QAction*,
const QString& );
87 int prepend(
const int,
const int );
88 int prepend(
QAction*,
const int );
89 int prepend(
const int,
const QString& );
90 int prepend(
QAction*,
const QString& );
92 virtual bool isVisible(
const int,
const int )
const;
93 virtual void setVisible(
const int,
const int,
const bool );
95 void show(
const int );
96 void hide(
const int );
97 bool isShown(
const int )
const;
98 void setShown(
const int,
const bool );
100 void remove(
const int,
const int );
101 void remove(
const int,
const QString& );
102 void clear(
const int );
103 void clear(
const QString& );
105 QToolBar* toolBar(
const int )
const;
106 QToolBar* toolBar(
const QString& )
const;
109 bool hasToolBar(
const int )
const;
110 bool hasToolBar(
const QString& )
const;
112 bool containsAction(
const int,
const int = -1 )
const;
113 int index(
const int,
const int )
const;
120 void onToolBarDestroyed();
123 int find(
const QString& )
const;
127 void updateToolBar(
const int );
132 void simplifySeparators(
QToolBar* );
151 virtual int append(
const QString&,
const bool,
QMap< QString, QString > ItemAttributes
attributes map
Definition: QtxActionMgr.h:108
QList< int > QIntList
list of int values
Definition: Qtx.h:55
#define QTX_EXPORT
Definition: Qtx.h:36
Generic actions creator class.
Definition: QtxActionMgr.h:111
Generic actions description files reader class.
Definition: QtxActionMgr.h:133
Manages a set of actions accessible by unique identifier.
Definition: QtxActionMgr.h:45
virtual bool isVisible(const int, const int) const
Check if an action with actId identifier is visible to the parent action with place identifier.
Definition: QtxActionMgr.cxx:284
virtual void internalUpdate()
Internal update.
Definition: QtxActionMgr.cxx:329
virtual void updateContent()
Internal content update operation.
Definition: QtxActionMgr.cxx:423
virtual void setVisible(const int, const int, const bool)
Set action's visibility flag.
Definition: QtxActionMgr.cxx:300
void triggerUpdate()
Perform delayed update.
Definition: QtxActionMgr.cxx:399