summaryrefslogtreecommitdiff
path: root/utils/themeeditor/findreplace/findreplacedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/findreplace/findreplacedialog.h')
-rw-r--r--utils/themeeditor/findreplace/findreplacedialog.h80
1 files changed, 0 insertions, 80 deletions
diff --git a/utils/themeeditor/findreplace/findreplacedialog.h b/utils/themeeditor/findreplace/findreplacedialog.h
deleted file mode 100644
index c3f2539113..0000000000
--- a/utils/themeeditor/findreplace/findreplacedialog.h
+++ /dev/null
@@ -1,80 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * This file has been copied from Lorenzo Bettini, with minor modifications
11 * made available under the LGPL version 3, as the original file was licensed
12 *
13 ****************************************************************************
14 *
15 * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
16 * See COPYING file that comes with this distribution
17 */
18
19#ifndef FINDREPLACEDIALOG_H
20#define FINDREPLACEDIALOG_H
21
22#include <QDialog>
23#include <QPlainTextEdit>
24
25namespace Ui {
26 class FindReplaceDialog;
27}
28
29class QTextEdit;
30class QSettings;
31
32/**
33 * A find/replace dialog.
34 *
35 * It relies on a FindReplaceForm object (see that class for the functionalities provided).
36 */
37class FindReplaceDialog : public QDialog {
38 Q_OBJECT
39public:
40 FindReplaceDialog(QWidget *parent = 0);
41 virtual ~FindReplaceDialog();
42
43 /**
44 * Associates the text editor where to perform the search
45 * @param textEdit
46 */
47 void setTextEdit(QPlainTextEdit *textEdit);
48
49 /**
50 * Writes the state of the form to the passed settings.
51 * @param settings
52 * @param prefix the prefix to insert in the settings
53 */
54 virtual void writeSettings(QSettings &settings, const QString &prefix = "FindReplaceDialog");
55
56 /**
57 * Reads the state of the form from the passed settings.
58 * @param settings
59 * @param prefix the prefix to look for in the settings
60 */
61 virtual void readSettings(QSettings &settings, const QString &prefix = "FindReplaceDialog");
62
63public slots:
64 /**
65 * Finds the next occurrence
66 */
67 void findNext();
68
69 /**
70 * Finds the previous occurrence
71 */
72 void findPrev();
73
74protected:
75 void changeEvent(QEvent *e);
76
77 Ui::FindReplaceDialog *ui;
78};
79
80#endif // FINDREPLACEDIALOG_H