mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[apps] Implement InteractiveCurveViewController::isCursorVisible
It was a pure virtual method implemented in derived classes Shared::FunctionGraphController, Regression::GraphController. InteractiveCurveViewRange does not need anymore to hold CurveViewCursor * m_cursor.
This commit is contained in:
committed by
Émilie Feral
parent
8629254d9a
commit
67f9f79322
@@ -28,7 +28,6 @@ GraphController::GraphController(Responder * parentResponder, InputEventHandlerD
|
||||
for (int i = 0; i < Store::k_numberOfSeries; i++) {
|
||||
m_modelType[i] = (Model::Type) -1;
|
||||
}
|
||||
m_store->setCursor(m_cursor);
|
||||
m_store->setDelegate(this);
|
||||
}
|
||||
|
||||
@@ -349,10 +348,6 @@ uint32_t GraphController::rangeVersion() {
|
||||
return m_store->rangeChecksum();
|
||||
}
|
||||
|
||||
bool GraphController::isCursorVisible() {
|
||||
return interactiveCurveViewRange()->isCursorVisible(cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio);
|
||||
}
|
||||
|
||||
bool GraphController::closestCurveIndexIsSuitable(int newIndex, int currentIndex) const {
|
||||
return newIndex != currentIndex && !m_store->seriesIsEmpty(newIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user