20 #ifndef XGUI_ContextMenuMgr_H
21 #define XGUI_ContextMenuMgr_H
30 class QContextMenuEvent;
52 QAction* action(
const QString& theId)
const;
56 QAction* actionByName(
const QString& theName)
const;
59 QStringList actionIds()
const;
62 void updateCommandsStatus();
65 void connectObjectBrowser();
71 void addObjBrowserMenu(
QMenu*)
const;
74 void addViewerMenu(
QMenu*)
const;
79 QStringList actionObjectGroups(
const QString& theName);
82 void updateObjectBrowserMenu();
85 void updateViewerMenu();
102 void onAction(
bool isChecked);
106 void onContextMenuRequest(QContextMenuEvent* theEvent);
111 void onResultSelection(
bool theChecked);
114 void onShapeSelection(
bool theChecked);
122 void addAction(
const QString& theId, QAction* theAction);
124 void addFeatures(
QMenu* theMenu)
const;
127 void buildObjBrowserMenu();
130 void buildViewerMenu();
133 QMap<QString, QAction*> myActions;
138 typedef QList<QAction*> QActionsList;
139 QMap<std::string, QActionsList> myObjBrowserMenus;
140 QMap<std::string, QActionsList> myViewerMenu;
144 QAction* mySeparator1;
145 QAction* mySeparator2;
146 QAction* mySeparator3;
147 QAction* mySeparator4;
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:82