summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/skin.h
authorsimon <simon>2002-12-11 12:34:12 (UTC)
committer simon <simon>2002-12-11 12:34:12 (UTC)
commit6f5e269efd9d6a5910251ce26750134e841f7b14 (patch) (side-by-side diff)
treedce5253f8007272eae4260dbf4b75e5ef451e553 /noncore/multimedia/opieplayer2/skin.h
parentd24ad11763335834718485f14e90d8dab2611fa2 (diff)
downloadopie-6f5e269efd9d6a5910251ce26750134e841f7b14.zip
opie-6f5e269efd9d6a5910251ce26750134e841f7b14.tar.gz
opie-6f5e269efd9d6a5910251ce26750134e841f7b14.tar.bz2
- starting with skin preloading
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.h b/noncore/multimedia/opieplayer2/skin.h
index f160b3c..9276a5b 100644
--- a/noncore/multimedia/opieplayer2/skin.h
+++ b/noncore/multimedia/opieplayer2/skin.h
@@ -3,12 +3,17 @@
#include <qstring.h>
#include <qimage.h>
+#include <qmap.h>
+
+#include "mediawidget.h"
class Skin
{
public:
Skin( const QString &name, const QString &fileNameInfix );
+ void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount );
+
QImage backgroundImage() const;
QImage buttonUpImage() const;
QImage buttonDownImage() const;
@@ -20,6 +25,13 @@ private:
QString m_fileNameInfix;
QString m_skinPath;
+ typedef QMap<QString, QImage> ButtonMaskImageMap;
+
+ mutable QImage m_backgroundImage;
+ mutable QImage m_buttonUpImage;
+ mutable QImage m_buttonDownImage;
+ mutable ButtonMaskImageMap m_buttonMasks;
+
Skin( const Skin & );
Skin &operator=( const Skin & );
};