mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
21 lines
645 B
C++
21 lines
645 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))
|
|
{
|
|
}
|
|
|
|
Context * App::evaluateContext() {
|
|
return &m_evaluateContext;
|
|
}
|
|
|
|
}
|