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 10c9e3ff11..5e72e29a8d 100644 --- a/utils/themeeditor/gui/skindocument.h +++ b/utils/themeeditor/gui/skindocument.h | |||
@@ -66,7 +66,6 @@ public: | |||
66 | QString title() const{ return titleText; } | 66 | QString title() const{ return titleText; } |
67 | QString getStatus(){ return parseStatus; } | 67 | QString getStatus(){ return parseStatus; } |
68 | CodeEditor* getEditor(){ return editor; } | 68 | CodeEditor* getEditor(){ return editor; } |
69 | void genCode(){ editor->document()->setPlainText(model->genCode()); } | ||
70 | void setProject(ProjectModel* project){ this->project = project; } | 69 | void setProject(ProjectModel* project){ this->project = project; } |
71 | 70 | ||
72 | void save(); | 71 | void save(); |
@@ -84,14 +83,21 @@ public: | |||
84 | void showFind(){ findReplace->show(); } | 83 | void showFind(){ findReplace->show(); } |
85 | void hideFind(){ findReplace->hide(); } | 84 | void hideFind(){ findReplace->hide(); } |
86 | 85 | ||
86 | bool isSynced(){ return treeInSync; } | ||
87 | |||
88 | |||
87 | signals: | 89 | signals: |
90 | void antiSync(bool outOfSync); | ||
88 | 91 | ||
89 | public slots: | 92 | public slots: |
90 | void settingsChanged(); | 93 | void settingsChanged(); |
91 | void cursorChanged(); | 94 | void cursorChanged(); |
95 | void parseCode(){ codeChanged(); } | ||
96 | void genCode(){ editor->document()->setPlainText(model->genCode()); } | ||
92 | 97 | ||
93 | private slots: | 98 | private slots: |
94 | void codeChanged(); | 99 | void codeChanged(); |
100 | void modelChanged(); | ||
95 | void deviceChanged(){ scene(); } | 101 | void deviceChanged(){ scene(); } |
96 | 102 | ||
97 | private: | 103 | private: |
@@ -122,6 +128,8 @@ private: | |||
122 | QTime lastUpdate; | 128 | QTime lastUpdate; |
123 | static const int updateInterval; | 129 | static const int updateInterval; |
124 | QTimer checkUpdate; | 130 | QTimer checkUpdate; |
131 | |||
132 | bool treeInSync; | ||
125 | }; | 133 | }; |
126 | 134 | ||
127 | #endif // SKINDOCUMENT_H | 135 | #endif // SKINDOCUMENT_H |