]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merge from V6_main 06/03/2013
authorvsr <vsr@opencascade.com>
Wed, 6 Mar 2013 13:56:19 +0000 (13:56 +0000)
committervsr <vsr@opencascade.com>
Wed, 6 Mar 2013 13:56:19 +0000 (13:56 +0000)
19 files changed:
adm_local/cmake_files/deprecated/FindOPENGL.cmake
src/GuiHelpers/CMakeLists.txt
src/Plot2d/CMakeLists.txt
src/Qtx/QtxWebBrowser.cxx
src/QxGraph/CMakeLists.txt
src/QxScene/CMakeLists.txt
src/SALOME_PY/CMakeLists.txt
src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt
src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt
src/SALOME_PYQT/SalomePyQt/CMakeLists.txt
src/SALOME_SWIG/CMakeLists.txt
src/SOCC/CMakeLists.txt
src/SPlot2d/CMakeLists.txt
src/SUPERVGraph/CMakeLists.txt
src/SVTK/CMakeLists.txt
src/SalomeApp/CMakeLists.txt
src/Session/CMakeLists.txt
src/TOOLSGUI/CMakeLists.txt
src/TreeData/CMakeLists.txt

index d7e8d4fed9e89710035d5761ba92f3490af1187e..794f641cc2c75318465f5d84f773ec3ca14d0f9a 100644 (file)
 #
 
 IF(${WINDOWS})
-  FIND_LIBRARY(OpenGL_LIB OpenGL32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
-  FIND_LIBRARY(GlU_LIB GlU32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+  IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")          # if platform is Windows 64 bit 
+    FIND_LIBRARY(OpenGL_LIB OpenGL32 HINTS "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib/x64")
+    FIND_LIBRARY(GlU_LIB GlU32 HINTS "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib/x64")
+  ELSE("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+    FIND_LIBRARY(OpenGL_LIB OpenGL32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+    FIND_LIBRARY(GlU_LIB GlU32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+  ENDIF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
 ELSE(${WINDOWS})
   FIND_LIBRARY(OpenGL_LIB GL)
   FIND_LIBRARY(GlU_LIB GLU)
index faddd19a45697dc6064fe9f19d79db24593b1ab6..a8c80967e3a737134da60870678db9b46f93d36e 100755 (executable)
@@ -20,7 +20,7 @@
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
index 713a2713f5fcbbb6bd89c1f9f9c63d1082420947..4531a5e0cfe32c644baad2b84a1c08b7e0ac991a 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
 INCLUDE_DIRECTORIES(
   ${QWT_INCLUDE_DIR}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
index 119c012d788203a2c3d67ab09fd09bbcd37cad54..d49d08f18519d9e2954e2ab5c18f45ea0f91c12b 100644 (file)
@@ -30,6 +30,7 @@
 #include <QFileInfo>
 #include <QWebView>
 #include <QMenuBar>
+#include <QMessageBox>
 #include <QToolBar>
 #include <QMenu>
 #include <QStatusBar>
@@ -399,27 +400,32 @@ void QtxWebBrowser::linkClicked( const QUrl& url )
   if ( url.scheme() == "file" ) {
     QString filename = url.toLocalFile();
     if ( QFileInfo( filename ).suffix().toLower() == "pdf" ) {
+      int i = -1;
 #ifdef WIN32
-      ::system( QString( "start %2" ).arg( filename ).toLatin1().constData() );
+      i = ::system( QString( "start %2" ).arg( filename ).toLatin1().constData() );
 #else
       // special processing of PDF files
       QStringList readers;
-      readers << "xdg-open" << "acroread" << "kpdf" << "kghostview" << "xpdf";
-      int i;
+      readers << "xdg-open" << "acroread"<< "okular" << "evince" << "kpdf" << "kghostview" << "xpdf";
       foreach ( QString r, readers ) {
        QString reader = QString( "/usr/bin/%1" ).arg( r );
        if ( QFileInfo( reader ).exists() ) {
-         i = ::system( QString( "%1 %2" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() );
-         // If Salome Qt version is lower than the system one, on KDE an unresolved symbol is raised
-         // In this case, we try to launch the pdf viewer after unsetting the LD_LIBRARY_PATH environnement variable
          // Warning: the test on the return value of ::system does not work if the command ends with '&'
-         if (i != 0)
-           i  = ::system( QString( "unset LD_LIBRARY_PATH ; %1 %2" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() );
-         if (i == 0)
-           break;
+         i = ::system( QString( "%1 %2" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() );
+         if (i != 0) {
+           // If Salome Qt version is lower than the system one, on KDE an unresolved symbol is raised
+           // In this case, we can try to launch the pdf viewer after unsetting the LD_LIBRARY_PATH environnement variable
+           i = ::system( QString( "unset LD_LIBRARY_PATH ; %1 %2" ).arg( reader ).arg( url.toLocalFile() ).toLatin1().constData() );
+         }
+          if (i == 0) {
+            break;
+          }
        }
       }
 #endif // WIN32
+      if (i != 0) {
+       QMessageBox::warning(this, tr("Opening pdf file"), tr("Impossible to open the pdf file: no viewer found or compatible."));
+      }
     }
   }
   myWebView->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );
index 662cc5eef0e3fd4713405f4dcfd2f7f42ab574cf..18b25ba5700ef72ac0c28c7fc39a85ae9d76c33b 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
index 59f4d468be50ec01e6647ec379d8e99a66147e42..4923fa5f6daad1f0ce6082c3c6b73b09001abe26 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
index 6fe2ffc4e71eee028b9af0f7d79e93760fc3407b..799fe74a2381e56341e177109a4d6ee597041c66 100755 (executable)
@@ -21,7 +21,7 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
   ${PYTHON_INCLUDE_DIRS}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${VTK_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
index 40a9e8d25e7eda0d409493ee6442e549da2256cd..fd50571498939e2937b82d81c7b0faff4eb453e6 100755 (executable)
@@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES(
   ${PTHREAD_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${SIP_INCLUDE_DIRS}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${VTK_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
index c4c80d4d3bd59e1bae20a2efb6bc7dd95b6b8205..abb02c164b4f090b803462f7848aabdd5c4e0522 100755 (executable)
@@ -21,7 +21,7 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
   ${SIP_INCLUDE_DIR}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${VTK_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
index 441239a8ce70011caca5ba713117b1bd83c0d507..112a17800ec13d9b24020599c68f3e5f0e39b379 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(
   ${QT_INCLUDES}
   ${QWT_INCLUDE_DIR}
   ${SIP_INCLUDE_DIR}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${VTK_INCLUDE_DIRS}
index 06bf37fec518d752af7286778b4e000ead4834b4..5b98e9aaea67ee4d42b74e1699621d77a3e7f6ae 100755 (executable)
@@ -31,7 +31,7 @@ INCLUDE_DIRECTORIES(
   ${QT_INCLUDES}
   ${QWT_INCLUDE_DIR}
   ${VTK_INCLUDE_DIRS}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}/salome_adm
index a111cf9a05d2d119ba7a935379788203b2ddd28d..25725d2d3c16b020a3bb3d2843c095e9026b7bdd 100755 (executable)
@@ -20,7 +20,7 @@
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
index 70f4c26c7a508534f9faa2ddbdbd317650778d9c..d2666caaf6e3468d75555bf511b886e314e84fec 100755 (executable)
@@ -20,7 +20,7 @@
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${QWT_INCLUDE_DIR}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
index 1140e6dad8923f1b761b576fb111c20b9bc8e852..e3834101693291f3538a8fdef8042d149f11f34e 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
 INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${QT_INCLUDES}
   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
index 90a85743eb01625fcd0d5a21406e4d4ccd848c1b..5cad6454b0b0f6e47826e0dce8515b936a4176de 100755 (executable)
@@ -24,7 +24,7 @@ INCLUDE_DIRECTORIES(
   ${QT_INCLUDES}
   ${VTK_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_BINARY_DIR}
   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
index a7bdab4451bda2c38291f83500b9a1dbe22a5a28..ba95a0531046432252feea4c541f563c920730c4 100755 (executable)
@@ -33,7 +33,7 @@ INCLUDE_DIRECTORIES(
   ${QT_INCLUDES}
   ${VTK_INCLUDE_DIRS}
   ${QWT_INCLUDE_DIR}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PYTHON_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
   ${LIBXML2_INCLUDE_DIR}
index 5e16543de0584d59b15cfe986841cf4d5bad9359..8f81cd9c799dacc2e910447a3f886ea6c0bcbecf 100755 (executable)
@@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(
   ${LIBXML2_INCLUDE_DIR}
   ${PYTHON_INCLUDE_DIRS}
   ${HDF5_INCLUDE_DIRS}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${CAS_INCLUDE_DIRS}
   ${OMNIORB_INCLUDE_DIR}
   ${PTHREAD_INCLUDE_DIRS}
index 3be5ad58f9baf1fba36463a5f9c1bb5f3dc69b76..8a6b024c4b49d47b65f2fe0b3eee159c4680c9e5 100755 (executable)
@@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
   ${OMNIORB_INCLUDE_DIR}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_BINARY_DIR}/idl
index 90eeae5d1d49e7e9085e3bcafec8d0e987bd0b2c..67854cef40e0d57a1f18cf16fbe3fd4ad30d8906 100755 (executable)
@@ -24,7 +24,7 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
   ${QT_INCLUDES}
   ${OMNIORB_INCLUDE_DIR}
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
   ${PTHREAD_INCLUDE_DIRS}
   ${KERNEL_ROOT_DIR}/include/salome
   ${CMAKE_CURRENT_SOURCE_DIR}/../SalomeApp