##// END OF EJS Templates
Factorisation of the lambda connected to the side pane button
Factorisation of the lambda connected to the side pane button

File last commit:

r120:c1f92d4a498b
r138:8776db221f5e
Show More
VisualizationZoneWidget.cpp
48 lines | 1.1 KiB | text/x-c | CppLexer
/ gui / src / Visualization / VisualizationZoneWidget.cpp
#include "Visualization/VisualizationZoneWidget.h"
#include "ui_VisualizationZoneWidget.h"
#include "Visualization/VisualizationGraphWidget.h"
VisualizationZoneWidget::VisualizationZoneWidget(QWidget *parent)
: QWidget{parent}, ui{new Ui::VisualizationZoneWidget}
{
ui->setupUi(this);
}
VisualizationZoneWidget::~VisualizationZoneWidget()
{
delete ui;
}
void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget)
{
ui->visualizationZoneFrame->layout()->addWidget(graphWidget);
}
VisualizationGraphWidget *VisualizationZoneWidget::createGraph()
{
auto graphWidget = new VisualizationGraphWidget{this};
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;
}
QString VisualizationZoneWidget::name() const
{
return QStringLiteral("MainView");
}