1 // SMESH SMDS : implementaion of Salome mesh data structure
3 // Copyright (C) 2003 OPEN CASCADE
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : SMESHGUI_Operation.h
22 // Author : Sergey LITONIN
26 #ifndef SMESHGUI_Operation_H
27 #define SMESHGUI_Operation_H
29 #include <LightApp_Operation.h>
30 #include <SALOMEDSClient.hxx>
35 Class : SMESHGUI_Operation
36 Description : Base class for all SMESH operations
39 class SMESHGUI_Operation : public LightApp_Operation
45 virtual ~SMESHGUI_Operation();
48 //! sets the dialog widgets to state just after operation start
49 virtual void initDialog();
51 virtual void startOperation();
52 virtual bool isReadyToStart() const;
54 //! Set according dialog active or inactive
55 virtual void setDialogActive( const bool );
57 SMESHGUI* getSMESHGUI() const;
58 bool isStudyLocked( const bool = true ) const;
60 _PTR(Study) studyDS() const;
62 virtual bool isValid( SUIT_Operation* ) const;
64 QString myHelpFileName;
68 virtual bool onApply();
69 virtual void onCancel();