Salome HOME
0022628: [CEA 1202] The default icon disposition is not correct in french and in...
[samples/atomsolv.git] / src / ATOMSOLVGUI / ATOMSOLVGUI.cxx
index cc7f97baad4c64e00078ccd8d0d145062d10b4da..bd40f4265d66ba930ad1b2263d7c344e076b737a 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // 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.
+// 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
@@ -62,8 +62,7 @@ ATOMSOLV_ORB::ATOMSOLV_Gen_var ATOMSOLVGUI::myEngine = ATOMSOLV_ORB::ATOMSOLV_Ge
 
 // Constructor
 ATOMSOLVGUI::ATOMSOLVGUI() :
-  SalomeApp_Module( "ATOMSOLV" ), // default name
-  LightApp_Module( "ATOMSOLV" )
+  SalomeApp_Module( "ATOMSOLV" )
 {
 }
 
@@ -115,7 +114,7 @@ void ATOMSOLVGUI::initialize( CAM_Application* app )
   createMenu( ProcessData, aMenuId, 10 );
 
   // create toolbars
-  int aToolId = createTool ( tr( "TOOL_ATOMSOLV" ) );
+  int aToolId = createTool ( tr( "TOOL_ATOMSOLV" ), QString( "AtomSolv" ) );
   createTool( RetrieveData, aToolId );
   createTool( ProcessData, aToolId );
 
@@ -427,11 +426,12 @@ void ATOMSOLVGUI::preferencesChanged( const QString& group, const QString& param
 
 // Export the module
 extern "C" {
+  ATOMSOLVGUI_EXPORT
   CAM_Module* createModule()
   {
     return new ATOMSOLVGUI();
   }
-  
+  ATOMSOLVGUI_EXPORT
   char* getModuleVersion() 
   {
     return (char*)ATOMSOLV_VERSION_STR;