X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_Operation.h;h=393315a84bd9cefd3b88b743eb68313833dc7e38;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=2e04b5b07f8f5fc1f5cb49ebd792b31418951a0d;hpb=c8ab29e531ee03054976a7606076f2c4ee1d9f6b;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index 2e04b5b07..393315a84 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -1,11 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -/* - * ModuleBase_Operation.h - * - * Created on: Apr 2, 2014 - * Author: sbh - */ +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// +// 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. +// +// 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 +// #ifndef ModuleBase_Operation_H #define ModuleBase_Operation_H @@ -64,16 +74,13 @@ Q_OBJECT void setGrantedOperationIds(const QStringList& theList); /// Must return true if this operation can be launched as nested for any current operation - /// and it is not necessary to check this operation on validity. By default + /// and it is not necessary to check this operation on validity. By default /// the operation is not granted. /// The method has to be redefined for granted operations. virtual bool isGranted(QString theId) const; /// Returns True if data of its feature was modified during operation - virtual bool isModified() const { return myIsModified; } - - /// Change the modified state of the operation - void setIsModified(const bool theIsModified) { myIsModified = theIsModified; } + virtual bool isModified() const; /// Returns operations Id from it's description QString id() const; @@ -89,6 +96,16 @@ Q_OBJECT /// \return Currently installed property panel ModuleBase_IPropertyPanel* propertyPanel() const { return myPropertyPanel; } + QString helpFileName() const { return myHelpFileName; } + + void setHelpFileName(QString theName) { + myHelpFileName = theName; + } + + void setHideFacesVisible(bool isVisible) { myHideFacesVisibilityState = isVisible; } + + bool isHideFacesVisible() const { return myHideFacesVisibilityState; } + signals: /// The operation is started void beforeStarted(); @@ -191,6 +208,11 @@ private: /// Access to property panel ModuleBase_IPropertyPanel* myPropertyPanel; + + QString myHelpFileName; + + /// Visibility state of HideFaces panel before the operation launch + bool myHideFacesVisibilityState; }; #endif