mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[code] Program store that uses an accordeon buffer to store the
programs. The user can now add scripts. A contextual menu displays various options when clicking on a script, such as editing. Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
This commit is contained in:
@@ -17,9 +17,8 @@ const Image * App::Descriptor::icon() {
|
||||
return ImageStore::CodeIcon;
|
||||
}
|
||||
|
||||
App::Snapshot::Snapshot() :
|
||||
m_program()
|
||||
{
|
||||
App::Snapshot::Snapshot() {
|
||||
m_programStore.addDefaultProgram();
|
||||
}
|
||||
|
||||
App * App::Snapshot::unpack(Container * container) {
|
||||
@@ -27,7 +26,7 @@ App * App::Snapshot::unpack(Container * container) {
|
||||
}
|
||||
|
||||
void App::Snapshot::reset() {
|
||||
m_program.setContent("");
|
||||
m_programStore.deleteAll();
|
||||
}
|
||||
|
||||
App::Descriptor * App::Snapshot::descriptor() {
|
||||
@@ -35,14 +34,14 @@ App::Descriptor * App::Snapshot::descriptor() {
|
||||
return &descriptor;
|
||||
}
|
||||
|
||||
Program * App::Snapshot::program() {
|
||||
return &m_program;
|
||||
ProgramStore * App::Snapshot::programStore() {
|
||||
return &m_programStore;
|
||||
}
|
||||
|
||||
App::App(Container * container, Snapshot * snapshot) :
|
||||
::App(container, snapshot, &m_codeStackViewController, I18n::Message::Warning),
|
||||
m_listFooter(&m_codeStackViewController, &m_menuController, &m_menuController, ButtonRowController::Position::Bottom, ButtonRowController::Style::EmbossedGrey),
|
||||
m_menuController(&m_listFooter, snapshot->program(), &m_listFooter),
|
||||
m_menuController(&m_listFooter, snapshot->programStore(), &m_listFooter),
|
||||
m_codeStackViewController(&m_modalViewController, &m_listFooter)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user