X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSamplePanelPlugin%2FSamplePanelPlugin_Feature.h;h=e2655ee4c40e23427032bd28caa4bb849aaa8c08;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=6c4db0051a587595a0baa1269a9ae3e90417db25;hpb=fd67236d5d82ece65fe19059e4176d53d8fe2f1d;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 6c4db0051..e2655ee4c --- 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-2023 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_ @@ -21,12 +34,19 @@ class SamplePanelPlugin_Feature : public ModelAPI_Feature /// SketchShape feature kind inline static const std::string& ID() { - static const std::string MY_SAMPLE_PANEL_FEATURE_ID("SamplePanelFeature"); + static const std::string MY_SAMPLE_PANEL_FEATURE_ID("QtPanelFeature"); 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() {