Files
Upsilon/apps/calculation/app.cpp
Émilie Feral 983905af59 [apps] Factorize app classes by creating a text field delegate app
Change-Id: Ic9c1ed5ba6eb620389cbe4a009f703ecbfe98c55
2016-12-19 17:30:29 +01:00

20 lines
632 B
C++

#include "app.h"
#include "calculation_icon.h"
namespace Calculation {
App::App(Container * container, Context * context) :
TextFieldDelegateApp(container, &m_editExpressionController, "Calcul", ImageStore::CalculationIcon),
m_localContext(LocalContext((GlobalContext *)context, &m_calculationStore)),
m_calculationStore(CalculationStore()),
m_historyController(HistoryController(&m_editExpressionController, &m_calculationStore)),
m_editExpressionController(EditExpressionController(&m_modalViewController, &m_historyController, &m_calculationStore))
{
}
Context * App::localContext() {
return &m_localContext;
}
}