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 connectConstraintsBrowser();
74 void addObjBrowserMenu(
QMenu*)
const;
77 void addConstrBrowserMenu(
QMenu*)
const;
80 void addViewerMenu(
QMenu*)
const;
85 QStringList actionObjectGroups(
const QString& theName);
88 void updateObjectBrowserMenu();
91 void updateViewerMenu();
108 void onAction(
bool isChecked);
112 void onContextMenuRequest(QContextMenuEvent* theEvent);
117 void onResultSelection(
bool theChecked);
120 void onShapeSelection(
bool theChecked);
128 void addAction(
const QString& theId, QAction* theAction);
130 void addFeatures(
QMenu* theMenu)
const;
133 void buildObjBrowserMenu();
136 void buildConstrBrowserMenu();
139 void buildViewerMenu();
142 QMap<QString, QAction*> myActions;
147 typedef QList<QAction*> QActionsList;
148 QMap<std::string, QActionsList> myObjBrowserMenus;
149 QMap<std::string, QActionsList> myViewerMenu;
153 QAction* mySeparator1;
154 QAction* mySeparator2;
155 QAction* mySeparator3;
156 QAction* mySeparator4;
Class which defines a configuration of the application (Workshop) and launches it.
Definition: XGUI_Workshop.h:83