Salome HOME
PARAVIS HTML docs
[modules/paravis.git] / src / PVGUI / PVGUI_Module.h
index 56efb877f24cf28845ae7eb38c0201bcdaab4e91..6918361eb1d372d2a3314d3e2d73e83ad2804ce3 100644 (file)
 // Author : Sergey ANIKIN
 //
 
+
 #ifndef PVGUI_Module_H
 #define PVGUI_Module_H
 
 #include <LightApp_Module.h>
 
+#include <ostream.h>
+
 class QMenu;
+class QDockWidget;
 class LightApp_Selection;
 class LightApp_SelectionMgr;
 class PVGUI_ProcessModuleHelper;
@@ -164,6 +168,12 @@ public:
 
   pqViewManager*         getMultiViewManager() const;
 
+  virtual bool           eventFilter( QObject*, QEvent* );
+
+  //! Compares the contents of the window with the given reference image, returns true if they "match" within some tolerance
+  bool                   compareView( const QString& ReferenceImage, double Threshold,
+                                     ostream& Output, const QString& TempDirectory );
+
 protected:
   //virtual CAM_DataModel* createDataModel();
 
@@ -174,7 +184,6 @@ private:
   static void            pvShutdown();   
  
   //! Create actions for ParaView GUI operations
-  //! duplicating menus and toolbars in pqMainWindow ParaView class
   void                   pvCreateActions();
 
   //! Create menus for ParaView GUI operations
@@ -191,6 +200,12 @@ private:
   //! Create dock widgets context menus
   void                   setupDockWidgetsContextMenu();
 
+  //! Save states of dockable ParaView widgets
+  void                   saveDockWidgetsState();
+
+  //! Restore states of dockable ParaView widgets
+  void                   restoreDockWidgetsState();
+
   //! Shows or hides ParaView view window
   void                   showView( bool );    
 
@@ -235,6 +250,10 @@ private:
   pqImplementation*      Implementation;
 
   int                    mySelectionControlsTb;
+  int                    mySourcesMenuId;
+  int                    myFiltersMenuId;
+
+  QList<QDockWidget*>    myDockWidgets;
 };
 
 #endif // PVGUI_Module_H