Files
Upsilon/apps/regression/graph_controller.cpp
Émilie Feral 4c5016006a [apps/regression] display the initialisation parameter page when
clicking on the right button

Change-Id: I7bf5c9752ab5e63a1be96d5993d305ba86b87a72
2017-01-09 15:08:55 +01:00

33 lines
792 B
C++

#include "graph_controller.h"
namespace Regression {
GraphController::GraphController(Responder * parentResponder, HeaderViewController * headerViewController, Data * data) :
CurveViewWindowWithBannerAndCursorController(parentResponder, headerViewController, data, &m_view),
m_view(GraphView(data)),
m_data(data),
m_initialisationParameterController(InitialisationParameterController(this, m_data))
{
}
ViewController * GraphController::initialisationParameterController() {
return &m_initialisationParameterController;
}
bool GraphController::isEmpty() {
if (m_data->numberOfPairs() == 0) {
return true;
}
return false;
}
const char * GraphController::emptyMessage() {
return "Aucune donnee a tracer";
}
bool GraphController::handleEnter() {
return false;
}
}