1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef FINDTOOLWINDOW_H |
6 | #define FINDTOOLWINDOW_H |
7 | |
8 | #include "searchresultwindow.h" |
9 | |
10 | #include <QWidget> |
11 | |
12 | class FindToolWindowPrivate; |
13 | class FindToolWindow : public QWidget |
14 | { |
15 | Q_OBJECT |
16 | public: |
17 | explicit FindToolWindow(QWidget *parent = nullptr); |
18 | |
19 | signals: |
20 | |
21 | private: |
22 | void setupUi(); |
23 | void search(); |
24 | void searchText(); |
25 | void replace(); |
26 | void addSearchParamWidget(QWidget *parentWidget); |
27 | void addSearchResultWidget(QWidget *parentWidget); |
28 | void switchSearchParamWidget(); |
29 | bool checkSelectedScopeValid(); |
30 | bool getSearchParams(SearchParams *searchParams); |
31 | |
32 | FindToolWindowPrivate *const d; |
33 | }; |
34 | |
35 | #endif // FINDTOOLWINDOW_H |
36 | |