1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef BUILDPROPERTYWIDGET_H
6#define BUILDPROPERTYWIDGET_H
7
8#include "configutil.h"
9
10#include "common/widget/pagewidget.h"
11#include "common/widget/configurewidget.h"
12
13class DetailPropertyWidgetPrivate;
14class DetailPropertyWidget : public ConfigureWidget
15{
16 Q_OBJECT
17public:
18 explicit DetailPropertyWidget(QWidget *parent = nullptr);
19 ~DetailPropertyWidget();
20
21 void setValues(const config::BuildConfigure &configure);
22 void getValues(config::BuildConfigure &configure);
23
24private:
25 DetailPropertyWidgetPrivate *const d;
26};
27
28class BuildPropertyWidgetPrivate;
29class BuildPropertyWidget : public PageWidget
30{
31 Q_OBJECT
32public:
33 explicit BuildPropertyWidget(const dpfservice::ProjectInfo &projectInfo, QWidget *parent = nullptr);
34 virtual ~BuildPropertyWidget() override;
35
36 void readConfig() override;
37 void saveConfig() override;
38
39public slots:
40 void updateDetail();
41
42private:
43 void setupOverviewUI();
44 void initData(const dpfservice::ProjectInfo &projectInfo);
45 void initRunConfig(const QString &workDirectory, config::RunConfigure &runConfigure);
46
47 BuildPropertyWidgetPrivate *const d;
48};
49
50#endif // BUILDPROPERTYWIDGET_H
51