diff options
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 |