X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI.h;h=33ced9a762fe2ccab76d3c066f22e43c9e0b4ef5;hb=07ec002dfd20ec187228e11533e8e2135eca08fd;hp=396de4b862f08383db787e41a2b9581c5692dce4;hpb=9a358116f4ee87b52d3d86752c4fb6b3f814a69f;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI.h b/src/SMESHGUI/SMESHGUI.h index 396de4b86..33ced9a76 100644 --- a/src/SMESHGUI/SMESHGUI.h +++ b/src/SMESHGUI/SMESHGUI.h @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -29,6 +29,8 @@ #ifndef SMESHGUI_HeaderFile #define SMESHGUI_HeaderFile +#include "SMESH_SMESHGUI.hxx" + // SALOME Includes #include #include @@ -44,15 +46,18 @@ class SUIT_ViewWindow; class SUIT_ResourceMgr; class SUIT_ViewManager; +class LightApp_Operation; class SalomeApp_Study; -class SalomeApp_SelectionMgr; +class LightApp_SelectionMgr; + +class SMESHGUI_FilterLibraryDlg; //================================================================================= // class : SMESHGUI // purpose : //================================================================================= -class SMESHGUI : public SalomeApp_Module +class SMESHGUI_EXPORT SMESHGUI : public SalomeApp_Module { Q_OBJECT; @@ -62,7 +67,7 @@ public : static SMESH::SMESH_Gen_var GetSMESHGen(); static SMESHGUI* GetSMESHGUI(); - static SalomeApp_SelectionMgr* selectionMgr(); + static LightApp_SelectionMgr* selectionMgr(); static SUIT_ResourceMgr* resourceMgr(); static SUIT_Desktop* desktop() ; static SalomeApp_Study* activeStudy(); @@ -70,6 +75,7 @@ public : static bool automaticUpdate(); + virtual LightApp_Displayer* displayer(); virtual QString engineIOR() const; virtual void initialize( CAM_Application* ); virtual void windows( QMap& ) const; @@ -81,6 +87,7 @@ public : void ResetState() ; void SetState(int aState) ; bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ; + void switchToOperation(int id) ; virtual bool OnGUIEvent ( int id ); virtual bool OnMousePress ( QMouseEvent*, SUIT_ViewWindow* ); @@ -89,7 +96,6 @@ public : virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& ); - virtual bool SetSettings ( SUIT_Desktop* ); virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)&, SUIT_ViewWindow* = 0 ); @@ -100,14 +106,22 @@ public : virtual void createPreferences(); virtual void preferencesChanged( const QString&, const QString& ); + + virtual void update( const int ); + + static SALOMEDS::Color getUniqueColor( const QValueList& ); public slots: virtual bool deactivateModule( SUIT_Study* ); virtual bool activateModule( SUIT_Study* ); + virtual void studyClosed( SUIT_Study* ); private slots: - void OnGUIEvent(); - void onViewManagerAdded( SUIT_ViewManager* ); + void OnGUIEvent(); + void onViewManagerActivated( SUIT_ViewManager* ); + void onOperationCommited( SUIT_Operation* ); + void onOperationAborted( SUIT_Operation* ); + signals: void SignalDeactivateActiveDialog() ; @@ -119,12 +133,20 @@ protected: const int = 0, const bool = false ); void createPopupItem( const int, const QString&, const QString&, const QString& = QString::null, const int = -1 ); + + virtual LightApp_Operation* createOperation( const int ) const; + +private: + void OnEditDelete(); private : static SMESH::SMESH_Gen_var myComponentSMESH; QDialog* myActiveDialogBox; int myState; QMap myRules; + LightApp_Displayer* myDisplayer; + + SMESHGUI_FilterLibraryDlg* myFilterLibraryDlg; }; #endif