Salome HOME
Improve viewer performance
[modules/shaper.git] / src / XGUI / XGUI_ContextMenuMgr.h
index 254baf198169cff0f603300662c548539fc91439..40de3f5335dffc244cdebb58e907e80421532eb7 100644 (file)
@@ -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();