MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR")
ENDIF(EXISTS ${GUI_ROOT_DIR})
-# Qt4
-FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml)
-INCLUDE(${QT_USE_FILE})
+# Qt
+IF(NOT SALOME_GUI_BUILD_WITH_QT5)
+ FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml)
+ INCLUDE(${QT_USE_FILE})
+ELSE()
+ FIND_PACKAGE(SalomeQt5 REQUIRED)
+ENDIF()
# Detection summary:
SALOME_PACKAGE_REPORT_AND_CHECK()
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QGroupBox>
+#include <QHBoxLayout>
+#include <QGridLayout>
+
#include "BL_Buttons.hxx"
BL::Buttons::Buttons(QWidget * parent) : QWidget(parent)
#define _BL_BUTTONS_HXX_
#include <QtGui>
+#include <QWidget>
+#include <QPushButton>
#include "BL_Traces.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QFileDialog>
+#include <QMessageBox>
+
#include "BL_CreateJobWizard.hxx"
#include "BL_JobsManager_QT.hxx"
#ifndef WNT
#define _BL_CREATEJOBWIZARD_HXX_
#include <QtGui>
+#include <QWizard>
+#include <QLabel>
+#include <QGridLayout>
#include "BL_Traces.hxx"
#include "BL_SALOMEServices.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QAction>
+#include <QMessageBox>
+#include <QScrollArea>
+#include <QSplitter>
+
#include "BL_GenericGui.hxx"
#ifdef WNT
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QGroupBox>
+
#include "BL_JobTab.hxx"
#include "BL_Traces.hxx"
#define _BL_JOBTAB_HXX_
#include <QtGui>
+#include <QFormLayout>
#include "BL_JobsManager_QT.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QApplication>
+#include <QFileDialog>
+#include <QGroupBox>
+#include <QMenu>
+#include <QScrollArea>
+
#include "BL_JobsManager_QT.hxx"
#include "BL_GenericGui.hxx"
#include <vector>
filters << "XML files (*.xml)"
<< "Any files (*)";
dialog.setFileMode(QFileDialog::AnyFile);
- dialog.setFilters(filters);
- dialog.selectFilter("(*.xml)");
+ dialog.setNameFilters(filters);
+ dialog.selectNameFilter("(*.xml)");
dialog.setDefaultSuffix("xml");
dialog.setConfirmOverwrite(true);
dialog.setAcceptMode(QFileDialog::AcceptSave);
#define _BL_JOBSMANAGER_QT_HXX_
#include <QObject>
+#include <QDockWidget>
+#include <QTextEdit>
#include "BL_Traces.hxx"
#include "BL_JobsManager.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QHeaderView>
+
#include "BL_JobsTable.hxx"
#include "BL_Traces.hxx"
#include "BL_GenericGui.hxx"
setSelectionMode(QAbstractItemView::ExtendedSelection);
QHeaderView * header_view = verticalHeader();
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
header_view->setClickable(false);
+#else
+ header_view->setSectionsClickable(false);
+#endif
}
BL::JobsTable::~JobsTable()
#define _BL_JOBSTABLE_HXX_
#include <QtGui>
+#include <QTableView>
namespace BL
{
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QFormLayout>
+
#include "BL_Summary.hxx"
#include "BL_Traces.hxx"
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(UseQt4Ext)
+INCLUDE(UseQtExt)
# --- options ---
# additional include directories
# --- sources ---
# sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${BL_GenericGui_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${BL_GenericGui_HEADERS})
# sources / static
SET(_other_SOURCES
)
# header files / uic wrappings
-QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
+QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
# sources / to compile
SET(BL_GenericGui_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QDialogButtonBox>
+#include <QGridLayout>
+#include <QGroupBox>
+#include <QInputDialog>
+#include <QMessageBox>
+#include <QLabel>
+#include <QVBoxLayout>
+
#include "JM_EditSalomeResource.hxx"
#include "BL_Traces.hxx"
#include <string>
#include <QtGui>
+#include <QDialog>
+#include <QComboBox>
+#include <QCheckBox>
+#include <QLineEdit>
+#include <QListWidget>
+#include <QPushButton>
+#include <QSpinBox>
+#include <QWidget>
+
#include "BL_SALOMEServices.hxx"
namespace JM
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QHBoxLayout>
+#include <QVBoxLayout>
+
#include "JM_ResourceCatalog.hxx"
#include "BL_Traces.hxx"
#include "JM_SalomeResource.hxx"
#define _JM_RESOURCECATALOG_HXX_
#include <QtGui>
+#include <QListWidget>
+#include <QPushButton>
#include "BL_SALOMEServices.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QGridLayout>
+#include <QGroupBox>
+#include <QLabel>
+#include <QVBoxLayout>
+
#include "JM_SalomeResource.hxx"
#include "BL_Traces.hxx"
#define _JM_SALOMERESOURCE_HXX_
#include <QtGui>
+#include <QDialog>
+#include <QCheckBox>
+#include <QLineEdit>
+#include <QListWidget>
+
#include "BL_SALOMEServices.hxx"
#include <string>
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+INCLUDE(UseQtExt)
+
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
# --- sources ---
# sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${JOBMANAGER_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${JOBMANAGER_HEADERS})
# sources / static
SET(_other_SOURCES
//
#include <QtGui>
+#include <QApplication>
+
#include "BL_GenericGui.hxx"
#include "BL_MainWindows_Qt.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QAction>
+#include <QMenu>
+#include <QMenuBar>
+
#include "BL_MainWindows_Qt.hxx"
BL::MainWindows_Qt::MainWindows_Qt(QMainWindow * main_window)
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QTextEdit>
+
#include "BL_MainWindows_SALOME.hxx"
#include <SalomeApp_Engine_i.h>
#define _BL_MAINWINDOWS_WRAP_HXX_
#include <QtGui>
+#include <QMainWindow>
#include "BL_Traces.hxx"
namespace BL