X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSamplePanelPlugin%2FSamplePanelPlugin_Feature.h;h=d1a194075f8cf7e81e7b031ce41d6ff7eff857b8;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=3353b906dae84153eb8ffcf84d99616e0379be61;hpb=c440b2b2dc5389d7b8e8b7a8edfaf7348199a7f0;p=modules%2Fshaper.git diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_Feature.h b/src/SamplePanelPlugin/SamplePanelPlugin_Feature.h old mode 100755 new mode 100644 index 3353b906d..d1a194075 --- a/src/SamplePanelPlugin/SamplePanelPlugin_Feature.h +++ b/src/SamplePanelPlugin/SamplePanelPlugin_Feature.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: SamplePanelPlugin_Feature.h -// Created: 29 Mar 2015 -// Author: Natalia ERMOLAEVA +// 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 SAMPLEPANELPLUGIN_FEATURE_H_ #define SAMPLEPANELPLUGIN_FEATURE_H_ @@ -25,8 +38,15 @@ class SamplePanelPlugin_Feature : public ModelAPI_Feature return MY_SAMPLE_PANEL_FEATURE_ID; } + /// Total number of objects, initial and translated objects + inline static const std::string& VALUE_ID() + { + static const std::string MY_VALUE_ID("Value"); + return MY_VALUE_ID; + } + /// Request for initialization of data model of the object: adding all attributes - virtual void initAttributes() {}; + virtual void initAttributes(); /// Returns the unique kind of a feature virtual const std::string& getKind() {