mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
neutrino: make blinkenlights runtime configurable
Get rid of "--disable-blinkenlights" configure switch. Colored progress bars can be disabled with "neutrino -noblink" now. Unfortunately CProgressBar had to be touched again to avoid ambiguities in the constructor, but should be done for now. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@133 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1860,6 +1860,7 @@ printf("CNeutrinoApp::SetChannelMode %d\n", newmode);
|
||||
extern int cnxt_debug;
|
||||
extern int sections_debug;
|
||||
extern int zapit_debug;
|
||||
bool pb_blink; /* TODO: get rid of global external variable for this */
|
||||
|
||||
void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
{
|
||||
@@ -1868,6 +1869,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
global_argv[i] = argv[i];
|
||||
global_argv[argc] = NULL;
|
||||
|
||||
pb_blink = true;
|
||||
softupdate = false;
|
||||
fromflash = false;
|
||||
|
||||
@@ -1906,8 +1908,13 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
xres = atoi(argv[x++]);
|
||||
if (x < argc)
|
||||
yres = atoi(argv[x++]);
|
||||
}
|
||||
else if (!strcmp(argv[x], "-noblink")) {
|
||||
pb_blink = false;
|
||||
x++;
|
||||
} else {
|
||||
dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] [-v | --verbose 0..3]\n");
|
||||
dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] [-f | --enable-flash] "
|
||||
"[-v | --verbose 0..3] [-noblink]\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
@@ -2376,7 +2383,7 @@ int CNeutrinoApp::run(int argc, char **argv)
|
||||
g_EpgData = new CEpgData;
|
||||
g_InfoViewer = new CInfoViewer;
|
||||
g_EventList = new EventList;
|
||||
g_volscale = new CProgressBar(200, 15, PB_COLORED, 50, 100, 80, true);
|
||||
g_volscale = new CProgressBar(pb_blink, 200, 15, 50, 100, 80, true);
|
||||
g_CamHandler = new CCAMMenuHandler();
|
||||
g_CamHandler->init();
|
||||
|
||||
|
Reference in New Issue
Block a user