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
12class PageWidget;
13class MavenDetailPropertyWidgetPrivate;
14class MavenDetailPropertyWidget : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit MavenDetailPropertyWidget(QWidget *parent = nullptr);
19 ~MavenDetailPropertyWidget();
20
21 void setValues(const mavenConfig::ConfigureParam *param);
22 void getValues(mavenConfig::ConfigureParam *param);
23
24public slots:
25 void browserFileDialog();
26
27private:
28 void setupUI();
29 void initData();
30
31 MavenDetailPropertyWidgetPrivate *const d;
32};
33
34class MavenConfigPropertyWidgetPrivate;
35class MavenConfigPropertyWidget : public PageWidget
36{
37 Q_OBJECT
38public:
39 explicit MavenConfigPropertyWidget(const dpfservice::ProjectInfo &projectInfo, QStandardItem *item, QWidget *parent = nullptr);
40 virtual ~MavenConfigPropertyWidget() override;
41
42 void saveConfig() override;
43
44public slots:
45
46private:
47 void setupUI();
48 void initData(const dpfservice::ProjectInfo &projectInfo);
49
50 MavenConfigPropertyWidgetPrivate *const d;
51};
52
53#endif // MAVENCONFIGPROPERTYWIDGET_H
54