mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-16 18:03:37 +02:00
screensaver: add GUI option to change screensaver directory
Origin commit data
------------------
Branch: ni/coolstream
Commit: cbed13ecd0
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-25 (Thu, 25 Dec 2014)
Origin message was:
------------------
- screensaver: add GUI option to change screensaver directory
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -322,6 +322,11 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
chooserDir(g_settings.screenshot_dir, true, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(actionKey=="screensaver_dir") {
|
||||
const char *action_str = "screensaver";
|
||||
chooserDir(g_settings.screensaver_dir, false, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(strncmp(actionKey.c_str(), "fontsize.d", 10) == 0) {
|
||||
for (int i = 0; i < FONT_GROUP_COUNT; i++) {
|
||||
if (actionKey == font_sizes_groups[i].actionkey) {
|
||||
@@ -607,6 +612,13 @@ int COsdSetup::showOsdSetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_SUBCHANNEL_POS);
|
||||
osd_menu->addItem(mc);
|
||||
|
||||
osd_menu->addItem(GenericMenuSeparatorLine);
|
||||
|
||||
// screensaver_dir
|
||||
mf = new CMenuForwarder(LOCALE_SCREENSAVER_DIR, true, g_settings.screensaver_dir, this, "screensaver_dir");
|
||||
mf->setHint("", LOCALE_MENU_HINT_SCREENSAVER_DIR);
|
||||
osd_menu->addItem(mf);
|
||||
|
||||
int oldVolumeSize = g_settings.volume_size;
|
||||
int oldInfoClockSize = g_settings.infoClockFontSize;
|
||||
|
||||
|
@@ -1317,6 +1317,7 @@ typedef enum
|
||||
LOCALE_MENU_HINT_SCAN_USEUSALS,
|
||||
LOCALE_MENU_HINT_SCRAMBLED_MESSAGE,
|
||||
LOCALE_MENU_HINT_SCREEN_SETUP,
|
||||
LOCALE_MENU_HINT_SCREENSAVER_DIR,
|
||||
LOCALE_MENU_HINT_SCREENSHOT_COUNT,
|
||||
LOCALE_MENU_HINT_SCREENSHOT_COVER,
|
||||
LOCALE_MENU_HINT_SCREENSHOT_DIR,
|
||||
@@ -2083,6 +2084,7 @@ typedef enum
|
||||
LOCALE_SCANTS_TEST,
|
||||
LOCALE_SCANTS_TRANSPONDERS,
|
||||
LOCALE_SCRAMBLED_CHANNEL,
|
||||
LOCALE_SCREENSAVER_DIR,
|
||||
LOCALE_SCREENSETUP_LOWERRIGHT,
|
||||
LOCALE_SCREENSETUP_UPPERLEFT,
|
||||
LOCALE_SCREENSHOT_COUNT,
|
||||
|
@@ -1317,6 +1317,7 @@ const char * locale_real_names[] =
|
||||
"menu.hint_scan_useusals",
|
||||
"menu.hint_scrambled_message",
|
||||
"menu.hint_screen_setup",
|
||||
"menu.hint_screensaver_dir",
|
||||
"menu.hint_screenshot_count",
|
||||
"menu.hint_screenshot_cover",
|
||||
"menu.hint_screenshot_dir",
|
||||
@@ -2083,6 +2084,7 @@ const char * locale_real_names[] =
|
||||
"scants.test",
|
||||
"scants.transponders",
|
||||
"scrambled_channel",
|
||||
"screensaver.dir",
|
||||
"screensetup.lowerright",
|
||||
"screensetup.upperleft",
|
||||
"screenshot.count",
|
||||
|
Reference in New Issue
Block a user