[apps/sequence/graph] Improve term sum controller

Change-Id: Ic2b81e7f1c608e5a9f4f8c5a8de116433f930042
This commit is contained in:
Émilie Feral
2017-02-23 17:22:21 +01:00
parent 43f17faa2e
commit f57d633c08
8 changed files with 159 additions and 28 deletions

View File

@@ -29,15 +29,19 @@ const char * GraphController::emptyMessage() {
return "Aucune suite activee";
}
void GraphController::displayTermSumController() {
m_termSumController.setSequence(m_sequenceStore->activeFunctionAtIndex(m_indexFunctionSelectedByCursor));
stackController()->push(&m_termSumController);
TermSumController * GraphController::termSumController() {
return &m_termSumController;
}
BannerView * GraphController::bannerView() {
return &m_bannerView;
}
bool GraphController::handleEnter() {
m_termSumController.setSequence(m_sequenceStore->activeFunctionAtIndex(m_indexFunctionSelectedByCursor));
return FunctionGraphController::handleEnter();
}
bool GraphController::moveCursorHorizontally(int direction) {
float xCursorPosition = roundf(m_cursor.x());
if (direction < 0 && xCursorPosition <= 0) {