- mediaplayer-setup: formatting code using astyle

Conflicts:
	src/gui/mediaplayer_setup.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-10-20 19:31:13 +02:00
committed by Thilo Graf
parent 24897213a0
commit c45b8cd274
2 changed files with 13 additions and 12 deletions

View File

@@ -71,13 +71,12 @@ int CMediaPlayerSetup::exec(CMenuTarget* parent, const std::string & /*actionKey
if (parent)
parent->hide();
res = showMediaPlayerSetup();
return res;
}
/*shows media setup menue entries*/
// shows media setup menue entries
int CMediaPlayerSetup::showMediaPlayerSetup()
{
CMenuWidget *mediaSetup = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width);
@@ -133,7 +132,11 @@ int CMediaPlayerSetup::showMediaPlayerSetup()
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);
#if 0
mc = new CMenuOptionChooser(LOCALE_MOVIEPLAYER_TIMEOSD_WHILE_SEARCHING, &g_settings.movieplayer_timeosd_while_searching, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
mc->setHint("", LOCALE_MENU_HINT_MOVIEPLAYER_TIMEOSD_WHILE_SEARCHING);
mediaSetup->addItem(mc);
#endif
int res = mediaSetup->exec(NULL, "");
selected = mediaSetup->getSelected();
delete mediaSetup;

View File

@@ -44,12 +44,10 @@ class CMediaPlayerSetup : public CMenuTarget
int showMediaPlayerSetup();
public:
CMediaPlayerSetup();
~CMediaPlayerSetup();
int exec(CMenuTarget *parent, const std::string &actionKey);
};
#endif