Files
Upsilon/apps/calculation/app.cpp
Émilie Feral 6c80ec0480 [apps] Rule of 5
Change-Id: Ib7b3fec6dbe3f9629e07464695ddd3b5611d8f83
2017-05-09 11:53:24 +02:00

24 lines
735 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(LocalContext((GlobalContext *)context, &m_calculationStore)),
m_calculationStore(),
m_historyController(HistoryController(&m_editExpressionController, &m_calculationStore)),
m_editExpressionController(EditExpressionController(&m_modalViewController, &m_historyController, &m_calculationStore))
{
}
Context * App::localContext() {
return &m_localContext;
}
}