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