mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[escher] Only one app is on the heap at one time
Change-Id: I6c77601cb0cc883083a4dd05370ca543fa7951cc
This commit is contained in:
@@ -1,14 +1,31 @@
|
||||
#include "app.h"
|
||||
#include "../apps_container.h"
|
||||
#include "sequence_icon.h"
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
namespace Sequence {
|
||||
|
||||
App::App(Container * container, Context * context) :
|
||||
FunctionApp(container, &m_inputViewController, I18n::Message::SequenceApp, I18n::Message::SequenceAppCapital, ImageStore::SequenceIcon),
|
||||
App * App::Descriptor::build(Container * container) {
|
||||
return new App(container, this);
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::name() {
|
||||
return I18n::Message::SequenceApp;
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::upperName() {
|
||||
return I18n::Message::SequenceAppCapital;
|
||||
}
|
||||
|
||||
const Image * App::Descriptor::icon() {
|
||||
return ImageStore::SequenceIcon;
|
||||
}
|
||||
|
||||
App::App(Container * container, Descriptor * descriptor) :
|
||||
FunctionApp(container, &m_inputViewController, descriptor),
|
||||
m_sequenceStore(),
|
||||
m_nContext(context),
|
||||
m_nContext(((AppsContainer *)container)->globalContext()),
|
||||
m_listController(&m_listFooter, &m_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),
|
||||
@@ -26,6 +43,10 @@ App::App(Container * container, Context * context) :
|
||||
{
|
||||
}
|
||||
|
||||
App::Descriptor * App::buildDescriptor() {
|
||||
return new App::Descriptor();
|
||||
}
|
||||
|
||||
InputViewController * App::inputViewController() {
|
||||
return &m_inputViewController;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user