Salome HOME
Provide distance between points of lines
[modules/shaper.git] / src / XGUI / XGUI_SalomeViewer.h
index 059bbd819975302cd48771e27a067c74effc8627..d35937900240d77e028ab446ff1d9101d828371d 100644 (file)
@@ -9,6 +9,7 @@
 
 class QMouseEvent;
 class QKeyEvent;
+class QContextMenuEvent;
 
 /**
 * A Base object for definition of connector object to
@@ -29,6 +30,21 @@ public:
   //! Returns Vsd_View object from currently active view window
   virtual Handle(V3d_View) activeView() const = 0;
 
+  //! Enable or disable selection in the viewer
+  virtual void enableSelection(bool isEnabled) = 0;
+
+  //! Returns true if selection is enabled
+  virtual bool isSelectionEnabled() const = 0;
+
+  //! Enable or disable multiselection in the viewer
+  virtual void enableMultiselection(bool isEnable) = 0;
+
+  //! Returns true if multiselection is enabled
+  virtual bool isMultiSelectionEnabled() const = 0;
+
+  //! Perfroms the fit all for the active view
+  virtual void fitAll() = 0;
+
 signals:
   void lastViewClosed();
   void tryCloseView();
@@ -42,6 +58,8 @@ signals:
   void keyRelease(QKeyEvent* theEvent);
   void activated();
 
+  void selectionChanged();
+  void contextMenuRequested(QContextMenuEvent*);
 };
 
 #endif
\ No newline at end of file