@@ -1,49 +1,50 | |||||
1 | #ifndef SCIQLOP_VISUALIZATIONTABWIDGET_H |
|
1 | #ifndef SCIQLOP_VISUALIZATIONTABWIDGET_H | |
2 | #define SCIQLOP_VISUALIZATIONTABWIDGET_H |
|
2 | #define SCIQLOP_VISUALIZATIONTABWIDGET_H | |
3 |
|
3 | |||
4 | #include "Visualization/IVisualizationWidget.h" |
|
4 | #include "Visualization/IVisualizationWidget.h" | |
5 |
|
5 | |||
6 | #include <Common/spimpl.h> |
|
6 | #include <Common/spimpl.h> | |
7 |
|
7 | |||
8 | #include <QWidget> |
|
8 | #include <QWidget> | |
9 |
|
9 | |||
|
10 | class Variable; | |||
10 | class VisualizationZoneWidget; |
|
11 | class VisualizationZoneWidget; | |
11 |
|
12 | |||
12 | namespace Ui { |
|
13 | namespace Ui { | |
13 | class VisualizationTabWidget; |
|
14 | class VisualizationTabWidget; | |
14 | } // namespace Ui |
|
15 | } // namespace Ui | |
15 |
|
16 | |||
16 | class VisualizationTabWidget : public QWidget, public IVisualizationWidget { |
|
17 | class VisualizationTabWidget : public QWidget, public IVisualizationWidget { | |
17 | Q_OBJECT |
|
18 | Q_OBJECT | |
18 |
|
19 | |||
19 | public: |
|
20 | public: | |
20 | explicit VisualizationTabWidget(const QString &name = {}, QWidget *parent = 0); |
|
21 | explicit VisualizationTabWidget(const QString &name = {}, QWidget *parent = 0); | |
21 | virtual ~VisualizationTabWidget(); |
|
22 | virtual ~VisualizationTabWidget(); | |
22 |
|
23 | |||
23 | /// Add a zone widget |
|
24 | /// Add a zone widget | |
24 | void addZone(VisualizationZoneWidget *zoneWidget); |
|
25 | void addZone(VisualizationZoneWidget *zoneWidget); | |
25 |
|
26 | |||
26 | /** |
|
27 | /** | |
27 | * Creates a zone using a variable. The variable will be displayed in a new graph of the new |
|
28 | * Creates a zone using a variable. The variable will be displayed in a new graph of the new | |
28 | * zone. |
|
29 | * zone. | |
29 | * @param variable the variable for which to create the zone |
|
30 | * @param variable the variable for which to create the zone | |
30 | * @return the pointer to the created zone |
|
31 | * @return the pointer to the created zone | |
31 | */ |
|
32 | */ | |
32 | VisualizationZoneWidget *createZone(std::shared_ptr<Variable> variable); |
|
33 | VisualizationZoneWidget *createZone(std::shared_ptr<Variable> variable); | |
33 |
|
34 | |||
34 | /// Remove a zone |
|
35 | /// Remove a zone | |
35 | void removeZone(VisualizationZoneWidget *zone); |
|
36 | void removeZone(VisualizationZoneWidget *zone); | |
36 |
|
37 | |||
37 | // IVisualizationWidget interface |
|
38 | // IVisualizationWidget interface | |
38 | void accept(IVisualizationWidget *visitor) override; |
|
39 | void accept(IVisualizationWidget *visitor) override; | |
39 | void close() override; |
|
40 | void close() override; | |
40 | QString name() const override; |
|
41 | QString name() const override; | |
41 |
|
42 | |||
42 | private: |
|
43 | private: | |
43 | Ui::VisualizationTabWidget *ui; |
|
44 | Ui::VisualizationTabWidget *ui; | |
44 |
|
45 | |||
45 | class VisualizationTabWidgetPrivate; |
|
46 | class VisualizationTabWidgetPrivate; | |
46 | spimpl::unique_impl_ptr<VisualizationTabWidgetPrivate> impl; |
|
47 | spimpl::unique_impl_ptr<VisualizationTabWidgetPrivate> impl; | |
47 | }; |
|
48 | }; | |
48 |
|
49 | |||
49 | #endif // SCIQLOP_VISUALIZATIONTABWIDGET_H |
|
50 | #endif // SCIQLOP_VISUALIZATIONTABWIDGET_H |
@@ -1,43 +1,44 | |||||
1 | #ifndef SCIQLOP_VISUALIZATIONZONEWIDGET_H |
|
1 | #ifndef SCIQLOP_VISUALIZATIONZONEWIDGET_H | |
2 | #define SCIQLOP_VISUALIZATIONZONEWIDGET_H |
|
2 | #define SCIQLOP_VISUALIZATIONZONEWIDGET_H | |
3 |
|
3 | |||
4 | #include "Visualization/IVisualizationWidget.h" |
|
4 | #include "Visualization/IVisualizationWidget.h" | |
5 |
|
5 | |||
6 | #include <QWidget> |
|
6 | #include <QWidget> | |
7 |
|
7 | |||
8 | namespace Ui { |
|
8 | namespace Ui { | |
9 | class VisualizationZoneWidget; |
|
9 | class VisualizationZoneWidget; | |
10 | } // Ui |
|
10 | } // Ui | |
11 |
|
11 | |||
|
12 | class Variable; | |||
12 | class VisualizationGraphWidget; |
|
13 | class VisualizationGraphWidget; | |
13 |
|
14 | |||
14 | class VisualizationZoneWidget : public QWidget, public IVisualizationWidget { |
|
15 | class VisualizationZoneWidget : public QWidget, public IVisualizationWidget { | |
15 | Q_OBJECT |
|
16 | Q_OBJECT | |
16 |
|
17 | |||
17 | public: |
|
18 | public: | |
18 | explicit VisualizationZoneWidget(const QString &name = {}, QWidget *parent = 0); |
|
19 | explicit VisualizationZoneWidget(const QString &name = {}, QWidget *parent = 0); | |
19 | virtual ~VisualizationZoneWidget(); |
|
20 | virtual ~VisualizationZoneWidget(); | |
20 |
|
21 | |||
21 | /// Add a graph widget |
|
22 | /// Add a graph widget | |
22 | void addGraph(VisualizationGraphWidget *graphWidget); |
|
23 | void addGraph(VisualizationGraphWidget *graphWidget); | |
23 |
|
24 | |||
24 | /** |
|
25 | /** | |
25 | * Creates a graph using a variable. The variable will be displayed in the new graph. |
|
26 | * Creates a graph using a variable. The variable will be displayed in the new graph. | |
26 | * @param variable the variable for which to create the graph |
|
27 | * @param variable the variable for which to create the graph | |
27 | * @return the pointer to the created graph |
|
28 | * @return the pointer to the created graph | |
28 | */ |
|
29 | */ | |
29 | VisualizationGraphWidget *createGraph(std::shared_ptr<Variable> variable); |
|
30 | VisualizationGraphWidget *createGraph(std::shared_ptr<Variable> variable); | |
30 |
|
31 | |||
31 | /// Remove a graph |
|
32 | /// Remove a graph | |
32 | void removeGraph(VisualizationGraphWidget *graph); |
|
33 | void removeGraph(VisualizationGraphWidget *graph); | |
33 |
|
34 | |||
34 | // IVisualizationWidget interface |
|
35 | // IVisualizationWidget interface | |
35 | void accept(IVisualizationWidget *visitor) override; |
|
36 | void accept(IVisualizationWidget *visitor) override; | |
36 | void close() override; |
|
37 | void close() override; | |
37 | QString name() const override; |
|
38 | QString name() const override; | |
38 |
|
39 | |||
39 | private: |
|
40 | private: | |
40 | Ui::VisualizationZoneWidget *ui; |
|
41 | Ui::VisualizationZoneWidget *ui; | |
41 | }; |
|
42 | }; | |
42 |
|
43 | |||
43 | #endif // SCIQLOP_VISUALIZATIONZONEWIDGET_H |
|
44 | #endif // SCIQLOP_VISUALIZATIONZONEWIDGET_H |
@@ -1,11 +1,13 | |||||
1 | \.h:\d+:.IPSIS_S04.*found: ui |
|
1 | \.h:\d+:.IPSIS_S04.*found: ui | |
2 | qcustomplot\.h:\d+:.IPSIS |
|
2 | qcustomplot\.h:\d+:.IPSIS | |
3 | qcustomplot\.cpp:\d+:.IPSIS |
|
3 | qcustomplot\.cpp:\d+:.IPSIS | |
4 |
|
4 | |||
5 | # Ignore false positive relative to App macro |
|
5 | # Ignore false positive relative to App macro | |
6 | SqpApplication\.h:\d+:.IPSIS_S03.*found: sqpApp |
|
6 | SqpApplication\.h:\d+:.IPSIS_S03.*found: sqpApp | |
7 | SqpApplication\.h:\d+:.IPSIS_S04_VARIABLE.*found: sqpApp |
|
7 | SqpApplication\.h:\d+:.IPSIS_S04_VARIABLE.*found: sqpApp | |
8 |
|
8 | |||
9 | # Ignore false positive relative to unnamed namespace |
|
9 | # Ignore false positive relative to unnamed namespace | |
10 | DataSourceTreeWidgetItem\.cpp:\d+:.*IPSIS_F13.* |
|
10 | DataSourceTreeWidgetItem\.cpp:\d+:.*IPSIS_F13.* | |
|
11 | VisualizationTabWidget\.cpp:\d+:.*IPSIS_F13.* | |||
|
12 | VisualizationZoneWidget\.cpp:\d+:.*IPSIS_F13.* | |||
11 |
|
13 |
General Comments 0
You need to be logged in to leave comments.
Login now