##// END OF EJS Templates
Replaces QString unit by a new struct...
Replaces QString unit by a new struct The Unit struct contains a flag that indicates if it's a time unit or not. It will be used to set the correct ticker for axes on a graph (default ticker or datetime ticker)

File last commit:

r120:c1f92d4a498b
r177:4c64b786fec1
Show More
VisualizationZoneWidget.cpp
48 lines | 1.1 KiB | text/x-c | CppLexer
/ gui / src / Visualization / VisualizationZoneWidget.cpp
#include "Visualization/VisualizationZoneWidget.h"
#include "ui_VisualizationZoneWidget.h"
#include "Visualization/VisualizationGraphWidget.h"
VisualizationZoneWidget::VisualizationZoneWidget(QWidget *parent)
: QWidget{parent}, ui{new Ui::VisualizationZoneWidget}
{
ui->setupUi(this);
}
VisualizationZoneWidget::~VisualizationZoneWidget()
{
delete ui;
}
void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget)
{
ui->visualizationZoneFrame->layout()->addWidget(graphWidget);
}
VisualizationGraphWidget *VisualizationZoneWidget::createGraph()
{
auto graphWidget = new VisualizationGraphWidget{this};
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;
}
QString VisualizationZoneWidget::name() const
{
return QStringLiteral("MainView");
}