VisualizationTabWidget.cpp
49 lines
| 1.0 KiB
| text/x-c
|
CppLexer
r95 | #include "Visualization/VisualizationTabWidget.h" | |||
r58 | #include "ui_VisualizationTabWidget.h" | |||
r118 | #include "Visualization/VisualizationZoneWidget.h" | |||
r58 | VisualizationTabWidget::VisualizationTabWidget(QWidget *parent) | |||
r91 | : QWidget{parent}, ui{new Ui::VisualizationTabWidget} | |||
r58 | { | |||
ui->setupUi(this); | ||||
} | ||||
VisualizationTabWidget::~VisualizationTabWidget() | ||||
{ | ||||
delete ui; | ||||
} | ||||
r118 | ||||
void VisualizationTabWidget::addZone(VisualizationZoneWidget *zoneWidget) | ||||
{ | ||||
this->layout()->addWidget(zoneWidget); | ||||
} | ||||
VisualizationZoneWidget *VisualizationTabWidget::createZone() | ||||
{ | ||||
r120 | auto zoneWidget = new VisualizationZoneWidget{this}; | |||
r118 | this->addZone(zoneWidget); | |||
return zoneWidget; | ||||
} | ||||
void VisualizationTabWidget::removeZone(VisualizationZoneWidget *zone) | ||||
{ | ||||
} | ||||
void VisualizationTabWidget::accept(IVisualizationWidget *visitor) | ||||
{ | ||||
// TODO: manage the visitor | ||||
} | ||||
void VisualizationTabWidget::close() | ||||
{ | ||||
// The main view cannot be directly closed. | ||||
return; | ||||
} | ||||
r119 | QString VisualizationTabWidget::name() const | |||
r118 | { | |||
return QStringLiteral("MainView"); | ||||
} | ||||