summaryrefslogtreecommitdiff
path: root/utils/themeeditor/qtfindreplacedialog/findform.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-23 07:31:53 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-23 07:31:53 +0000
commite6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7 (patch)
treeda29255f5c33ae915c28a1dbff5525fdf912fbe6 /utils/themeeditor/qtfindreplacedialog/findform.h
parentb21b7714209230cbadab1e709c6778c4cc214437 (diff)
downloadrockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.tar.gz
rockbox-e6fd3d0318d0f53c51cf4cc87ccdc8f9741957e7.zip
Theme Editor: Switched back to Lorenzo Bettini's find/replace dialog (with some modifications) as he changed the license to LGPL v2.1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27528 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/qtfindreplacedialog/findform.h')
-rw-r--r--utils/themeeditor/qtfindreplacedialog/findform.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/themeeditor/qtfindreplacedialog/findform.h b/utils/themeeditor/qtfindreplacedialog/findform.h
new file mode 100644
index 0000000000..57911c4ef1
--- /dev/null
+++ b/utils/themeeditor/qtfindreplacedialog/findform.h
@@ -0,0 +1,45 @@
1/*
2 * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
3 * See COPYING file that comes with this distribution
4 */
5
6#ifndef FINDFORM_H
7#define FINDFORM_H
8
9#include <QWidget>
10#include <QTextCursor>
11
12#include "findreplace_global.h"
13
14#include "findreplaceform.h"
15
16/**
17 * The form for the find dialog (it is basically the same
18 * as FindReplaceForm without the replace related widgets).
19 */
20class FINDREPLACESHARED_EXPORT FindForm : public FindReplaceForm {
21 Q_OBJECT
22public:
23 FindForm(QWidget *parent = 0);
24 ~FindForm();
25
26 /**
27 * Writes the state of the form to the passed settings.
28 * @param settings
29 * @param prefix the prefix to insert in the settings
30 */
31 virtual void writeSettings(QSettings &settings, const QString &prefix = "FindDialog");
32
33 /**
34 * Reads the state of the form from the passed settings.
35 * @param settings
36 * @param prefix the prefix to look for in the settings
37 */
38 virtual void readSettings(QSettings &settings, const QString &prefix = "FindDialog");
39
40protected:
41 void changeEvent(QEvent *e);
42
43};
44
45#endif // FINDFORM_H