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 <LightApp_Operation.h>
16 #include <SALOMEDSClient.hxx>
21 Class : SMESHGUI_Operation
22 Description : Base class for all SMESH operations
25 class SMESHGUI_Operation : public LightApp_Operation
31 virtual ~SMESHGUI_Operation();
34 //! sets the dialog widgets to state just after operation start
35 virtual void initDialog();
37 virtual void startOperation();
38 virtual bool isReadyToStart() const;
40 //! Set according dialog active or inactive
41 virtual void setDialogActive( const bool );
43 SMESHGUI* getSMESHGUI() const;
44 bool isStudyLocked( const bool = true ) const;
46 _PTR(Study) studyDS() const;
48 virtual bool isValid( SUIT_Operation* ) const;
50 QString myHelpFileName;
54 virtual bool onApply();
55 virtual void onCancel();