From a0acdc171b44bbe5473bb84e9cfdc996469bd832 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 13 Nov 2020 00:48:46 +0100 Subject: [PATCH] Squelette --- apps/reader/Makefile | 14 ++++++++++++++ apps/reader/app.cpp | 37 ++++++++++++++++++++++++++++++++++++ apps/reader/app.h | 28 +++++++++++++++++++++++++++ apps/reader/base.de.i18n | 2 ++ apps/reader/base.en.i18n | 2 ++ apps/reader/base.es.i18n | 2 ++ apps/reader/base.fr.i18n | 2 ++ apps/reader/base.hu.i18n | 2 ++ apps/reader/base.it.i18n | 2 ++ apps/reader/base.nl.i18n | 2 ++ apps/reader/base.pt.i18n | 2 ++ apps/reader/reader_icon.png | Bin 0 -> 1541 bytes build/config.mak | 2 +- 13 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 apps/reader/Makefile create mode 100644 apps/reader/app.cpp create mode 100644 apps/reader/app.h create mode 100644 apps/reader/base.de.i18n create mode 100644 apps/reader/base.en.i18n create mode 100644 apps/reader/base.es.i18n create mode 100644 apps/reader/base.fr.i18n create mode 100644 apps/reader/base.hu.i18n create mode 100644 apps/reader/base.it.i18n create mode 100644 apps/reader/base.nl.i18n create mode 100644 apps/reader/base.pt.i18n create mode 100644 apps/reader/reader_icon.png 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 0000000000000000000000000000000000000000..78e23e1395151985a715f9ae71b8113af7fbd712 GIT binary patch literal 1541 zcmV+g2KxDlP)Px)zez+vRA>d=T1!kMWe~3J8JGvmvJ%2G5d(W5yus{%=mFGl@Bn0WqlSZr-4I{F z7%#Yq9+dUs#ej(rSeFEii4wyBE(8K-U@^dguqy%9fV>%y83P#@9)ndKhRlxBFT0!R z*-CnP{=e$4s;~e0-#-HZw7k4*VOh40VVIYYm4(mc01-VUUFggM^tCTBG4Tt0ANo7T z_$SuZ)~Ydm$7C{j5g>sCEZ{GqtN*8`r{MK^;pF6G|LEw*i2vV8NlE#^=j6HP8yg!R zU}l}wYEASp!|lDlzrTS1KTAqV`i6XG>F2D*J_=`Ggu`O7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ak 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