From 8114979e8e413caa876cda626fe0b6385bfc56ce Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Wed, 30 Jun 2010 19:35:00 +0000 Subject: Theme Editor: Added album art display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27199 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbscreen.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/graphics/rbscreen.h') 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 @@ #include "rbrenderinfo.h" #include "rbimage.h" #include "rbfont.h" - -class RBViewport; +#include "rbalbumart.h" +#include "rbviewport.h" class RBScreen : public QGraphicsItem { @@ -73,6 +73,16 @@ public: QColor foreground(){ return fgColor; } QColor background(){ return bgColor; } + void setAlbumArt(RBAlbumArt* art){ albumArt = art; } + void showAlbumArt(RBViewport* view) + { + if(albumArt) + { + albumArt->setParentItem(view); + albumArt->show(); + } + } + private: int width; @@ -90,6 +100,8 @@ private: QMap fonts; QList displayedViewports; + RBAlbumArt* albumArt; + }; #endif // RBSCREEN_H -- cgit v1.2.3