X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.h;h=64c846b18e2bd1aababd9f6da27b7438b613d69a;hb=3e2000ab472f5885de9ce1fbe1e2eb27669b5596;hp=a48bd79c770d442bab75cf086aa5a2d108f73b44;hpb=b088ac567eda79830c071c32443896ad59d56628;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.h b/src/XGUI/XGUI_ContextMenuMgr.h index a48bd79c7..64c846b18 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.h +++ b/src/XGUI/XGUI_ContextMenuMgr.h @@ -1,4 +1,3 @@ - #ifndef XGUI_ContextMenuMgr_H #define XGUI_ContextMenuMgr_H @@ -13,12 +12,12 @@ class QContextMenuEvent; class QMenu; /** -* A claas wihich provides manement of context menu -*/ -class XGUI_EXPORT XGUI_ContextMenuMgr: public QObject + * A claas wihich provides manement of context menu + */ +class XGUI_EXPORT XGUI_ContextMenuMgr : public QObject { Q_OBJECT -public: + public: XGUI_ContextMenuMgr(XGUI_Workshop* theParent); virtual ~XGUI_ContextMenuMgr(); @@ -46,20 +45,19 @@ public: signals: void actionTriggered(const QString& theId, bool isChecked); -private slots: + private slots: void onAction(bool isChecked); void onContextMenuRequest(QContextMenuEvent* theEvent); -private: + private: /** - * Add action - * \param theId - string ID of the item - * \param theAction - action to add - */ + * Add action + * \param theId - string ID of the item + * \param theAction - action to add + */ void addAction(const QString& theId, QAction* theAction); - QMenu* objectBrowserMenu() const; QMenu* viewerMenu() const; @@ -68,4 +66,4 @@ private: XGUI_Workshop* myWorkshop; }; -#endif \ No newline at end of file +#endif