Project

General

Profile

Feature #2582 » targavfd-smallclock.patch

Patch for small clock - dad401, 05/18/2019 11:47 PM

View differences:

vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/de_DE.po 2019-05-18 23:42:02.754123858 +0200
msgid "Do nothing"
msgstr "Nichts unternehmen"
msgid "Showing clock"
msgstr "Uhrzeit anzeigen"
msgid "Showing big clock"
msgstr "große Uhr anzeigen"
msgid "Showing small clock"
msgstr "kleine Uhr anzeigen"
msgid "Turning display off"
msgstr "Abschalten der Anzeige"
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/po/it_IT.po 2019-05-18 23:42:02.734123368 +0200
msgid "Do nothing"
msgstr "Non fare nulla"
msgid "Showing clock"
msgid "Showing big clock"
msgstr "Mostra orologio"
msgid "Showing small clock"
msgstr "Mostra orologio"
msgid "Turning display off"
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.c 2019-05-18 23:01:15.297878379 +0200
static const char * szExitModes[eOnExitMode_LASTITEM];
szExitModes[eOnExitMode_SHOWMSG] = tr("Do nothing");
szExitModes[eOnExitMode_SHOWCLOCK] = tr("Showing clock");
szExitModes[eOnExitMode_SHOWBIGCLOCK] = tr("Showing big clock");
szExitModes[eOnExitMode_SHOWSMALLCLOCK] = tr("Showing small clock");
szExitModes[eOnExitMode_BLANKSCREEN] = tr("Turning display off");
szExitModes[eOnExitMode_NEXTTIMER] = tr("Show next timer");
szExitModes[eOnExitMode_NEXTTIMER_BLANKSCR] = tr("Show only present next timer");
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/setup.h 2019-05-18 23:02:25.307591076 +0200
enum eOnExitMode {
eOnExitMode_SHOWMSG /**< Do nothing - just leave the "last" message there */
,eOnExitMode_SHOWCLOCK /**< Show the big clock */
,eOnExitMode_SHOWBIGCLOCK /**< Show the big clock */
,eOnExitMode_SHOWSMALLCLOCK /**< Show the small clock */
,eOnExitMode_BLANKSCREEN /**< Blank the device completely */
,eOnExitMode_NEXTTIMER /**< Show next active timer */
,eOnExitMode_NEXTTIMER_BLANKSCR /**< Show next active timer, or blank if none timer defined */
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.c 2019-05-18 23:28:28.146146328 +0200
}
/*
* Show the big clock. We need to set it to the current time, then it just
* Show the big or small clock. We need to set it to the current time, then it just
* keeps counting automatically.
*/
bool cVFD::SendCmdClock() {
bool cVFD::SendCmdClock(bool smallClock) {
time_t tt;
struct tm l;
......
QueueData(toBCD(l.tm_hour));
// Show it
QueueCmd(CMD_BIGCLOCK);
if (smallClock) {
isyslog("targavfd: sending small clock");
QueueCmd(CMD_SMALLCLOCK);
} else {
isyslog("targavfd: sending big clock");
QueueCmd(CMD_BIGCLOCK);
}
QueueData(TIME_24);
return QueueFlush();
}
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/vfd.h 2019-05-18 23:25:24.437628421 +0200
protected:
cVFDFont* pFont;
bool SendCmdClock();
bool SendCmdClock(bool smallClock);
bool SendCmdShutdown();
void Brightness(int nBrightness);
public:
vdr-plugin-targavfd-0.3.1+git20170402.4891352.smallclock/watch.c 2019-05-18 23:09:49.486443680 +0200
SendCmdShutdown();
break;
}
case eOnExitMode_SHOWCLOCK: {
isyslog("targaVFD: closing, showing clock.");
case eOnExitMode_SHOWBIGCLOCK: {
isyslog("targaVFD: closing, showing big clock.");
icons(0);
SendCmdClock();
SendCmdClock(false);
break;
}
case eOnExitMode_SHOWSMALLCLOCK: {
isyslog("targaVFD: closing, showing small clock.");
icons(0);
SendCmdClock(true);
break;
}
}
    (1-1/1)