-
Notifications
You must be signed in to change notification settings - Fork 0
/
finddialog.h
36 lines (27 loc) · 872 Bytes
/
finddialog.h
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
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include <QDialog>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE
class FindDialog : public QDialog
{
Q_OBJECT
public:
FindDialog(QWidget *parent = nullptr);
~FindDialog();
signals:
void startFinding(QString queryText, bool caseSensitive, bool wholeWords);
void startReplacing(QString what, QString with, bool caseSensitive, bool wholeWords);
void startReplacingAll(QString what, QString with, bool caseSensitive, bool wholeWords);
public slots:
// Messagebox for displaying results of find and replace ops
void onFindResultReady(QString message) { QMessageBox::information(this, "Find and Replace", message); }
private slots:
void on_find_next_clicked();
void on_replace_clicked();
private:
Ui::Dialog *ui;
};
#endif // FINDDIALOG_H