From be70fd89be787e2b24604f9ba785b87c1f8f1d22 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sat, 26 Jun 2010 07:59:23 +0000 Subject: Theme Editor: Added an edit menu with a find/replace function (copied from an LGPL library) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27137 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/gui/skindocument.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/themeeditor/gui/skindocument.h') 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 #include +#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 -- cgit v1.1