26 #ifndef QTXACTIONMENUMGR_H
27 #define QTXACTIONMENUMGR_H
39 #pragma warning( disable:4251 )
60 virtual bool isVisible(
const int,
const int )
const;
61 virtual void setVisible(
const int,
const int,
const bool );
63 int insert(
const int,
const QString&,
const int,
const int = -1 );
64 int insert(
QAction*,
const QString&,
const int,
const int = -1 );
66 int insert(
const int,
const QStringList&,
const int,
const int = -1 );
67 int insert(
QAction*,
const QStringList&,
const int,
const int = -1 );
69 virtual int insert(
const int,
const int,
const int,
const int = -1 );
70 int insert(
QAction*,
const int,
const int,
const int = -1 );
72 int insert(
const QString&,
const QString&,
const int,
const int = -1,
const int = -1 );
73 int insert(
const QString&,
const QStringList&,
const int,
const int = -1,
const int = -1 );
74 virtual int insert(
const QString&,
const int,
const int,
const int = -1,
const int = -1 ,
QMenu* = 0);
76 int append(
const int,
const int,
const int );
77 int append(
QAction*,
const int,
const int );
78 int append(
const QString&,
const int,
const int,
const int = -1 );
80 int prepend(
const int,
const int,
const int );
81 int prepend(
QAction*,
const int,
const int );
82 int prepend(
const QString&,
const int,
const int,
const int = -1 );
84 void remove(
const int );
85 void remove(
const int,
const int,
const int = -1 );
87 void show(
const int );
88 void hide(
const int );
90 bool isShown(
const int )
const;
91 void setShown(
const int,
const bool );
93 virtual void change(
const int,
const QString& );
97 bool containsMenu(
const QString&,
const int,
const bool =
false )
const;
98 bool containsMenu(
const int,
const int,
const bool =
false )
const;
100 QMenu* findMenu(
const int )
const;
101 QMenu* findMenu(
const QString&,
const int,
const bool =
false )
const;
103 bool isEmptyEnabled(
const int )
const;
104 void setEmptyEnabled(
const int,
const bool );
107 void onAboutToShow();
108 void onAboutToHide();
116 void setMenuWidget(
QWidget* );
118 MenuNode* find(
const int,
const int,
const bool =
true )
const;
121 MenuNode* find(
const QString&,
const int,
const bool =
true )
const;
124 int findId(
const int,
const int = -1 )
const;
126 void removeMenu(
const int,
MenuNode* );
128 QAction* itemAction(
const int )
const;
129 QAction* menuAction(
const int )
const;
130 int menuActionId(
QAction* )
const;
132 void updateMenu(
MenuNode* = 0,
const bool =
true,
const bool =
true );
139 bool checkWidget(
QWidget* )
const;
141 void simplifySeparators(
QWidget* );
142 QString clearTitle(
const QString& )
const;
143 int createMenu(
const QStringList&,
const int );
163 virtual int append(
const QString&,
const bool,
QMap< QString, QString > ItemAttributes
attributes map
Definition: QtxActionMgr.h:108
#define QTX_EXPORT
Definition: Qtx.h:36
For more information see QT documentation.
Definition: SUIT_Application.h:42
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 actionChanged(int)
Internal action changing response operation.
Definition: QtxActionMgr.cxx:430
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