##// END OF EJS Templates
Adds name to a graph...
Adds name to a graph - The name is passed as a parameter in the ctor - It is used as a title of the graph and will also be used to be displayed in menus related to a variable

File last commit:

r120:c1f92d4a498b
r196:8ddc77b998a0
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");
}