Files
Upsilon/apps/graph/app.cpp
Émilie Feral 30f37213d1 [escher][apps] add pointer to the container from the app and a method to
access the toolbox from the container

Change-Id: I89eb598b4a7d317d70d5a1f13b79422d35438d68
2016-11-10 10:55:15 +01:00

35 lines
1.1 KiB
C++

#include "app.h"
#include "graph_icon.h"
namespace Graph {
App::App(Container * container, Context * context) :
::App(container, &m_inputViewController, "Graph", ImageStore::GraphIcon),
ExpressionTextFieldDelegate(),
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_valuesController(nullptr, &m_functionStore),
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;
}
Context * App::evaluateContext() {
return &m_evaluateContext;
}
}