# 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()
// 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)
#ifndef _BL_BUTTONS_HXX_
#define _BL_BUTTONS_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QWidget>
-#include <QPushButton>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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
#ifndef _BL_CREATEJOBWIZARD_HXX_
#define _BL_CREATEJOBWIZARD_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QWizard>
-#include <QLabel>
-#include <QGridLayout>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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
#ifndef _BL_GENERICGUI_HXX_
#define _BL_GENERICGUI_HXX_
+#include <QtGlobal>
#include <QtGui>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#include "BL_GenericGuiDefines.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include <QGroupBox>
-
#include "BL_JobTab.hxx"
#include "BL_Traces.hxx"
#ifndef _BL_JOBTAB_HXX_
#define _BL_JOBTAB_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QFormLayout>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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>
#ifndef _BL_JOBSMANAGER_QT_HXX_
#define _BL_JOBSMANAGER_QT_HXX_
-#include <QObject>
-#include <QDockWidget>
-#include <QTextEdit>
+#include <QtGlobal>
+#include <QtGui>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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"
#ifndef _BL_JOBSTABLE_HXX_
#define _BL_JOBSTABLE_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QTableView>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
namespace BL
{
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#include <QFormLayout>
-
#include "BL_Summary.hxx"
#include "BL_Traces.hxx"
#ifndef _BL_SUMMARY_HXX_
#define _BL_SUMMARY_HXX_
+#include <QtGlobal>
#include <QtGui>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
+
#include "BL_JobsManager_QT.hxx"
namespace BL
// 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"
#ifndef _JM_EDITSALOMERESOURCE_HXX_
#define _JM_EDITSALOMERESOURCE_HXX_
-#include <string>
+#include <QtGlobal>
#include <QtGui>
-#include <QDialog>
-#include <QComboBox>
-#include <QCheckBox>
-#include <QLineEdit>
-#include <QListWidget>
-#include <QPushButton>
-#include <QSpinBox>
-#include <QWidget>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
+
+#include <string>
#include "BL_SALOMEServices.hxx"
// 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"
#ifndef _JM_RESOURCECATALOG_HXX_
#define _JM_RESOURCECATALOG_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QListWidget>
-#include <QPushButton>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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"
#ifndef _JM_SALOMERESOURCE_HXX_
#define _JM_SALOMERESOURCE_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QDialog>
-#include <QCheckBox>
-#include <QLineEdit>
-#include <QListWidget>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#include "BL_SALOMEServices.hxx"
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+#include <QtGlobal>
#include <QtGui>
-#include <QApplication>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
#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>
#ifndef _BL_MAINWINDOWS_WRAP_HXX_
#define _BL_MAINWINDOWS_WRAP_HXX_
+#include <QtGlobal>
#include <QtGui>
-#include <QMainWindow>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
+#include <QtWidgets>
+#endif
+
#include "BL_Traces.hxx"
namespace BL