summaryrefslogtreecommitdiff
path: root/utils/themeeditor/tabcontent.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-15 06:54:58 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-15 06:54:58 +0000
commit2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0 (patch)
treea6ef8001d797213e9dd81cd41c48f5065c33f3f0 /utils/themeeditor/tabcontent.h
parent1d4dc9b3b0f094a70463395138fc920e5107eabc (diff)
downloadrockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.tar.gz
rockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.zip
Theme Editor: Changed color to colour in preferences. Made parse tree viewer alternate line colors and auto-scroll/expand with cursor in editor window. Implemented TabContent abstract class so that more than just skin documents can be loaded in tabs. Made SkinDocument implement TabContent. Began implementing ConfigDocument for editing configuration files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26851 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/tabcontent.h')
-rw-r--r--utils/themeeditor/tabcontent.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/themeeditor/tabcontent.h b/utils/themeeditor/tabcontent.h
new file mode 100644
index 0000000000..1b153f7df5
--- /dev/null
+++ b/utils/themeeditor/tabcontent.h
@@ -0,0 +1,35 @@
1#ifndef TABCONTENT_H
2#define TABCONTENT_H
3
4#include <QWidget>
5
6class TabContent : public QWidget
7{
8Q_OBJECT
9public:
10 enum TabType
11 {
12 Skin,
13 Config
14 };
15
16 TabContent(QWidget *parent = 0): QWidget(parent){ }
17
18 virtual TabType type() const = 0;
19 virtual QString title() const = 0;
20 virtual QString file() const = 0;
21
22 virtual void save() = 0;
23 virtual void saveAs() = 0;
24
25 virtual bool requestClose() = 0;
26
27signals:
28 void titleChanged(QString);
29 void lineChanged(int);
30
31public slots:
32
33};
34
35#endif // TABCONTENT_H