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:
2013-04-01 22:01:55 +02:00
parent d391bedd5f
commit 860be9a412
28 changed files with 616 additions and 590 deletions

View File

@@ -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)