##// END OF EJS Templates
Removes VisualizationController::onVariableCreated() slot...
Removes VisualizationController::onVariableCreated() slot The slot is replaced by a signal that only propagates the VariableController signal. This new signal will be intercepted by the VisualizationWidget to create a new graph from the created variable

File last commit:

r120:c1f92d4a498b
r174:992eeb099247
Show More
VisualizationTabWidget.cpp
49 lines | 1.0 KiB | text/x-c | CppLexer
/ gui / src / Visualization / VisualizationTabWidget.cpp
#include "Visualization/VisualizationTabWidget.h"
#include "ui_VisualizationTabWidget.h"
#include "Visualization/VisualizationZoneWidget.h"
VisualizationTabWidget::VisualizationTabWidget(QWidget *parent)
: QWidget{parent}, ui{new Ui::VisualizationTabWidget}
{
ui->setupUi(this);
}
VisualizationTabWidget::~VisualizationTabWidget()
{
delete ui;
}
void VisualizationTabWidget::addZone(VisualizationZoneWidget *zoneWidget)
{
this->layout()->addWidget(zoneWidget);
}
VisualizationZoneWidget *VisualizationTabWidget::createZone()
{
auto zoneWidget = new VisualizationZoneWidget{this};
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;
}
QString VisualizationTabWidget::name() const
{
return QStringLiteral("MainView");
}