forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindReplaceDialog.h
More file actions
48 lines (38 loc) · 976 Bytes
/
FindReplaceDialog.h
File metadata and controls
48 lines (38 loc) · 976 Bytes
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
#ifndef FindReplaceDialog_H
#define FindReplaceDialog_H
#include <QDialog>
class QAbstractButton;
class ExtendedScintilla;
namespace Ui {
class FindReplaceDialog;
}
class FindReplaceDialog : public QDialog
{
Q_OBJECT
public:
explicit FindReplaceDialog(QWidget* parent = nullptr);
~FindReplaceDialog() override;
void setExtendedScintilla(ExtendedScintilla* scintilla);
void show();
void showFindReplaceDialog(bool hasReplace);
private slots:
bool findNext();
void replace();
void findAll();
void replaceAll();
void cancelFind();
void help();
void close();
void reject() override;
void buttonBox_clicked(QAbstractButton* button);
private:
bool findFirst(bool wrap, bool forward);
void searchAll(bool replace);
void indicateSelection();
void clearIndicators();
Ui::FindReplaceDialog* ui;
ExtendedScintilla* m_scintilla;
int foundIndicatorNumber;
bool findInProgress;
};
#endif