summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/skin.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.h b/noncore/multimedia/opieplayer2/skin.h
index 9276a5b..14873e7 100644
--- a/noncore/multimedia/opieplayer2/skin.h
+++ b/noncore/multimedia/opieplayer2/skin.h
@@ -3,39 +3,44 @@
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qimage.h> 5#include <qimage.h>
6#include <qmap.h> 6#include <qmap.h>
7 7
8#include "mediawidget.h" 8#include "mediawidget.h"
9 9
10class Skin 10class Skin
11{ 11{
12public: 12public:
13 Skin( const QString &name, const QString &fileNameInfix ); 13 Skin( const QString &name, const QString &fileNameInfix );
14 14
15 void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount ); 15 void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount, const QSize &buttonAreaSize );
16 16
17 QImage backgroundImage() const; 17 QImage backgroundImage() const;
18 QImage buttonUpImage() const; 18 QImage buttonUpImage() const;
19 QImage buttonDownImage() const; 19 QImage buttonDownImage() const;
20 20
21 QImage buttonMask( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount, const QSize &buttonAreaSize ) const;
22
21 QImage buttonMaskImage( const QString &fileName ) const; 23 QImage buttonMaskImage( const QString &fileName ) const;
22 24
23private: 25private:
26 void addButtonToMask( int tag, const QImage &maskImage ) const;
27
24 QString m_name; 28 QString m_name;
25 QString m_fileNameInfix; 29 QString m_fileNameInfix;
26 QString m_skinPath; 30 QString m_skinPath;
27 31
28 typedef QMap<QString, QImage> ButtonMaskImageMap; 32 typedef QMap<QString, QImage> ButtonMaskImageMap;
29 33
30 mutable QImage m_backgroundImage; 34 mutable QImage m_backgroundImage;
31 mutable QImage m_buttonUpImage; 35 mutable QImage m_buttonUpImage;
32 mutable QImage m_buttonDownImage; 36 mutable QImage m_buttonDownImage;
37 mutable QImage m_buttonMask;
33 mutable ButtonMaskImageMap m_buttonMasks; 38 mutable ButtonMaskImageMap m_buttonMasks;
34 39
35 Skin( const Skin & ); 40 Skin( const Skin & );
36 Skin &operator=( const Skin & ); 41 Skin &operator=( const Skin & );
37}; 42};
38 43
39#endif // SKIN_H 44#endif // SKIN_H
40/* vim: et sw=4 ts=4 45/* vim: et sw=4 ts=4
41 */ 46 */