blob: 547ad236e5ab856d53b8422c22b4ab4371f31db5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* This file has been copied from Lorenzo Bettini, with minor modifications
* made available under the LGPL version 3, as the original file was licensed
*
****************************************************************************
*
* Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
* See COPYING file that comes with this distribution
*/
#include "findreplacedialog.h"
#include "ui_findreplacedialog.h"
FindReplaceDialog::FindReplaceDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::FindReplaceDialog)
{
ui->setupUi(this);
}
FindReplaceDialog::~FindReplaceDialog()
{
delete ui;
}
void FindReplaceDialog::changeEvent(QEvent *e)
{
QDialog::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}
void FindReplaceDialog::setTextEdit(QPlainTextEdit *textEdit) {
ui->findReplaceForm->setTextEdit(textEdit);
}
void FindReplaceDialog::writeSettings(QSettings &settings, const QString &prefix) {
ui->findReplaceForm->writeSettings(settings, prefix);
}
void FindReplaceDialog::readSettings(QSettings &settings, const QString &prefix) {
ui->findReplaceForm->readSettings(settings, prefix);
}
void FindReplaceDialog::findNext() {
ui->findReplaceForm->findNext();
}
void FindReplaceDialog::findPrev() {
ui->findReplaceForm->findPrev();
}
|