Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / XGUI / XGUI_SalomeViewer.h
index a07008bfc7c66d7c22e4f5205be7bf28c4286f07..1b3de1d1f0f51074d90a038a9a92b9ee0cf31fc9 100644 (file)
@@ -9,16 +9,20 @@
 
 class QMouseEvent;
 class QKeyEvent;
+class QContextMenuEvent;
 
 /**
-* A Base object for definition of connector object to
-* Salome Viewer. Reimplemented in NewGeom_SalomeViewer class
-*/
-class XGUI_EXPORT XGUI_SalomeViewer: public QObject
+ * A Base object for definition of connector object to
+ * Salome Viewer. Reimplemented in NewGeom_SalomeViewer class
+ */
+class XGUI_EXPORT XGUI_SalomeViewer : public QObject
 {
-  Q_OBJECT
-public:
-  XGUI_SalomeViewer(QObject* theParent):QObject(theParent) {}
+Q_OBJECT
+ public:
+  XGUI_SalomeViewer(QObject* theParent)
+      : QObject(theParent)
+  {
+  }
 
   //! Returns AIS_InteractiveContext from current OCCViewer
   virtual Handle(AIS_InteractiveContext) AISContext() const = 0;
@@ -58,6 +62,7 @@ signals:
   void activated();
 
   void selectionChanged();
+  void contextMenuRequested(QContextMenuEvent*);
 };
 
-#endif
\ No newline at end of file
+#endif