Files
Upsilon/apps/calculation/app.cpp
Émilie Feral af6a1c7046 [apps] add a method to get the global context in appsContainer
Change-Id: I4b7a4c1c64ae21c7e4f0193b3314d96cef805cbb
2016-11-10 17:26:07 +01:00

21 lines
651 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_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::evaluateContext() {
return &m_evaluateContext;
}
}