3 // Copyright (C) 2005 CEA/DEN, EDF R&D
7 // File : SMESHGUI_Operation.h
8 // Author : Sergey LITONIN
12 #ifndef SMESHGUI_Operation_H
13 #define SMESHGUI_Operation_H
15 #include "SMESH_SMESHGUI.hxx"
17 #include <LightApp_Operation.h>
18 #include <SALOMEDSClient.hxx>
23 Class : SMESHGUI_Operation
24 Description : Base class for all SMESH operations
27 class SMESHGUI_EXPORT SMESHGUI_Operation : public LightApp_Operation
33 virtual ~SMESHGUI_Operation();
36 //! sets the dialog widgets to state just after operation start
37 virtual void initDialog();
39 virtual void startOperation();
40 virtual bool isReadyToStart() const;
42 //! Set according dialog active or inactive
43 virtual void setDialogActive( const bool );
45 SMESHGUI* getSMESHGUI() const;
46 bool isStudyLocked( const bool = true ) const;
48 _PTR(Study) studyDS() const;
50 virtual bool isValid( SUIT_Operation* ) const;
54 virtual bool onApply();
55 virtual void onCancel();