mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
gui/pictureviewer_setup.cpp: add hints
This commit is contained in:
@@ -33,7 +33,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "gui/pictureviewer_setup.h"
|
#include "gui/pictureviewer_setup.h"
|
||||||
|
|
||||||
#include <global.h>
|
#include <global.h>
|
||||||
@@ -86,7 +85,6 @@ int CPictureViewerSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define PICTUREVIEWER_SCALING_OPTION_COUNT 3
|
#define PICTUREVIEWER_SCALING_OPTION_COUNT 3
|
||||||
const CMenuOptionChooser::keyval PICTUREVIEWER_SCALING_OPTIONS[PICTUREVIEWER_SCALING_OPTION_COUNT] =
|
const CMenuOptionChooser::keyval PICTUREVIEWER_SCALING_OPTIONS[PICTUREVIEWER_SCALING_OPTION_COUNT] =
|
||||||
{
|
{
|
||||||
@@ -95,20 +93,26 @@ const CMenuOptionChooser::keyval PICTUREVIEWER_SCALING_OPTIONS[PICTUREVIEWER_SCA
|
|||||||
{ CPictureViewer::NONE , LOCALE_PICTUREVIEWER_RESIZE_NONE }
|
{ CPictureViewer::NONE , LOCALE_PICTUREVIEWER_RESIZE_NONE }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*shows the picviewer setup menue*/
|
/*shows the picviewer setup menue*/
|
||||||
int CPictureViewerSetup::showPictureViewerSetup()
|
int CPictureViewerSetup::showPictureViewerSetup()
|
||||||
{
|
{
|
||||||
|
|
||||||
CMenuWidget* picviewsetup = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_PVIEWERSETUP);
|
CMenuWidget* picviewsetup = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_PVIEWERSETUP);
|
||||||
|
|
||||||
// intros: back ande save
|
// intros: back ande save
|
||||||
picviewsetup->addIntroItems(LOCALE_PICTUREVIEWER_HEAD);
|
picviewsetup->addIntroItems(LOCALE_PICTUREVIEWER_HEAD);
|
||||||
|
|
||||||
picviewsetup->addItem(new CMenuOptionChooser(LOCALE_PICTUREVIEWER_SCALING , &g_settings.picviewer_scaling , PICTUREVIEWER_SCALING_OPTIONS , PICTUREVIEWER_SCALING_OPTION_COUNT , true ));
|
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_PICTUREVIEWER_SCALING, &g_settings.picviewer_scaling, PICTUREVIEWER_SCALING_OPTIONS, PICTUREVIEWER_SCALING_OPTION_COUNT, true);
|
||||||
|
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 ");
|
CStringInput pic_timeout(LOCALE_PICTUREVIEWER_SLIDE_TIME, g_settings.picviewer_slide_time, 2, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "0123456789 ");
|
||||||
picviewsetup->addItem(new CMenuForwarder(LOCALE_PICTUREVIEWER_SLIDE_TIME, true, g_settings.picviewer_slide_time, &pic_timeout));
|
CMenuForwarder * mf = new CMenuForwarder(LOCALE_PICTUREVIEWER_SLIDE_TIME, true, g_settings.picviewer_slide_time, &pic_timeout);
|
||||||
picviewsetup->addItem(new CMenuForwarder(LOCALE_PICTUREVIEWER_DEFDIR, true, g_settings.network_nfs_picturedir, this, "picturedir"));
|
mf->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_SLIDE_TIME);
|
||||||
|
picviewsetup->addItem(mf);
|
||||||
|
|
||||||
|
mf = new CMenuForwarder(LOCALE_PICTUREVIEWER_DEFDIR, true, g_settings.network_nfs_picturedir, this, "picturedir");
|
||||||
|
mf->setHint("", LOCALE_MENU_HINT_PICTUREVIEWER_DEFDIR);
|
||||||
|
picviewsetup->addItem(mf);
|
||||||
|
|
||||||
int res = picviewsetup->exec(NULL, "");
|
int res = picviewsetup->exec(NULL, "");
|
||||||
delete picviewsetup;
|
delete picviewsetup;
|
||||||
|
Reference in New Issue
Block a user