mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
gui/pictureviewer_setup, gui/audioplayer_setup: use CMenuOptionNumberChooser instead of CStringInput
This commit is contained in:
@@ -105,12 +105,12 @@ int CPictureViewerSetup::showPictureViewerSetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_SCALING);
|
||||
picviewsetup->addItem(mc);
|
||||
|
||||
CStringInput pic_timeout(LOCALE_PICTUREVIEWER_SLIDE_TIME, g_settings.picviewer_slide_time, 2, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "0123456789 ");
|
||||
CMenuForwarder * mf = new CMenuForwarder(LOCALE_PICTUREVIEWER_SLIDE_TIME, true, g_settings.picviewer_slide_time, &pic_timeout);
|
||||
mf->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_SLIDE_TIME);
|
||||
picviewsetup->addItem(mf);
|
||||
CMenuOptionNumberChooser *cc = new CMenuOptionNumberChooser(LOCALE_PICTUREVIEWER_SLIDE_TIME, &g_settings.picviewer_slide_time, true, 0, 999);
|
||||
cc->setNumberFormat(std::string("%d ") + g_Locale->getText(LOCALE_UNIT_SHORT_SECOND));
|
||||
cc->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_SLIDE_TIME);
|
||||
picviewsetup->addItem(cc);
|
||||
|
||||
mf = new CMenuForwarder(LOCALE_PICTUREVIEWER_DEFDIR, true, g_settings.network_nfs_picturedir, this, "picturedir");
|
||||
CMenuForwarder *mf = new CMenuForwarder(LOCALE_PICTUREVIEWER_DEFDIR, true, g_settings.network_nfs_picturedir, this, "picturedir");
|
||||
mf->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_DEFDIR);
|
||||
picviewsetup->addItem(mf);
|
||||
|
||||
|
Reference in New Issue
Block a user