From be2966035f3a4e5df49cc7a32495dcfd0205fd01 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 11 Mar 2013 12:18:17 +0100 Subject: [PATCH] progressbar-menu-tomworld --- data/locale/deutsch.locale | 18 ++++-- data/locale/english.locale | 18 ++++-- src/gui/Makefile.am | 1 + src/gui/osd_setup.cpp | 30 +++------ src/gui/progressbar_setup.cpp | 114 +++++++++++++++++++++++++++++++++ src/gui/progressbar_setup.h | 46 +++++++++++++ src/gui/widget/progressbar.cpp | 66 ++++++++++++------- src/neutrino.cpp | 2 + src/neutrino_menue.h | 3 + src/system/locals.h | 14 ++-- src/system/locals_intern.h | 14 ++-- src/system/settings.h | 1 + 12 files changed, 264 insertions(+), 63 deletions(-) create mode 100644 src/gui/progressbar_setup.cpp create mode 100644 src/gui/progressbar_setup.h diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 5cf9e0197..51d995ea6 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -803,7 +803,9 @@ menu.hint_infobar_fonts Ändern Sie die Schriftgrößen in der Infobar menu.hint_infobar_logo Logo- und Signal-Optionen menu.hint_infobar_logo_dir Wählen Sie das Verzeichnis für die Senderlogos menu.hint_infobar_on_epg Zeigt einen Hinweis bei EPG-Änderungen -menu.hint_infobar_progressbar Wählt die Optionen des Fortschrittsbalken in der Infobar +menu.hint_infobar_position Wählt die Optionen des Fortschrittsbalken in der Infobar +menu.hint_infobar_progressbar Wählen sie die Optionen für die Progressbar-Anzeige +menu.hint_infobar_progressbar_design Stellen Sie das Design des Fortschrittsbalkens ein menu.hint_infobar_radiotext Zeigt Radiotext in einen Fenster, wenn verfügbar menu.hint_infobar_res Zeige die gesendete Auflösung in Symbolen menu.hint_infobar_sat Zeigt die aktuellen Satelliten- oder Kabel-Provider @@ -1133,11 +1135,15 @@ miscsettings.infobar_disp_5 Logo/Signalbalken miscsettings.infobar_disp_6 Logo+Kanalnummer/Signalbalken miscsettings.infobar_disp_log Logo miscsettings.infobar_logo_hdd_dir Logo-Verz. -miscsettings.infobar_progressbar Fortschrittsbalken Opt. -miscsettings.infobar_progressbar_0 Standard -miscsettings.infobar_progressbar_1 unterhalb Kanalname -miscsettings.infobar_progressbar_2 unterhalb Kanalname schmal -miscsettings.infobar_progressbar_3 zwischen EPG-Events schmal +miscsettings.infobar_position Progessbarposition +miscsettings.infobar_position_0 Standard +miscsettings.infobar_position_1 unterhalb Kanalname +miscsettings.infobar_position_2 unterhalb Kanalname (schmal) +miscsettings.infobar_position_3 zwischen EPG-Events (schmal) +miscsettings.infobar_progressbar Fortschrittsbalken +miscsettings.infobar_progressbar_design Progressbar +miscsettings.infobar_progressbar_design_0 Punktdesign +miscsettings.infobar_progressbar_design_1 Balkendesign miscsettings.infobar_sat_display Kabel-/Satellitenanbieter miscsettings.infobar_show Info bei EPG Änderungen miscsettings.infobar_show_dd_available DD-Verfügbarkeit anzeigen diff --git a/data/locale/english.locale b/data/locale/english.locale index 7ffa48af6..34097e1d3 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -803,7 +803,9 @@ menu.hint_infobar_fonts Change infobar font sizes menu.hint_infobar_logo Logo / signal options menu.hint_infobar_logo_dir Select directory to search for channels logo menu.hint_infobar_on_epg Show infobar on current EPG event change -menu.hint_infobar_progressbar Selects the options of Progressbar in the Infobar +menu.hint_infobar_position Selects the options of Progressbar in the Infobar +menu.hint_infobar_progressbar Select the options for the Progressbar +menu.hint_infobar_progressbar_design Here you can choose the design of the Progressbar with active color option. menu.hint_infobar_radiotext Show radiotext window menu.hint_infobar_res Show channel resolution icons menu.hint_infobar_sat Show current satellite or cable provider @@ -1133,11 +1135,15 @@ miscsettings.infobar_disp_5 Logo+signal miscsettings.infobar_disp_6 Logo+channel number+signal miscsettings.infobar_disp_log Logo miscsettings.infobar_logo_hdd_dir Logo dir -miscsettings.infobar_progressbar progressbar options -miscsettings.infobar_progressbar_0 standard -miscsettings.infobar_progressbar_1 below channel name -miscsettings.infobar_progressbar_2 small below channel name -miscsettings.infobar_progressbar_3 narrow between EPG-Events +miscsettings.infobar_position Progressbar Position +miscsettings.infobar_position_0 standard +miscsettings.infobar_position_1 below channel name +miscsettings.infobar_position_2 small below channel name +miscsettings.infobar_position_3 narrow between EPG-Events +miscsettings.infobar_progressbar Progressbar +miscsettings.infobar_progressbar_design Progressbar +miscsettings.infobar_progressbar_design_0 point Design +miscsettings.infobar_progressbar_design_1 bar Design miscsettings.infobar_sat_display Satellite display on infobar miscsettings.infobar_show show Info on EPG change miscsettings.infobar_show_dd_available show DD availability diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index e4b46ab81..814773ccb 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -81,6 +81,7 @@ libneutrino_gui_a_SOURCES = \ pictureviewer_setup.cpp \ pluginlist.cpp \ plugins.cpp \ + progressbar_setup.cpp \ proxyserver_setup.cpp \ rc_lock.cpp \ record_setup.cpp \ diff --git a/src/gui/osd_setup.cpp b/src/gui/osd_setup.cpp index 3774b6054..4893b39c0 100644 --- a/src/gui/osd_setup.cpp +++ b/src/gui/osd_setup.cpp @@ -43,6 +43,7 @@ #include "screensetup.h" #include "osdlang_setup.h" #include "filebrowser.h" +#include "progressbar_setup.h" #include #include @@ -427,24 +428,29 @@ int COsdSetup::showOsdSetup() mf->setHint("", LOCALE_MENU_HINT_SCREEN_SETUP); osd_menu->addItem(mf); + //progressbar + CMenuForwarder * progress = new CMenuForwarder(LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR, true, NULL, new CProgressbarSetup(), NULL, CRCInput::RC_1); + progress->setHint("", LOCALE_MENU_HINT_INFOBAR_PROGRESSBAR); + osd_menu->addItem(progress); + //infobar CMenuWidget osd_menu_infobar(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_OSDSETUP_INFOBAR); showOsdInfobarSetup(&osd_menu_infobar); - mf = new CMenuForwarder(LOCALE_MISCSETTINGS_INFOBAR, true, NULL, &osd_menu_infobar, NULL, CRCInput::RC_1); + mf = new CMenuForwarder(LOCALE_MISCSETTINGS_INFOBAR, true, NULL, &osd_menu_infobar, NULL, CRCInput::RC_2); mf->setHint("", LOCALE_MENU_HINT_INFOBAR_SETUP); osd_menu->addItem(mf); //channellist CMenuWidget osd_menu_chanlist(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_OSDSETUP_CHANNELLIST); showOsdChanlistSetup(&osd_menu_chanlist); - mf = new CMenuForwarder(LOCALE_MISCSETTINGS_CHANNELLIST, true, NULL, &osd_menu_chanlist, NULL, CRCInput::RC_2); + mf = new CMenuForwarder(LOCALE_MISCSETTINGS_CHANNELLIST, true, NULL, &osd_menu_chanlist, NULL, CRCInput::RC_3); mf->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SETUP); osd_menu->addItem(mf); //screenshot CMenuWidget osd_menu_screenshot(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_OSDSETUP_SCREENSHOT); showOsdScreenShotSetup(&osd_menu_screenshot); - mf = new CMenuForwarder(LOCALE_SCREENSHOT_MENU, true, NULL, &osd_menu_screenshot, NULL, CRCInput::RC_3); + mf = new CMenuForwarder(LOCALE_SCREENSHOT_MENU, true, NULL, &osd_menu_screenshot, NULL, CRCInput::RC_4); mf->setHint("", LOCALE_MENU_HINT_SCREENSHOT_SETUP); osd_menu->addItem(mf); @@ -506,11 +512,6 @@ int COsdSetup::showOsdSetup() mc->setHint("", LOCALE_MENU_HINT_BIGWINDOWS); osd_menu->addItem(mc); - // color progress bar - mc = new CMenuOptionChooser(LOCALE_PROGRESSBAR_COLOR, &g_settings.progressbar_color, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true); - mc->setHint("", LOCALE_MENU_HINT_PROGRESSBAR_COLOR); - osd_menu->addItem(mc); - int res = osd_menu->exec(NULL, ""); delete osd_menu; @@ -727,14 +728,6 @@ const CMenuOptionChooser::keyval LOCALE_MISCSETTINGS_INFOBAR_DISP_OPTIONS[LOCAL { 5 , LOCALE_MISCSETTINGS_INFOBAR_DISP_5 }, { 6 , LOCALE_MISCSETTINGS_INFOBAR_DISP_6 } }; -#define LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_COUNT 4 -const CMenuOptionChooser::keyval LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_OPTIONS[LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_COUNT]= -{ - { 0 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_0 }, - { 1 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_1 }, - { 2 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_2 }, - { 3 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_3 } -}; //infobar void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar) @@ -763,11 +756,6 @@ void COsdSetup::showOsdInfobarSetup(CMenuWidget *menu_infobar) mc->setHint("", LOCALE_MENU_HINT_INFOBAR_SAT); menu_infobar->addItem(mc); - // infobar progress - mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR, &g_settings.infobar_progressbar, LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_OPTIONS, LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_COUNT, true); - mc->setHint("", LOCALE_MENU_HINT_INFOBAR_PROGRESSBAR); - menu_infobar->addItem(mc); - // flash/hdd progress mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD, &g_settings.infobar_show_sysfs_hdd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true); mc->setHint("", LOCALE_MENU_HINT_INFOBAR_FILESYS); diff --git a/src/gui/progressbar_setup.cpp b/src/gui/progressbar_setup.cpp new file mode 100644 index 000000000..98d17fa50 --- /dev/null +++ b/src/gui/progressbar_setup.cpp @@ -0,0 +1,114 @@ +/* + Based up Neutrino-GUI - Tuxbox-Project + Copyright (C) 2001 by Steffen Hehn 'McClean' + + progressbar_setup menu + Suggested by tomworld + + License: GPL + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "progressbar_setup.h" + +#include +#include +#include +#include + +#include + +#include + +#define LOCALE_MISCSETTINGS_INFOBAR_POSITION_COUNT 4 +const CMenuOptionChooser::keyval LOCALE_MISCSETTINGS_INFOBAR_POSITION_OPTIONS[LOCALE_MISCSETTINGS_INFOBAR_POSITION_COUNT]= +{ + { 0 , LOCALE_MISCSETTINGS_INFOBAR_POSITION_0 }, + { 1 , LOCALE_MISCSETTINGS_INFOBAR_POSITION_1 }, + { 2 , LOCALE_MISCSETTINGS_INFOBAR_POSITION_2 }, + { 3 , LOCALE_MISCSETTINGS_INFOBAR_POSITION_3 } +}; + +#define LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_COUNT 2 +const CMenuOptionChooser::keyval LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_OPTIONS[LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_COUNT]= +{ + { 0 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_0 }, + { 1 , LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_1 } +}; + +CProgressbarSetup::CProgressbarSetup() +{ + width = w_max (40, 10); //% +} + +CProgressbarSetup::~CProgressbarSetup() +{ + +} + +int CProgressbarSetup::exec(CMenuTarget* parent, const std::string &) +{ + printf("[neutrino] init progressbar menu setup...\n"); + + if (parent) + parent->hide(); + + return showMenu(); +} + +int CProgressbarSetup::showMenu() +{ + //menue init + CMenuWidget *progress = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_PROGRESSBAR); + + //intros: back ande save + progress->addIntroItems(LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR); + + //infobar progresscolor on/off + COnOffNotifier* miscProgressNotifier = new COnOffNotifier(0); + + CMenuOptionChooser *progresscolor; + progresscolor = new CMenuOptionChooser(LOCALE_PROGRESSBAR_COLOR, &g_settings.progressbar_color, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, miscProgressNotifier); + progresscolor->setHint("", LOCALE_MENU_HINT_PROGRESSBAR_COLOR); + + //infobar design + CMenuOptionChooser *progressdesign = new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN, &g_settings.progressbar_design, LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_OPTIONS, LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_COUNT, g_settings.progressbar_color); + progressdesign->setHint("", LOCALE_MENU_HINT_INFOBAR_PROGRESSBAR_DESIGN); + + //infobar progressbarposition + CMenuOptionChooser *progressbarposition; + progressbarposition = new CMenuOptionChooser(LOCALE_MISCSETTINGS_INFOBAR_POSITION, &g_settings.infobar_progressbar, LOCALE_MISCSETTINGS_INFOBAR_POSITION_OPTIONS, LOCALE_MISCSETTINGS_INFOBAR_POSITION_COUNT, true); + progressbarposition->setHint("", LOCALE_MENU_HINT_INFOBAR_POSITION); + + miscProgressNotifier->addItem(progressdesign); + + //paint items + progress->addItem(progresscolor); + progress->addItem(progressdesign); + progress->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MISCSETTINGS_INFOBAR)); + progress->addItem(progressbarposition); + + int res = progress->exec (NULL, ""); + delete miscProgressNotifier; + delete progress; + + return res; +} diff --git a/src/gui/progressbar_setup.h b/src/gui/progressbar_setup.h new file mode 100644 index 000000000..b650e9cb6 --- /dev/null +++ b/src/gui/progressbar_setup.h @@ -0,0 +1,46 @@ +/* + Based up Neutrino-GUI - Tuxbox-Project + Copyright (C) 2001 by Steffen Hehn 'McClean' + + progressbar_setup menu + Suggested by tomworld + + License: GPL + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#ifndef __PROGRESSBAR_SETUP__ +#define __PROGRESSBAR_SETUP__ + + +#include + +#include + +class CProgressbarSetup : public CMenuTarget, CChangeObserver +{ +private: + int width; + int showMenu(); + +public: + CProgressbarSetup(); + ~CProgressbarSetup(); + int exec(CMenuTarget* parent, const std::string &); +}; + +#endif diff --git a/src/gui/widget/progressbar.cpp b/src/gui/widget/progressbar.cpp index e99ad763b..e9bef678e 100644 --- a/src/gui/widget/progressbar.cpp +++ b/src/gui/widget/progressbar.cpp @@ -153,11 +153,11 @@ void CProgressBar::realpaint(const int pos_x, const int pos_y, // max height progressbar bar, if icon height larger than pb_height then get height from icon int pb_max_height = icon_h > height ? icon_h + 2* frame_widht : height; + // max height of active/passive bar + int bar_height = pb_max_height - 2*frame_widht; + if (!blink || !g_settings.progressbar_color) { - // max height of active/passive bar - int bar_height = pb_max_height - 2*frame_widht; - int start_x_passive_bar = start_x + active_pb_width; int width_passive_bar = pb_max_width - active_pb_width; @@ -202,63 +202,85 @@ void CProgressBar::realpaint(const int pos_x, const int pos_y, width, pb_max_height, shadowbar_col, c_rad); // shadow } - if (active_pb_width != last_width) { + if (active_pb_width != last_width) + { int step; int i, j; int b = 0; - if (active_pb_width > last_width) { - for (i = 0; (i < rd) && (i < maxi); i++) { + if (active_pb_width > last_width) + { + for (i = 0; (i < rd) && (i < maxi); i++) + { //green section step = 255 / rd; if (invert) rgb = GREEN + ((unsigned char)(step * i) << 16); // adding red else rgb = RED + ((unsigned char)(step * i) << 8); // adding green color = make16color(rgb); - for(j = 0; j <= hcnt; j++) - frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, - POINT, POINT, color); + if (g_settings.progressbar_design == 0) + { + for(j = 0; j <= hcnt; j++) + frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, POINT, POINT, color); + } + else + frameBuffer->paintBoxRel(pos_x + i * ITEMW,start_y, POINT, bar_height, color); } - for (; (i < yw) && (i < maxi); i++) { + for (; (i < yw) && (i < maxi); i++) + { //yello section step = 255 / yw / 2; if (invert) rgb = YELLOW - ((unsigned char)(step * (b++)) << 8); // removing green else rgb = YELLOW - ((unsigned char)(step * (b++)) << 16); // removing red color = make16color(rgb); - for(j = 0; j <= hcnt; j++) - frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, - POINT, POINT, color); + if (g_settings.progressbar_design == 0) + { + for(j = 0; j <= hcnt; j++) + frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, POINT, POINT, color); + } + else + frameBuffer->paintBoxRel(pos_x + i * ITEMW, start_y, POINT, bar_height, color); } - for (; (i < gn) && (i < maxi); i++) { + for (; (i < gn) && (i < maxi); i++) + { //red section step = 255 / gn; if (invert) rgb = YELLOW - ((unsigned char) (step * (b++)) << 8); // removing green else rgb = YELLOW - ((unsigned char) (step * (b++)) << 16); // removing red color = make16color(rgb); - for(j = 0; j <= hcnt; j++) - frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, - POINT, POINT, color); + if (g_settings.progressbar_design == 0) + { + for(j = 0; j <= hcnt; j++) + frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, POINT, POINT, color); + } + else + frameBuffer->paintBoxRel(pos_x + i * ITEMW, start_y, POINT, bar_height, color); } } - for(i = maxi; i < total; i++) { + for(i = maxi; i < total; i++) + { for(j = 0; j <= hcnt; j++) - frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, - POINT, POINT, COL_INFOBAR_PLUS_3);//fill passive + if (g_settings.progressbar_design == 0) + frameBuffer->paintBoxRel(pos_x + i * ITEMW, pos_y + j * ITEMW, POINT, POINT, COL_INFOBAR_PLUS_3);//fill passive + else + frameBuffer->paintBoxRel(pos_x + i * ITEMW, start_y, POINT, bar_height, COL_INFOBAR_PLUS_3);//fill passive } last_width = active_pb_width; } } // paint icon if present - if (iconfile != NULL){ + if (iconfile != NULL) + { int icon_y = pos_y + pb_max_height / 2 - icon_h / 2; frameBuffer->paintIcon(iconfile, pos_x + frame_widht, icon_y); } // upper text int upper_labeltext_y = start_y - frame_widht; - if (upper_labeltext != NULL) { + if (upper_labeltext != NULL) + { g_Font[font_pbar]->RenderString(start_x +2, upper_labeltext_y, width, diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 89f3ac823..42bc68f1e 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -383,6 +383,7 @@ int CNeutrinoApp::loadSetup(const char * fname) g_settings.infobar_show_channeldesc = configfile.getBool("infobar_show_channeldesc" , false ); g_settings.infobar_subchan_disp_pos = configfile.getInt32("infobar_subchan_disp_pos" , 0 ); g_settings.progressbar_color = configfile.getBool("progressbar_color", true ); + g_settings.progressbar_design = configfile.getInt32("progressbar_design",0); g_settings.infobar_show = configfile.getInt32("infobar_show", 1); g_settings.infobar_show_channellogo = configfile.getInt32("infobar_show_channellogo" , 3 ); g_settings.infobar_progressbar = configfile.getInt32("infobar_progressbar" , 0 ); @@ -841,6 +842,7 @@ void CNeutrinoApp::saveSetup(const char * fname) configfile.setBool("infobar_show_channeldesc" , g_settings.infobar_show_channeldesc ); configfile.setInt32("infobar_subchan_disp_pos" , g_settings.infobar_subchan_disp_pos ); configfile.setBool("progressbar_color" , g_settings.progressbar_color ); + configfile.setInt32("progressbar_design", g_settings.progressbar_design); configfile.setInt32("infobar_show", g_settings.infobar_show); configfile.setInt32("infobar_show_channellogo" , g_settings.infobar_show_channellogo ); configfile.setInt32("infobar_progressbar" , g_settings.infobar_progressbar ); diff --git a/src/neutrino_menue.h b/src/neutrino_menue.h index 6677e080a..179bb84af 100644 --- a/src/neutrino_menue.h +++ b/src/neutrino_menue.h @@ -69,6 +69,9 @@ enum MN_WIDGET_ID MN_WIDGET_ID_OSDSETUP_FONTSIZE_INFOBAR, MN_WIDGET_ID_OSDSETUP_FONTSIZE_GAMELIST, + //progressbar setup + MN_WIDGET_ID_PROGRESSBAR, + //language setup MN_WIDGET_ID_LANGUAGESETUP, MN_WIDGET_ID_LANGUAGESETUP_LOCALE, diff --git a/src/system/locals.h b/src/system/locals.h index 38203a667..2a1459151 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -830,7 +830,9 @@ typedef enum LOCALE_MENU_HINT_INFOBAR_LOGO, LOCALE_MENU_HINT_INFOBAR_LOGO_DIR, LOCALE_MENU_HINT_INFOBAR_ON_EPG, + LOCALE_MENU_HINT_INFOBAR_POSITION, LOCALE_MENU_HINT_INFOBAR_PROGRESSBAR, + LOCALE_MENU_HINT_INFOBAR_PROGRESSBAR_DESIGN, LOCALE_MENU_HINT_INFOBAR_RADIOTEXT, LOCALE_MENU_HINT_INFOBAR_RES, LOCALE_MENU_HINT_INFOBAR_SAT, @@ -1160,11 +1162,15 @@ typedef enum LOCALE_MISCSETTINGS_INFOBAR_DISP_6, LOCALE_MISCSETTINGS_INFOBAR_DISP_LOG, LOCALE_MISCSETTINGS_INFOBAR_LOGO_HDD_DIR, + LOCALE_MISCSETTINGS_INFOBAR_POSITION, + LOCALE_MISCSETTINGS_INFOBAR_POSITION_0, + LOCALE_MISCSETTINGS_INFOBAR_POSITION_1, + LOCALE_MISCSETTINGS_INFOBAR_POSITION_2, + LOCALE_MISCSETTINGS_INFOBAR_POSITION_3, LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR, - LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_0, - LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_1, - LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_2, - LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_3, + LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN, + LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_0, + LOCALE_MISCSETTINGS_INFOBAR_PROGRESSBAR_DESIGN_1, LOCALE_MISCSETTINGS_INFOBAR_SAT_DISPLAY, LOCALE_MISCSETTINGS_INFOBAR_SHOW, LOCALE_MISCSETTINGS_INFOBAR_SHOW_DD_AVAILABLE, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index a712c50d2..34e8b4ea2 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -830,7 +830,9 @@ const char * locale_real_names[] = "menu.hint_infobar_logo", "menu.hint_infobar_logo_dir", "menu.hint_infobar_on_epg", + "menu.hint_infobar_position", "menu.hint_infobar_progressbar", + "menu.hint_infobar_progressbar_design", "menu.hint_infobar_radiotext", "menu.hint_infobar_res", "menu.hint_infobar_sat", @@ -1160,11 +1162,15 @@ const char * locale_real_names[] = "miscsettings.infobar_disp_6", "miscsettings.infobar_disp_log", "miscsettings.infobar_logo_hdd_dir", + "miscsettings.infobar_position", + "miscsettings.infobar_position_0", + "miscsettings.infobar_position_1", + "miscsettings.infobar_position_2", + "miscsettings.infobar_position_3", "miscsettings.infobar_progressbar", - "miscsettings.infobar_progressbar_0", - "miscsettings.infobar_progressbar_1", - "miscsettings.infobar_progressbar_2", - "miscsettings.infobar_progressbar_3", + "miscsettings.infobar_progressbar_design", + "miscsettings.infobar_progressbar_design_0", + "miscsettings.infobar_progressbar_design_1", "miscsettings.infobar_sat_display", "miscsettings.infobar_show", "miscsettings.infobar_show_dd_available", diff --git a/src/system/settings.h b/src/system/settings.h index 713b5161e..c30e3246a 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -70,6 +70,7 @@ struct SNeutrinoSettings int infobar_show_channellogo; int infobar_progressbar; int progressbar_color; + int progressbar_design; int casystem_display; int scrambled_message; int volume_pos;