mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
neutrino: rework infoviewer
Make the infoviewer more "tuxbox-like". The default appearance should
only change marginally, but this provides infrastructure to:
*) disable the crypto icons (default if --disable-blinkenlights)
*) resize the infobar better to adapt to changed font sizes (not yet
perfect, but better than before)
*) always vertically center the icons in the button bar (red green blue
and AC3/16:9 etc)
The one thing visible immediately is that the infobar is always drawn
at the same height, regardless if the buttonbar is drawn below or not.
Originally I did it that way because a) the code was simpler and b) I
liked it better. If this is an issue, please report an I can change that.
I deliberately did not touch the display in file playback mode, this can
be done later once potential issues are shaken out.
Tis is a massive change, so I expect it to be not perfect. Please report
anything you find.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@98 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 115ba99f2e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-20 (Sun, 20 Dec 2009)
Origin message was:
------------------
neutrino: rework infoviewer
Make the infoviewer more "tuxbox-like". The default appearance should
only change marginally, but this provides infrastructure to:
*) disable the crypto icons (default if --disable-blinkenlights)
*) resize the infobar better to adapt to changed font sizes (not yet
perfect, but better than before)
*) always vertically center the icons in the button bar (red green blue
and AC3/16:9 etc)
The one thing visible immediately is that the infobar is always drawn
at the same height, regardless if the buttonbar is drawn below or not.
Originally I did it that way because a) the code was simpler and b) I
liked it better. If this is an issue, please report an I can change that.
I deliberately did not touch the display in file playback mode, this can
be done later once potential issues are shaken out.
Tis is a massive change, so I expect it to be not perfect. Please report
anything you find.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@98 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -66,10 +66,17 @@ class CInfoViewer
|
||||
int BoxStartY;
|
||||
int ButtonWidth;
|
||||
|
||||
int ChanNameX;
|
||||
int ChanNameY;
|
||||
int ChanWidth;
|
||||
int ChanHeight;
|
||||
int ChanInfoX;
|
||||
|
||||
/* the position of the button bar */
|
||||
int BBarY;
|
||||
int BBarIconY;
|
||||
int BBarFontY;
|
||||
|
||||
int asize;
|
||||
|
||||
CSectionsdClient::CurrentNextInfo info_CurrentNext;
|
||||
@@ -83,7 +90,13 @@ class CInfoViewer
|
||||
CChannelEventList evtlist;
|
||||
CChannelEventList::iterator eli;
|
||||
|
||||
void paintBackground(int col_Numbox);
|
||||
void show_Data( bool calledFromEvent = false );
|
||||
void display_Info(const char *current, const char *next, bool UTF8 = true,
|
||||
bool starttimes = true, const int pb_pos = -1,
|
||||
const char *runningStart = NULL, const char *runningRest = NULL,
|
||||
const char *nextStart = NULL, const char *nextDuration = NULL,
|
||||
bool update_current = true, bool update_next = true);
|
||||
void paintTime( bool show_dot, bool firstPaint );
|
||||
|
||||
void showButton_Audio();
|
||||
|
Reference in New Issue
Block a user