Salome HOME
refs #1461: draft patch for some simple acceleration
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Module.h
index 2e62e5081b5ee87f1358736728b65e353f29e1a1..8ecc3090578579e3b14afbb7f86578e2e617ee39 100644 (file)
@@ -26,6 +26,7 @@
 #endif
 
 #include <LightApp_Module.h>
+#include <LightApp_Application.h>
 #include <QEvent>
 #include <QStack>
 
@@ -51,6 +52,7 @@ class HYDROGUI_AbstractDisplayer;
 class HYDROGUI_Shape;
 class HYDROGUI_VTKPrs;
 class HYDROGUI_Operation;
+class HYDROGUI_Overview;
 
 /**\class HYDROGUI_Module
  *\brief The class representing the HYDROGUI module
@@ -60,6 +62,7 @@ class HYDROGUI_Module : public LightApp_Module
   Q_OBJECT
 
   enum CustomEvent { NewViewEvent = QEvent::User + 100 };
+  enum CustomWindows { OverviewWindow = LightApp_Application::WT_User + 100 };
 
   enum CursorType
   {
@@ -255,9 +258,13 @@ public:
 
   void                            enableLCMActions();
 
+  bool arrowsVisible() const;
+  void setArrowsVisible( bool );
+
 protected:
   CAM_DataModel*                  createDataModel();
-
+  void                            setAutoZoomToAllViewManagers(bool bAutoZoom);
+  void                            setAutoZoom(SUIT_ViewManager* aVMgr, bool bAutoZoom);
 public slots:
   virtual bool                    activateModule( SUIT_Study* );
   virtual bool                    deactivateModule( SUIT_Study* );
@@ -273,6 +280,8 @@ protected:
 protected slots:
   void                            onOperation();
   void                            onDelete();
+  void                            onBathymetrySelection();
+  void                            onBathymetryText();
 
 
   bool                            onUndo( int theNumActions );
@@ -282,6 +291,8 @@ protected slots:
   virtual void                    onViewManagerRemoved( SUIT_ViewManager* );
   virtual void                    onViewCreated( SUIT_ViewWindow* );
 
+  void                            onViewActivated( SUIT_ViewManager* );
+
   void                            onViewPortMouseEvent( QGraphicsSceneMouseEvent* );
 
   void                            onMouseMove( SUIT_ViewWindow*, QMouseEvent* );
@@ -332,6 +343,8 @@ private:
   QStringList                     myGeomObjectsToImport; ///< entries of GEOM objects to be imported
 
   ViewId2StricklerTable           myLandCoverColoringMap;
+
+  HYDROGUI_Overview*              myOverview;
 };
 
 #endif