X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.h;h=40de3f5335dffc244cdebb58e907e80421532eb7;hb=7e01af6cfeb76252b3fd062f6a2f35115994a422;hp=80905f05a8818b21ac76ac2a0a6222916fd9da58;hpb=6c923258afce0242f7a1c69bbacda73be37bc4b0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.h b/src/XGUI/XGUI_ContextMenuMgr.h index 80905f05a..40de3f533 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.h +++ b/src/XGUI/XGUI_ContextMenuMgr.h @@ -49,9 +49,19 @@ 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 @@ -74,6 +84,8 @@ signals: /// \param theEvent a context menu event void onContextMenuRequest(QContextMenuEvent* theEvent); + void onRename(); + private: /** * Add action @@ -85,9 +97,6 @@ signals: /// Updates menu for object browser void updateObjectBrowserMenu(); - /// Updates menu for viewer - void updateViewerMenu(); - /// Creates menu for object browser void buildObjBrowserMenu();