mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
neutrino: add an option to choose the classic progress bar style
add a #define NO_BLINKENLIGHTS in scale.h to choose the classic
progress bar style instead of the colorful blinkenlights.
TODO: make this a configure option.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@48 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 143c5948fc
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-13 (Sun, 13 Dec 2009)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,17 +1,28 @@
|
||||
#ifndef __scale_
|
||||
#define __scale_
|
||||
|
||||
/* define this if you do not want colorful blinkenlights
|
||||
the classical progressbars will be used instead. */
|
||||
// #define NO_BLINKENLIGHTS
|
||||
#include <driver/framebuffer.h>
|
||||
|
||||
#ifdef NO_BLINKENLIGHTS
|
||||
#include <gui/widget/progressbar.h>
|
||||
#endif
|
||||
|
||||
class CScale
|
||||
{
|
||||
private:
|
||||
#ifdef NO_BLINKENLIGHTS
|
||||
CProgressBar pb;
|
||||
#else
|
||||
CFrameBuffer * frameBuffer;
|
||||
short red, green, yellow;
|
||||
#endif
|
||||
short width;
|
||||
short height;
|
||||
char percent;
|
||||
short red, green, yellow;
|
||||
bool inverse;
|
||||
|
||||
public:
|
||||
CScale(int w, int h, int r, int g, int b, bool inv = false);
|
||||
void paint(int x, int y, int pcr);
|
||||
|
Reference in New Issue
Block a user