Salome HOME
0022628: [CEA 1202] The default icon disposition is not correct in french and in...
[samples/atomsolv.git] / src / ATOMSOLVGUI / ATOMSOLVGUI.cxx
index 3d3c62cfa51076b00a04e5187a8091407f61e1f4..bd40f4265d66ba930ad1b2263d7c344e076b737a 100644 (file)
@@ -1,23 +1,21 @@
-//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  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, or (at your option) any later version.
 //
-//  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.
 //
-//  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
 //
-//  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
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 
 #include "ATOMSOLVGUI.h"
 #include "ATOMSOLVGUI_DataModel.h"
@@ -25,6 +23,8 @@
 #include "ATOMSOLVGUI_Selection.h"
 #include "ATOMSOLVGUI_TransparencyDlg.h"
 
+#include <ATOMSOLV_version.h>
+
 #include <SUIT_MessageBox.h>
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
@@ -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,8 +426,14 @@ 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;
+  }
 }