diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-15 06:54:58 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-15 06:54:58 +0000 |
| commit | 2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0 (patch) | |
| tree | a6ef8001d797213e9dd81cd41c48f5065c33f3f0 /utils/themeeditor/skindocument.h | |
| parent | 1d4dc9b3b0f094a70463395138fc920e5107eabc (diff) | |
| download | rockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.zip rockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.tar.gz rockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.tar.bz2 rockbox-2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0.tar.xz | |
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/skindocument.h')
| -rw-r--r-- | utils/themeeditor/skindocument.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/themeeditor/skindocument.h b/utils/themeeditor/skindocument.h index 79db8b6..c6449ca 100644 --- a/utils/themeeditor/skindocument.h +++ b/utils/themeeditor/skindocument.h @@ -30,8 +30,9 @@ #include "parsetreemodel.h" #include "preferencesdialog.h" #include "codeeditor.h" +#include "tabcontent.h" -class SkinDocument : public QWidget +class SkinDocument : public TabContent { Q_OBJECT public: @@ -52,8 +53,8 @@ public: void connectPrefs(PreferencesDialog* prefs); ParseTreeModel* getModel(){ return model; } - QString getFile(){ return fileName; } - QString getTitle(){ return title; } + QString file() const{ return fileName; } + QString title() const{ return titleText; } QString getStatus(){ return parseStatus; } void genCode(){ editor->document()->setPlainText(model->genCode()); } @@ -62,8 +63,9 @@ public: bool requestClose(); + TabType type() const{ return Skin; } + signals: - void titleChanged(QString); public slots: void settingsChanged(); @@ -75,7 +77,7 @@ private slots: private: void setupUI(); - QString title; + QString titleText; QString fileName; QString saved; QString parseStatus; |