[shared] Factorize GraphController::initCursorParameters of Graph and

Sequence
This commit is contained in:
Émilie Feral
2018-07-06 13:46:12 +02:00
committed by EmilieNumworks
parent 9dc775295b
commit 66d920a280
6 changed files with 24 additions and 29 deletions

View File

@@ -26,6 +26,7 @@ protected:
return *m_indexFunctionSelectedByCursor;
}
virtual void selectFunctionWithCursor(int functionIndex);
virtual double defaultCursorAbscissa();
private:
/* When y auto is ticked, we use a display margin to be ensure that the user
* can move the cursor along the curve without panning the window */
@@ -36,6 +37,7 @@ private:
float addMargin(float x, float range, bool isMin) override;
void initRangeParameters() override;
void initCursorParameters() override;
bool moveCursorVertically(int direction) override;
CurveView * curveView() override;
uint32_t modelVersion() override;