@@ -18,7 +18,6 public: | |||||
18 |
|
18 | |||
19 | /// Initializes the plugin |
|
19 | /// Initializes the plugin | |
20 | virtual void accept(IVisualizationWidgetVisitor *visitor) = 0; |
|
20 | virtual void accept(IVisualizationWidgetVisitor *visitor) = 0; | |
21 | virtual void close() = 0; |
|
|||
22 | virtual QString name() const = 0; |
|
21 | virtual QString name() const = 0; | |
23 | }; |
|
22 | }; | |
24 |
|
23 |
@@ -31,7 +31,6 public: | |||||
31 | // IVisualizationWidget interface |
|
31 | // IVisualizationWidget interface | |
32 | void accept(IVisualizationWidgetVisitor *visitor) override; |
|
32 | void accept(IVisualizationWidgetVisitor *visitor) override; | |
33 | bool canDrop(const Variable &variable) const override; |
|
33 | bool canDrop(const Variable &variable) const override; | |
34 | void close() override; |
|
|||
35 | QString name() const override; |
|
34 | QString name() const override; | |
36 |
|
35 | |||
37 | void updateDisplay(std::shared_ptr<Variable> variable); |
|
36 | void updateDisplay(std::shared_ptr<Variable> variable); |
@@ -41,7 +41,6 public: | |||||
41 | // IVisualizationWidget interface |
|
41 | // IVisualizationWidget interface | |
42 | void accept(IVisualizationWidgetVisitor *visitor) override; |
|
42 | void accept(IVisualizationWidgetVisitor *visitor) override; | |
43 | bool canDrop(const Variable &variable) const override; |
|
43 | bool canDrop(const Variable &variable) const override; | |
44 | void close() override; |
|
|||
45 | QString name() const override; |
|
44 | QString name() const override; | |
46 |
|
45 | |||
47 | private: |
|
46 | private: |
@@ -35,7 +35,6 public: | |||||
35 | // IVisualizationWidget interface |
|
35 | // IVisualizationWidget interface | |
36 | void accept(IVisualizationWidgetVisitor *visitor) override; |
|
36 | void accept(IVisualizationWidgetVisitor *visitor) override; | |
37 | bool canDrop(const Variable &variable) const override; |
|
37 | bool canDrop(const Variable &variable) const override; | |
38 | void close() override; |
|
|||
39 | QString name() const override; |
|
38 | QString name() const override; | |
40 |
|
39 | |||
41 | public slots: |
|
40 | public slots: |
@@ -38,7 +38,6 public: | |||||
38 | // IVisualizationWidget interface |
|
38 | // IVisualizationWidget interface | |
39 | void accept(IVisualizationWidgetVisitor *visitor) override; |
|
39 | void accept(IVisualizationWidgetVisitor *visitor) override; | |
40 | bool canDrop(const Variable &variable) const override; |
|
40 | bool canDrop(const Variable &variable) const override; | |
41 | void close() override; |
|
|||
42 | QString name() const override; |
|
41 | QString name() const override; | |
43 |
|
42 | |||
44 | private: |
|
43 | private: |
@@ -88,12 +88,6 bool VisualizationGraphWidget::canDrop(const Variable &variable) const | |||||
88 | return true; |
|
88 | return true; | |
89 | } |
|
89 | } | |
90 |
|
90 | |||
91 | void VisualizationGraphWidget::close() |
|
|||
92 | { |
|
|||
93 | // The main view cannot be directly closed. |
|
|||
94 | return; |
|
|||
95 | } |
|
|||
96 |
|
||||
97 | QString VisualizationGraphWidget::name() const |
|
91 | QString VisualizationGraphWidget::name() const | |
98 | { |
|
92 | { | |
99 | if (auto title = dynamic_cast<QCPTextElement *>(ui->widget->plotLayout()->elementAt(0))) { |
|
93 | if (auto title = dynamic_cast<QCPTextElement *>(ui->widget->plotLayout()->elementAt(0))) { |
@@ -93,12 +93,6 bool VisualizationTabWidget::canDrop(const Variable &variable) const | |||||
93 | return true; |
|
93 | return true; | |
94 | } |
|
94 | } | |
95 |
|
95 | |||
96 | void VisualizationTabWidget::close() |
|
|||
97 | { |
|
|||
98 | // The main view cannot be directly closed. |
|
|||
99 | return; |
|
|||
100 | } |
|
|||
101 |
|
||||
102 | QString VisualizationTabWidget::name() const |
|
96 | QString VisualizationTabWidget::name() const | |
103 | { |
|
97 | { | |
104 | return impl->m_Name; |
|
98 | return impl->m_Name; |
@@ -111,12 +111,6 bool VisualizationWidget::canDrop(const Variable &variable) const | |||||
111 | return false; |
|
111 | return false; | |
112 | } |
|
112 | } | |
113 |
|
113 | |||
114 | void VisualizationWidget::close() |
|
|||
115 | { |
|
|||
116 | // The main view cannot be directly closed. |
|
|||
117 | return; |
|
|||
118 | } |
|
|||
119 |
|
||||
120 | QString VisualizationWidget::name() const |
|
114 | QString VisualizationWidget::name() const | |
121 | { |
|
115 | { | |
122 | return QStringLiteral("MainView"); |
|
116 | return QStringLiteral("MainView"); |
@@ -88,12 +88,6 bool VisualizationZoneWidget::canDrop(const Variable &variable) const | |||||
88 | return true; |
|
88 | return true; | |
89 | } |
|
89 | } | |
90 |
|
90 | |||
91 | void VisualizationZoneWidget::close() |
|
|||
92 | { |
|
|||
93 | // The main view cannot be directly closed. |
|
|||
94 | return; |
|
|||
95 | } |
|
|||
96 |
|
||||
97 | QString VisualizationZoneWidget::name() const |
|
91 | QString VisualizationZoneWidget::name() const | |
98 | { |
|
92 | { | |
99 | return ui->zoneNameLabel->text(); |
|
93 | return ui->zoneNameLabel->text(); |
General Comments 0
You need to be logged in to leave comments.
Login now