Salome HOME
Merge remote branch 'origin/V7_dev'
authorvsr <vsr@opencascade.com>
Mon, 4 Apr 2016 09:40:23 +0000 (12:40 +0300)
committervsr <vsr@opencascade.com>
Mon, 4 Apr 2016 09:40:23 +0000 (12:40 +0300)
1  2 
src/SUIT/CMakeLists.txt
src/SUITApp/CMakeLists.txt
src/SUITApp/SUITApp_Application.cxx
src/SUITApp/SUITApp_Application.h
src/Session/SALOME_Session_Server.cxx

Simple merge
index 404da384d7deac5e9d2f10e7f38456fed52bd1df,3d981ff69024bbb27062ab6dc85a0daf8bf0e336..7668604f590118c5ad4189d288f305d20c45bf42
@@@ -99,10 -93,9 +93,9 @@@ ADD_LIBRARY(SUITApp ${SUITApp_SOURCES}
  TARGET_LINK_LIBRARIES(SUITApp ${_link_LIBRARIES})
  INSTALL(TARGETS SUITApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
  
- ADD_EXECUTABLE(TestSUITApp SUITApp.cxx)
- SET_TARGET_PROPERTIES(TestSUITApp PROPERTIES OUTPUT_NAME "SUITApp")
- TARGET_LINK_LIBRARIES(TestSUITApp ${_link_LIBRARIES} SUITApp)
- INSTALL(TARGETS TestSUITApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
+ ADD_EXECUTABLE(suitexe SUITApp.cxx)
+ TARGET_LINK_LIBRARIES(suitexe ${_link_LIBRARIES} SUITApp)
+ INSTALL(TARGETS suitexe EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
  
  INSTALL(FILES ${SUITApp_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
 -QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
 +QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
index f3404c915881d88894f9d61461a0a4a0bb4049ac,22a36dcc6763e94284deecfa99a610c55d11991f..ad1fcf01c1ea8d5a24b437cab4fcf73cecea80a2
    Constructor
  */
  SUITApp_Application::SUITApp_Application( int& argc, char** argv, SUIT_ExceptionHandler* hand )
- #ifdef ENABLE_TESTRECORDER
-   : TestApplication( argc, argv ),
- #else
 -#ifndef WIN32
 +// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
 +#if !defined(WIN32) && (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
    // san: Opening an X display and choosing a visual most suitable for 3D visualization
    // in order to make SALOME viewers work with non-native X servers
    : QApplication( (Display*)Qtx::getDisplay(), argc, argv, Qtx::getVisual() ),
@@@ -59,14 -54,8 +55,10 @@@ myExceptHandler( hand 
  /*!
    Constructor
  */
 +// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
 +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
  SUITApp_Application::SUITApp_Application( int& argc, char** argv, Type type, SUIT_ExceptionHandler* hand )
- #ifdef ENABLE_TESTRECORDER
-   : TestApplication( argc, argv ),
- #else
    : QApplication( argc, argv, type ),
- #endif
  myExceptHandler( hand )
  {
  }
index f9507e8f94a87f0efe5d6b16aab34e14859d6dcd,7491d55a6e27c9415ea92efcbcd422984d9be978..2941f9cdc1552a191ed04437141830e0512923be
@@@ -50,15 -42,13 +42,15 @@@ class SUITAPP_EXPORT SUITApp_Applicatio
    Q_OBJECT
  
  public:
-   SUITApp_Application( int& argc, char** argv, SUIT_ExceptionHandler* = 0 );
+   SUITApp_Application( int&, char**, SUIT_ExceptionHandler* = 0 );
 +// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
 +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-   SUITApp_Application( int& argc, char** argv, Type type, SUIT_ExceptionHandler* = 0 );
+   SUITApp_Application( int&, char**, Type, SUIT_ExceptionHandler* = 0 );
 -
 +#endif
    virtual bool notify( QObject* receiver, QEvent* e );
  
-         SUIT_ExceptionHandler* handler() const;
-         void                   setHandler( SUIT_ExceptionHandler* );
+   SUIT_ExceptionHandler* handler() const;
+   void                   setHandler( SUIT_ExceptionHandler* );
  
  private:
    SUIT_ExceptionHandler* myExceptHandler;
index 0b10352e26c4082e90241f15c7a93b86dc1e78d9,4b583e8187af45485deedc00238c7caf220daa14..f7b2c2c41013f158a25be742d5685ca9fe3f19ab
@@@ -247,19 -238,11 +243,12 @@@ public
    }
  };
  
- #ifdef ENABLE_TESTRECORDER
-   class SALOME_QApplication : public TestApplication
- #else
-   class SALOME_QApplication : public QApplication
- #endif
+ class SALOME_QApplication : public QApplication
  {
  public:
- #ifdef ENABLE_TESTRECORDER
-   SALOME_QApplication( int& argc, char** argv ) : TestApplication( argc, argv ), myHandler ( 0 ) {}
- #else
    SALOME_QApplication( int& argc, char** argv )
 -#ifndef WIN32
 +// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
 +#if !defined WIN32 && QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
    // san: Opening an X display and choosing a visual most suitable for 3D visualization
    // in order to make SALOME viewers work with non-native X servers
    : QApplication( (Display*)Qtx::getDisplay(), argc, argv, Qtx::getVisual() ),