Files
Upsilon/apps/graph/graph/graph_controller.cpp
Romain Goyet 8f9d9d0b0b [escher] focus -> firstResponder
Change-Id: I2e84afe6f14abfc65e45814300e8db9703840337
2016-09-15 16:21:29 +02:00

26 lines
540 B
C++

#include "graph_controller.h"
GraphController::GraphController(Responder * parentResponder, Graph::FunctionStore * functionStore) :
ViewController(parentResponder),
m_view(GraphView(functionStore))
{
}
View * GraphController::view() {
return &m_view;
}
const char * GraphController::title() const {
return "Graphique";
}
bool GraphController::handleEvent(Ion::Events::Event event) {
switch (event) {
case Ion::Events::Event::ENTER:
m_view.moveCursorRight();
return true;
default:
return false;
}
}