mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
43 lines
775 B
C++
43 lines
775 B
C++
#include "app.h"
|
|
#include <apps/i18n.h>
|
|
|
|
extern "C" {
|
|
#include <assert.h>
|
|
}
|
|
|
|
namespace Home {
|
|
|
|
I18n::Message App::Descriptor::name() {
|
|
return I18n::Message::Apps;
|
|
}
|
|
|
|
I18n::Message App::Descriptor::upperName() {
|
|
return I18n::Message::AppsCapital;
|
|
}
|
|
|
|
App * App::Snapshot::unpack(Container * container) {
|
|
return new (container->currentAppBuffer()) App(this);
|
|
}
|
|
|
|
App::Descriptor * App::Snapshot::descriptor() {
|
|
static Descriptor descriptor;
|
|
return &descriptor;
|
|
}
|
|
|
|
void App::didBecomeActive(Window * window) {
|
|
::App::didBecomeActive(window);
|
|
m_window = window;
|
|
}
|
|
|
|
void App::redraw() {
|
|
m_window->redraw(true);
|
|
}
|
|
|
|
App::App(Snapshot * snapshot) :
|
|
::App(snapshot, &m_controller, I18n::Message::Warning),
|
|
m_controller(&m_modalViewController, snapshot, this)
|
|
{
|
|
}
|
|
|
|
}
|