summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-24 15:10:31 (UTC)
committer zecke <zecke>2004-09-24 15:10:31 (UTC)
commit5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42 (patch) (side-by-side diff)
tree6be2b6e609bac292dcd7dae2d7e79b3a454a835f
parent8e903cd3ea735adf066e156462602987691a4c69 (diff)
downloadopie-5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42.zip
opie-5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42.tar.gz
opie-5ec51a8bb49a0a668bb2d7ab652a1a1e776a0e42.tar.bz2
Give Status for Sking Loading and Finishing Loading
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.cpp b/noncore/multimedia/opieplayer2/skin.cpp
index 5d8929e..b2c1649 100644
--- a/noncore/multimedia/opieplayer2/skin.cpp
+++ b/noncore/multimedia/opieplayer2/skin.cpp
@@ -30,2 +30,3 @@
#include <qpe/config.h>
+#include <qpe/global.h>
@@ -181,3 +182,3 @@ SkinData *SkinCache::lookupAndTake( const QString &skinPath, const QString &file
else
- odebug << "SkinCache: hit" << oendl;
+ odebug << "SkinCache: hit" << oendl;
@@ -185,3 +186,3 @@ SkinData *SkinCache::lookupAndTake( const QString &skinPath, const QString &file
if ( bgPixmap ) {
- odebug << "SkinCache: hit on bgpixmap" << oendl;
+ odebug << "SkinCache: hit on bgpixmap" << oendl;
data->backgroundPixmap = *bgPixmap;
@@ -221,3 +222,3 @@ SkinLoader::IncrementalLoader::LoaderResult SkinLoader::IncrementalLoader::loadS
case LoadBackgroundPixmap:
- odebug << "load bgpixmap" << oendl;
+ odebug << "load bgpixmap" << oendl;
m_skin.backgroundPixmap();
@@ -226,3 +227,3 @@ SkinLoader::IncrementalLoader::LoaderResult SkinLoader::IncrementalLoader::loadS
case LoadButtonUpImage:
- odebug << "load upimage" << oendl;
+ odebug << "load upimage" << oendl;
m_skin.buttonUpImage();
@@ -231,3 +232,3 @@ SkinLoader::IncrementalLoader::LoaderResult SkinLoader::IncrementalLoader::loadS
case LoadButtonDownImage:
- odebug << "load downimage" << oendl;
+ odebug << "load downimage" << oendl;
m_skin.buttonDownImage();
@@ -237,3 +238,3 @@ SkinLoader::IncrementalLoader::LoaderResult SkinLoader::IncrementalLoader::loadS
case LoadButtonMasks:
- odebug << "load button masks " << m_currentButton << "" << oendl;
+ odebug << "load button masks " << m_currentButton << "" << oendl;
m_skin.buttonMaskImage( m_info.buttonInfo[ m_currentButton ].fileName );
@@ -246,3 +247,3 @@ SkinLoader::IncrementalLoader::LoaderResult SkinLoader::IncrementalLoader::loadS
case LoadButtonMask:
- odebug << "load whole mask" << oendl;
+ odebug << "load whole mask" << oendl;
m_skin.buttonMask( m_info.buttonInfo, m_info.buttonCount );
@@ -261,3 +262,3 @@ SkinLoader::~SkinLoader()
{
- odebug << "SkinLoader::~SkinLoader()" << oendl;
+ Global::statusMessage( tr( "Loading of Skin finished" ) );
killTimers();
@@ -280,3 +281,3 @@ void SkinLoader::start()
m_timerId = startTimer( 100 /* ms */ );
- odebug << "SkinLoader::start() " << pendingSkins.count() << " jobs" << oendl;
+ odebug << "SkinLoader::start() " << pendingSkins.count() << " jobs" << oendl;
}
@@ -293,3 +294,3 @@ void SkinLoader::timerEvent( QTimerEvent *ev )
if ( pendingSkins.isEmpty() ) {
- odebug << "all jobs done" << oendl;
+ odebug << "all jobs done" << oendl;
killTimer( m_timerId );
@@ -305,3 +306,3 @@ void SkinLoader::timerEvent( QTimerEvent *ev )
m_currentLoader = new IncrementalLoader( nfo );
- odebug << "new loader " << pendingSkins.count() << " jobs left" << oendl;
+ odebug << "new loader " << pendingSkins.count() << " jobs left" << oendl;
}
@@ -313,3 +314,3 @@ void SkinLoader::timerEvent( QTimerEvent *ev )
- odebug << "finished step" << oendl;
+ odebug << "finished step" << oendl;
}