summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbalbumart.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-30 19:35:00 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-30 19:35:00 +0000
commit8114979e8e413caa876cda626fe0b6385bfc56ce (patch)
tree7b1a193dfbbc48941b93d7c5e2f21199d5bd2979 /utils/themeeditor/graphics/rbalbumart.h
parent3e599f4d379aeaa7ce5861c9818028e6d02d4490 (diff)
downloadrockbox-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/rbalbumart.h')
-rw-r--r--utils/themeeditor/graphics/rbalbumart.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbalbumart.h b/utils/themeeditor/graphics/rbalbumart.h
new file mode 100644
index 0000000000..381b715525
--- /dev/null
+++ b/utils/themeeditor/graphics/rbalbumart.h
@@ -0,0 +1,47 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2010 Robert Bieber
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef RBALBUMART_H
23#define RBALBUMART_H
24
25#include <QGraphicsItem>
26
27class RBAlbumArt : public QGraphicsItem
28{
29public:
30 RBAlbumArt(QGraphicsItem* parent, int x, int y, int maxWidth, int maxHeight,
31 int artWidth, int artHeight, char hAlign = 'c',
32 char vAlign = 'c');
33
34 QRectF boundingRect() const;
35 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
36 QWidget *widget);
37
38private:
39 QRectF size;
40 int artWidth;
41 int artHeight;
42 char hAlign;
43 char vAlign;
44 QPixmap texture;
45};
46
47#endif // RBALBUMART_H