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

File last commit:

r183:7a2695cdaeea
r184:2c59e95cf3ce
Show More
VisualizationZoneWidget.cpp
50 lines | 1.1 KiB | text/x-c | CppLexer
/ gui / src / Visualization / VisualizationZoneWidget.cpp
mv visualization -> Visualization...
r93 #include "Visualization/VisualizationZoneWidget.h"
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 #include "ui_VisualizationZoneWidget.h"
Add the visualization gui classes
r111 #include "Visualization/VisualizationGraphWidget.h"
Alexandre Leroux
Adds a name for a zone...
r183 VisualizationZoneWidget::VisualizationZoneWidget(const QString &name, QWidget *parent)
Modify construction of objects to use initializer list...
r89 : QWidget{parent}, ui{new Ui::VisualizationZoneWidget}
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 {
ui->setupUi(this);
Alexandre Leroux
Adds a name for a zone...
r183
ui->zoneNameLabel->setText(name);
Creation of VisualizationWidget, VizualizationTabWidget, VisualizationZoneWidget, VisualizationGraphWidget
r58 }
VisualizationZoneWidget::~VisualizationZoneWidget()
{
delete ui;
}
Add the visualization gui classes
r111
void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget)
{
ui->visualizationZoneFrame->layout()->addWidget(graphWidget);
}
VisualizationGraphWidget *VisualizationZoneWidget::createGraph()
{
add {} missing
r113 auto graphWidget = new VisualizationGraphWidget{this};
Add the visualization gui classes
r111 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;
}
Add const and override
r112 QString VisualizationZoneWidget::name() const
Add the visualization gui classes
r111 {
Alexandre Leroux
Adds a name for a zone...
r183 return ui->zoneNameLabel->text();
Add the visualization gui classes
r111 }