diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-30 19:35:00 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-30 19:35:00 +0000 |
commit | 8114979e8e413caa876cda626fe0b6385bfc56ce (patch) | |
tree | 7b1a193dfbbc48941b93d7c5e2f21199d5bd2979 /utils/themeeditor/graphics/rbscreen.h | |
parent | 3e599f4d379aeaa7ce5861c9818028e6d02d4490 (diff) | |
download | rockbox-8114979e8e413caa876cda626fe0b6385bfc56ce.tar.gz rockbox-8114979e8e413caa876cda626fe0b6385bfc56ce.zip |
Theme Editor: Added album art display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27199 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.h')
-rw-r--r-- | utils/themeeditor/graphics/rbscreen.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.h b/utils/themeeditor/graphics/rbscreen.h index 7b8b83060a..358a49e4a7 100644 --- a/utils/themeeditor/graphics/rbscreen.h +++ b/utils/themeeditor/graphics/rbscreen.h | |||
@@ -28,8 +28,8 @@ | |||
28 | #include "rbrenderinfo.h" | 28 | #include "rbrenderinfo.h" |
29 | #include "rbimage.h" | 29 | #include "rbimage.h" |
30 | #include "rbfont.h" | 30 | #include "rbfont.h" |
31 | 31 | #include "rbalbumart.h" | |
32 | class RBViewport; | 32 | #include "rbviewport.h" |
33 | 33 | ||
34 | class RBScreen : public QGraphicsItem | 34 | class RBScreen : public QGraphicsItem |
35 | { | 35 | { |
@@ -73,6 +73,16 @@ public: | |||
73 | QColor foreground(){ return fgColor; } | 73 | QColor foreground(){ return fgColor; } |
74 | QColor background(){ return bgColor; } | 74 | QColor background(){ return bgColor; } |
75 | 75 | ||
76 | void setAlbumArt(RBAlbumArt* art){ albumArt = art; } | ||
77 | void showAlbumArt(RBViewport* view) | ||
78 | { | ||
79 | if(albumArt) | ||
80 | { | ||
81 | albumArt->setParentItem(view); | ||
82 | albumArt->show(); | ||
83 | } | ||
84 | } | ||
85 | |||
76 | 86 | ||
77 | private: | 87 | private: |
78 | int width; | 88 | int width; |
@@ -90,6 +100,8 @@ private: | |||
90 | QMap<int, RBFont*> fonts; | 100 | QMap<int, RBFont*> fonts; |
91 | QList<QString> displayedViewports; | 101 | QList<QString> displayedViewports; |
92 | 102 | ||
103 | RBAlbumArt* albumArt; | ||
104 | |||
93 | }; | 105 | }; |
94 | 106 | ||
95 | #endif // RBSCREEN_H | 107 | #endif // RBSCREEN_H |