Files
Upsilon/apps/calculation/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

26 lines
741 B
C++

#include "app.h"
#include "calculation_icon.h"
namespace Calculation {
App::App(Container * container, Context * context) :
::App(container, &m_editExpressionController, "Calcul", ImageStore::CalculationIcon),
ExpressionTextFieldDelegate(),
m_globalContext(context),
m_evaluateContext(EvaluateContext(context, &m_calculationStore)),
m_calculationStore(CalculationStore()),
m_historyController(HistoryController(&m_editExpressionController, &m_calculationStore)),
m_editExpressionController(EditExpressionController(&m_modalViewController, &m_historyController, &m_calculationStore, this))
{
}
Context * App::globalContext() {
return m_globalContext;
}
Context * App::evaluateContext() {
return &m_evaluateContext;
}
}