[apps/shared] Apply changes on confirm with GoTo functions

Change-Id: I6ebec412b4b6612710476274a8665375d21f9ef8
This commit is contained in:
Hugo Saint-Vignes
2020-07-27 15:35:35 +02:00
committed by LeaNumworks
parent 61792058d3
commit 5c75cc55d3
8 changed files with 58 additions and 48 deletions

View File

@@ -30,7 +30,7 @@ const char * GoToParameterController::title() {
return I18n::translate(I18n::Message::YPrediction);
}
double GoToParameterController::parameterAtIndex(int index) {
double GoToParameterController::extractParameterAtIndex(int index) {
assert(index == 0);
if (m_xPrediction) {
return m_cursor->x();
@@ -38,7 +38,7 @@ double GoToParameterController::parameterAtIndex(int index) {
return m_cursor->y();
}
bool GoToParameterController::setParameterAtIndex(int parameterIndex, double f) {
bool GoToParameterController::confirmParameterAtIndex(int parameterIndex, double f) {
assert(parameterIndex == 0);
int series = m_graphController->selectedSeriesIndex();
Poincare::Context * globContext = AppsContainer::sharedAppsContainer()->globalContext();