##// END OF EJS Templates
Merge pull request 295 from SCIQLOP-Initialisation-fork nico...
perrinel -
r731:69c31b995f88 merge develop
parent child
Show More
@@ -1,11 +1,12
1 #!/bin/bash
1 #!/bin/bash
2
2
3 mkdir -p ${MESON_INSTALL_PREFIX}/Contents/Frameworks
3 mkdir -p ${MESON_INSTALL_PREFIX}/Contents/Frameworks
4 mv ${MESON_INSTALL_PREFIX}/lib/*plugin* ${MESON_INSTALL_PREFIX}/Contents/MacOS
4 mv ${MESON_INSTALL_PREFIX}/lib/*plugin* ${MESON_INSTALL_PREFIX}/Contents/MacOS
5 macdeployqt ${MESON_INSTALL_PREFIX} -verbose=3
5 macdeployqt ${MESON_INSTALL_PREFIX} -verbose=3
6 install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/Contents/MacOS/sciqlop
6 install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/Contents/MacOS/sciqlop
7 install_name_tool -change @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport /tmp/SciQLOP.app/Contents/MacOS/sciqlop
7 install_name_tool -change @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport /tmp/SciQLOP.app/Contents/MacOS/sciqlop
8 install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /tmp/SciQLOP.app/Contents/MacOS/sciqlop
8 install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /tmp/SciQLOP.app/Contents/MacOS/sciqlop
9 install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /tmp/SciQLOP.app/Contents/MacOS/sciqlop
9 install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /tmp/SciQLOP.app/Contents/MacOS/sciqlop
10 install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/Contents/MacOS/sciqlop
10 install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/Contents/MacOS/sciqlop
11 install_name_tool -change @rpath/QtSvg.framework/Versions/5/QtSvg @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg /tmp/SciQLOP.app/Contents/MacOS/sciqlop
11
12
@@ -1,31 +1,32
1 #ifndef SCIQLOP_RENAMEVARIABLEDIALOG_H
1 #ifndef SCIQLOP_RENAMEVARIABLEDIALOG_H
2 #define SCIQLOP_RENAMEVARIABLEDIALOG_H
2 #define SCIQLOP_RENAMEVARIABLEDIALOG_H
3
3
4 #include <QDialog>
4 #include <QDialog>
5
5
6 namespace Ui {
6 namespace Ui {
7 class RenameVariableDialog;
7 class RenameVariableDialog;
8 } // Ui
8 } // Ui
9
9
10 /**
10 /**
11 * @brief The RenameVariableDialog class represents the dialog to rename a variable
11 * @brief The RenameVariableDialog class represents the dialog to rename a variable
12 */
12 */
13 class RenameVariableDialog : public QDialog {
13 class RenameVariableDialog : public QDialog {
14 Q_OBJECT
14 public:
15 public:
15 explicit RenameVariableDialog(const QString &defaultName,
16 explicit RenameVariableDialog(const QString &defaultName,
16 const QVector<QString> &forbiddenNames,
17 const QVector<QString> &forbiddenNames,
17 QWidget *parent = nullptr);
18 QWidget *parent = nullptr);
18 virtual ~RenameVariableDialog() noexcept;
19 virtual ~RenameVariableDialog() noexcept;
19
20
20 QString name() const noexcept;
21 QString name() const noexcept;
21
22
22 public slots:
23 public slots:
23 void accept() override;
24 void accept() override;
24
25
25 private:
26 private:
26 Ui::RenameVariableDialog *ui;
27 Ui::RenameVariableDialog *ui;
27 QString m_DefaultName;
28 QString m_DefaultName;
28 QVector<QString> m_ForbiddenNames;
29 QVector<QString> m_ForbiddenNames;
29 };
30 };
30
31
31 #endif // SCIQLOP_RENAMEVARIABLEDIALOG_H
32 #endif // SCIQLOP_RENAMEVARIABLEDIALOG_H
@@ -1,77 +1,80
1
1
2 gui_moc_headers = [
2 gui_moc_headers = [
3 'include/DataSource/DataSourceWidget.h',
3 'include/DataSource/DataSourceWidget.h',
4 'include/Settings/SqpSettingsDialog.h',
4 'include/Settings/SqpSettingsDialog.h',
5 'include/Settings/SqpSettingsGeneralWidget.h',
5 'include/Settings/SqpSettingsGeneralWidget.h',
6 'include/SidePane/SqpSidePane.h',
6 'include/SidePane/SqpSidePane.h',
7 'include/SqpApplication.h',
7 'include/SqpApplication.h',
8 'include/TimeWidget/TimeWidget.h',
8 'include/TimeWidget/TimeWidget.h',
9 'include/Variable/VariableInspectorWidget.h',
9 'include/Variable/VariableInspectorWidget.h',
10 'include/Variable/RenameVariableDialog.h',
10 'include/Visualization/qcustomplot.h',
11 'include/Visualization/qcustomplot.h',
11 'include/Visualization/VisualizationGraphWidget.h',
12 'include/Visualization/VisualizationGraphWidget.h',
12 'include/Visualization/VisualizationTabWidget.h',
13 'include/Visualization/VisualizationTabWidget.h',
13 'include/Visualization/VisualizationWidget.h',
14 'include/Visualization/VisualizationWidget.h',
14 'include/Visualization/VisualizationZoneWidget.h'
15 'include/Visualization/VisualizationZoneWidget.h'
15 ]
16 ]
16
17
17 gui_ui_files = [
18 gui_ui_files = [
18 'ui/DataSource/DataSourceWidget.ui',
19 'ui/DataSource/DataSourceWidget.ui',
19 'ui/Settings/SqpSettingsDialog.ui',
20 'ui/Settings/SqpSettingsDialog.ui',
20 'ui/Settings/SqpSettingsGeneralWidget.ui',
21 'ui/Settings/SqpSettingsGeneralWidget.ui',
21 'ui/SidePane/SqpSidePane.ui',
22 'ui/SidePane/SqpSidePane.ui',
22 'ui/TimeWidget/TimeWidget.ui',
23 'ui/TimeWidget/TimeWidget.ui',
23 'ui/Variable/VariableInspectorWidget.ui',
24 'ui/Variable/VariableInspectorWidget.ui',
25 'ui/Variable/RenameVariableDialog.ui',
24 'ui/Variable/VariableMenuHeaderWidget.ui',
26 'ui/Variable/VariableMenuHeaderWidget.ui',
25 'ui/Visualization/VisualizationGraphWidget.ui',
27 'ui/Visualization/VisualizationGraphWidget.ui',
26 'ui/Visualization/VisualizationTabWidget.ui',
28 'ui/Visualization/VisualizationTabWidget.ui',
27 'ui/Visualization/VisualizationWidget.ui',
29 'ui/Visualization/VisualizationWidget.ui',
28 'ui/Visualization/VisualizationZoneWidget.ui'
30 'ui/Visualization/VisualizationZoneWidget.ui'
29 ]
31 ]
30
32
31 gui_qresources = ['resources/sqpguiresources.qrc']
33 gui_qresources = ['resources/sqpguiresources.qrc']
32
34
33 gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers,
35 gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers,
34 ui_files : gui_ui_files,
36 ui_files : gui_ui_files,
35 qresources : gui_qresources)
37 qresources : gui_qresources)
36
38
37 gui_sources = [
39 gui_sources = [
38 'src/SqpApplication.cpp',
40 'src/SqpApplication.cpp',
39 'src/Common/ColorUtils.cpp',
41 'src/Common/ColorUtils.cpp',
40 'src/DataSource/DataSourceTreeWidgetItem.cpp',
42 'src/DataSource/DataSourceTreeWidgetItem.cpp',
41 'src/DataSource/DataSourceTreeWidgetHelper.cpp',
43 'src/DataSource/DataSourceTreeWidgetHelper.cpp',
42 'src/DataSource/DataSourceWidget.cpp',
44 'src/DataSource/DataSourceWidget.cpp',
43 'src/Settings/SqpSettingsDialog.cpp',
45 'src/Settings/SqpSettingsDialog.cpp',
44 'src/Settings/SqpSettingsGeneralWidget.cpp',
46 'src/Settings/SqpSettingsGeneralWidget.cpp',
45 'src/SidePane/SqpSidePane.cpp',
47 'src/SidePane/SqpSidePane.cpp',
46 'src/TimeWidget/TimeWidget.cpp',
48 'src/TimeWidget/TimeWidget.cpp',
47 'src/Variable/VariableInspectorWidget.cpp',
49 'src/Variable/VariableInspectorWidget.cpp',
48 'src/Variable/VariableMenuHeaderWidget.cpp',
50 'src/Variable/VariableMenuHeaderWidget.cpp',
51 'src/Variable/RenameVariableDialog.cpp',
49 'src/Visualization/VisualizationGraphHelper.cpp',
52 'src/Visualization/VisualizationGraphHelper.cpp',
50 'src/Visualization/VisualizationGraphRenderingDelegate.cpp',
53 'src/Visualization/VisualizationGraphRenderingDelegate.cpp',
51 'src/Visualization/VisualizationGraphWidget.cpp',
54 'src/Visualization/VisualizationGraphWidget.cpp',
52 'src/Visualization/VisualizationTabWidget.cpp',
55 'src/Visualization/VisualizationTabWidget.cpp',
53 'src/Visualization/VisualizationWidget.cpp',
56 'src/Visualization/VisualizationWidget.cpp',
54 'src/Visualization/VisualizationZoneWidget.cpp',
57 'src/Visualization/VisualizationZoneWidget.cpp',
55 'src/Visualization/qcustomplot.cpp',
58 'src/Visualization/qcustomplot.cpp',
56 'src/Visualization/QCustomPlotSynchronizer.cpp',
59 'src/Visualization/QCustomPlotSynchronizer.cpp',
57 'src/Visualization/operations/FindVariableOperation.cpp',
60 'src/Visualization/operations/FindVariableOperation.cpp',
58 'src/Visualization/operations/GenerateVariableMenuOperation.cpp',
61 'src/Visualization/operations/GenerateVariableMenuOperation.cpp',
59 'src/Visualization/operations/MenuBuilder.cpp',
62 'src/Visualization/operations/MenuBuilder.cpp',
60 'src/Visualization/operations/RemoveVariableOperation.cpp',
63 'src/Visualization/operations/RemoveVariableOperation.cpp',
61 'src/Visualization/operations/RescaleAxeOperation.cpp'
64 'src/Visualization/operations/RescaleAxeOperation.cpp'
62 ]
65 ]
63
66
64 gui_inc = include_directories(['include'])
67 gui_inc = include_directories(['include'])
65
68
66 sciqlop_gui_lib = library('sciqlopgui',
69 sciqlop_gui_lib = library('sciqlopgui',
67 gui_sources,
70 gui_sources,
68 gui_moc_files,
71 gui_moc_files,
69 include_directories : [gui_inc],
72 include_directories : [gui_inc],
70 dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core],
73 dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core],
71 install : true
74 install : true
72 )
75 )
73
76
74 sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib,
77 sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib,
75 include_directories : gui_inc,
78 include_directories : gui_inc,
76 dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core])
79 dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core])
77
80
General Comments 0
You need to be logged in to leave comments. Login now