1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
13 ****************************************************************************
15 * Copyright (C) 2009 Lorenzo Bettini <http://www.lorenzobettini.it>
16 * See COPYING file that comes with this distribution
19 #include "findreplacedialog.h"
20 #include "ui_findreplacedialog.h"
22 FindReplaceDialog::FindReplaceDialog(QWidget
*parent
) :
24 ui(new Ui::FindReplaceDialog
)
29 FindReplaceDialog::~FindReplaceDialog()
34 void FindReplaceDialog::changeEvent(QEvent
*e
)
36 QDialog::changeEvent(e
);
38 case QEvent::LanguageChange
:
39 ui
->retranslateUi(this);
46 void FindReplaceDialog::setTextEdit(QPlainTextEdit
*textEdit
) {
47 ui
->findReplaceForm
->setTextEdit(textEdit
);
50 void FindReplaceDialog::writeSettings(QSettings
&settings
, const QString
&prefix
) {
51 ui
->findReplaceForm
->writeSettings(settings
, prefix
);
54 void FindReplaceDialog::readSettings(QSettings
&settings
, const QString
&prefix
) {
55 ui
->findReplaceForm
->readSettings(settings
, prefix
);
58 void FindReplaceDialog::findNext() {
59 ui
->findReplaceForm
->findNext();
62 void FindReplaceDialog::findPrev() {
63 ui
->findReplaceForm
->findPrev();