]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
EDF 1123 KERNEL/GUI: Improvment of 'About' dialog box.
authorgdd <gdd>
Thu, 15 Sep 2011 12:27:07 +0000 (12:27 +0000)
committergdd <gdd>
Thu, 15 Sep 2011 12:27:07 +0000 (12:27 +0000)
http://salome.mantis.opencascade.com/view.php?id=20494

"About" dialog box has been redesigned.
Information about version of modules has been added in the "About" dialog box.

HOMARD_version.h.in [new file with mode: 0644]
Makefile.am
build_configure
configure.ac
src/HOMARDGUI/HOMARDGUI.cxx
src/HOMARDGUI/Makefile.am

diff --git a/HOMARD_version.h.in b/HOMARD_version.h.in
new file mode 100644 (file)
index 0000000..3fd343b
--- /dev/null
@@ -0,0 +1,37 @@
+// Copyright (C) 2007-2011  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.
+//
+// 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
+//
+
+//  File   : HOMARD_version.h
+//  Author : Vadim SANDLER
+//  Module : SALOME
+//
+#if !defined(__HOMARD_VERSION_H__)
+#define __HOMARD_VERSION_H__
+
+/*
+  HOMARD_VERSION is (major << 16) + (minor << 8) + patch.
+*/
+
+#define HOMARD_VERSION_STR "@VERSION@"
+#define HOMARD_VERSION     @XVERSION@
+
+#endif // __HOMARD_VERSION_H__
index 983d3dba873220360293a3c200cbded701bf562e..70fb273f1bf78de5152cc4360dafd4feb25721fe 100644 (file)
@@ -36,6 +36,7 @@ DIST_SUBDIRS = idl adm_local resources src doc tests
 
 DISTCLEANFILES = a.out aclocal.m4 configure
 
+salomeinclude_DATA = HOMARD_version.h
 
 EXTRA_DIST +=          \
        build_configure \
index edbbf3568217370be6c5ace7c726a5671ee8d6b6..1a234bdfb8f5ce825df992051372b48db33e73cc 100755 (executable)
@@ -67,10 +67,6 @@ fi
 cd ${CONF_DIR}
 ABS_CONF_DIR=`pwd`
 
-mkdir -p salome_adm/unix/config_files
-cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/SALOMEconfig.h.in salome_adm/unix
-
-
 
 # ____________________________________________________________________
 # aclocal creates the aclocal.m4 file from the standard macro and the
index 52e53052159d9193c607c526cec3f7c8f3b31ab3..42245b221884948ec554087dcdc9938659fba5a0 100644 (file)
@@ -379,12 +379,22 @@ echo
 #  chmod +x ./bin/salome/*; \
 #])
 
+AC_HACK_LIBTOOL
+AC_CONFIG_COMMANDS([hack_libtool],[
+                    sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
+                          $(pwd)/hack_libtool \1 \"\$[@]\" \n\
+                          }\n\
+                          CC=\"hack_libtool\"%g" libtool
+                    sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
+                    sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
+                    sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1  if ! test -d \$sss; then continue; fi\n\1  ssss=\$(cd \$sss; pwd)\n\1  if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1    case \$ssss in\n\1      /usr/lib | /usr/lib64 ) ;;\n\1      * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1    esac\n\1  fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
+                    ],[])
+
 # This list is initiated using autoscan and must be updated manually
 # when adding a new file <filename>.in to manage. When you execute
 # autoscan, the Makefile list is generated in the output file configure.scan.
 # This could be helpfull to update de configuration.
 AC_OUTPUT([ \
-       salome_adm/unix/SALOMEconfig.h \
        Makefile \
        idl/Makefile \
        adm_local/Makefile \
@@ -392,6 +402,7 @@ AC_OUTPUT([ \
        adm_local/unix/config_files/Makefile \
        doc/Makefile \
        doc/conf.py \
+        HOMARD_version.h \
        src/Makefile \
        src/HOMARD_I/Makefile \
        src/HOMARD/Makefile \
index b37283c72f9efc95f81a21d94945a56466d80030..36ede5877d7a987c924fec0b8fff817d73e6c488 100644 (file)
 
 using namespace std;
 #include "HOMARDGUI.h"
+#include <HOMARD_version.h>
 
 // SALOME Includes
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
-#include "SALOME_LifeCycleCORBA.hxx"
-
-#include "SUIT_ResourceMgr.h"
-#include "SUIT_MessageBox.h"
-#include "SUIT_Session.h"
-#include "SUIT_ViewWindow.h"
-#include "SUIT_ViewManager.h"
+#include <Utils_ORB_INIT.hxx>
+#include <Utils_SINGLETON.hxx>
+#include <SALOME_LifeCycleCORBA.hxx>
+
+#include <SUIT_ResourceMgr.h>
+#include <SUIT_MessageBox.h>
+#include <SUIT_Session.h>
+#include <SUIT_ViewWindow.h>
+#include <SUIT_ViewManager.h>
 #include <SUIT_Desktop.h>
 
-#include "CAM_Module.h"
-#include "OB_Browser.h"
+#include <CAM_Module.h>
+#include <OB_Browser.h>
 
-#include "SALOME_ListIO.hxx"
-#include "SALOME_ListIteratorOfListIO.hxx"
+#include <SALOME_ListIO.hxx>
+#include <SALOME_ListIteratorOfListIO.hxx>
 
-#include "SalomeApp_Application.h"
-#include "SalomeApp_DataModel.h"
-#include "SalomeApp_Study.h"
-#include "LightApp_SelectionMgr.h"
-#include "LightApp_Selection.h"
+#include <SalomeApp_Application.h>
+#include <SalomeApp_DataModel.h>
+#include <SalomeApp_Study.h>
+#include <LightApp_SelectionMgr.h>
+#include <LightApp_Selection.h>
 #include <LightApp_Preferences.h>
-#include "SalomeApp_Module.h"
-#include "SALOMEconfig.h"
+#include <SalomeApp_Module.h>
+#include <SALOMEconfig.h>
 #include <SALOME_LifeCycleCORBA.hxx>
 
 #include <utilities.h>
@@ -72,7 +73,7 @@ using namespace std;
 #include <boost/shared_ptr.hpp>
 
 //Pour le _CAST
-#include "SALOMEDS_Study.hxx"
+#include <SALOMEDS_Study.hxx>
 #include "HOMARDGUI_Utils.h"
 
 static CORBA::ORB_var _orb;
@@ -207,9 +208,9 @@ void HOMARDGUI::OnGUIEvent()
   if ( !obj || !obj->inherits( "QAction" ) )
        return;
   int id = actionId((QAction*)obj);
-  bool ret;
+  // bool ret;
   if ( id != -1 )
-      ret = OnGUIEvent( id );
+      /*ret = */OnGUIEvent( id );
   MESSAGE("************** End of HOMARDGUI::OnGUIEvent()");
 }
 
@@ -555,5 +556,10 @@ extern "C" {
   {
     return new HOMARDGUI("");
   }
+
+  char* getModuleVersion()
+  {
+      return (char*)HOMARD_VERSION_STR;
+  }
 }
 
index d36f260b578d148fd578fd50276aec9df71d08f8..dd55ef85ff0d9b2ae9f76b66a9e7ba10ad700f82 100644 (file)
@@ -113,6 +113,7 @@ libHOMARD_la_CPPFLAGS =          \
        -I$(srcdir)/../HOMARD    \
        -I$(srcdir)/../HOMARD_I  \
        -I$(top_builddir)/idl    \
+       -I$(top_builddir)        \
        -I$(VISU_ROOT_DIR)/include/salome  \
        -I$(MED_ROOT_DIR)/include/salome   \
        -I$(top_builddir)/salome_adm/unix