mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +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:
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <driver/framebuffer.h>
|
||||
#include <driver/pig.h>
|
||||
#include <gui/scale.h>
|
||||
#include <gui/widget/progressbar.h>
|
||||
|
||||
|
||||
class CStreamInfo2 : public CMenuTarget
|
||||
@@ -91,8 +91,9 @@ class CStreamInfo2 : public CMenuTarget
|
||||
void paint_signal_fe(struct bitrate rate, struct feSignal s);
|
||||
int y_signal_fe(unsigned long value, unsigned long max_range, int max_y);
|
||||
void SignalRenderStr (unsigned int value, int x, int y);
|
||||
CScale *sigscale;
|
||||
CScale *snrscale;
|
||||
CProgressBar *sigscale;
|
||||
CProgressBar *snrscale;
|
||||
int lastsig, lastsnr;
|
||||
void showSNR ();
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user