mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
CComponents: add progressbar class to cc-items
CProgressbar moved into components sub directory and adapt includes.
Progressbar objects are now usable as cc-item
TODO:
-some color and size corrections
-found some dub codes for sig and snr-bars, needs rework
Origin commit data
------------------
Branch: ni/coolstream
Commit: 860be9a412
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-01 (Mon, 01 Apr 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include <system/settings.h>
|
||||
#include <gui/infoclock.h>
|
||||
|
||||
//static CProgressBar *timescale = 0;
|
||||
static CProgressBar *timescale = 0;
|
||||
|
||||
#define TIMEOSD_FONT SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME
|
||||
#define BARLEN 200
|
||||
@@ -44,7 +44,7 @@ CTimeOSD::CTimeOSD()
|
||||
visible=false;
|
||||
m_mode=MODE_ASC;
|
||||
GetDimensions();
|
||||
timescale = new CProgressBar(true, BARLEN, m_height -5, 40, 100, 70, true);
|
||||
timescale = new CProgressBar();
|
||||
m_time_show = 0;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,9 @@ void CTimeOSD::updatePos(short runningPercent)
|
||||
if(runningPercent > 100 || runningPercent < 0)
|
||||
runningPercent = 0;
|
||||
|
||||
timescale->paintProgressBar2(m_xstart, m_y, runningPercent);
|
||||
timescale->setProgress(m_xstart, m_y, BARLEN, m_height -5, runningPercent, 100);
|
||||
timescale->setBlink();
|
||||
timescale->paint();
|
||||
}
|
||||
|
||||
void CTimeOSD::update(int position, int duration)
|
||||
|
Reference in New Issue
Block a user