X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.h;h=db0e71e8541c533142b3a9c49c337b4d66d95e64;hb=1be01557bbce2ce45f8f7e1cfce412005aa8e349;hp=254baf198169cff0f603300662c548539fc91439;hpb=fdf05fdbacbddf319df9770cddafaaa09e8cd1a4;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.h b/src/XGUI/XGUI_ContextMenuMgr.h index 254baf198..db0e71e85 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.h +++ b/src/XGUI/XGUI_ContextMenuMgr.h @@ -49,14 +49,17 @@ Q_OBJECT /// Connect to viewer from workshop. Has to called at creation of viewer. void connectViewer(); - QMenu* objBrowserMenu() const; - QMenu* viewerMenu() const; + void addObjBrowserMenu(QMenu*) const; + void addViewerMenu(QMenu*) const; /// Returns a list of object group names of the action /// \param theName a name of the action /// \return a list of group names QStringList actionObjectGroups(const QString& theName); + /// Updates menu for viewer + void updateViewerMenu(); + signals: /// Signal aabout triggered action /// \param theId an id of triggered action @@ -78,6 +81,8 @@ signals: /// \param theEvent a context menu event void onContextMenuRequest(QContextMenuEvent* theEvent); + void onRename(); + private: /** * Add action @@ -89,9 +94,6 @@ signals: /// Updates menu for object browser void updateObjectBrowserMenu(); - /// Updates menu for viewer - void updateViewerMenu(); - /// Creates menu for object browser void buildObjBrowserMenu();