[apps/regression] Display the prediction parameter page when clicking on

the regression curve

Change-Id: Iac2750ac855a285d607edeac0da5d82b4ad674a3
This commit is contained in:
Émilie Feral
2017-01-03 14:06:37 +01:00
parent 09e6e511dc
commit 07cd605234
2 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,8 @@ GraphController::GraphController(Responder * parentResponder, HeaderViewControll
CurveViewWindowWithBannerAndCursorController(parentResponder, headerViewController, data, &m_view),
m_view(GraphView(data)),
m_data(data),
m_initialisationParameterController(InitialisationParameterController(this, m_data))
m_initialisationParameterController(InitialisationParameterController(this, m_data)),
m_predictionParameterController(PredictionParameterController(this, m_data))
{
}
@@ -26,6 +27,10 @@ const char * GraphController::emptyMessage() {
}
bool GraphController::handleEnter() {
if (m_data->selectedDotIndex() == -1) {
stackController()->push(&m_predictionParameterController);
return true;
}
return false;
}