lcd4l: finally ported weather on/off item from NI

This commit is contained in:
GetAway
2019-03-30 23:51:05 +01:00
parent 6b46ded6a5
commit ab30459acb
5 changed files with 15 additions and 0 deletions

View File

@@ -946,6 +946,7 @@ lcd4l_support LCD4Linux-Unterstützung
lcd4l_support_auto automatisch
lcd4l_support_off aus
lcd4l_support_on ein
lcd4l_weather Wetter im Standby-Modus
lcd_info_line Zeige in Infozeile
lcd_info_line_channel Kanalname
lcd_info_line_clock Uhrzeit
@@ -1260,6 +1261,7 @@ menu.hint_lcd4l_logodir Verzeichnis für Senderlogos\nBei ungültigem Eintrag Fa
menu.hint_lcd4l_skin Auswahl der verfügbaren Darstellungsarten\nStandard, Benutzerdefiniert, etc.
menu.hint_lcd4l_skin_radio Wechselt die Darstellungsart, wenn der Radio-Modus aktiviert wird
menu.hint_lcd4l_support LCD4Linux aktivieren/deaktivieren\nUnterstützte Displays: Pearl DPF, Samsung DPF, VU+SOLO4K, PNG
menu.hint_lcd4l_weather Zeigt im Standby-Betrieb die entsprechenden Daten des ersten Favoriteneintrags von tuxwetter auf dem Display an
menu.hint_leds_blink Die Power-LEDs blinken, wenn sich der Receiver im Deep-Standby befindet und ein Timer aktiv ist
menu.hint_leds_deepstandby Definiert den Status der Power-LEDs im Deep-Standby
menu.hint_leds_record Definiert, ob die Power-LEDs blinken sollen, wenn eine Aufnahme aktiv ist

View File

@@ -946,6 +946,7 @@ lcd4l_support LCD4Linux-Support
lcd4l_support_auto automatic
lcd4l_support_off off
lcd4l_support_on on
lcd4l_weather Weather in standby mode
lcd_info_line Show in infoline
lcd_info_line_channel Channelname
lcd_info_line_clock Clock
@@ -1260,6 +1261,7 @@ menu.hint_lcd4l_logodir Logo directory.\nFallback to default on invalid entry.
menu.hint_lcd4l_skin Switch between styles\nDefault, User defined, etc.
menu.hint_lcd4l_skin_radio Switch style when Radio-Mode is activated
menu.hint_lcd4l_support Activate/deactivate LCD4Linux\nSupported displays: Pearl DPF, Samsung SPF, VU+SOLO4K, PNG
menu.hint_lcd4l_weather Shows first tuxwetter favorite on display at standby
menu.hint_leds_blink Blinking LEDs in deep-standby
menu.hint_leds_deepstandby LEDs state in deep-standby mode
menu.hint_leds_record LEDs state when box recording

View File

@@ -195,6 +195,13 @@ int CLCD4lSetup::show()
lcd4lSetup->addItem(GenericMenuSeparator);
const char *flag_lcd4l_weather = FLAGDIR "/.lcd-weather";
int fake_lcd4l_weather = file_exists(flag_lcd4l_weather);
CTouchFileNotifier *lcd_weather = new CTouchFileNotifier(flag_lcd4l_weather);
mc = new CMenuOptionChooser(LOCALE_LCD4L_WEATHER, &fake_lcd4l_weather, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, lcd_weather, CRCInput::convertDigitToKey(shortcut++));
mc->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_WEATHER);
lcd4lSetup->addItem(mc);
const char *flag_lcd4l_clock_a = FLAGDIR "/.lcd-clock_a";
int fake_lcd4l_clock_a = file_exists(flag_lcd4l_clock_a);
CTouchFileNotifier *lcd_clock_a = new CTouchFileNotifier(flag_lcd4l_clock_a);

View File

@@ -973,6 +973,7 @@ typedef enum
LOCALE_LCD4L_SUPPORT_AUTO,
LOCALE_LCD4L_SUPPORT_OFF,
LOCALE_LCD4L_SUPPORT_ON,
LOCALE_LCD4L_WEATHER,
LOCALE_LCD_INFO_LINE,
LOCALE_LCD_INFO_LINE_CHANNEL,
LOCALE_LCD_INFO_LINE_CLOCK,
@@ -1287,6 +1288,7 @@ typedef enum
LOCALE_MENU_HINT_LCD4L_SKIN,
LOCALE_MENU_HINT_LCD4L_SKIN_RADIO,
LOCALE_MENU_HINT_LCD4L_SUPPORT,
LOCALE_MENU_HINT_LCD4L_WEATHER,
LOCALE_MENU_HINT_LEDS_BLINK,
LOCALE_MENU_HINT_LEDS_DEEPSTANDBY,
LOCALE_MENU_HINT_LEDS_RECORD,

View File

@@ -973,6 +973,7 @@ const char * locale_real_names[] =
"lcd4l_support_auto",
"lcd4l_support_off",
"lcd4l_support_on",
"lcd4l_weather",
"lcd_info_line",
"lcd_info_line_channel",
"lcd_info_line_clock",
@@ -1287,6 +1288,7 @@ const char * locale_real_names[] =
"menu.hint_lcd4l_skin",
"menu.hint_lcd4l_skin_radio",
"menu.hint_lcd4l_support",
"menu.hint_lcd4l_weather",
"menu.hint_leds_blink",
"menu.hint_leds_deepstandby",
"menu.hint_leds_record",