VisualizationZoneWidget.cpp
48 lines
| 1.1 KiB
| text/x-c
|
CppLexer
r95 | #include "Visualization/VisualizationZoneWidget.h" | |||
r58 | #include "ui_VisualizationZoneWidget.h" | |||
r118 | #include "Visualization/VisualizationGraphWidget.h" | |||
r58 | VisualizationZoneWidget::VisualizationZoneWidget(QWidget *parent) | |||
r91 | : QWidget{parent}, ui{new Ui::VisualizationZoneWidget} | |||
r58 | { | |||
ui->setupUi(this); | ||||
} | ||||
VisualizationZoneWidget::~VisualizationZoneWidget() | ||||
{ | ||||
delete ui; | ||||
} | ||||
r118 | ||||
void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget) | ||||
{ | ||||
ui->visualizationZoneFrame->layout()->addWidget(graphWidget); | ||||
} | ||||
VisualizationGraphWidget *VisualizationZoneWidget::createGraph() | ||||
{ | ||||
r120 | auto graphWidget = new VisualizationGraphWidget{this}; | |||
r118 | this->addGraph(graphWidget); | |||
return graphWidget; | ||||
} | ||||
void VisualizationZoneWidget::removeGraph(VisualizationGraphWidget *graph) | ||||
{ | ||||
} | ||||
void VisualizationZoneWidget::accept(IVisualizationWidget *visitor) | ||||
{ | ||||
// TODO: manage the visitor | ||||
} | ||||
void VisualizationZoneWidget::close() | ||||
{ | ||||
// The main view cannot be directly closed. | ||||
return; | ||||
} | ||||
r119 | QString VisualizationZoneWidget::name() const | |||
r118 | { | |||
return QStringLiteral("MainView"); | ||||
} | ||||