1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef MAVENCONFIGPROPERTYWIDGET_H |
6 | #define MAVENCONFIGPROPERTYWIDGET_H |
7 | |
8 | #include "maven/project/properties/mavenconfigutil.h" |
9 | |
10 | #include "services/project/projectinfo.h" |
11 | |
12 | class PageWidget; |
13 | class MavenDetailPropertyWidgetPrivate; |
14 | class MavenDetailPropertyWidget : public QWidget |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | explicit MavenDetailPropertyWidget(QWidget *parent = nullptr); |
19 | ~MavenDetailPropertyWidget(); |
20 | |
21 | void setValues(const mavenConfig::ConfigureParam *param); |
22 | void getValues(mavenConfig::ConfigureParam *param); |
23 | |
24 | public slots: |
25 | void browserFileDialog(); |
26 | |
27 | private: |
28 | void setupUI(); |
29 | void initData(); |
30 | |
31 | MavenDetailPropertyWidgetPrivate *const d; |
32 | }; |
33 | |
34 | class MavenConfigPropertyWidgetPrivate; |
35 | class MavenConfigPropertyWidget : public PageWidget |
36 | { |
37 | Q_OBJECT |
38 | public: |
39 | explicit MavenConfigPropertyWidget(const dpfservice::ProjectInfo &projectInfo, QStandardItem *item, QWidget *parent = nullptr); |
40 | virtual ~MavenConfigPropertyWidget() override; |
41 | |
42 | void saveConfig() override; |
43 | |
44 | public slots: |
45 | |
46 | private: |
47 | void setupUI(); |
48 | void initData(const dpfservice::ProjectInfo &projectInfo); |
49 | |
50 | MavenConfigPropertyWidgetPrivate *const d; |
51 | }; |
52 | |
53 | #endif // MAVENCONFIGPROPERTYWIDGET_H |
54 | |