Salome HOME
A correction to check modified value in extrusion cut/sketch/etc operations.
[modules/shaper.git] / src / XGUI / XGUI_ContextMenuMgr.h
index 80905f05a8818b21ac76ac2a0a6222916fd9da58..40de3f5335dffc244cdebb58e907e80421532eb7 100644 (file)
@@ -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();