Files
Upsilon/apps/graph/app.cpp
Émilie Feral cc297374ba [escher] handle syntax error by making some apps text field delegate
Change-Id: I790148c321a5a2944b96cc283491a29260b2ed38
2016-11-04 16:17:30 +01:00

30 lines
1.0 KiB
C++

#include "app.h"
#include "graph_icon.h"
namespace Graph {
App::App(::Context * context) :
::App(&m_inputViewController, "Graph", ImageStore::GraphIcon),
m_functionStore(FunctionStore()),
m_globalContext(context),
m_evaluateContext(EvaluateContext(context)),
m_listController(ListController(nullptr, &m_functionStore)),
m_listStackViewController(StackViewController(&m_tabViewController, &m_listController)),
m_graphController(GraphController(nullptr, &m_functionStore, &m_evaluateContext)),
m_valuesController(nullptr, &m_functionStore, &m_evaluateContext),
m_valuesStackViewController(StackViewController(&m_tabViewController, &m_valuesController)),
m_tabViewController(&m_inputViewController, &m_listStackViewController, &m_graphController, &m_valuesStackViewController),
m_inputViewController(&m_modalViewController, &m_tabViewController, this)
{
}
InputViewController * App::inputViewController() {
return &m_inputViewController;
}
Context * App::globalContext() {
return m_globalContext;
}
}