mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +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
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