[apps] Improvements of MVC structure regarding curve views and ranges

Change-Id: Iec8031dbf349c34c18694dffabd02ef9c88ebf2d
This commit is contained in:
Émilie Feral
2017-01-17 17:42:30 +01:00
parent 72de9990e9
commit c3008ca360
42 changed files with 343 additions and 302 deletions

View File

@@ -37,12 +37,12 @@ void GoToParameterController::setParameterAtIndex(int parameterIndex, float f) {
float y = m_store->yValueForXValue(f);
m_store->centerAxisAround(CurveViewRange::Axis::X, f);
m_store->centerAxisAround(CurveViewRange::Axis::Y, y);
m_store->moveCursorTo(f, y);
m_cursor->moveTo(f, y);
} else {
float x = m_store->xValueForYValue(f);
m_store->centerAxisAround(CurveViewRange::Axis::X, x);
m_store->centerAxisAround(CurveViewRange::Axis::Y, f);
m_store->moveCursorTo(x, f);
m_cursor->moveTo(x, f);
}
}