X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetSelectorStore.h;h=c93c453cb8614bc7e04a7a65ec2246e1cb4372c4;hb=935f47b49a24bebd9537a394ae4697a2210b3718;hp=a3584e3019f41040116e715b7b6b8f8f9c3fc7ec;hpb=57ddb5fa8e5c65bbafaa03e167e20cf2099be379;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetSelectorStore.h b/src/ModuleBase/ModuleBase_WidgetSelectorStore.h old mode 100755 new mode 100644 index a3584e301..c93c453cb --- a/src/ModuleBase/ModuleBase_WidgetSelectorStore.h +++ b/src/ModuleBase/ModuleBase_WidgetSelectorStore.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModuleBase_WidgetSelectorStore.h -// Created: 2 June 2014 -// Author: Vitaly Smetannikov +// Copyright (C) 2014-2021 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_WidgetSelectorStore_H #define ModuleBase_WidgetSelectorStore_H @@ -17,32 +30,34 @@ class ModuleBase_IWorkshop; /** * \ingroup GUI - Provides for an attribute backup of values. It is possible to store/ restore the attribute values. + Provides for an attribute backup of values. + It is possible to store/ restore the attribute values. */ -class MODULEBASE_EXPORT ModuleBase_WidgetSelectorStore +class ModuleBase_WidgetSelectorStore { public: /// Constructor - ModuleBase_WidgetSelectorStore(); + MODULEBASE_EXPORT ModuleBase_WidgetSelectorStore(); /// Destructor - virtual ~ModuleBase_WidgetSelectorStore() {} + MODULEBASE_EXPORT virtual ~ModuleBase_WidgetSelectorStore() {} /// Creates a backup of the current values of the attribute /// \param theAttribute a model attribute which parameters are to be stored /// \param theWorkshop a current workshop - void storeAttributeValue(const AttributePtr& theAttribute, - ModuleBase_IWorkshop* theWorkshop); + MODULEBASE_EXPORT void storeAttributeValue(const AttributePtr& theAttribute, + ModuleBase_IWorkshop* theWorkshop); /// Creates a backup of the current values of the attribute /// \param theAttribute a model attribute which parameters are to be restored /// \param theWorkshop a current workshop - void restoreAttributeValue(const AttributePtr& theAttribute, - ModuleBase_IWorkshop* theWorkshop); + MODULEBASE_EXPORT void restoreAttributeValue(const AttributePtr& theAttribute, + ModuleBase_IWorkshop* theWorkshop); private: /// backup parameters of the model attribute. The class processes three types of attribute: - /// Reference, RefAttr and Selection. Depending on the attribute type, only the attribute parameter + /// Reference, RefAttr and Selection. + /// Depending on the attribute type, only the attribute parameter /// values are reserved in the backup /// An attribute object ObjectPtr myObject;