X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Operation.h;fp=src%2FSMESHGUI%2FSMESHGUI_Operation.h;h=3bc76d4f2a5a4c8109cd1d3e9ccc8fa5377e34df;hp=0000000000000000000000000000000000000000;hb=ff3baa884d16a0ec5b3b42823a8aea166005db79;hpb=24d6fd82e6e0f8daa90e318e365226e81e7816ee diff --git a/src/SMESHGUI/SMESHGUI_Operation.h b/src/SMESHGUI/SMESHGUI_Operation.h new file mode 100755 index 000000000..3bc76d4f2 --- /dev/null +++ b/src/SMESHGUI/SMESHGUI_Operation.h @@ -0,0 +1,62 @@ +// SALOME SMESHGUI +// +// Copyright (C) 2005 CEA/DEN, EDF R&D +// +// +// +// File : SMESHGUI_Operation.h +// Author : Sergey LITONIN +// Module : SALOME + + +#ifndef SMESHGUI_Operation_H +#define SMESHGUI_Operation_H + +#include +#include + +class SMESHGUI; + +/* + Class : SMESHGUI_Operation + Description : Base class for all SMESH operations +*/ + +class SMESHGUI_Operation : public SalomeApp_Operation +{ + Q_OBJECT + +public: + SMESHGUI_Operation(); + virtual ~SMESHGUI_Operation(); + +protected: + //! sets the dialog widgets to state just after operation start + virtual void initDialog(); + + virtual void startOperation(); + virtual bool isReadyToStart() const; + + //! Set according dialog active or inactive + virtual void setDialogActive( const bool ); + + SMESHGUI* getSMESHGUI() const; + bool isStudyLocked( const bool = true ) const; + + _PTR(Study) studyDS() const; + + virtual bool isValid( SUIT_Operation* ) const; + +protected slots: + virtual void onOk(); + virtual bool onApply(); + virtual void onCancel(); +}; + +#endif + + + + + +