X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_AttributeMessage.h;h=8e0aae0d087fb99ed51d6cadcd96d9135f83d61a;hb=c6745a6b1ad00c0285fab5aeac2cb0d57afef5cc;hp=bfb9b64b1b5c1deb55c6986c7184c8ca78ffaa9e;hpb=d0e122f8a53eee773269e778db3115c36070dbf1;p=modules%2Fshaper.git diff --git a/src/Config/Config_AttributeMessage.h b/src/Config/Config_AttributeMessage.h index bfb9b64b1..8e0aae0d0 100644 --- a/src/Config/Config_AttributeMessage.h +++ b/src/Config/Config_AttributeMessage.h @@ -1,4 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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 ATTRIBUTE_MESSAGE_H #define ATTRIBUTE_MESSAGE_H @@ -8,6 +25,7 @@ #include #include +#include /*! * \class Config_AttributeMessage @@ -22,8 +40,12 @@ class Config_AttributeMessage : public Events_Message std::string myFeatureId; ///< Attribute's feature's unique id bool myIsObligatory; ///< Required to be set by user, else it's feature is invalid. bool myIsConcealment; ///< If true, conceals features used as input + bool myIsMainArgument; ///< Mark attribute as a main argument of the feature + bool myIsGeometricalSelection; ///< If true selects geometry instead of shape; + ///< a list of pairs, if the attribute is placed inside paged containers: (case, switch) + std::list > myCases; - public: +public: /// Same event as Config_FeatureMessage::MODEL_EVENT() inline static const char* MODEL_EVENT() { @@ -45,15 +67,27 @@ class Config_AttributeMessage : public Events_Message CONFIG_EXPORT bool isObligatory() const; /// Returns true if attribute should conceal input features CONFIG_EXPORT bool isConcealment() const; + /// Returns true if attribute is a main argument of the feature + CONFIG_EXPORT bool isMainArgument() const; + /// Returns true if attribute selects geometry instead of shape; + CONFIG_EXPORT bool isGeometricalSelection() const; + /// Returns container of ids of pair of a case and switches + CONFIG_EXPORT const std::list >& getCases() const; + /// Sets ids of pair of a case and switches + CONFIG_EXPORT void setCases(const std::list >& theCases); /// Set attribute's unique id CONFIG_EXPORT void setAttributeId(const std::string& theId); /// Set attribute's feature's unique id CONFIG_EXPORT void setFeatureId(const std::string& id); - /// Returns attribute's concealment state + /// Set attribute's concealment state CONFIG_EXPORT void setConcealment(bool isConcealment); - /// Returns attribute's obligatory state + /// Set attribute's obligatory state CONFIG_EXPORT void setObligatory(bool isObligatory); + /// Set a state that the attribute is a main argument of the feature + CONFIG_EXPORT void setMainArgument(bool isMainArg); + /// Set attribute's geometrical selection state + CONFIG_EXPORT void setGeometricalSelection(bool isGeometricalSelection); }; #endif // ATTRIBUTE_MESSAGE_H