Files
Upsilon/apps/regression/graph_controller.cpp
Émilie Feral 23f2ddaced [apps] Factorize the graph view controller of regression and graph apps
Change-Id: Ib586376c3afc0738ea39dd86fb693ec08811281e
2017-01-09 15:08:55 +01:00

32 lines
696 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)
{
}
ViewController * GraphController::initialisationParameterController() {
return &m_windowParameterController;
}
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;
}
}