Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/skin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.h b/noncore/multimedia/opieplayer2/skin.h index bafebd3..067b6c4 100644 --- a/noncore/multimedia/opieplayer2/skin.h +++ b/noncore/multimedia/opieplayer2/skin.h | |||
@@ -29,43 +29,47 @@ | |||
29 | 29 | ||
30 | #include "mediawidget.h" | 30 | #include "mediawidget.h" |
31 | 31 | ||
32 | struct SkinData; | 32 | struct SkinData; |
33 | 33 | ||
34 | class Skin | 34 | class Skin |
35 | { | 35 | { |
36 | public: | 36 | public: |
37 | Skin( const QString &name, const QString &fileNameInfix ); | 37 | Skin( const QString &name, const QString &fileNameInfix ); |
38 | Skin( const QString &fileNameInfix ); | 38 | Skin( const QString &fileNameInfix ); |
39 | ~Skin(); | 39 | ~Skin(); |
40 | 40 | ||
41 | bool isCachable() const { return m_isCachable; } | ||
42 | void setCachable( bool cachable ) { m_isCachable = cachable; } | ||
43 | |||
41 | QPixmap backgroundPixmap() const; | 44 | QPixmap backgroundPixmap() const; |
42 | QImage buttonUpImage() const; | 45 | QImage buttonUpImage() const; |
43 | QImage buttonDownImage() const; | 46 | QImage buttonDownImage() const; |
44 | 47 | ||
45 | QImage buttonMask( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ) const; | 48 | QImage buttonMask( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ) const; |
46 | 49 | ||
47 | QImage buttonMaskImage( const QString &fileName ) const; | 50 | QImage buttonMaskImage( const QString &fileName ) const; |
48 | 51 | ||
49 | static QString defaultSkinName(); | 52 | static QString defaultSkinName(); |
50 | 53 | ||
51 | private: | 54 | private: |
52 | void init( const QString &name ); | 55 | void init( const QString &name ); |
53 | 56 | ||
54 | void addButtonToMask( int tag, const QImage &maskImage ) const; | 57 | void addButtonToMask( int tag, const QImage &maskImage ) const; |
55 | 58 | ||
56 | static QImage loadImage( const QString &fileName ); | 59 | static QImage loadImage( const QString &fileName ); |
57 | 60 | ||
58 | QString m_fileNameInfix; | 61 | QString m_fileNameInfix; |
59 | QString m_skinPath; | 62 | QString m_skinPath; |
63 | bool m_isCachable : 1; | ||
60 | 64 | ||
61 | SkinData *d; | 65 | SkinData *d; |
62 | 66 | ||
63 | Skin( const Skin & ); | 67 | Skin( const Skin & ); |
64 | Skin &operator=( const Skin & ); | 68 | Skin &operator=( const Skin & ); |
65 | }; | 69 | }; |
66 | 70 | ||
67 | class SkinLoader : public QObject | 71 | class SkinLoader : public QObject |
68 | { | 72 | { |
69 | Q_OBJECT | 73 | Q_OBJECT |
70 | public: | 74 | public: |
71 | SkinLoader(); | 75 | SkinLoader(); |