Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (ignore 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 @@ -2,14 +2,19 @@ #define SKIN_H #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; @@ -19,8 +24,15 @@ private: QString m_name; 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 & ); }; |