2 #ifndef XGUI_ContextMenuMgr_H
3 #define XGUI_ContextMenuMgr_H
12 class QContextMenuEvent;
15 class XGUI_EXPORT XGUI_ContextMenuMgr: public QObject
19 XGUI_ContextMenuMgr(XGUI_Workshop* theParent);
20 virtual ~XGUI_ContextMenuMgr();
24 void addAction(const QString& theId, QAction* theAction);
26 QAction* action(const QString& theId) const;
28 QStringList actionIds() const;
30 void updateCommandsStatus();
32 void connectObjectBrowser() const;
35 void actionTriggered(const QString& theId, bool isChecked);
38 void onAction(bool isChecked);
40 void onContextMenuRequest(QContextMenuEvent* theEvent);
43 QMenu* objectBrowserMenu() const;
45 QMap<QString, QAction*> myActions;
47 XGUI_Workshop* myWorkshop;