[apps/sequence/graph] Display the term sum controller from the curve

parameter page

Change-Id: Ice645614e67ed40e0001a48b69a8c4d8b284179d
This commit is contained in:
Émilie Feral
2017-02-23 12:05:29 +01:00
parent a5a4bb3caf
commit 43f17faa2e
4 changed files with 31 additions and 4 deletions

View File

@@ -9,11 +9,19 @@ GraphController::GraphController(Responder * parentResponder, SequenceStore * se
m_bannerView(BannerView()),
m_view(GraphView(sequenceStore, &m_graphRange, &m_cursor, &m_bannerView, &m_cursorView)),
m_graphRange(CurveViewRange(&m_cursor, this)),
m_curveParameterController(CurveParameterController(&m_graphRange, &m_cursor)),
m_curveParameterController(CurveParameterController(this, &m_graphRange, &m_cursor)),
m_termSumController(TermSumController(this, &m_view, &m_graphRange, &m_cursor)),
m_sequenceStore(sequenceStore)
{
}
void GraphController::viewWillAppear() {
m_view.setVerticalCursor(false);
m_view.setCursorView(&m_cursorView);
m_view.setBannerView(&m_bannerView);
FunctionGraphController::viewWillAppear();
}
const char * GraphController::emptyMessage() {
if (m_sequenceStore->numberOfDefinedFunctions() == 0) {
return "Aucune suite";
@@ -21,6 +29,11 @@ const char * GraphController::emptyMessage() {
return "Aucune suite activee";
}
void GraphController::displayTermSumController() {
m_termSumController.setSequence(m_sequenceStore->activeFunctionAtIndex(m_indexFunctionSelectedByCursor));
stackController()->push(&m_termSumController);
}
BannerView * GraphController::bannerView() {
return &m_bannerView;
}