mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
24 lines
753 B
C++
24 lines
753 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(CalculationStore()),
|
|
m_historyController(HistoryController(&m_editExpressionController, &m_calculationStore)),
|
|
m_editExpressionController(EditExpressionController(&m_modalViewController, &m_historyController, &m_calculationStore))
|
|
{
|
|
}
|
|
|
|
Context * App::localContext() {
|
|
return &m_localContext;
|
|
}
|
|
|
|
}
|