@@ -0,0 +1,24 | |||||
|
1 | #ifndef SCIQLOP_COLORSCALEEDITOR_H | |||
|
2 | #define SCIQLOP_COLORSCALEEDITOR_H | |||
|
3 | ||||
|
4 | #include <QDialog> | |||
|
5 | ||||
|
6 | namespace Ui { | |||
|
7 | class ColorScaleEditor; | |||
|
8 | } // Ui | |||
|
9 | ||||
|
10 | /** | |||
|
11 | * @brief The ColorScaleEditor class represents the widget to set properties of color scale's graphs | |||
|
12 | */ | |||
|
13 | class ColorScaleEditor : public QDialog { | |||
|
14 | Q_OBJECT | |||
|
15 | ||||
|
16 | public: | |||
|
17 | explicit ColorScaleEditor(QWidget *parent = 0); | |||
|
18 | virtual ~ColorScaleEditor() noexcept; | |||
|
19 | ||||
|
20 | private: | |||
|
21 | Ui::ColorScaleEditor *ui; | |||
|
22 | }; | |||
|
23 | ||||
|
24 | #endif // SCIQLOP_COLORSCALEEDITOR_H |
@@ -0,0 +1,13 | |||||
|
1 | #include "Visualization/ColorScaleEditor.h" | |||
|
2 | ||||
|
3 | #include "ui_ColorScaleEditor.h" | |||
|
4 | ||||
|
5 | ColorScaleEditor::ColorScaleEditor(QWidget *parent) : QDialog{parent}, ui{new Ui::ColorScaleEditor} | |||
|
6 | { | |||
|
7 | ui->setupUi(this); | |||
|
8 | } | |||
|
9 | ||||
|
10 | ColorScaleEditor::~ColorScaleEditor() noexcept | |||
|
11 | { | |||
|
12 | delete ui; | |||
|
13 | } |
@@ -0,0 +1,169 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <ui version="4.0"> | |||
|
3 | <class>ColorScaleEditor</class> | |||
|
4 | <widget class="QDialog" name="ColorScaleEditor"> | |||
|
5 | <property name="geometry"> | |||
|
6 | <rect> | |||
|
7 | <x>0</x> | |||
|
8 | <y>0</y> | |||
|
9 | <width>258</width> | |||
|
10 | <height>232</height> | |||
|
11 | </rect> | |||
|
12 | </property> | |||
|
13 | <property name="windowTitle"> | |||
|
14 | <string>Color scale editor</string> | |||
|
15 | </property> | |||
|
16 | <layout class="QGridLayout" name="gridLayout"> | |||
|
17 | <item row="3" column="0"> | |||
|
18 | <layout class="QHBoxLayout" name="horizontalLayout"> | |||
|
19 | <item> | |||
|
20 | <spacer name="horizontalSpacer"> | |||
|
21 | <property name="orientation"> | |||
|
22 | <enum>Qt::Horizontal</enum> | |||
|
23 | </property> | |||
|
24 | <property name="sizeHint" stdset="0"> | |||
|
25 | <size> | |||
|
26 | <width>40</width> | |||
|
27 | <height>20</height> | |||
|
28 | </size> | |||
|
29 | </property> | |||
|
30 | </spacer> | |||
|
31 | </item> | |||
|
32 | <item> | |||
|
33 | <widget class="QPushButton" name="okButton"> | |||
|
34 | <property name="text"> | |||
|
35 | <string>OK</string> | |||
|
36 | </property> | |||
|
37 | <property name="default"> | |||
|
38 | <bool>true</bool> | |||
|
39 | </property> | |||
|
40 | </widget> | |||
|
41 | </item> | |||
|
42 | <item> | |||
|
43 | <widget class="QPushButton" name="cancelButton"> | |||
|
44 | <property name="text"> | |||
|
45 | <string>Cancel</string> | |||
|
46 | </property> | |||
|
47 | </widget> | |||
|
48 | </item> | |||
|
49 | </layout> | |||
|
50 | </item> | |||
|
51 | <item row="1" column="0"> | |||
|
52 | <widget class="QGroupBox" name="groupBox"> | |||
|
53 | <property name="title"> | |||
|
54 | <string>Preview</string> | |||
|
55 | </property> | |||
|
56 | <layout class="QGridLayout" name="gridLayout_3"> | |||
|
57 | <item row="0" column="0"> | |||
|
58 | <widget class="QCustomPlot" name="plot" native="true"/> | |||
|
59 | </item> | |||
|
60 | </layout> | |||
|
61 | </widget> | |||
|
62 | </item> | |||
|
63 | <item row="0" column="0"> | |||
|
64 | <layout class="QGridLayout" name="gridLayout_2"> | |||
|
65 | <item row="1" column="0"> | |||
|
66 | <widget class="QLabel" name="thresholdLabel"> | |||
|
67 | <property name="text"> | |||
|
68 | <string>Thresholds:</string> | |||
|
69 | </property> | |||
|
70 | </widget> | |||
|
71 | </item> | |||
|
72 | <item row="1" column="1"> | |||
|
73 | <widget class="QRadioButton" name="thresholdAutoButton"> | |||
|
74 | <property name="enabled"> | |||
|
75 | <bool>false</bool> | |||
|
76 | </property> | |||
|
77 | <property name="text"> | |||
|
78 | <string>Automatic</string> | |||
|
79 | </property> | |||
|
80 | <property name="checkable"> | |||
|
81 | <bool>true</bool> | |||
|
82 | </property> | |||
|
83 | <property name="checked"> | |||
|
84 | <bool>false</bool> | |||
|
85 | </property> | |||
|
86 | </widget> | |||
|
87 | </item> | |||
|
88 | <item row="1" column="2"> | |||
|
89 | <widget class="QRadioButton" name="thresholdManualButton"> | |||
|
90 | <property name="text"> | |||
|
91 | <string>Manual</string> | |||
|
92 | </property> | |||
|
93 | </widget> | |||
|
94 | </item> | |||
|
95 | <item row="2" column="0"> | |||
|
96 | <widget class="QLabel" name="minLabel"> | |||
|
97 | <property name="text"> | |||
|
98 | <string>Min:</string> | |||
|
99 | </property> | |||
|
100 | </widget> | |||
|
101 | </item> | |||
|
102 | <item row="3" column="0"> | |||
|
103 | <widget class="QLabel" name="maxLabel"> | |||
|
104 | <property name="text"> | |||
|
105 | <string>Max:</string> | |||
|
106 | </property> | |||
|
107 | </widget> | |||
|
108 | </item> | |||
|
109 | <item row="2" column="1" colspan="2"> | |||
|
110 | <widget class="QDoubleSpinBox" name="minSpinBox"> | |||
|
111 | <property name="showGroupSeparator" stdset="0"> | |||
|
112 | <bool>true</bool> | |||
|
113 | </property> | |||
|
114 | </widget> | |||
|
115 | </item> | |||
|
116 | <item row="3" column="1" colspan="2"> | |||
|
117 | <widget class="QDoubleSpinBox" name="maxSpinBox"> | |||
|
118 | <property name="showGroupSeparator" stdset="0"> | |||
|
119 | <bool>true</bool> | |||
|
120 | </property> | |||
|
121 | </widget> | |||
|
122 | </item> | |||
|
123 | <item row="0" column="0"> | |||
|
124 | <widget class="QLabel" name="gradientLabel"> | |||
|
125 | <property name="text"> | |||
|
126 | <string>Gradient:</string> | |||
|
127 | </property> | |||
|
128 | </widget> | |||
|
129 | </item> | |||
|
130 | <item row="0" column="1" colspan="2"> | |||
|
131 | <widget class="QComboBox" name="gradientComboBox"/> | |||
|
132 | </item> | |||
|
133 | </layout> | |||
|
134 | </item> | |||
|
135 | <item row="2" column="0"> | |||
|
136 | <spacer name="verticalSpacer"> | |||
|
137 | <property name="orientation"> | |||
|
138 | <enum>Qt::Vertical</enum> | |||
|
139 | </property> | |||
|
140 | <property name="sizeHint" stdset="0"> | |||
|
141 | <size> | |||
|
142 | <width>20</width> | |||
|
143 | <height>40</height> | |||
|
144 | </size> | |||
|
145 | </property> | |||
|
146 | </spacer> | |||
|
147 | </item> | |||
|
148 | </layout> | |||
|
149 | </widget> | |||
|
150 | <customwidgets> | |||
|
151 | <customwidget> | |||
|
152 | <class>QCustomPlot</class> | |||
|
153 | <extends>QWidget</extends> | |||
|
154 | <header>Visualization/qcustomplot.h</header> | |||
|
155 | <container>1</container> | |||
|
156 | </customwidget> | |||
|
157 | </customwidgets> | |||
|
158 | <tabstops> | |||
|
159 | <tabstop>gradientComboBox</tabstop> | |||
|
160 | <tabstop>thresholdAutoButton</tabstop> | |||
|
161 | <tabstop>okButton</tabstop> | |||
|
162 | <tabstop>thresholdManualButton</tabstop> | |||
|
163 | <tabstop>maxSpinBox</tabstop> | |||
|
164 | <tabstop>minSpinBox</tabstop> | |||
|
165 | <tabstop>cancelButton</tabstop> | |||
|
166 | </tabstops> | |||
|
167 | <resources/> | |||
|
168 | <connections/> | |||
|
169 | </ui> |
@@ -1,96 +1,99 | |||||
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/DragAndDrop/DragDropScroller.h', |
|
8 | 'include/DragAndDrop/DragDropScroller.h', | |
9 | 'include/DragAndDrop/DragDropTabSwitcher.h', |
|
9 | 'include/DragAndDrop/DragDropTabSwitcher.h', | |
10 | 'include/TimeWidget/TimeWidget.h', |
|
10 | 'include/TimeWidget/TimeWidget.h', | |
11 | 'include/Variable/VariableInspectorWidget.h', |
|
11 | 'include/Variable/VariableInspectorWidget.h', | |
12 | 'include/Variable/RenameVariableDialog.h', |
|
12 | 'include/Variable/RenameVariableDialog.h', | |
13 | 'include/Visualization/qcustomplot.h', |
|
13 | 'include/Visualization/qcustomplot.h', | |
14 | 'include/Visualization/VisualizationGraphWidget.h', |
|
14 | 'include/Visualization/VisualizationGraphWidget.h', | |
15 | 'include/Visualization/VisualizationTabWidget.h', |
|
15 | 'include/Visualization/VisualizationTabWidget.h', | |
16 | 'include/Visualization/VisualizationWidget.h', |
|
16 | 'include/Visualization/VisualizationWidget.h', | |
17 | 'include/Visualization/VisualizationZoneWidget.h', |
|
17 | 'include/Visualization/VisualizationZoneWidget.h', | |
18 | 'include/Visualization/VisualizationDragDropContainer.h', |
|
18 | 'include/Visualization/VisualizationDragDropContainer.h', | |
19 | 'include/Visualization/VisualizationDragWidget.h' |
|
19 | 'include/Visualization/VisualizationDragWidget.h', | |
|
20 | 'include/Visualization/ColorScaleWidget.h' | |||
20 | ] |
|
21 | ] | |
21 |
|
22 | |||
22 | gui_ui_files = [ |
|
23 | gui_ui_files = [ | |
23 | 'ui/DataSource/DataSourceWidget.ui', |
|
24 | 'ui/DataSource/DataSourceWidget.ui', | |
24 | 'ui/Settings/SqpSettingsDialog.ui', |
|
25 | 'ui/Settings/SqpSettingsDialog.ui', | |
25 | 'ui/Settings/SqpSettingsGeneralWidget.ui', |
|
26 | 'ui/Settings/SqpSettingsGeneralWidget.ui', | |
26 | 'ui/SidePane/SqpSidePane.ui', |
|
27 | 'ui/SidePane/SqpSidePane.ui', | |
27 | 'ui/TimeWidget/TimeWidget.ui', |
|
28 | 'ui/TimeWidget/TimeWidget.ui', | |
28 | 'ui/Variable/VariableInspectorWidget.ui', |
|
29 | 'ui/Variable/VariableInspectorWidget.ui', | |
29 | 'ui/Variable/RenameVariableDialog.ui', |
|
30 | 'ui/Variable/RenameVariableDialog.ui', | |
30 | 'ui/Variable/VariableMenuHeaderWidget.ui', |
|
31 | 'ui/Variable/VariableMenuHeaderWidget.ui', | |
31 | 'ui/Visualization/VisualizationGraphWidget.ui', |
|
32 | 'ui/Visualization/VisualizationGraphWidget.ui', | |
32 | 'ui/Visualization/VisualizationTabWidget.ui', |
|
33 | 'ui/Visualization/VisualizationTabWidget.ui', | |
33 | 'ui/Visualization/VisualizationWidget.ui', |
|
34 | 'ui/Visualization/VisualizationWidget.ui', | |
34 | 'ui/Visualization/VisualizationZoneWidget.ui' |
|
35 | 'ui/Visualization/VisualizationZoneWidget.ui', | |
|
36 | 'ui/Visualization/ColorScaleWidget.ui' | |||
35 | ] |
|
37 | ] | |
36 |
|
38 | |||
37 | gui_qresources = ['resources/sqpguiresources.qrc'] |
|
39 | gui_qresources = ['resources/sqpguiresources.qrc'] | |
38 |
|
40 | |||
39 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, |
|
41 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, | |
40 | ui_files : gui_ui_files, |
|
42 | ui_files : gui_ui_files, | |
41 | qresources : gui_qresources) |
|
43 | qresources : gui_qresources) | |
42 |
|
44 | |||
43 | gui_sources = [ |
|
45 | gui_sources = [ | |
44 | 'src/SqpApplication.cpp', |
|
46 | 'src/SqpApplication.cpp', | |
45 | 'src/DragAndDrop/DragDropHelper.cpp', |
|
47 | 'src/DragAndDrop/DragDropHelper.cpp', | |
46 | 'src/DragAndDrop/DragDropScroller.cpp', |
|
48 | 'src/DragAndDrop/DragDropScroller.cpp', | |
47 | 'src/DragAndDrop/DragDropTabSwitcher.cpp', |
|
49 | 'src/DragAndDrop/DragDropTabSwitcher.cpp', | |
48 | 'src/Common/ColorUtils.cpp', |
|
50 | 'src/Common/ColorUtils.cpp', | |
49 | 'src/Common/VisualizationDef.cpp', |
|
51 | 'src/Common/VisualizationDef.cpp', | |
50 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', |
|
52 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', | |
51 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', |
|
53 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', | |
52 | 'src/DataSource/DataSourceWidget.cpp', |
|
54 | 'src/DataSource/DataSourceWidget.cpp', | |
53 | 'src/DataSource/DataSourceTreeWidget.cpp', |
|
55 | 'src/DataSource/DataSourceTreeWidget.cpp', | |
54 | 'src/Settings/SqpSettingsDialog.cpp', |
|
56 | 'src/Settings/SqpSettingsDialog.cpp', | |
55 | 'src/Settings/SqpSettingsGeneralWidget.cpp', |
|
57 | 'src/Settings/SqpSettingsGeneralWidget.cpp', | |
56 | 'src/SidePane/SqpSidePane.cpp', |
|
58 | 'src/SidePane/SqpSidePane.cpp', | |
57 | 'src/TimeWidget/TimeWidget.cpp', |
|
59 | 'src/TimeWidget/TimeWidget.cpp', | |
58 | 'src/Variable/VariableInspectorWidget.cpp', |
|
60 | 'src/Variable/VariableInspectorWidget.cpp', | |
59 | 'src/Variable/VariableInspectorTableView.cpp', |
|
61 | 'src/Variable/VariableInspectorTableView.cpp', | |
60 | 'src/Variable/VariableMenuHeaderWidget.cpp', |
|
62 | 'src/Variable/VariableMenuHeaderWidget.cpp', | |
61 | 'src/Variable/RenameVariableDialog.cpp', |
|
63 | 'src/Variable/RenameVariableDialog.cpp', | |
62 | 'src/Visualization/VisualizationGraphHelper.cpp', |
|
64 | 'src/Visualization/VisualizationGraphHelper.cpp', | |
63 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', |
|
65 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', | |
64 | 'src/Visualization/VisualizationGraphWidget.cpp', |
|
66 | 'src/Visualization/VisualizationGraphWidget.cpp', | |
65 | 'src/Visualization/VisualizationTabWidget.cpp', |
|
67 | 'src/Visualization/VisualizationTabWidget.cpp', | |
66 | 'src/Visualization/VisualizationWidget.cpp', |
|
68 | 'src/Visualization/VisualizationWidget.cpp', | |
67 | 'src/Visualization/VisualizationZoneWidget.cpp', |
|
69 | 'src/Visualization/VisualizationZoneWidget.cpp', | |
68 | 'src/Visualization/qcustomplot.cpp', |
|
70 | 'src/Visualization/qcustomplot.cpp', | |
69 | 'src/Visualization/QCustomPlotSynchronizer.cpp', |
|
71 | 'src/Visualization/QCustomPlotSynchronizer.cpp', | |
70 | 'src/Visualization/operations/FindVariableOperation.cpp', |
|
72 | 'src/Visualization/operations/FindVariableOperation.cpp', | |
71 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', |
|
73 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', | |
72 | 'src/Visualization/operations/MenuBuilder.cpp', |
|
74 | 'src/Visualization/operations/MenuBuilder.cpp', | |
73 | 'src/Visualization/operations/RemoveVariableOperation.cpp', |
|
75 | 'src/Visualization/operations/RemoveVariableOperation.cpp', | |
74 | 'src/Visualization/operations/RescaleAxeOperation.cpp', |
|
76 | 'src/Visualization/operations/RescaleAxeOperation.cpp', | |
75 | 'src/Visualization/VisualizationDragDropContainer.cpp', |
|
77 | 'src/Visualization/VisualizationDragDropContainer.cpp', | |
76 | 'src/Visualization/VisualizationDragWidget.cpp', |
|
78 | 'src/Visualization/VisualizationDragWidget.cpp', | |
77 | 'src/Visualization/AxisRenderingUtils.cpp', |
|
79 | 'src/Visualization/AxisRenderingUtils.cpp', | |
78 | 'src/Visualization/PlottablesRenderingUtils.cpp', |
|
80 | 'src/Visualization/PlottablesRenderingUtils.cpp', | |
79 | 'src/Visualization/MacScrollBarStyle.cpp', |
|
81 | 'src/Visualization/MacScrollBarStyle.cpp', | |
80 | 'src/Visualization/VisualizationCursorItem.cpp' |
|
82 | 'src/Visualization/VisualizationCursorItem.cpp', | |
|
83 | 'src/Visualization/ColorScaleWidget.cpp' | |||
81 | ] |
|
84 | ] | |
82 |
|
85 | |||
83 | gui_inc = include_directories(['include']) |
|
86 | gui_inc = include_directories(['include']) | |
84 |
|
87 | |||
85 | sciqlop_gui_lib = library('sciqlopgui', |
|
88 | sciqlop_gui_lib = library('sciqlopgui', | |
86 | gui_sources, |
|
89 | gui_sources, | |
87 | gui_moc_files, |
|
90 | gui_moc_files, | |
88 | include_directories : [gui_inc], |
|
91 | include_directories : [gui_inc], | |
89 | dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core], |
|
92 | dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core], | |
90 | install : true |
|
93 | install : true | |
91 | ) |
|
94 | ) | |
92 |
|
95 | |||
93 | sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib, |
|
96 | sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib, | |
94 | include_directories : gui_inc, |
|
97 | include_directories : gui_inc, | |
95 | dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core]) |
|
98 | dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core]) | |
96 |
|
99 |
General Comments 0
You need to be logged in to leave comments.
Login now