[apps] Graph: create a RootGraphController

This commit is contained in:
Émilie Feral
2018-01-19 17:19:45 +01:00
committed by EmilieNumworks
parent d1840dfe17
commit 37c3f6189d
5 changed files with 49 additions and 1 deletions

View File

@@ -15,7 +15,8 @@ CalculationParameterController::CalculationParameterController(Responder * paren
m_tangentGraphController(nullptr, graphView, bannerView, range, cursor),
m_integralGraphController(nullptr, graphView, range, cursor),
m_minimumGraphController(nullptr, graphView, bannerView, range, cursor),
m_maximumGraphController(nullptr, graphView, bannerView, range, cursor)
m_maximumGraphController(nullptr, graphView, bannerView, range, cursor),
m_rootGraphController(nullptr, graphView, bannerView, range, cursor)
{
}
@@ -44,6 +45,10 @@ bool CalculationParameterController::handleEvent(Ion::Events::Event event) {
m_minimumGraphController.setFunction(m_function);
controller = &m_minimumGraphController;
break;
case 3:
m_rootGraphController.setFunction(m_function);
controller = &m_rootGraphController;
break;
case 4:
m_tangentGraphController.setFunction(m_function);
controller = &m_tangentGraphController;