##// 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
mv visualization -> Visualization...
r93 #include "Visualization/VisualizationTabWidget.h"
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #include "ui_VisualizationTabWidget.h"
Add the visualization gui classes
r111 #include "Visualization/VisualizationZoneWidget.h"
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 VisualizationTabWidget::VisualizationTabWidget(QWidget *parent)
Modify construction of objects to use initializer list...
r89 : QWidget{parent}, ui{new Ui::VisualizationTabWidget}
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 {
ui->setupUi(this);
}
VisualizationTabWidget::~VisualizationTabWidget()
{
delete ui;
}
Add the visualization gui classes
r111
void VisualizationTabWidget::addZone(VisualizationZoneWidget *zoneWidget)
{
this->layout()->addWidget(zoneWidget);
}
VisualizationZoneWidget *VisualizationTabWidget::createZone()
{
add {} missing
r113 auto zoneWidget = new VisualizationZoneWidget{this};
Add the visualization gui classes
r111 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;
}
Add const and override
r112 QString VisualizationTabWidget::name() const
Add the visualization gui classes
r111 {
return QStringLiteral("MainView");
}