Salome HOME
PAL10332 - references are interpreted as original objects in filters, dialogs, etc.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Operation.h
1 //  SALOME SMESHGUI
2 //
3 //  Copyright (C) 2005  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SMESHGUI_Operation.h
8 //  Author : Sergey LITONIN
9 //  Module : SALOME
10
11
12 #ifndef SMESHGUI_Operation_H
13 #define SMESHGUI_Operation_H
14
15 #include <SalomeApp_Operation.h>
16 #include <SALOMEDSClient.hxx>
17
18 class SMESHGUI;
19
20 /*
21   Class       : SMESHGUI_Operation
22   Description : Base class for all SMESH operations
23 */
24
25 class SMESHGUI_Operation : public SalomeApp_Operation
26 {
27   Q_OBJECT
28
29 public:
30   SMESHGUI_Operation();
31   virtual ~SMESHGUI_Operation();
32
33 protected:
34   //! sets the dialog widgets to state just after operation start
35   virtual void      initDialog();
36
37   virtual void      startOperation();
38   virtual bool      isReadyToStart() const;
39   
40   //! Set according dialog active or inactive
41   virtual void      setDialogActive( const bool );
42
43   SMESHGUI*         getSMESHGUI() const;
44   bool              isStudyLocked( const bool = true ) const;
45
46   _PTR(Study)       studyDS() const;
47   
48   virtual bool      isValid( SUIT_Operation* ) const;
49
50 protected slots:
51   virtual void onOk();
52   virtual bool onApply();
53   virtual void onCancel();
54 };
55
56 #endif
57
58
59
60
61
62