mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +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:
@@ -33,9 +33,9 @@
|
||||
#define __scants__
|
||||
|
||||
#include <gui/widget/menue.h>
|
||||
#include <gui/widget/progressbar.h>
|
||||
#include <driver/framebuffer.h>
|
||||
#include <system/localize.h>
|
||||
#include <gui/scale.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -64,7 +64,8 @@ class CScanTs : public CMenuTarget
|
||||
bool istheend;
|
||||
uint32_t total;
|
||||
uint32_t done;
|
||||
CScale * snrscale, * sigscale;
|
||||
int lastsnr, lastsig;
|
||||
CProgressBar *snrscale, *sigscale;
|
||||
|
||||
void paint(bool fortest = false);
|
||||
void paintLineLocale(int x, int * y, int width, const neutrino_locale_t l);
|
||||
|
Reference in New Issue
Block a user