Merge Qt5 porting.

This commit is contained in:
imn 2015-11-20 21:31:07 +03:00 committed by rnv
parent 80a0257573
commit f3c62a0c0b
55 changed files with 164 additions and 184 deletions

View File

@ -124,9 +124,12 @@ ENDIF(SALOME_BUILD_GUI)
## ##
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# Qt
# Qt4 IF(NOT SALOME_GUI_BUILD_WITH_QT5)
FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml) FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml QtWebKit QtOpenGL QtNetwork)
ELSE()
FIND_PACKAGE(SalomeQt5 REQUIRED)
ENDIF()
ENDIF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI)
## ##

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -96,12 +94,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(AdvancedGUI_SOURCES SET(AdvancedGUI_SOURCES
AdvancedGUI.cxx AdvancedGUI.cxx
@ -120,4 +118,4 @@ ADD_LIBRARY(AdvancedGUI ${AdvancedGUI_SOURCES})
TARGET_LINK_LIBRARIES(AdvancedGUI ${_link_LIBRARIES}) TARGET_LINK_LIBRARIES(AdvancedGUI ${_link_LIBRARIES})
INSTALL(TARGETS AdvancedGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS AdvancedGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${AdvancedGUI_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${AdvancedGUI_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -39,7 +38,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -109,7 +107,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(BREPPluginGUI_SOURCES SET(BREPPluginGUI_SOURCES
BREPPlugin_GUI.cxx BREPPlugin_GUI.cxx
@ -145,7 +143,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(BREPPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(BREPPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS BREPPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS BREPPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${BREPPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${BREPPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()

View File

@ -995,13 +995,13 @@ void BasicGUI_PointDlg::updateParamCoord(bool theIsUpdate)
} }
} }
else if (id == GEOM_POINT_SURF) { else if (id == GEOM_POINT_SURF) {
GroupOnSurface->TextLabel2->setShown(isParam); GroupOnSurface->TextLabel2->setVisible(isParam);
GroupOnSurface->TextLabel3->setShown(isParam); GroupOnSurface->TextLabel3->setVisible(isParam);
GroupOnSurface->SpinBox_DX->setShown(isParam); GroupOnSurface->SpinBox_DX->setVisible(isParam);
GroupOnSurface->SpinBox_DY->setShown(isParam); GroupOnSurface->SpinBox_DY->setVisible(isParam);
} }
GroupXYZ->setShown(!isParam && !isLength); GroupXYZ->setVisible(!isParam && !isLength);
if (theIsUpdate) if (theIsUpdate)
QTimer::singleShot(50, this, SLOT(updateSize())); QTimer::singleShot(50, this, SLOT(updateSize()));

View File

@ -17,13 +17,12 @@
# 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(${QT_USE_FILE}) INCLUDE(UseQtExt)
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -94,7 +93,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(BasicGUI_SOURCES SET(BasicGUI_SOURCES
BasicGUI.cxx BasicGUI.cxx

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -83,12 +81,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(BlocksGUI_SOURCES SET(BlocksGUI_SOURCES
BlocksGUI.cxx BlocksGUI.cxx

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -75,12 +73,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(BooleanGUI_SOURCES SET(BooleanGUI_SOURCES
BooleanGUI.cxx BooleanGUI.cxx

View File

@ -156,8 +156,13 @@ BuildGUI_FaceDlg::BuildGUI_FaceDlg( GeometryGUI* theGeometryGUI, QWidget* parent
columnNames.append( tr( "GEOM_EDGE" )); columnNames.append( tr( "GEOM_EDGE" ));
columnNames.append( tr( "GEOM_FACE_CONSTRAINT" ) ); columnNames.append( tr( "GEOM_FACE_CONSTRAINT" ) );
myTreeConstraints->setHeaderLabels( columnNames ); myTreeConstraints->setHeaderLabels( columnNames );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
myTreeConstraints->header()->setMovable( false ); myTreeConstraints->header()->setMovable( false );
myTreeConstraints->header()->setResizeMode( QHeaderView::ResizeToContents ); myTreeConstraints->header()->setResizeMode( QHeaderView::ResizeToContents );
#else
myTreeConstraints->header()->setSectionsMovable( false );
myTreeConstraints->header()->setSectionResizeMode( QHeaderView::ResizeToContents );
#endif
myTreeConstraints->setMinimumHeight( 140 ); myTreeConstraints->setMinimumHeight( 140 );
QHBoxLayout* l = new QHBoxLayout( myGroupWireConstraints->Box ); QHBoxLayout* l = new QHBoxLayout( myGroupWireConstraints->Box );

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -90,12 +88,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(BuildGUI_SOURCES SET(BuildGUI_SOURCES
BuildGUI.cxx BuildGUI.cxx

View File

@ -18,14 +18,13 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(${QT_USE_FILE}) INCLUDE(UseQtExt)
ENDIF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI)
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${CAS_INCLUDE_DIRS} ${CAS_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}
@ -85,7 +84,7 @@ SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
ENDIF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI)
# sources / static # sources / static
@ -117,4 +116,3 @@ TARGET_LINK_LIBRARIES(CurveCreator ${_link_LIBRARIES})
INSTALL(TARGETS CurveCreator EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS CurveCreator EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${CurveCreator_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${CurveCreator_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -213,7 +213,9 @@ int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const
void CurveCreator_TreeViewModel::setCurve( CurveCreator_ICurve* theCurve ) void CurveCreator_TreeViewModel::setCurve( CurveCreator_ICurve* theCurve )
{ {
myCurve = theCurve; myCurve = theCurve;
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
reset(); reset();
#endif
} }
/*****************************************************************************************/ /*****************************************************************************************/
@ -221,7 +223,11 @@ CurveCreator_TreeView::CurveCreator_TreeView( CurveCreator_ICurve* theCurve, QWi
QTreeView(parent) QTreeView(parent)
{ {
header()->hide(); header()->hide();
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
header()->setResizeMode(QHeaderView::ResizeToContents); header()->setResizeMode(QHeaderView::ResizeToContents);
#else
header()->setSectionResizeMode(QHeaderView::ResizeToContents);
#endif
setUniformRowHeights(true); setUniformRowHeights(true);
setContextMenuPolicy( Qt::CustomContextMenu ); setContextMenuPolicy( Qt::CustomContextMenu );
CurveCreator_TreeViewModel* aModel = new CurveCreator_TreeViewModel(theCurve, this); CurveCreator_TreeViewModel* aModel = new CurveCreator_TreeViewModel(theCurve, this);

View File

@ -17,7 +17,7 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
# --- options --- # --- options ---
@ -73,7 +73,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(DependencyTree_SOURCES SET(DependencyTree_SOURCES
DependencyTree_Arrow.cxx DependencyTree_Arrow.cxx
@ -101,4 +101,4 @@ INSTALL(TARGETS DependencyTree EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${S
INSTALL(FILES ${DependencyTree_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${DependencyTree_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
QT4_INSTALL_TS_RESOURCES("${_res_files}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${_res_files}" "${SALOME_GEOM_INSTALL_RES_DATA}")

View File

@ -39,7 +39,11 @@ const qreal arrowSize = 20;
DependencyTree_Arrow::DependencyTree_Arrow( DependencyTree_Object* theStartItem, DependencyTree_Arrow::DependencyTree_Arrow( DependencyTree_Object* theStartItem,
DependencyTree_Object* theEndItem, DependencyTree_Object* theEndItem,
QGraphicsItem* parent, QGraphicsScene* scene ) QGraphicsItem* parent, QGraphicsScene* scene )
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
:QGraphicsLineItem( parent, scene ), :QGraphicsLineItem( parent, scene ),
#else
:QGraphicsLineItem( parent ),
#endif
myIsBiLink( false ), myIsBiLink( false ),
myStartItem( theStartItem ), myStartItem( theStartItem ),
myEndItem( theEndItem ) myEndItem( theEndItem )

View File

@ -17,14 +17,10 @@
# 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(UseQt4Ext)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}

View File

@ -17,7 +17,7 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
# --- options --- # --- options ---
@ -109,12 +109,12 @@ SET(_uic_files
SET(_moc_HEADERS DlgRef.h) SET(_moc_HEADERS DlgRef.h)
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / to compile # sources / to compile
SET(DlgRef_SOURCES DlgRef.cxx ${_moc_SOURCES} ${_uic_HEADERS}) SET(DlgRef_SOURCES DlgRef.cxx ${_moc_SOURCES} ${_uic_HEADERS})

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -131,12 +129,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(EntityGUI_SOURCES SET(EntityGUI_SOURCES
EntityGUI.cxx EntityGUI.cxx

View File

@ -1695,7 +1695,7 @@ void EntityGUI_FieldDlg::activateSelection()
TopoDS_Shape aSubShape = myShapeMap( index ); TopoDS_Shape aSubShape = myShapeMap( index );
QString anEntry = QString( "TEMP_" ) + aMainEntry.in() + QString("_%1").arg(index); QString anEntry = QString( "TEMP_" ) + aMainEntry.in() + QString("_%1").arg(index);
Handle(SALOME_InteractiveObject) io = Handle(SALOME_InteractiveObject) io =
new SALOME_InteractiveObject(anEntry.toAscii(), "GEOM", "TEMP_IO"); new SALOME_InteractiveObject(anEntry.toLatin1(), "GEOM", "TEMP_IO");
aDisplayer->SetColor( aCol ); aDisplayer->SetColor( aCol );
SALOME_Prs* aPrs = aDisplayer->buildSubshapePresentation(aSubShape, anEntry, aView); SALOME_Prs* aPrs = aDisplayer->buildSubshapePresentation(aSubShape, anEntry, aView);
if (aPrs) { if (aPrs) {

View File

@ -1143,7 +1143,7 @@ void EntityGUI_SketcherDlg::ClickOnEnd()
} }
QString Command = myCommand.join( "" ); QString Command = myCommand.join( "" );
Sketcher_Profile aProfile = Sketcher_Profile( Command.toAscii() ); Sketcher_Profile aProfile = Sketcher_Profile( Command.toLatin1() );
bool isDone = false; bool isDone = false;
TopoDS_Shape myShape = aProfile.GetShape( &isDone ); TopoDS_Shape myShape = aProfile.GetShape( &isDone );
if ( isDone ) { if ( isDone ) {
@ -2341,12 +2341,12 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
//Last Shape //Last Shape
QString Command1 = myCommand.join( "" ); QString Command1 = myCommand.join( "" );
Sketcher_Profile aProfile1( Command1.toAscii() ); Sketcher_Profile aProfile1( Command1.toLatin1() );
myShape1 = aProfile1.GetShape(); myShape1 = aProfile1.GetShape();
//Current Shape //Current Shape
QString Command2 = Command1 + GetNewCommand( aParameters ); QString Command2 = Command1 + GetNewCommand( aParameters );
Sketcher_Profile aProfile2( Command2.toAscii() ); Sketcher_Profile aProfile2( Command2.toLatin1() );
myShape2 = aProfile2.GetShape( &isDone, &error ); myShape2 = aProfile2.GetShape( &isDone, &error );
//Error Message //Error Message

View File

@ -17,13 +17,10 @@
# 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(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -80,7 +77,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(GEOMBase_SOURCES SET(GEOMBase_SOURCES
GEOMBase.cxx GEOMBase.cxx

View File

@ -17,13 +17,10 @@
# 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(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${CAS_INCLUDE_DIRS} ${CAS_INCLUDE_DIRS}

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -103,10 +101,10 @@ SET(_ts_RESOURCES
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
# sources / rcc wrappings # sources / rcc wrappings
QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES}) QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
SET(GEOMGUI_SOURCES SET(GEOMGUI_SOURCES
GeometryGUI.cxx GeometryGUI.cxx
@ -129,4 +127,4 @@ TARGET_LINK_LIBRARIES(GEOM ${_link_LIBRARIES})
INSTALL(TARGETS GEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS GEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${GEOMGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) INSTALL(FILES ${GEOMGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")

View File

@ -54,7 +54,7 @@ GEOMGUI::~GEOMGUI()
//================================================================================= //=================================================================================
bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/, const QVariant& /*theParam*/ ) bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/, const QVariant& /*theParam*/ )
{ {
return TRUE; return true;
} }
//================================================================================= //=================================================================================
@ -63,7 +63,7 @@ bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/, const
//================================================================================= //=================================================================================
bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/ ) bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/ )
{ {
return TRUE; return true;
} }
//================================================================================= //=================================================================================
@ -73,7 +73,7 @@ bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/ )
//================================================================================= //=================================================================================
bool GEOMGUI::OnMousePress( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ ) bool GEOMGUI::OnMousePress( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{ {
return FALSE; return false;
} }
//================================================================================= //=================================================================================
@ -82,7 +82,7 @@ bool GEOMGUI::OnMousePress( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_
//================================================================================= //=================================================================================
bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ ) bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{ {
return TRUE; return true;
} }
//================================================================================= //=================================================================================
@ -91,7 +91,7 @@ bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_V
//================================================================================= //=================================================================================
bool GEOMGUI::OnMouseRelease( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ ) bool GEOMGUI::OnMouseRelease( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{ {
return TRUE; return true;
} }
//================================================================================= //=================================================================================
@ -100,7 +100,7 @@ bool GEOMGUI::OnMouseRelease( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUI
//================================================================================= //=================================================================================
bool GEOMGUI::OnKeyPress( QKeyEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ ) bool GEOMGUI::OnKeyPress( QKeyEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{ {
return TRUE; return true;
} }
//================================================================================= //=================================================================================

View File

@ -47,7 +47,11 @@ GEOMGUI_CreationInfoWdg::GEOMGUI_CreationInfoWdg( SalomeApp_Application* app )
myParamsTreeWd->setColumnCount( 2 ); myParamsTreeWd->setColumnCount( 2 );
myParamsTreeWd->setHeaderLabels( QStringList() << tr( "PARAMETER" ) << tr( "VALUE" ) ); myParamsTreeWd->setHeaderLabels( QStringList() << tr( "PARAMETER" ) << tr( "VALUE" ) );
myParamsTreeWd->header()->setStretchLastSection( true ); myParamsTreeWd->header()->setStretchLastSection( true );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
myParamsTreeWd->header()->setResizeMode( 0, QHeaderView::ResizeToContents ); myParamsTreeWd->header()->setResizeMode( 0, QHeaderView::ResizeToContents );
#else
myParamsTreeWd->header()->setSectionResizeMode( 0, QHeaderView::ResizeToContents );
#endif
QVBoxLayout* aLayout = new QVBoxLayout( this ); QVBoxLayout* aLayout = new QVBoxLayout( this );
aLayout->addWidget( myParamsTreeWd ); aLayout->addWidget( myParamsTreeWd );

View File

@ -73,8 +73,11 @@ GEOMGUI_TextTreeWdg::GEOMGUI_TextTreeWdg( SalomeApp_Application* app )
headerItem->setIcon( 1, myVisibleIcon ); headerItem->setIcon( 1, myVisibleIcon );
setHeaderItem ( headerItem ); setHeaderItem ( headerItem );
header()->moveSection( 1, 0 ); header()->moveSection( 1, 0 );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
header()->setResizeMode( 1, QHeaderView::ResizeToContents ); header()->setResizeMode( 1, QHeaderView::ResizeToContents );
#else
header()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
#endif
QStringList rootNames; QStringList rootNames;
rootNames << tr("GEOM_DIMENSIONS") << ""; rootNames << tr("GEOM_DIMENSIONS") << "";
myDimensionsItem = new QTreeWidgetItem( this, rootNames ); myDimensionsItem = new QTreeWidgetItem( this, rootNames );

View File

@ -17,13 +17,10 @@
# 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(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -98,7 +95,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(GEOMToolsGUI_SOURCES SET(GEOMToolsGUI_SOURCES
GEOMToolsGUI.cxx GEOMToolsGUI.cxx

View File

@ -52,7 +52,7 @@ GEOMToolsGUI_DeflectionDlg::GEOMToolsGUI_DeflectionDlg (QWidget* parent)
setModal(true); setModal(true);
setWindowTitle(tr("GEOM_DEFLECTION_TLT")); setWindowTitle(tr("GEOM_DEFLECTION_TLT"));
setSizeGripEnabled(TRUE); setSizeGripEnabled(true);
QGridLayout* MyDialogLayout = new QGridLayout(this); QGridLayout* MyDialogLayout = new QGridLayout(this);
MyDialogLayout->setSpacing(6); MyDialogLayout->setSpacing(6);
MyDialogLayout->setMargin(11); MyDialogLayout->setMargin(11);
@ -101,8 +101,8 @@ GEOMToolsGUI_DeflectionDlg::GEOMToolsGUI_DeflectionDlg (QWidget* parent)
QPushButton* buttonOk = new QPushButton (GroupButtons); QPushButton* buttonOk = new QPushButton (GroupButtons);
buttonOk->setObjectName("buttonOk"); buttonOk->setObjectName("buttonOk");
buttonOk->setText(tr("GEOM_BUT_OK")); buttonOk->setText(tr("GEOM_BUT_OK"));
buttonOk->setAutoDefault(TRUE); buttonOk->setAutoDefault(true);
buttonOk->setDefault(TRUE); buttonOk->setDefault(true);
GroupButtonsLayout->addWidget(buttonOk, 0, 0); GroupButtonsLayout->addWidget(buttonOk, 0, 0);
GroupButtonsLayout->addItem(new QSpacerItem (20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1); GroupButtonsLayout->addItem(new QSpacerItem (20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1);
@ -110,13 +110,13 @@ GEOMToolsGUI_DeflectionDlg::GEOMToolsGUI_DeflectionDlg (QWidget* parent)
QPushButton* buttonCancel = new QPushButton (GroupButtons); QPushButton* buttonCancel = new QPushButton (GroupButtons);
buttonCancel->setObjectName("buttonCancel"); buttonCancel->setObjectName("buttonCancel");
buttonCancel->setText(tr("GEOM_BUT_CANCEL")); buttonCancel->setText(tr("GEOM_BUT_CANCEL"));
buttonCancel->setAutoDefault(TRUE); buttonCancel->setAutoDefault(true);
GroupButtonsLayout->addWidget(buttonCancel, 0, 1); GroupButtonsLayout->addWidget(buttonCancel, 0, 1);
QPushButton* buttonHelp = new QPushButton (GroupButtons); QPushButton* buttonHelp = new QPushButton (GroupButtons);
buttonHelp->setObjectName("buttonHelp"); buttonHelp->setObjectName("buttonHelp");
buttonHelp->setText(tr("GEOM_BUT_HELP")); buttonHelp->setText(tr("GEOM_BUT_HELP"));
buttonHelp->setAutoDefault(TRUE); buttonHelp->setAutoDefault(true);
GroupButtonsLayout->addWidget(buttonHelp, 0, 2); GroupButtonsLayout->addWidget(buttonHelp, 0, 2);
/***************************************************************/ /***************************************************************/

View File

@ -54,7 +54,7 @@ GEOMToolsGUI_LineWidthDlg::GEOMToolsGUI_LineWidthDlg (QWidget* parent, const QSt
setModal(true); setModal(true);
setWindowTitle(tr(title.toLatin1().constData())); setWindowTitle(tr(title.toLatin1().constData()));
setSizeGripEnabled(TRUE); setSizeGripEnabled(true);
QGridLayout* MyDialogLayout = new QGridLayout(this); QGridLayout* MyDialogLayout = new QGridLayout(this);
MyDialogLayout->setSpacing(6); MyDialogLayout->setSpacing(6);
MyDialogLayout->setMargin(11); MyDialogLayout->setMargin(11);
@ -95,8 +95,8 @@ GEOMToolsGUI_LineWidthDlg::GEOMToolsGUI_LineWidthDlg (QWidget* parent, const QSt
QPushButton* buttonOk = new QPushButton (GroupButtons); QPushButton* buttonOk = new QPushButton (GroupButtons);
buttonOk->setObjectName("buttonOk"); buttonOk->setObjectName("buttonOk");
buttonOk->setText(tr("GEOM_BUT_OK")); buttonOk->setText(tr("GEOM_BUT_OK"));
buttonOk->setAutoDefault(TRUE); buttonOk->setAutoDefault(true);
buttonOk->setDefault(TRUE); buttonOk->setDefault(true);
GroupButtonsLayout->addWidget(buttonOk, 0, 0); GroupButtonsLayout->addWidget(buttonOk, 0, 0);
GroupButtonsLayout->addItem(new QSpacerItem (20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1); GroupButtonsLayout->addItem(new QSpacerItem (20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1);
@ -104,13 +104,13 @@ GEOMToolsGUI_LineWidthDlg::GEOMToolsGUI_LineWidthDlg (QWidget* parent, const QSt
QPushButton* buttonCancel = new QPushButton (GroupButtons); QPushButton* buttonCancel = new QPushButton (GroupButtons);
buttonCancel->setObjectName("buttonCancel"); buttonCancel->setObjectName("buttonCancel");
buttonCancel->setText(tr("GEOM_BUT_CANCEL")); buttonCancel->setText(tr("GEOM_BUT_CANCEL"));
buttonCancel->setAutoDefault(TRUE); buttonCancel->setAutoDefault(true);
GroupButtonsLayout->addWidget(buttonCancel, 0, 1); GroupButtonsLayout->addWidget(buttonCancel, 0, 1);
QPushButton* buttonHelp = new QPushButton (GroupButtons); QPushButton* buttonHelp = new QPushButton (GroupButtons);
buttonHelp->setObjectName("buttonHelp"); buttonHelp->setObjectName("buttonHelp");
buttonHelp->setText(tr("GEOM_BUT_HELP")); buttonHelp->setText(tr("GEOM_BUT_HELP"));
buttonHelp->setAutoDefault(TRUE); buttonHelp->setAutoDefault(true);
GroupButtonsLayout->addWidget(buttonHelp, 0, 2); GroupButtonsLayout->addWidget(buttonHelp, 0, 2);
/***************************************************************/ /***************************************************************/

View File

@ -53,7 +53,7 @@ GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent )
setModal( true ); setModal( true );
setWindowTitle( tr( "GEOM_MEN_ISOS" ) ); setWindowTitle( tr( "GEOM_MEN_ISOS" ) );
setSizeGripEnabled(TRUE); setSizeGripEnabled(true);
QGridLayout* MyDialogLayout = new QGridLayout(this); QGridLayout* MyDialogLayout = new QGridLayout(this);
MyDialogLayout->setSpacing(6); MyDialogLayout->setSpacing(6);
MyDialogLayout->setMargin(11); MyDialogLayout->setMargin(11);
@ -101,8 +101,8 @@ GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent )
QPushButton* buttonOk = new QPushButton( GroupButtons ); QPushButton* buttonOk = new QPushButton( GroupButtons );
buttonOk->setObjectName( "buttonOk" ); buttonOk->setObjectName( "buttonOk" );
buttonOk->setText( tr( "GEOM_BUT_OK" ) ) ; buttonOk->setText( tr( "GEOM_BUT_OK" ) ) ;
buttonOk->setAutoDefault( TRUE ); buttonOk->setAutoDefault( true );
buttonOk->setDefault( TRUE ); buttonOk->setDefault( true );
GroupButtonsLayout->addWidget( buttonOk, 0, 0 ); GroupButtonsLayout->addWidget( buttonOk, 0, 0 );
GroupButtonsLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 ); GroupButtonsLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 );
@ -110,13 +110,13 @@ GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent )
QPushButton* buttonCancel = new QPushButton( GroupButtons ); QPushButton* buttonCancel = new QPushButton( GroupButtons );
buttonCancel->setObjectName( "buttonCancel" ); buttonCancel->setObjectName( "buttonCancel" );
buttonCancel->setText( tr( "GEOM_BUT_CANCEL" ) ) ; buttonCancel->setText( tr( "GEOM_BUT_CANCEL" ) ) ;
buttonCancel->setAutoDefault( TRUE ); buttonCancel->setAutoDefault( true );
GroupButtonsLayout->addWidget( buttonCancel, 0, 1 ); GroupButtonsLayout->addWidget( buttonCancel, 0, 1 );
QPushButton* buttonHelp = new QPushButton( GroupButtons ); QPushButton* buttonHelp = new QPushButton( GroupButtons );
buttonHelp->setObjectName( "buttonHelp" ); buttonHelp->setObjectName( "buttonHelp" );
buttonHelp->setText( tr( "GEOM_BUT_HELP" ) ) ; buttonHelp->setText( tr( "GEOM_BUT_HELP" ) ) ;
buttonHelp->setAutoDefault( TRUE ); buttonHelp->setAutoDefault( true );
GroupButtonsLayout->addWidget( buttonHelp, 0, 2 ); GroupButtonsLayout->addWidget( buttonHelp, 0, 2 );
/***************************************************************/ /***************************************************************/

View File

@ -78,7 +78,11 @@ GEOMToolsGUI_PublishDlg::GEOMToolsGUI_PublishDlg(QWidget* parent):
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
headerItem->setIcon( 2, QIcon( resMgr->loadPixmap( "SUIT", tr( "ICON_DATAOBJ_VISIBLE" ) ) ) ); headerItem->setIcon( 2, QIcon( resMgr->loadPixmap( "SUIT", tr( "ICON_DATAOBJ_VISIBLE" ) ) ) );
myTreeWidget->setHeaderItem ( headerItem ); myTreeWidget->setHeaderItem ( headerItem );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
myTreeWidget->header()->setClickable( true ); myTreeWidget->header()->setClickable( true );
#else
myTreeWidget->header()->setSectionsClickable( true );
#endif
myTreeWidget->header()->setSortIndicatorShown( true ); myTreeWidget->header()->setSortIndicatorShown( true );
myTreeWidget->header()->moveSection( 2, 0 ); myTreeWidget->header()->moveSection( 2, 0 );
myTreeWidget->setSortingEnabled( true ); myTreeWidget->setSortingEnabled( true );

View File

@ -222,9 +222,15 @@ void GEOMToolsGUI_ReduceStudyDlg::createTreeWidget( QTreeWidget* theTreeWidget )
QTreeWidgetItem * headerItem = new QTreeWidgetItem( columnNames ); QTreeWidgetItem * headerItem = new QTreeWidgetItem( columnNames );
theTreeWidget->setHeaderItem ( headerItem ); theTreeWidget->setHeaderItem ( headerItem );
theTreeWidget->header()->moveSection( 1, 0 ); theTreeWidget->header()->moveSection( 1, 0 );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
theTreeWidget->header()->setClickable( true ); theTreeWidget->header()->setClickable( true );
theTreeWidget->header()->setMovable( false ); theTreeWidget->header()->setMovable( false );
theTreeWidget->header()->setResizeMode( 1, QHeaderView::ResizeToContents ); theTreeWidget->header()->setResizeMode( 1, QHeaderView::ResizeToContents );
#else
theTreeWidget->header()->setSectionsClickable( true );
theTreeWidget->header()->setSectionsMovable( false );
theTreeWidget->header()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
#endif
theTreeWidget->setSelectionMode( QAbstractItemView::ExtendedSelection ); theTreeWidget->setSelectionMode( QAbstractItemView::ExtendedSelection );
} }

View File

@ -18,13 +18,12 @@
# #
INCLUDE(${SWIG_USE_FILE}) INCLUDE(${SWIG_USE_FILE})
INCLUDE(${QT_USE_FILE}) INCLUDE(UseQtExt)
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}

View File

@ -17,13 +17,12 @@
# 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(${QT_USE_FILE}) INCLUDE(UseQtExt)
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -90,7 +89,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(GenerationGUI_SOURCES SET(GenerationGUI_SOURCES
GenerationGUI.cxx GenerationGUI.cxx

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -82,12 +80,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(GroupGUI_SOURCES SET(GroupGUI_SOURCES
GroupGUI.cxx GroupGUI.cxx

View File

@ -1092,7 +1092,7 @@ void GroupGUI_GroupDlg::activateSelection()
int index = aSubShapesMap.FindIndex(aSubShape); int index = aSubShapesMap.FindIndex(aSubShape);
QString anEntry = QString( "TEMP_" ) + anEntryBase + QString("_%1").arg(index); QString anEntry = QString( "TEMP_" ) + anEntryBase + QString("_%1").arg(index);
Handle(SALOME_InteractiveObject) io = Handle(SALOME_InteractiveObject) io =
new SALOME_InteractiveObject(anEntry.toAscii(), "GEOM", "TEMP_IO"); new SALOME_InteractiveObject(anEntry.toLatin1(), "GEOM", "TEMP_IO");
if ( myGroupIdList.contains( index ) ) { if ( myGroupIdList.contains( index ) ) {
aDisplayer->SetColor( aCol ); aDisplayer->SetColor( aCol );
} }

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -39,7 +38,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -110,7 +108,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(IGESPluginGUI_SOURCES SET(IGESPluginGUI_SOURCES
IGESPlugin_GUI.cxx IGESPlugin_GUI.cxx
@ -147,7 +145,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(IGESPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(IGESPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS IGESPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS IGESPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${IGESPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${IGESPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()

View File

@ -69,7 +69,7 @@ QString IGESPlugin_ExportDlg::getFileName( const QString& initial, const QString
IGESPlugin_ExportDlg fd( parent ); IGESPlugin_ExportDlg fd( parent );
fd.setFileMode( AnyFile ); fd.setFileMode( AnyFile );
fd.setFilters( fls ); fd.setNameFilters( fls );
fd.setWindowTitle( caption ); fd.setWindowTitle( caption );
if ( !tmpfilename.isEmpty() ) if ( !tmpfilename.isEmpty() )
fd.processPath( tmpfilename ); fd.processPath( tmpfilename );

View File

@ -17,13 +17,10 @@
# 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(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${CAS_INCLUDE_DIRS} ${CAS_INCLUDE_DIRS}
@ -65,7 +62,7 @@ SET(_moc_HEADERS Material_ResourceMgr.h)
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(Material_SOURCES SET(Material_SOURCES
Material_Model.cxx Material_Model.cxx

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -139,12 +137,12 @@ IF(SALOME_USE_PLOT2DVIEWER)
ENDIF() ENDIF()
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(MeasureGUI_SOURCES SET(MeasureGUI_SOURCES
MeasureGUI.cxx MeasureGUI.cxx
@ -185,5 +183,3 @@ ENDIF()
ADD_LIBRARY(MeasureGUI ${MeasureGUI_SOURCES}) ADD_LIBRARY(MeasureGUI ${MeasureGUI_SOURCES})
TARGET_LINK_LIBRARIES(MeasureGUI ${_link_LIBRARIES}) TARGET_LINK_LIBRARIES(MeasureGUI ${_link_LIBRARIES})
INSTALL(TARGETS MeasureGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS MeasureGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})

View File

@ -17,7 +17,6 @@
# 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(${QT_USE_FILE})
INCLUDE(${VTK_USE_FILE}) INCLUDE(${VTK_USE_FILE})
# --- options --- # --- options ---
@ -26,7 +25,6 @@ INCLUDE(${VTK_USE_FILE})
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${QT_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
${CAS_INCLUDE_DIRS} ${CAS_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS}

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -94,12 +92,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(OperationGUI_SOURCES SET(OperationGUI_SOURCES
OperationGUI.cxx OperationGUI.cxx

View File

@ -17,13 +17,10 @@
# 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(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -84,7 +81,7 @@ SET(_moc_HEADERS
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(PrimitiveGUI_SOURCES SET(PrimitiveGUI_SOURCES
PrimitiveGUI.cxx PrimitiveGUI.cxx

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -110,12 +108,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(RepairGUI_SOURCES SET(RepairGUI_SOURCES
RepairGUI.cxx RepairGUI.cxx

View File

@ -158,7 +158,11 @@ namespace
const int nbCols = 2; const int nbCols = 2;
QTableWidget* table = new QTableWidget( nbRows, nbCols, this ); QTableWidget* table = new QTableWidget( nbRows, nbCols, this );
table->setEditTriggers( QAbstractItemView::NoEditTriggers ); table->setEditTriggers( QAbstractItemView::NoEditTriggers );
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
table->horizontalHeader()->setResizeMode( 1, QHeaderView::Interactive ); table->horizontalHeader()->setResizeMode( 1, QHeaderView::Interactive );
#else
table->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::Interactive );
#endif
table->horizontalHeader()->setStretchLastSection( true ); table->horizontalHeader()->setStretchLastSection( true );
QStringList headers; QStringList headers;

View File

@ -127,13 +127,13 @@ RepairGUI_DivideEdgeDlg::RepairGUI_DivideEdgeDlg( GeometryGUI* theGeometryGUI, Q
//======================================================================= //=======================================================================
void RepairGUI_DivideEdgeDlg::ConstructorsClicked( int constructorId ) void RepairGUI_DivideEdgeDlg::ConstructorsClicked( int constructorId )
{ {
myIsParameterGr->button( 0 )->setShown( constructorId == BY_PARAM ); myIsParameterGr->button( 0 )->setVisible( constructorId == BY_PARAM );
myIsParameterGr->button( 1 )->setShown( constructorId == BY_PARAM ); myIsParameterGr->button( 1 )->setVisible( constructorId == BY_PARAM );
myValEdt ->setShown( constructorId == BY_PARAM ); myValEdt ->setVisible( constructorId == BY_PARAM );
myValLbl ->setShown( constructorId == BY_PARAM ); myValLbl ->setVisible( constructorId == BY_PARAM );
GroupPoints->TextLabel2 ->setShown( constructorId == BY_POINT_PROJ ); GroupPoints->TextLabel2 ->setVisible( constructorId == BY_POINT_PROJ );
GroupPoints->PushButton2 ->setShown( constructorId == BY_POINT_PROJ ); GroupPoints->PushButton2 ->setVisible( constructorId == BY_POINT_PROJ );
GroupPoints->LineEdit2 ->setShown( constructorId == BY_POINT_PROJ ); GroupPoints->LineEdit2 ->setVisible( constructorId == BY_POINT_PROJ );
initSelection(); initSelection();

View File

@ -69,8 +69,8 @@ RepairGUI_FuseEdgesDlg::RepairGUI_FuseEdgesDlg (GeometryGUI* theGeometryGUI,
GroupVertexes->LineEdit1->setReadOnly(true); GroupVertexes->LineEdit1->setReadOnly(true);
GroupVertexes->LineEdit2->setReadOnly(true); GroupVertexes->LineEdit2->setReadOnly(true);
GroupVertexes->TextLabel3->setShown(false); GroupVertexes->TextLabel3->setVisible(false);
GroupVertexes->SpinBox_DX->setShown(false); GroupVertexes->SpinBox_DX->setVisible(false);
QVBoxLayout* layout = new QVBoxLayout (centralWidget()); QVBoxLayout* layout = new QVBoxLayout (centralWidget());
layout->setMargin(0); layout->setMargin(0);

View File

@ -145,7 +145,7 @@ RepairGUI_InspectObjectDlg::TreeWidgetItem::TreeWidgetItem
myShape( shape ), myShape( shape ),
myTolerance (theTolerance) myTolerance (theTolerance)
{ {
myIO = new SALOME_InteractiveObject( entry.toAscii(), "GEOM", "TEMP_IO" ); myIO = new SALOME_InteractiveObject( entry.toLatin1(), "GEOM", "TEMP_IO" );
setFlags( flags() | Qt::ItemIsEditable ); setFlags( flags() | Qt::ItemIsEditable );
} }
@ -417,9 +417,15 @@ void RepairGUI_InspectObjectDlg::createTreeWidget(QTreeWidget *&theTreeObjects)
headerItem->setIcon(1, myInvisible); headerItem->setIcon(1, myInvisible);
theTreeObjects->setHeaderItem(headerItem); theTreeObjects->setHeaderItem(headerItem);
theTreeObjects->header()->moveSection(1, 0); theTreeObjects->header()->moveSection(1, 0);
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
theTreeObjects->header()->setClickable(true); theTreeObjects->header()->setClickable(true);
theTreeObjects->header()->setMovable(false); theTreeObjects->header()->setMovable(false);
theTreeObjects->header()->setResizeMode( 1, QHeaderView::ResizeToContents); theTreeObjects->header()->setResizeMode( 1, QHeaderView::ResizeToContents);
#else
theTreeObjects->header()->setSectionsClickable(true);
theTreeObjects->header()->setSectionsMovable(false);
theTreeObjects->header()->setSectionResizeMode( 1, QHeaderView::ResizeToContents);
#endif
theTreeObjects->setSelectionMode(QAbstractItemView::ExtendedSelection); theTreeObjects->setSelectionMode(QAbstractItemView::ExtendedSelection);
theTreeObjects->setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed); theTreeObjects->setEditTriggers(QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed);
// set custom item delegate // set custom item delegate

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -39,7 +38,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -112,7 +110,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(STEPPluginGUI_SOURCES SET(STEPPluginGUI_SOURCES
STEPPlugin_GUI.cxx STEPPlugin_GUI.cxx
@ -149,7 +147,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(STEPPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(STEPPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS STEPPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS STEPPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${STEPPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${STEPPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()

View File

@ -89,7 +89,7 @@ QString STEPPlugin_ExportDlg::getFileName(const QString &theInitial,
STEPPlugin_ExportDlg aDlg(theParent); STEPPlugin_ExportDlg aDlg(theParent);
aDlg.setFileMode(AnyFile); aDlg.setFileMode(AnyFile);
aDlg.setFilters(aFls); aDlg.setNameFilters(aFls);
aDlg.setWindowTitle(theCaption); aDlg.setWindowTitle(theCaption);
if (!aTmpFileName.isEmpty()) { if (!aTmpFileName.isEmpty()) {

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -39,7 +38,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -110,7 +108,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(STLPluginGUI_SOURCES SET(STLPluginGUI_SOURCES
STLPlugin_GUI.cxx STLPlugin_GUI.cxx
@ -147,7 +145,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(STLPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(STLPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS STLPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS STLPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${STLPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${STLPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()

View File

@ -175,7 +175,7 @@ QString STLPlugin_ExportDlg::getFileName( const Handle(SALOME_InteractiveObject)
STLPlugin_ExportDlg fd( io, parent ); STLPlugin_ExportDlg fd( io, parent );
fd.setFileMode( AnyFile ); fd.setFileMode( AnyFile );
fd.setFilters( fls ); fd.setNameFilters( fls );
fd.setWindowTitle( caption ); fd.setWindowTitle( caption );
if ( !tmpfilename.isEmpty() ) if ( !tmpfilename.isEmpty() )
fd.processPath( tmpfilename ); fd.processPath( tmpfilename );

View File

@ -17,7 +17,6 @@
# 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( ${QT_USE_FILE} )
# --- options --- # --- options ---
@ -62,5 +61,3 @@ TARGET_LINK_LIBRARIES(GEOMShapeRec ${_link_LIBRARIES})
INSTALL(TARGETS GEOMShapeRec EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS GEOMShapeRec EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
#INSTALL(FILES ${ShapeRecognition_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) #INSTALL(FILES ${ShapeRecognition_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})

View File

@ -17,14 +17,12 @@
# 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(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
# --- options --- # --- options ---
# additional include directories # additional include directories
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}
${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIR}
@ -95,12 +93,12 @@ SET(_moc_HEADERS
) )
# header files / uic wrappings # header files / uic wrappings
QT4_WRAP_UI(_uic_HEADERS ${_uic_files}) QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# --- sources --- # --- sources ---
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(TransformationGUI_SOURCES SET(TransformationGUI_SOURCES
TransformationGUI.cxx TransformationGUI.cxx

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -41,7 +40,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -112,7 +110,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(VTKPluginGUI_SOURCES SET(VTKPluginGUI_SOURCES
VTKPlugin_GUI.cxx VTKPlugin_GUI.cxx
@ -148,7 +146,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(VTKPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(VTKPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS VTKPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS VTKPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${VTKPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${VTKPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()

View File

@ -99,7 +99,7 @@ QString VTKPlugin_ExportDlg::getFileName( const Handle(SALOME_InteractiveObject)
VTKPlugin_ExportDlg fd( io, parent ); VTKPlugin_ExportDlg fd( io, parent );
fd.setFileMode( AnyFile ); fd.setFileMode( AnyFile );
fd.setFilters( fls ); fd.setNameFilters( fls );
fd.setWindowTitle( caption ); fd.setWindowTitle( caption );
if ( !tmpfilename.isEmpty() ) if ( !tmpfilename.isEmpty() )
fd.processPath( tmpfilename ); fd.processPath( tmpfilename );

View File

@ -18,8 +18,7 @@
# #
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE(UseQt4Ext) INCLUDE(UseQtExt)
INCLUDE(${QT_USE_FILE})
ENDIF() ENDIF()
# --- options --- # --- options ---
@ -40,7 +39,6 @@ INCLUDE_DIRECTORIES(
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${QT_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/src/OBJECT ${PROJECT_SOURCE_DIR}/src/OBJECT
${PROJECT_SOURCE_DIR}/src/GEOMGUI ${PROJECT_SOURCE_DIR}/src/GEOMGUI
@ -111,7 +109,7 @@ ENDIF()
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# sources / moc wrappings # sources / moc wrappings
QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS}) QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
SET(XAOPluginGUI_SOURCES SET(XAOPluginGUI_SOURCES
XAOPlugin_GUI.cxx XAOPlugin_GUI.cxx
@ -149,7 +147,7 @@ IF(SALOME_BUILD_GUI)
TARGET_LINK_LIBRARIES(XAOPluginGUI ${_link_gui_LIBRARIES}) TARGET_LINK_LIBRARIES(XAOPluginGUI ${_link_gui_LIBRARIES})
INSTALL(TARGETS XAOPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(TARGETS XAOPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
QT4_INSTALL_TS_RESOURCES("${XAOPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}") QT_INSTALL_TS_RESOURCES("${XAOPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
ENDIF() ENDIF()