mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
neutrino: consolidate CScale and CProgressBar code
Add code for coloured progressbars to CProgressBar class. This allows to deprecate the CScale code completely (is not used anymore) and, in a follow-up step, make the progress bar style runtime configurable. TODO: documentation ;) check if all progressbars still behave the same git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@131 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include <driver/fontrenderer.h>
|
||||
#include <system/settings.h>
|
||||
#include "widget/menue.h"
|
||||
#include <gui/scale.h>
|
||||
#include <gui/widget/progressbar.h>
|
||||
#include <string>
|
||||
|
||||
class CInfoViewer
|
||||
@@ -90,6 +90,9 @@ class CInfoViewer
|
||||
CChannelEventList evtlist;
|
||||
CChannelEventList::iterator eli;
|
||||
|
||||
int lastsnr, lastsig, lasthdd, lastvar, lasttime;
|
||||
CProgressBar *snrscale, *sigscale, *hddscale, *varscale, *timescale;
|
||||
|
||||
void paintBackground(int col_Numbox);
|
||||
void show_Data( bool calledFromEvent = false );
|
||||
void display_Info(const char *current, const char *next, bool UTF8 = true,
|
||||
@@ -115,7 +118,6 @@ class CInfoViewer
|
||||
void showMotorMoving(int duration);
|
||||
void showLcdPercentOver();
|
||||
void showSNR();
|
||||
CScale * snrscale, * sigscale;
|
||||
|
||||
public:
|
||||
bool chanready;
|
||||
|
Reference in New Issue
Block a user