##// END OF EJS Templates
add TimeWidget connection
add TimeWidget connection

File last commit:

r120:c1f92d4a498b
r192:274725519804
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");
}