From 2e320f66f4f3c831dcfd232b33da0e6ab6dd7dd0 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 15 Jun 2010 06:54:58 +0000 Subject: 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 --- utils/themeeditor/tabcontent.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 utils/themeeditor/tabcontent.h (limited to 'utils/themeeditor/tabcontent.h') 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 @@ +#ifndef TABCONTENT_H +#define TABCONTENT_H + +#include + +class TabContent : public QWidget +{ +Q_OBJECT +public: + enum TabType + { + Skin, + Config + }; + + TabContent(QWidget *parent = 0): QWidget(parent){ } + + virtual TabType type() const = 0; + virtual QString title() const = 0; + virtual QString file() const = 0; + + virtual void save() = 0; + virtual void saveAs() = 0; + + virtual bool requestClose() = 0; + +signals: + void titleChanged(QString); + void lineChanged(int); + +public slots: + +}; + +#endif // TABCONTENT_H -- cgit v1.2.3