[apps/probability] Improve the law model using the evaluate context

Change-Id: I33b9c9ce0a8120ff66ea6614fa7c5ac58a59b572
This commit is contained in:
Émilie Feral
2016-12-06 11:03:37 +01:00
parent 620b64a583
commit f7eb0b97b3
6 changed files with 162 additions and 54 deletions

View File

@@ -5,14 +5,14 @@ namespace Probability {
App::App(Container * container, Context * context) :
::App(container, &m_stackViewController, "Probability", ImageStore::ProbabilityIcon),
m_context(context),
m_lawController(LawController(nullptr)),
m_evaluateContext(EvaluateContext(context)),
m_lawController(LawController(nullptr, &m_evaluateContext)),
m_stackViewController(&m_modalViewController, &m_lawController, true)
{
}
Context * App::evaluateContext() {
return m_context;
return &m_evaluateContext;
}
}