[apps] Sequence: enable to defined dependent sequences

This commit is contained in:
Émilie Feral
2017-12-13 17:06:08 +01:00
committed by EmilieNumworks
parent 81e0148325
commit 032cafdb04
13 changed files with 258 additions and 176 deletions

View File

@@ -55,7 +55,7 @@ void App::Snapshot::tidy() {
App::App(Container * container, Snapshot * snapshot) :
FunctionApp(container, snapshot, &m_inputViewController),
m_nContext(((AppsContainer *)container)->globalContext()),
m_sequenceContext(((AppsContainer *)container)->globalContext(), snapshot->sequenceStore()),
m_listController(&m_listFooter, snapshot->sequenceStore(), &m_listHeader, &m_listFooter),
m_listFooter(&m_listHeader, &m_listController, &m_listController, ButtonRowController::Position::Bottom, ButtonRowController::Style::EmbossedGrey),
m_listHeader(nullptr, &m_listFooter, &m_listController),
@@ -78,10 +78,7 @@ InputViewController * App::inputViewController() {
}
Context * App::localContext() {
if (m_tabViewController.activeTab() == 0) {
return &m_nContext;
}
return TextFieldDelegateApp::localContext();
return &m_sequenceContext;
}
const char * App::XNT() {