X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeBoolean.h;h=f76b1933c035eec3a12d9b3030010dbe7077f888;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=f52d52691a7217392fa965bbe7031d0ed167cc24;hpb=853952fd4ddc93c0cd6a7122d37b618199864396;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeBoolean.h b/src/Model/Model_AttributeBoolean.h index f52d52691..f76b1933c 100644 --- a/src/Model/Model_AttributeBoolean.h +++ b/src/Model/Model_AttributeBoolean.h @@ -1,6 +1,21 @@ -// File: Model_AttributeBoolean.h -// Created: 2 june 2014 -// Author: Vitaly Smetannikov +// Copyright (C) 2014-2023 CEA, EDF +// +// 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 Model_AttributeBoolean_H_ #define Model_AttributeBoolean_H_ @@ -18,6 +33,7 @@ class Model_AttributeBoolean : public ModelAPI_AttributeBoolean { Handle_TDataStd_Integer myBool; ///< double is Real attribute + TDF_Label myLab; ///< if attribute is not initialized, store label here public: /// Defines the double value MODEL_EXPORT virtual void setValue(bool theValue); @@ -29,6 +45,9 @@ class Model_AttributeBoolean : public ModelAPI_AttributeBoolean /// Initializes attibutes Model_AttributeBoolean(TDF_Label& theLabel); + /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) + virtual void reinit(); + friend class Model_Data; };