X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Operation.h;h=12b10e83baf6a673f056bb94981cef92500043eb;hp=3bc76d4f2a5a4c8109cd1d3e9ccc8fa5377e34df;hb=88141f757b048eaa5aae0be49faaf274448bbcaf;hpb=ff3baa884d16a0ec5b3b42823a8aea166005db79 diff --git a/src/SMESHGUI/SMESHGUI_Operation.h b/src/SMESHGUI/SMESHGUI_Operation.h index 3bc76d4f2..12b10e83b 100755 --- a/src/SMESHGUI/SMESHGUI_Operation.h +++ b/src/SMESHGUI/SMESHGUI_Operation.h @@ -1,18 +1,39 @@ -// SALOME SMESHGUI +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2005 CEA/DEN, EDF R&D +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. // +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. // -// File : SMESHGUI_Operation.h -// Author : Sergey LITONIN -// Module : SALOME +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +// SMESH SMDS : implementation of Salome mesh data structure +// File : SMESHGUI_Operation.h +// Author : Sergey LITONIN, Open CASCADE S.A.S. +// +#ifndef SMESHGUI_OPERATION_H +#define SMESHGUI_OPERATION_H +// SMESH includes +#include "SMESH_SMESHGUI.hxx" -#ifndef SMESHGUI_Operation_H -#define SMESHGUI_Operation_H +// SALOME GUI includes +#include -#include +// SALOME KERNEL includes #include class SMESHGUI; @@ -22,7 +43,7 @@ class SMESHGUI; Description : Base class for all SMESH operations */ -class SMESHGUI_Operation : public SalomeApp_Operation +class SMESHGUI_EXPORT SMESHGUI_Operation : public LightApp_Operation { Q_OBJECT @@ -37,6 +58,9 @@ protected: virtual void startOperation(); virtual bool isReadyToStart() const; + virtual void setIsApplyAndClose( const bool theFlag ); + virtual bool isApplyAndClose() const; + //! Set according dialog active or inactive virtual void setDialogActive( const bool ); @@ -47,16 +71,14 @@ protected: virtual bool isValid( SUIT_Operation* ) const; + QString myHelpFileName; + bool myIsApplyAndClose; + protected slots: - virtual void onOk(); - virtual bool onApply(); - virtual void onCancel(); + virtual void onOk(); + virtual bool onApply(); + virtual void onCancel(); + void onHelp(); }; -#endif - - - - - - +#endif // SMESHGUI_OPERATION_H