From 0fd23488fe83e0ef62023fb5bd474fade4850d0e Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 3 Jul 2011 12:01:08 +0000 Subject: [PATCH] *neutrino radiotext: added radiotext settings to infobar settings Radiotext don't working fine. If you want to test or fix it, please remove the comment tags and report! see: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/10635-radiotext-einbauen/ git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1559 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/osd_setup.cpp | 6 ++++++ src/gui/osd_setup.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/gui/osd_setup.cpp b/src/gui/osd_setup.cpp index 79821676d..71e31f217 100644 --- a/src/gui/osd_setup.cpp +++ b/src/gui/osd_setup.cpp @@ -65,6 +65,7 @@ COsdSetup::COsdSetup(bool wizard_mode) colorSetupNotifier->changeNotify(NONEXISTANT_LOCALE, NULL); fontsizenotifier = new CFontSizeNotifier; + radiotextNotifier = NULL; is_wizard = wizard_mode; @@ -76,6 +77,8 @@ COsdSetup::~COsdSetup() { delete colorSetupNotifier; delete fontsizenotifier; + //for shure + delete radiotextNotifier; } @@ -319,6 +322,7 @@ void COsdSetup::showOsdSetup() osd_menu->hide(); selected = osd_menu->getSelected(); delete osd_menu; + delete radiotextNotifier; } //menue colors @@ -572,6 +576,8 @@ void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar) menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_VAR_HDD, &g_settings.infobar_show_var_hdd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES, &g_settings.infobar_show_res, INFOBAR_SHOW_RES_MODE_OPTIONS, INFOBAR_SHOW_RES_MODE_OPTION_COUNT, true)); menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW, &g_settings.infobar_show, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); +// radiotextNotifier = new CRadiotextNotifier(); +// menu_infobar->addItem(new CMenuOptionChooser(LOCALE_MISCSETTINGS_RADIOTEXT, &g_settings.radiotext_enable, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, radiotextNotifier)); } //channellist diff --git a/src/gui/osd_setup.h b/src/gui/osd_setup.h index ddf4b0053..b131b0834 100644 --- a/src/gui/osd_setup.h +++ b/src/gui/osd_setup.h @@ -45,6 +45,8 @@ private: CColorSetupNotifier *colorSetupNotifier; CFontSizeNotifier *fontsizenotifier; + CRadiotextNotifier *radiotextNotifier; + int width, selected;