movieplayer: allow to display plackback time instead of movietitle on vfd

Origin commit data
------------------
Branch: ni/coolstream
Commit: e620d9e544
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-02-27 (Tue, 27 Feb 2018)

Origin message was:
------------------
- movieplayer: allow to display plackback time instead of movietitle on vfd

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-02-27 00:54:05 +01:00
parent d7d329a64d
commit d796b22c3d
9 changed files with 47 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
#include <global.h>
#include <neutrino.h>
#include <mymenu.h>
#include <gui/widget/icons.h>
#include <gui/widget/stringinput.h>
@@ -113,6 +114,12 @@ int CMediaPlayerSetup::showMediaPlayerSetup()
mf->setHint(NEUTRINO_ICON_HINT_YTPLAY, LOCALE_MENU_HINT_YTPLAY_SETUP);
mediaSetup->addItem(mf);
mediaSetup->addItem(GenericMenuSeparator);
CMenuOptionChooser *mc;
mc = new CMenuOptionChooser(LOCALE_MOVIEPLAYER_DISPLAY_PLAYTIME, &g_settings.movieplayer_display_playtime, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, g_info.hw_caps->display_xres >= 8);
mc->setHint("", LOCALE_MENU_HINT_MOVIEPLAYER_DISPLAY_PLAYTIME);
mediaSetup->addItem(mc);
int res = mediaSetup->exec (NULL, "");
selected = mediaSetup->getSelected();