X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSamplePanelPlugin%2FSamplePanelPlugin_WidgetCreator.h;h=1d8f7edca50cc951fb24096069f53ee5203e465b;hb=e9b05712fca3943201ecd6db417bb3478e24b7b3;hp=315742fa60eb42e12175233c8135c71766f9e310;hpb=fd67236d5d82ece65fe19059e4176d53d8fe2f1d;p=modules%2Fshaper.git diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.h b/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.h index 315742fa6..1d8f7edca 100755 --- a/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.h +++ b/src/SamplePanelPlugin/SamplePanelPlugin_WidgetCreator.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: SamplePanelPlugin_WidgetCreator.h -// Created: 29 Mar 2015 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2017 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_WidgetCreator_H #define SamplePanelPlugin_WidgetCreator_H @@ -36,13 +50,13 @@ public: /// Create panel control by its type. /// \param theType a panel type /// \param theParent a parent widget + /// \param theFeature a feature to fill the panel /// \return created widget or null virtual QWidget* createPanelByType(const std::string& theType, - QWidget* theParent); + QWidget* theParent, + const FeaturePtr& theFeature); private: std::set myPanelTypes; /// types of panels }; -typedef std::shared_ptr SamplePanelWidgetCreatorPtr; - #endif