summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README25
-rw-r--r--po/de_DE.po14
-rw-r--r--po/it_IT.po6
-rw-r--r--setup.c12
-rw-r--r--setup.h13
6 files changed, 48 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index fae2476..3fd9f4f 100644
--- a/Makefile
+++ b/Makefile
@@ -119,5 +119,5 @@ dist: clean
@echo Distribution package created as $(PACKAGE).tgz
clean:
- @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
+ @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot $(PODIR)/*~
diff --git a/README b/README
index 9b55214..27a9f26 100644
--- a/README
+++ b/README
@@ -111,6 +111,31 @@ Possible options are:
vdr -P'imonlcd'
vdr -P'imonlcd -d /dev/lcd0 -p ffdc'
+Setup options
+-------------
+This options are editable at run time. (Menu: Setup > Plugin > imonlcd ... )
+
+* Contrast
+ - Set contrast from display. (Default: 200)
+
+* Default font
+ - Used font, there should installed like other FreeType supported fonts
+
+* Disc spinning mode
+ - Mode of disc icons at top left corner (used as playback notification)
+ Options are Slim disc/Full disc
+
+* Exit mode
+ - Do nothing - Just leave the "last" message there
+ - Showing clock - Show the big clock
+ - Turning backlight off - Blank the device completely
+ - Show next timer - Show time and title of next timer
+ - Wake up on next timer - Use display to wake up the VDR-PC, at next active timer
+
+* Margin time at wake up (min)
+ - Define a margin time, if wake up on exit mode used. (Default: 5 minutes)
+
+
Plugin SVDRP commands
---------------------
diff --git a/po/de_DE.po b/po/de_DE.po
index 08c09ec..7060590 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -12,7 +12,7 @@ msgstr ""
"Last-Translator: Andreas Brachold <vdr07 AT deltab de>\n"
"Language-Team: Andreas Brachold <vdr07 AT deltab de>\n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "Control a iMON LCD"
@@ -37,7 +37,7 @@ msgid "Full disc"
msgstr "Volle Scheibe"
msgid "Do nothing"
-msgstr "Nicht unternehmen"
+msgstr "Nichts unternehmen"
msgid "Showing clock"
msgstr "Uhrzeit anzeigen"
@@ -45,16 +45,16 @@ msgstr "Uhrzeit anzeigen"
msgid "Turning backlight off"
msgstr "Abschalten der Anzeige"
-msgid "Showing next timer"
-msgstr "Nächsten Timer anzeigen"
+msgid "Show next timer"
+msgstr "Nächsten Timer anzeigen"
-msgid "Wakeup on next timer"
-msgstr "Aufwachen zum nächsten Timer"
+msgid "Wake up on next timer"
+msgstr "Aufwachen zum nächsten Timer"
msgid "Exit mode"
msgstr "Ende Modus"
-msgid "Ahead time to awaken (min)"
+msgid "Margin time at wake up (min)"
msgstr "Vorlaufzeit zum Aufwachen (min)"
msgid "None active timer"
diff --git a/po/it_IT.po b/po/it_IT.po
index 23b6079..96ffdd4 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -48,16 +48,16 @@ msgstr "Mostra orologio"
msgid "Turning backlight off"
msgstr "Spegni retroilluminazione"
-msgid "Showing next timer"
+msgid "Show next timer"
msgstr ""
-msgid "Wakeup on next timer"
+msgid "Wake up on next timer"
msgstr ""
msgid "Exit mode"
msgstr "Modalità d'uscita"
-msgid "Ahead time to awaken (min)"
+msgid "Margin time at wake up (min)"
msgstr ""
msgid "None active timer"
diff --git a/setup.c b/setup.c
index 2b0ffec..eab1a5b 100644
--- a/setup.c
+++ b/setup.c
@@ -99,9 +99,9 @@ bool cIMonSetup::SetupParse(const char *szName, const char *szValue)
// OnExit
if(!strcasecmp(szName, "OnExit")) {
int n = atoi(szValue);
- if ((n < eOnExitMode_FIRSTITEM) || (n > eOnExitMode_LASTITEM)) {
+ if ((n < eOnExitMode_SHOWMSG) || (n >= eOnExitMode_LASTITEM)) {
esyslog("iMonLCD: OnExit must be between %d and %d; using default %d",
- eOnExitMode_FIRSTITEM, eOnExitMode_LASTITEM, DEFAULT_ON_EXIT);
+ eOnExitMode_SHOWMSG, eOnExitMode_LASTITEM, DEFAULT_ON_EXIT);
n = DEFAULT_ON_EXIT;
}
m_nOnExit = n;
@@ -194,18 +194,18 @@ ciMonMenuSetup::ciMonMenuSetup(ciMonWatch* pDev)
tr("Slim disc"), tr("Full disc")));
- static const char * szExitModes[eOnExitMode_LASTITEM + 1];
+ static const char * szExitModes[eOnExitMode_LASTITEM];
szExitModes[eOnExitMode_SHOWMSG] = tr("Do nothing");
szExitModes[eOnExitMode_SHOWCLOCK] = tr("Showing clock");
szExitModes[eOnExitMode_BLANKSCREEN] = tr("Turning backlight off");
- szExitModes[eOnExitMode_NEXTTIMER] = tr("Showing next timer");
- szExitModes[eOnExitMode_WAKEUP] = tr("Wakeup on next timer");
+ szExitModes[eOnExitMode_NEXTTIMER] = tr("Show next timer");
+ szExitModes[eOnExitMode_WAKEUP] = tr("Wake up on next timer");
Add(new cMenuEditStraItem (tr("Exit mode"),
&m_tmpSetup.m_nOnExit,
memberof(szExitModes), szExitModes));
- Add(new cMenuEditIntItem (tr("Ahead time to awaken (min)"),
+ Add(new cMenuEditIntItem (tr("Margin time at wake up (min)"),
&m_tmpSetup.m_nWakeup,
0, 1440));
diff --git a/setup.h b/setup.h
index be65d6d..07f8e6d 100644
--- a/setup.h
+++ b/setup.h
@@ -18,13 +18,12 @@
#define memberof(x) (sizeof(x)/sizeof(*x))
enum eOnExitMode {
- eOnExitMode_FIRSTITEM = 0
- ,eOnExitMode_SHOWMSG = 0 /**< Do nothing - just leave the "last" message there */
- ,eOnExitMode_SHOWCLOCK = 1 /**< Show the big clock */
- ,eOnExitMode_BLANKSCREEN = 2 /**< Blank the device completely */
- ,eOnExitMode_NEXTTIMER = 3 /**< Show next active timer */
- ,eOnExitMode_WAKEUP = 4 /**< Show the big clock and wakeup on next active timer */
- ,eOnExitMode_LASTITEM = 4
+ eOnExitMode_SHOWMSG /**< Do nothing - just leave the "last" message there */
+ ,eOnExitMode_SHOWCLOCK /**< Show the big clock */
+ ,eOnExitMode_BLANKSCREEN /**< Blank the device completely */
+ ,eOnExitMode_NEXTTIMER /**< Show next active timer */
+ ,eOnExitMode_WAKEUP /**< Show the big clock and wakeup on next active timer */
+ ,eOnExitMode_LASTITEM
};
struct cIMonSetup