##// END OF EJS Templates
Adds a name for a zone...
Adds a name for a zone - The name is displayed in a new information bar of the zone - It will also be used to be displayed in menus related to a variable

File last commit:

r113:c1f92d4a498b
r183:7a2695cdaeea
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");
}