author | simon <simon> | 2002-12-11 12:34:12 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 12:34:12 (UTC) |
commit | 6f5e269efd9d6a5910251ce26750134e841f7b14 (patch) (side-by-side diff) | |
tree | dce5253f8007272eae4260dbf4b75e5ef451e553 /noncore/multimedia/opieplayer2/skin.h | |
parent | d24ad11763335834718485f14e90d8dab2611fa2 (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.h | 12 |
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 @@ -4,4 +4,7 @@ #include <qstring.h> #include <qimage.h> +#include <qmap.h> + +#include "mediawidget.h" class Skin @@ -10,4 +13,6 @@ public: Skin( const QString &name, const QString &fileNameInfix ); + void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ); + QImage backgroundImage() const; QImage buttonUpImage() const; @@ -21,4 +26,11 @@ private: 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 & ); |