author | simon <simon> | 2002-12-11 17:50:15 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-11 17:50:15 (UTC) |
commit | 7c897dfbee81f0fabce4b1a8de4ebab70f3783ee (patch) (side-by-side diff) | |
tree | ec8571ae41c07f78ec697b57f42ebb2d3af947b2 /noncore/multimedia/opieplayer2/skin.h | |
parent | 483e550c75f935706fde4e0ca29c4486aeca09a0 (diff) | |
download | opie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.zip opie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.tar.gz opie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.tar.bz2 |
- restructing a bit the skin data storage, in preparation for cache
improvements
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.h b/noncore/multimedia/opieplayer2/skin.h index 9f7326e..5ab6574 100644 --- a/noncore/multimedia/opieplayer2/skin.h +++ b/noncore/multimedia/opieplayer2/skin.h @@ -29,17 +29,20 @@ #include <qdict.h> #include "mediawidget.h" #include "threadutil.h" #include "singleton.h" +struct SkinData; + class Skin { public: Skin( const QString &name, const QString &fileNameInfix ); Skin( const QString &fileNameInfix ); + ~Skin(); void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ); QImage backgroundImage() const; QImage buttonUpImage() const; QImage buttonDownImage() const; @@ -55,19 +58,13 @@ private: void addButtonToMask( int tag, const QImage &maskImage ) const; QString m_fileNameInfix; QString m_skinPath; - typedef QMap<QString, QImage> ButtonMaskImageMap; - - mutable QImage m_backgroundImage; - mutable QImage m_buttonUpImage; - mutable QImage m_buttonDownImage; - mutable QImage m_buttonMask; - mutable ButtonMaskImageMap m_buttonMasks; + SkinData *d; Skin( const Skin & ); Skin &operator=( const Skin & ); }; class SkinCache : public Singleton<SkinCache> |