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
12class FindToolWindowPrivate;
13class FindToolWindow : public QWidget
14{
15 Q_OBJECT
16public:
17 explicit FindToolWindow(QWidget *parent = nullptr);
18
19signals:
20
21private:
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