diff --git a/apps/reader/Makefile b/apps/reader/Makefile new file mode 100644 index 000000000..cf57b4311 --- /dev/null +++ b/apps/reader/Makefile @@ -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)) \ No newline at end of file diff --git a/apps/reader/app.cpp b/apps/reader/app.cpp new file mode 100644 index 000000000..8a848bbe8 --- /dev/null +++ b/apps/reader/app.cpp @@ -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) +{ +} + +} diff --git a/apps/reader/app.h b/apps/reader/app.h new file mode 100644 index 000000000..a46ec88b8 --- /dev/null +++ b/apps/reader/app.h @@ -0,0 +1,28 @@ +#ifndef READER_H +#define READER_H + +#include + +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 \ No newline at end of file diff --git a/apps/reader/base.de.i18n b/apps/reader/base.de.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.de.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.en.i18n b/apps/reader/base.en.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.en.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.es.i18n b/apps/reader/base.es.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.es.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.fr.i18n b/apps/reader/base.fr.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.fr.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.hu.i18n b/apps/reader/base.hu.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.hu.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.it.i18n b/apps/reader/base.it.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.it.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.nl.i18n b/apps/reader/base.nl.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.nl.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/base.pt.i18n b/apps/reader/base.pt.i18n new file mode 100644 index 000000000..ecc03a749 --- /dev/null +++ b/apps/reader/base.pt.i18n @@ -0,0 +1,2 @@ +ReaderApp = "Reader" +ReaderAppCapital = "READER" \ No newline at end of file diff --git a/apps/reader/reader_icon.png b/apps/reader/reader_icon.png new file mode 100644 index 000000000..78e23e139 Binary files /dev/null and b/apps/reader/reader_icon.png differ diff --git a/build/config.mak b/build/config.mak index 3f104d92a..f5f93b0b3 100644 --- a/build/config.mak +++ b/build/config.mak @@ -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