mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
[escher] Only one app is on the heap at one time
Change-Id: I6c77601cb0cc883083a4dd05370ca543fa7951cc
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "app.h"
|
||||
#include "../apps_container.h"
|
||||
#include "graph_icon.h"
|
||||
#include "../i18n.h"
|
||||
|
||||
@@ -7,10 +8,26 @@ using namespace Shared;
|
||||
|
||||
namespace Graph {
|
||||
|
||||
App::App(Container * container, Context * context) :
|
||||
FunctionApp(container, &m_inputViewController, I18n::Message::FunctionApp, I18n::Message::FunctionAppCapital, ImageStore::GraphIcon),
|
||||
App * App::Descriptor::build(Container * container) {
|
||||
return new App(container, this);
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::name() {
|
||||
return I18n::Message::FunctionApp;
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::upperName() {
|
||||
return I18n::Message::FunctionAppCapital;
|
||||
}
|
||||
|
||||
const Image * App::Descriptor::icon() {
|
||||
return ImageStore::GraphIcon;
|
||||
}
|
||||
|
||||
App::App(Container * container, Descriptor * descriptor) :
|
||||
FunctionApp(container, &m_inputViewController, descriptor),
|
||||
m_functionStore(),
|
||||
m_xContext('x', context),
|
||||
m_xContext('x',((AppsContainer *)container)->globalContext()),
|
||||
m_listController(&m_listFooter, &m_functionStore, &m_listHeader, &m_listFooter),
|
||||
m_listFooter(&m_listHeader, &m_listController, &m_listController, ButtonRowController::Position::Bottom, ButtonRowController::Style::EmbossedGrey),
|
||||
m_listHeader(&m_listStackViewController, &m_listFooter, &m_listController),
|
||||
@@ -28,6 +45,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