Files
Upsilon/apps/calculation/app.cpp
Émilie Feral 96733dbbdc [apps] Rule of 5 (3)
Change-Id: Ia85b23a09e9debd62b4f3590463a4f16454ef4b7
2017-05-09 14:33:53 +02:00

24 lines
676 B
C++

#include "app.h"
#include "calculation_icon.h"
#include "../i18n.h"
using namespace Poincare;
using namespace Shared;
namespace Calculation {
App::App(Container * container, Context * context) :
TextFieldDelegateApp(container, &m_editExpressionController, I18n::Message::CalculApp, I18n::Message::CalculAppCapital, ImageStore::CalculationIcon),
m_localContext((GlobalContext *)context, &m_calculationStore),
m_calculationStore(),
m_historyController(&m_editExpressionController, &m_calculationStore),
m_editExpressionController(&m_modalViewController, &m_historyController, &m_calculationStore)
{
}
Context * App::localContext() {
return &m_localContext;
}
}