Salome HOME
Fix bug 12796: Warning missed for the bad file 'test18.med'
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.h
index a3b75e9c834ac51a67dcb117492ce47ad37fceaa..72f756e46e2f012f92cb80adb358c3c261dd7a67 100644 (file)
@@ -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
 //
 //
 //
@@ -44,8 +44,11 @@ class SUIT_ViewWindow;
 class SUIT_ResourceMgr;
 class SUIT_ViewManager;
 
+class LightApp_Operation;
 class SalomeApp_Study;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
+
+class SMESHGUI_FilterLibraryDlg;
 
 
 //=================================================================================
@@ -62,7 +65,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 +73,7 @@ public :
 
   static bool                     automaticUpdate();
 
+  virtual LightApp_Displayer*     displayer();
   virtual QString     engineIOR() const;
   virtual void        initialize( CAM_Application* );
   virtual void        windows( QMap<int, int>& ) const;
@@ -81,6 +85,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* );
@@ -99,14 +104,19 @@ public :
 
   virtual void                createPreferences();
   virtual void                preferencesChanged( const QString&, const QString& );
+  
+  virtual void                update( const int );
 
 public slots:
   virtual bool                deactivateModule( SUIT_Study* );
   virtual bool                activateModule( 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() ;
@@ -118,12 +128,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<int,QString>                myRules;
+  LightApp_Displayer*              myDisplayer;
+
+  SMESHGUI_FilterLibraryDlg*       myFilterLibraryDlg;
 };
 
 #endif