Files
Upsilon/apps/graph/graph/graph_controller.cpp
Romain Goyet fa8e23c9a7 Graph: Use longer text
Change-Id: I9057acfe6e4467aac2763d4d9f3ed4649d981121
2016-06-21 11:45:28 +02:00

34 lines
542 B
C++

#include "graph_controller.h"
GraphController::GraphController() :
ViewController(),
m_view(GraphView())
{
}
View * GraphController::view() {
return &m_view;
}
const char * GraphController::title() const {
return "Graphique";
}
void GraphController::setFocused(bool focused) {
/*
if (focused) {
App::runningApp()->focus(&m_view);
}
*/
}
bool GraphController::handleEvent(ion_event_t event) {
switch (event) {
case ENTER:
m_view.moveCursorRight();
return true;
default:
return false;
}
}