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 | |||
@@ -1,28 +1,40 @@ | |||
1 | #ifndef SKIN_H | 1 | #ifndef SKIN_H |
2 | #define SKIN_H | 2 | #define SKIN_H |
3 | 3 | ||
4 | #include <qstring.h> | 4 | #include <qstring.h> |
5 | #include <qimage.h> | 5 | #include <qimage.h> |
6 | #include <qmap.h> | ||
7 | |||
8 | #include "mediawidget.h" | ||
6 | 9 | ||
7 | class Skin | 10 | class Skin |
8 | { | 11 | { |
9 | public: | 12 | public: |
10 | Skin( const QString &name, const QString &fileNameInfix ); | 13 | Skin( const QString &name, const QString &fileNameInfix ); |
11 | 14 | ||
15 | void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ); | ||
16 | |||
12 | QImage backgroundImage() const; | 17 | QImage backgroundImage() const; |
13 | QImage buttonUpImage() const; | 18 | QImage buttonUpImage() const; |
14 | QImage buttonDownImage() const; | 19 | QImage buttonDownImage() const; |
15 | 20 | ||
16 | QImage buttonMaskImage( const QString &fileName ) const; | 21 | QImage buttonMaskImage( const QString &fileName ) const; |
17 | 22 | ||
18 | private: | 23 | private: |
19 | QString m_name; | 24 | QString m_name; |
20 | QString m_fileNameInfix; | 25 | QString m_fileNameInfix; |
21 | QString m_skinPath; | 26 | QString m_skinPath; |
22 | 27 | ||
28 | typedef QMap<QString, QImage> ButtonMaskImageMap; | ||
29 | |||
30 | mutable QImage m_backgroundImage; | ||
31 | mutable QImage m_buttonUpImage; | ||
32 | mutable QImage m_buttonDownImage; | ||
33 | mutable ButtonMaskImageMap m_buttonMasks; | ||
34 | |||
23 | Skin( const Skin & ); | 35 | Skin( const Skin & ); |
24 | Skin &operator=( const Skin & ); | 36 | Skin &operator=( const Skin & ); |
25 | }; | 37 | }; |
26 | 38 | ||
27 | #endif // SKIN_H | 39 | #endif // SKIN_H |
28 | /* vim: et sw=4 ts=4 | 40 | /* vim: et sw=4 ts=4 |