neutrino: make big EPG window run-time configurable

This was configurable with "-DUSE_SPACE_EFFICIENTLY" but can easily
be integrated into the OSD menu.
TODO: better locale texts could probably be found.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@967 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: e76b372031
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-12-26 (Sun, 26 Dec 2010)
This commit is contained in:
Stefan Seyfried
2010-12-26 11:34:13 +00:00
parent 482974f008
commit 3a35b65a33
8 changed files with 14 additions and 9 deletions

View File

@@ -257,6 +257,7 @@ extra.volume_pos Lautstärkeanzeige
extra.chadded Der aktuelle Kanal wird dem selektierten Bouquet hinzugefügt...\n extra.chadded Der aktuelle Kanal wird dem selektierten Bouquet hinzugefügt...\n
extra.chalreadyinbq Der aktuelle Kanal ist bereits im selektierten Bouquet...\n extra.chalreadyinbq Der aktuelle Kanal ist bereits im selektierten Bouquet...\n
extra.clear_log Logdatei löschen extra.clear_log Logdatei löschen
extra.bigwindows Große Fenster
extra.dboxinfo Box-Info extra.dboxinfo Box-Info
extra.east Osten extra.east Osten
extra.fec_1_2 1/2 S1_QPSK extra.fec_1_2 1/2 S1_QPSK

View File

@@ -983,6 +983,7 @@ videomenu.sharpness Sharpness
videomenu.saturation Saturation videomenu.saturation Saturation
videomenu.hue Hue videomenu.hue Hue
zaptotimer.announce Zapto timer in one minute zaptotimer.announce Zapto timer in one minute
extra.bigwindows Big Windows
extra.dboxinfo Box Info extra.dboxinfo Box Info
extra.scan_mode Scan mode extra.scan_mode Scan mode
extra.start_tostandby Startup to standby extra.start_tostandby Startup to standby

View File

@@ -123,17 +123,15 @@ CEpgData::CEpgData()
void CEpgData::start() void CEpgData::start()
{ {
/* if you want usably sized epg windows, compile with "-DUSE_SPACE_EFFICIENTLY" */
#ifndef USE_SPACE_EFFICIENTLY
#define EPGWIN_SCALE_FACTOR BIG_FONT_FAKTOR
#else
#define EPGWIN_SCALE_FACTOR 1
#endif
/* This defines the size of the EPG window. We use 90% of the screen width and /* This defines the size of the EPG window. We use 90% of the screen width and
* 90% of the screen height. It adjusts itself to the "visible screen" settings * 90% of the screen height. It adjusts itself to the "visible screen" settings
*/ */
ox = (frameBuffer->getScreenWidth() / 20 * 18) / (bigFonts ? 1 : EPGWIN_SCALE_FACTOR); float epgwin_scale_factor = BIG_FONT_FAKTOR; /* stupid useless use of float */
oy = (frameBuffer->getScreenHeight() / 20 * 18) / (bigFonts ? 1 : EPGWIN_SCALE_FACTOR); if (g_settings.big_windows)
epgwin_scale_factor = 1;
ox = (frameBuffer->getScreenWidth() / 20 * 18) / (bigFonts ? 1 : epgwin_scale_factor);
oy = (frameBuffer->getScreenHeight() / 20 * 18) / (bigFonts ? 1 : epgwin_scale_factor);
sx = getScreenStartX(ox); sx = getScreenStartX(ox);
sy = getScreenStartY(oy); sy = getScreenStartY(oy);

View File

@@ -268,7 +268,7 @@ void COsdSetup::showOsdSetup()
osd_menu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_VOLUME_POS, &g_settings.volume_pos, VOLUMEBAR_DISP_POS_OPTIONS, VOLUMEBAR_DISP_POS_OPTIONS_COUNT, true)); osd_menu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_VOLUME_POS, &g_settings.volume_pos, VOLUMEBAR_DISP_POS_OPTIONS, VOLUMEBAR_DISP_POS_OPTIONS_COUNT, true));
osd_menu->addItem(new CMenuOptionChooser(LOCALE_SETTINGS_MENU_POS, &g_settings.menu_pos, MENU_DISP_POS_OPTIONS, MENU_DISP_POS_OPTIONS_COUNT, true)); osd_menu->addItem(new CMenuOptionChooser(LOCALE_SETTINGS_MENU_POS, &g_settings.menu_pos, MENU_DISP_POS_OPTIONS, MENU_DISP_POS_OPTIONS_COUNT, true));
osd_menu->addItem(new CMenuOptionChooser(LOCALE_COLORMENU_FADE, &g_settings.widget_fade, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true )); osd_menu->addItem(new CMenuOptionChooser(LOCALE_COLORMENU_FADE, &g_settings.widget_fade, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true ));
osd_menu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_BIGWINDOWS, &g_settings.big_windows, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
osd_menu->exec(NULL, ""); osd_menu->exec(NULL, "");
osd_menu->hide(); osd_menu->hide();

View File

@@ -744,6 +744,7 @@ printf("***************************** rec dir %s timeshift dir %s\n", g_settings
g_settings.screen_height = configfile.getInt32("screen_height", 0); g_settings.screen_height = configfile.getInt32("screen_height", 0);
g_settings.bigFonts = configfile.getInt32("bigFonts", 0); g_settings.bigFonts = configfile.getInt32("bigFonts", 0);
g_settings.big_windows = configfile.getInt32("big_windows", 0);
strcpy(g_settings.repeat_blocker, configfile.getString("repeat_blocker", "150").c_str()); strcpy(g_settings.repeat_blocker, configfile.getString("repeat_blocker", "150").c_str());
strcpy(g_settings.repeat_genericblocker, configfile.getString("repeat_genericblocker", "100").c_str()); strcpy(g_settings.repeat_genericblocker, configfile.getString("repeat_genericblocker", "100").c_str());
@@ -1339,6 +1340,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
} }
configfile.setInt32("bigFonts", g_settings.bigFonts); configfile.setInt32("bigFonts", g_settings.bigFonts);
configfile.setInt32("big_windows", g_settings.big_windows);
#if 0 #if 0
configfile.setInt32("pip_x", g_settings.pip_x); configfile.setInt32("pip_x", g_settings.pip_x);
configfile.setInt32("pip_y", g_settings.pip_y); configfile.setInt32("pip_y", g_settings.pip_y);

View File

@@ -1255,6 +1255,7 @@ typedef enum {
LOCALE_ZAPIT_SCANTYPE_TV, LOCALE_ZAPIT_SCANTYPE_TV,
LOCALE_ZAPIT_SCANTYPE_TVRADIO, LOCALE_ZAPIT_SCANTYPE_TVRADIO,
LOCALE_ZAPTOTIMER_ANNOUNCE, LOCALE_ZAPTOTIMER_ANNOUNCE,
LOCALE_EXTRA_BIGWINDOWS,
LOCALE_DBOXINFO, LOCALE_DBOXINFO,
LOCALE_EXTRA_SCANMODE, LOCALE_EXTRA_SCANMODE,
LOCALE_EXTRA_STARTSTANDBY, LOCALE_EXTRA_STARTSTANDBY,

View File

@@ -1255,6 +1255,7 @@ const char *locale_real_names[] = {
"zapit.scantype.tv", "zapit.scantype.tv",
"zapit.scantype.tvradio", "zapit.scantype.tvradio",
"zaptotimer.announce", "zaptotimer.announce",
"extra.bigwindows",
"extra.dboxinfo", "extra.dboxinfo",
"extra.scan_mode", "extra.scan_mode",
"extra.start_tostandby", "extra.start_tostandby",

View File

@@ -314,6 +314,7 @@ struct SNeutrinoSettings
int pip_x; int pip_x;
int pip_y; int pip_y;
int bigFonts; int bigFonts;
int big_windows;
int channellist_epgtext_align_right; int channellist_epgtext_align_right;
int channellist_extended; int channellist_extended;