mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Squelette
This commit is contained in:
14
apps/reader/Makefile
Normal file
14
apps/reader/Makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
apps += reader::App
|
||||
app_headers += apps/reader/app.h
|
||||
|
||||
app_sreader_src = $(addprefix apps/reader/,\
|
||||
app.cpp \
|
||||
)
|
||||
|
||||
apps_src += $(app_sreader_src)
|
||||
|
||||
app_images += apps/reader/reader_icon.png
|
||||
|
||||
i18n_files += $(call i18n_without_universal_for,reader/base)
|
||||
|
||||
$(eval $(call depends_on_image,apps/reader/app.cpp,apps/reader/reader_icon.png))
|
||||
37
apps/reader/app.cpp
Normal file
37
apps/reader/app.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "app.h"
|
||||
#include "reader_icon.h"
|
||||
#include "apps/apps_container.h"
|
||||
#include "apps/i18n.h"
|
||||
|
||||
|
||||
namespace reader {
|
||||
|
||||
I18n::Message App::Descriptor::name() {
|
||||
return I18n::Message::ReaderApp;
|
||||
}
|
||||
|
||||
I18n::Message App::Descriptor::upperName() {
|
||||
return I18n::Message::ReaderAppCapital;
|
||||
}
|
||||
|
||||
const Image * App::Descriptor::icon() {
|
||||
return ImageStore::ReaderIcon;
|
||||
}
|
||||
|
||||
|
||||
App * App::Snapshot::unpack(Container * container) {
|
||||
return new (container->currentAppBuffer()) App(this);
|
||||
}
|
||||
|
||||
App::Descriptor * App::Snapshot::descriptor() {
|
||||
static Descriptor descriptor;
|
||||
return &descriptor;
|
||||
}
|
||||
|
||||
|
||||
App::App(Snapshot * snapshot) :
|
||||
::App(snapshot, nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
28
apps/reader/app.h
Normal file
28
apps/reader/app.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef READER_H
|
||||
#define READER_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
namespace reader {
|
||||
|
||||
class App : public ::App {
|
||||
public:
|
||||
class Descriptor : public ::App::Descriptor {
|
||||
public:
|
||||
I18n::Message name() override;
|
||||
I18n::Message upperName() override;
|
||||
const Image * icon() override;
|
||||
};
|
||||
class Snapshot : public ::App::Snapshot {
|
||||
public:
|
||||
App * unpack(Container * container) override;
|
||||
Descriptor * descriptor() override;
|
||||
};
|
||||
private:
|
||||
App(Snapshot * snapshot);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
2
apps/reader/base.de.i18n
Normal file
2
apps/reader/base.de.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.en.i18n
Normal file
2
apps/reader/base.en.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.es.i18n
Normal file
2
apps/reader/base.es.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.fr.i18n
Normal file
2
apps/reader/base.fr.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.hu.i18n
Normal file
2
apps/reader/base.hu.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.it.i18n
Normal file
2
apps/reader/base.it.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.nl.i18n
Normal file
2
apps/reader/base.nl.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
2
apps/reader/base.pt.i18n
Normal file
2
apps/reader/base.pt.i18n
Normal file
@@ -0,0 +1,2 @@
|
||||
ReaderApp = "Reader"
|
||||
ReaderAppCapital = "READER"
|
||||
BIN
apps/reader/reader_icon.png
Normal file
BIN
apps/reader/reader_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -7,7 +7,7 @@ HOME_DISPLAY_EXTERNALS ?= 1
|
||||
EPSILON_VERSION ?= 14.4.1
|
||||
OMEGA_VERSION ?= 1.20.3
|
||||
# OMEGA_USERNAME ?= N/A
|
||||
EPSILON_APPS ?= calculation rpn graph code statistics probability solver atom sequence regression settings external
|
||||
EPSILON_APPS ?= reader calculation rpn graph code statistics probability solver atom sequence regression settings external
|
||||
EPSILON_I18N ?= en fr nl pt it de es hu
|
||||
EPSILON_GETOPT ?= 0
|
||||
EPSILON_TELEMETRY ?= 0
|
||||
|
||||
Reference in New Issue
Block a user