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

Conflicts:
	data/locale/deutsch.locale
	data/locale/english.locale
	src/neutrino.cpp
	src/system/locals.h
	src/system/locals_intern.h
	src/system/settings.h

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-02-27 00:54:05 +01:00
committed by Thilo Graf
parent 0c5485d4ca
commit 6ad2ca6a46
9 changed files with 49 additions and 7 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();