mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[expression_editor] Base app for development, to remove later.
Change-Id: I1d5b59f67fd146d2e2917546a7d8b9419a0a7036
This commit is contained in:
29
apps/expression_editor/app.cpp
Normal file
29
apps/expression_editor/app.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "app.h"
|
||||
#include "../i18n.h"
|
||||
|
||||
namespace ExpressionEditor {
|
||||
|
||||
I18n::Message App::Descriptor::name() {
|
||||
return I18n::Message::ExpressionEditorApp;
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::upperName() {
|
||||
return I18n::Message::ExpressionEditorAppCapital;
|
||||
}
|
||||
|
||||
App * App::Snapshot::unpack(Container * container) {
|
||||
return new App(container, this);
|
||||
}
|
||||
|
||||
App::Descriptor * App::Snapshot::descriptor() {
|
||||
static Descriptor descriptor;
|
||||
return &descriptor;
|
||||
}
|
||||
|
||||
App::App(Container * container, Snapshot * snapshot) :
|
||||
::App(container, snapshot, &m_controller),
|
||||
m_controller(&m_modalViewController, snapshot->expressionAndLayout())
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user