From: ouv Date: Wed, 10 Aug 2005 14:26:48 +0000 (+0000) Subject: Fucntion createModule moved from VisuGUI.cxx to VisuGUI_Factory.cxx X-Git-Tag: T_3_0_2a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c9ab8236829f51a0ffbb4a76b4e2e3153c4c0c6;p=modules%2Fvisu.git Fucntion createModule moved from VisuGUI.cxx to VisuGUI_Factory.cxx in order to provide a way to customize VisuGUI module. --- diff --git a/src/VISUGUI/Makefile.in b/src/VISUGUI/Makefile.in index 3551f99f..b0c97a00 100644 --- a/src/VISUGUI/Makefile.in +++ b/src/VISUGUI/Makefile.in @@ -48,6 +48,7 @@ LIB = libVISU.la #LIB_MOC = VisuGUI_SweepPrefDlg.h LIB_SRC = VisuGUI.cxx \ + VisuGUI_Factory.cxx \ VisuGUI_Selection.cxx \ VisuGUI_Tools.cxx \ VisuGUI_PopupTools.cxx \ diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 0f7c14a6..925841c2 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -2754,7 +2754,7 @@ void VisuGUI::studyActivated() GetVisuGen(this)->SetCurrentStudy(GetDSStudy(GetCStudy(GetAppStudy(this)))); } - +/* extern "C" { CAM_Module* createModule() @@ -2762,7 +2762,7 @@ extern "C" { return new VisuGUI(); } } - +*/ void VisuGUI::createPreferences() { int sbarTab = addPreference( tr( "VISU_SCALAR_BAR" ) ); diff --git a/src/VISUGUI/VisuGUI_Factory.cxx b/src/VISUGUI/VisuGUI_Factory.cxx new file mode 100644 index 00000000..24ea841b --- /dev/null +++ b/src/VISUGUI/VisuGUI_Factory.cxx @@ -0,0 +1,40 @@ +// VISU VISUGUI : GUI of VISU component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// 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. +// +// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : VisuGUI_Factory.cxx +// Author : +// Module : VISU +// $Header$ + +#include "VisuGUI.h" + +#include "CAM_Module.h" + +extern "C" { + CAM_Module* + createModule() + { + return new VisuGUI(); + } +} +