diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 00:43:33 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 00:43:33 +0000 |
| commit | 054a85fdca651844f969f44755b8531ab2e962d7 (patch) | |
| tree | d424970a137d4bbdd57102961a46653e67589820 /utils/themeeditor/gui/skindocument.h | |
| parent | 467451878726a3755eb3b2b472a3b33299cb9245 (diff) | |
| download | rockbox-054a85fdca651844f969f44755b8531ab2e962d7.zip rockbox-054a85fdca651844f969f44755b8531ab2e962d7.tar.gz rockbox-054a85fdca651844f969f44755b8531ab2e962d7.tar.bz2 rockbox-054a85fdca651844f969f44755b8531ab2e962d7.tar.xz | |
Theme Editor: Added code generate/undo functionality to SkinViewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27704 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/skindocument.h')
| -rw-r--r-- | utils/themeeditor/gui/skindocument.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/themeeditor/gui/skindocument.h b/utils/themeeditor/gui/skindocument.h index 10c9e3f..5e72e29 100644 --- a/utils/themeeditor/gui/skindocument.h +++ b/utils/themeeditor/gui/skindocument.h @@ -66,7 +66,6 @@ public: QString title() const{ return titleText; } QString getStatus(){ return parseStatus; } CodeEditor* getEditor(){ return editor; } - void genCode(){ editor->document()->setPlainText(model->genCode()); } void setProject(ProjectModel* project){ this->project = project; } void save(); @@ -84,14 +83,21 @@ public: void showFind(){ findReplace->show(); } void hideFind(){ findReplace->hide(); } + bool isSynced(){ return treeInSync; } + + signals: + void antiSync(bool outOfSync); public slots: void settingsChanged(); void cursorChanged(); + void parseCode(){ codeChanged(); } + void genCode(){ editor->document()->setPlainText(model->genCode()); } private slots: void codeChanged(); + void modelChanged(); void deviceChanged(){ scene(); } private: @@ -122,6 +128,8 @@ private: QTime lastUpdate; static const int updateInterval; QTimer checkUpdate; + + bool treeInSync; }; #endif // SKINDOCUMENT_H |