| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef CONFIGUREPROJPANE_H |
| 6 | #define CONFIGUREPROJPANE_H |
| 7 | |
| 8 | |
| 9 | #include "configutil.h" |
| 10 | |
| 11 | #include "services/project/projectinfo.h" |
| 12 | |
| 13 | #include <QWidget> |
| 14 | |
| 15 | class ConfigureProjPanePrivate; |
| 16 | class ConfigureProjPane : public QWidget |
| 17 | { |
| 18 | Q_OBJECT |
| 19 | public: |
| 20 | ConfigureProjPane(const QString &language, |
| 21 | const QString &workspace, |
| 22 | QWidget *parent = nullptr); |
| 23 | ~ConfigureProjPane(); |
| 24 | |
| 25 | signals: |
| 26 | void configureDone(const dpfservice::ProjectInfo &info); |
| 27 | |
| 28 | public slots: |
| 29 | void slotConfigure(); |
| 30 | |
| 31 | private: |
| 32 | void setupUI(); |
| 33 | void resetUI(); |
| 34 | void updateUI(); |
| 35 | void configProject(const config::ConfigureParam *param); |
| 36 | |
| 37 | ConfigureProjPanePrivate *const d; |
| 38 | }; |
| 39 | |
| 40 | #endif // CONFIGUREPROJPANE_H |
| 41 | |