mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
34 lines
662 B
C++
34 lines
662 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";
|
|
}
|
|
|
|
void GraphController::setFocused(bool focused) {
|
|
/*
|
|
if (focused) {
|
|
App::runningApp()->focus(&m_view);
|
|
}
|
|
*/
|
|
}
|
|
|
|
bool GraphController::handleEvent(Ion::Events::Event event) {
|
|
switch (event) {
|
|
case Ion::Events::Event::ENTER:
|
|
m_view.moveCursorRight();
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|