summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skindocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/skindocument.h')
-rw-r--r--utils/themeeditor/gui/skindocument.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/skindocument.h b/utils/themeeditor/gui/skindocument.h
index c6b3687..1713023 100644
--- a/utils/themeeditor/gui/skindocument.h
+++ b/utils/themeeditor/gui/skindocument.h
@@ -27,6 +27,8 @@
#include <QHBoxLayout>
#include <QGraphicsScene>
+#include "findreplacedialog.h"
+
#include "skinhighlighter.h"
#include "parsetreemodel.h"
#include "preferencesdialog.h"
@@ -61,6 +63,7 @@ public:
QString file() const{ return fileName; }
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; }
@@ -73,6 +76,9 @@ public:
QGraphicsScene* scene(){ return model->render(project, device, &fileName); }
+ void showFind(){ findReplace->show(); }
+ void hideFind(){ findReplace->hide(); }
+
signals:
public slots:
@@ -104,6 +110,8 @@ private:
ProjectModel* project;
DeviceState* device;
+
+ FindReplaceDialog* findReplace;
};
#endif // SKINDOCUMENT_H