X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPVGUI%2FPVGUI_Module.h;h=6918361eb1d372d2a3314d3e2d73e83ad2804ce3;hb=0f9c3a16952f077e2cd32193d6ce940e0af45cbf;hp=c8c35951e416683038851afe016e2349b92f2620;hpb=491c1776601446755a755a8a11eeafa7d26c6fb2;p=modules%2Fparavis.git diff --git a/src/PVGUI/PVGUI_Module.h b/src/PVGUI/PVGUI_Module.h index c8c35951..6918361e 100644 --- a/src/PVGUI/PVGUI_Module.h +++ b/src/PVGUI/PVGUI_Module.h @@ -23,12 +23,16 @@ // Author : Sergey ANIKIN // + #ifndef PVGUI_Module_H #define PVGUI_Module_H #include +#include + 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 ); @@ -206,18 +221,26 @@ private slots: void onDeleteAll(); - void onSelectionModeChanged(int mode); + void onSelectionModeChanged( int mode ); - void onShowCenterAxisChanged(bool); + void onShowCenterAxisChanged( bool ); - void setTimeRanges(double, double); + void setTimeRanges( double, double ); - void onPlaying(bool); + void onPlaying( bool ); void onAddCameraLink(); void onHelpAbout(); + void showHelpForProxy( const QString& proxy ); + void makeAssistant(); + void assistantError( const QString& err ); + + void onPreAccept(); + void onPostAccept(); + void endWaitCursor(); + public slots: virtual bool activateModule( SUIT_Study* ); virtual bool deactivateModule( SUIT_Study* ); @@ -227,6 +250,10 @@ private: pqImplementation* Implementation; int mySelectionControlsTb; + int mySourcesMenuId; + int myFiltersMenuId; + + QList myDockWidgets; }; #endif // PVGUI_Module_H