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& );
103 QToolBar* toolBar(
const int )
const;
104 QToolBar* toolBar(
const QString& )
const;
107 bool hasToolBar(
const int )
const;
108 bool hasToolBar(
const QString& )
const;
110 bool containsAction(
const int,
const int = -1 )
const;
111 int index(
const int,
const int )
const;
118 void onToolBarDestroyed();
121 int find(
const QString& )
const;
125 void updateToolBar(
const int );
130 void simplifySeparators(
QToolBar* );
149 virtual int append(
const QString&,
const bool,