Files
Upsilon/apps/graph/graph_app.cpp
Émilie Feral 496a10aebd [Graph/List] Add a stack controller to handle the parameter page
Change-Id: I7d3f916b2f2ae981bc8cd16b70e6e841e687f2e7
2016-09-15 11:04:17 +02:00

20 lines
648 B
C++

#include "graph_app.h"
GraphApp::GraphApp() :
App(),
m_functionStore(Graph::FunctionStore()),
m_listController(ListController(nullptr, &m_functionStore)),
m_listStackViewController(StackViewController(&m_tabViewController, &m_listController)),
m_graphController(GraphController(nullptr, &m_functionStore)),
m_tabViewController(this, &m_listStackViewController, &m_graphController)
{
m_functionStore.pushFunction("(x-1)*(x+1)*x");
m_functionStore.pushFunction("x*x");
m_functionStore.pushFunction("3");
m_functionStore.pushFunction("x*x*x");
}
ViewController * GraphApp::rootViewController() {
return &m_tabViewController;
}