diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-08-03 22:29:26 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-03 22:29:26 +0000 |
commit | 83c60a1012f2db6c21c5779f7e11b2f3e479df85 (patch) | |
tree | c4ceb451457fe34cd0df156d0b9a6ecc593496ac /utils/themeeditor/graphics/rbviewport.h | |
parent | 851be21f671feb0bf41e1dcaaced4d7e2e5cf72c (diff) | |
download | rockbox-83c60a1012f2db6c21c5779f7e11b2f3e479df85.tar.gz rockbox-83c60a1012f2db6c21c5779f7e11b2f3e479df85.zip |
Theme Editor: Created the RBMovable abstract class for screen elements that can be moved around, began implementing it and making images, viewports, and album art children of it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.h')
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.h b/utils/themeeditor/graphics/rbviewport.h index ea47225f09..b9bafe47d1 100644 --- a/utils/themeeditor/graphics/rbviewport.h +++ b/utils/themeeditor/graphics/rbviewport.h | |||
@@ -24,13 +24,14 @@ | |||
24 | 24 | ||
25 | #include "skin_parser.h" | 25 | #include "skin_parser.h" |
26 | #include "rbfont.h" | 26 | #include "rbfont.h" |
27 | #include "rbmovable.h" | ||
27 | 28 | ||
28 | class RBScreen; | 29 | class RBScreen; |
29 | class RBRenderInfo; | 30 | class RBRenderInfo; |
30 | 31 | ||
31 | #include <QGraphicsItem> | 32 | #include <QGraphicsItem> |
32 | 33 | ||
33 | class RBViewport : public QGraphicsItem | 34 | class RBViewport : public RBMovable |
34 | { | 35 | { |
35 | public: | 36 | public: |
36 | enum Alignment | 37 | enum Alignment |
@@ -78,7 +79,7 @@ public: | |||
78 | skin_element* noId3); | 79 | skin_element* noId3); |
79 | 80 | ||
80 | protected: | 81 | protected: |
81 | QVariant itemChange(GraphicsItemChange change, const QVariant &value); | 82 | void saveGeometry(); |
82 | 83 | ||
83 | private: | 84 | private: |
84 | 85 | ||