##// END OF EJS Templates
Deletes close() method defined for a visualization widget...
Alexandre Leroux -
r244:419e3cbb9021
parent child
Show More
@@ -18,7 +18,6 public:
18 18
19 19 /// Initializes the plugin
20 20 virtual void accept(IVisualizationWidgetVisitor *visitor) = 0;
21 virtual void close() = 0;
22 21 virtual QString name() const = 0;
23 22 };
24 23
@@ -31,7 +31,6 public:
31 31 // IVisualizationWidget interface
32 32 void accept(IVisualizationWidgetVisitor *visitor) override;
33 33 bool canDrop(const Variable &variable) const override;
34 void close() override;
35 34 QString name() const override;
36 35
37 36 void updateDisplay(std::shared_ptr<Variable> variable);
@@ -41,7 +41,6 public:
41 41 // IVisualizationWidget interface
42 42 void accept(IVisualizationWidgetVisitor *visitor) override;
43 43 bool canDrop(const Variable &variable) const override;
44 void close() override;
45 44 QString name() const override;
46 45
47 46 private:
@@ -35,7 +35,6 public:
35 35 // IVisualizationWidget interface
36 36 void accept(IVisualizationWidgetVisitor *visitor) override;
37 37 bool canDrop(const Variable &variable) const override;
38 void close() override;
39 38 QString name() const override;
40 39
41 40 public slots:
@@ -38,7 +38,6 public:
38 38 // IVisualizationWidget interface
39 39 void accept(IVisualizationWidgetVisitor *visitor) override;
40 40 bool canDrop(const Variable &variable) const override;
41 void close() override;
42 41 QString name() const override;
43 42
44 43 private:
@@ -88,12 +88,6 bool VisualizationGraphWidget::canDrop(const Variable &variable) const
88 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 91 QString VisualizationGraphWidget::name() const
98 92 {
99 93 if (auto title = dynamic_cast<QCPTextElement *>(ui->widget->plotLayout()->elementAt(0))) {
@@ -93,12 +93,6 bool VisualizationTabWidget::canDrop(const Variable &variable) const
93 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 96 QString VisualizationTabWidget::name() const
103 97 {
104 98 return impl->m_Name;
@@ -111,12 +111,6 bool VisualizationWidget::canDrop(const Variable &variable) const
111 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 114 QString VisualizationWidget::name() const
121 115 {
122 116 return QStringLiteral("MainView");
@@ -88,12 +88,6 bool VisualizationZoneWidget::canDrop(const Variable &variable) const
88 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 91 QString VisualizationZoneWidget::name() const
98 92 {
99 93 return ui->zoneNameLabel->text();
General Comments 0
You need to be logged in to leave comments. Login now