X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSamplePanelPlugin%2FSamplePanelPlugin_Plugin.cpp;h=d43dc84420d14a0ed8feb921b2552129179afa4b;hb=e9b05712fca3943201ecd6db417bb3478e24b7b3;hp=cc59adb701f66b340a61f858ea3d1620debed33e;hpb=fd67236d5d82ece65fe19059e4176d53d8fe2f1d;p=modules%2Fshaper.git diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_Plugin.cpp b/src/SamplePanelPlugin/SamplePanelPlugin_Plugin.cpp index cc59adb70..d43dc8442 100755 --- a/src/SamplePanelPlugin/SamplePanelPlugin_Plugin.cpp +++ b/src/SamplePanelPlugin/SamplePanelPlugin_Plugin.cpp @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: SamplePanelPlugin_Plugin.cpp -// 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 +// #include #include @@ -12,6 +26,7 @@ #include #include +#include // the only created instance of this plugin static SamplePanelPlugin_Plugin* MY_SAMPLE_PANEL_PLUGIN_INSTANCE = new SamplePanelPlugin_Plugin(); @@ -23,6 +38,9 @@ SamplePanelPlugin_Plugin::SamplePanelPlugin_Plugin() WidgetCreatorFactoryPtr aWidgetCreatorFactory = ModuleBase_WidgetCreatorFactory::get(); aWidgetCreatorFactory->registerCreator( std::shared_ptr(new SamplePanelPlugin_WidgetCreator())); + aWidgetCreatorFactory->registerCreator( + std::shared_ptr( + new SamplePanelPlugin_ModelWidgetCreator())); // register this plugin ModelAPI_Session::get()->registerPlugin(this);