diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 07:59:23 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 07:59:23 +0000 |
| commit | be70fd89be787e2b24604f9ba785b87c1f8f1d22 (patch) | |
| tree | 5b7ec98c48d2a5d2dc5078007142d2e92c09a8a2 /utils/themeeditor/gui/skindocument.h | |
| parent | 5300c7014d602c57fcae7f6619f5138d83ba33c0 (diff) | |
| download | rockbox-be70fd89be787e2b24604f9ba785b87c1f8f1d22.zip rockbox-be70fd89be787e2b24604f9ba785b87c1f8f1d22.tar.gz rockbox-be70fd89be787e2b24604f9ba785b87c1f8f1d22.tar.bz2 rockbox-be70fd89be787e2b24604f9ba785b87c1f8f1d22.tar.xz | |
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
Diffstat (limited to 'utils/themeeditor/gui/skindocument.h')
| -rw-r--r-- | utils/themeeditor/gui/skindocument.h | 8 |
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 |