X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.h;h=40de3f5335dffc244cdebb58e907e80421532eb7;hb=59a007784d1e103bcb352c515eb6feafa170f1ff;hp=254baf198169cff0f603300662c548539fc91439;hpb=fdf05fdbacbddf319df9770cddafaaa09e8cd1a4;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.h b/src/XGUI/XGUI_ContextMenuMgr.h index 254baf198..40de3f533 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.h +++ b/src/XGUI/XGUI_ContextMenuMgr.h @@ -49,14 +49,20 @@ Q_OBJECT /// Connect to viewer from workshop. Has to called at creation of viewer. void connectViewer(); - QMenu* objBrowserMenu() const; - QMenu* viewerMenu() const; + /// Add menu items for Object browser pop-up + void addObjBrowserMenu(QMenu*) const; + + /// Add menu items for Viewer pop-up + 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 +84,8 @@ signals: /// \param theEvent a context menu event void onContextMenuRequest(QContextMenuEvent* theEvent); + void onRename(); + private: /** * Add action @@ -89,9 +97,6 @@ signals: /// Updates menu for object browser void updateObjectBrowserMenu(); - /// Updates menu for viewer - void updateViewerMenu(); - /// Creates menu for object browser void buildObjBrowserMenu();