mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence/graph] Display the term sum controller from the curve
parameter page Change-Id: Ice645614e67ed40e0001a48b69a8c4d8b284179d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user