-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinddialog.h
More file actions
38 lines (36 loc) · 1.04 KB
/
Copy pathfinddialog.h
File metadata and controls
38 lines (36 loc) · 1.04 KB
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
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include<QLayout>
#include<QMessageBox>
#include<QLineEdit>
#include<QLabel>
#include<QPushButton>
#include<QCheckBox>
class FindDialog:public QDialog{
Q_OBJECT
public:
FindDialog(QWidget* parent=nullptr);
signals:
void start_find(QString text,bool caseSensitive,bool wholeWords);
void start_replace(QString what,QString with,bool caseSensitive,bool wholeWords);
void start_replaceAll(QString what,QString with,bool caseSensitive,bool wholeWords);
public slots:
void on_findNext();
void on_replace();
void on_findRequestReady(QString message);
private:
QLabel* findLabel;
QLabel* replaceLabel;
QPushButton* findNextButton;
QPushButton* replaceButton;
QPushButton* replaceAllButton;
QLineEdit* findLineEdit;
QLineEdit* replaceLineEdit;
QCheckBox* caseSensitiveBox;
QCheckBox* wholeWordsBox;
QHBoxLayout* findHorizontal;
QHBoxLayout* replaceHorizontal;
QHBoxLayout* optionsLayout;
QVBoxLayout* verticalLayout;
};
#endif // FINDDIALOG_H