1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef NINJAPROJECTGENERATOR_H |
6 | #define NINJAPROJECTGENERATOR_H |
7 | |
8 | #include "ninjaasynparse.h" |
9 | #include "services/project/projectservice.h" |
10 | |
11 | #include <QObject> |
12 | #include <QDomDocument> |
13 | |
14 | class NinjaProjectGeneratorPrivate; |
15 | class NinjaProjectGenerator : public dpfservice::ProjectGenerator |
16 | { |
17 | Q_OBJECT |
18 | NinjaProjectGeneratorPrivate *const d; |
19 | public: |
20 | explicit NinjaProjectGenerator(); |
21 | virtual ~NinjaProjectGenerator(); |
22 | static QString toolKitName() { return "ninja"; } |
23 | virtual QStringList supportLanguages() override; |
24 | virtual QStringList supportFileNames() override; |
25 | virtual QDialog* configureWidget(const QString &language, |
26 | const QString &projectPath) override; |
27 | virtual bool configure(const dpfservice::ProjectInfo &info = {}) override; |
28 | virtual QStandardItem *createRootItem(const dpfservice::ProjectInfo &info) override; |
29 | virtual void removeRootItem(QStandardItem* root) override; |
30 | virtual QMenu* createItemMenu(const QStandardItem *item) override; |
31 | |
32 | private slots: |
33 | void doProjectChildsModified(const QList<QStandardItem*> &items); |
34 | }; |
35 | |
36 | #endif // NINJAPROJECTGENERATOR_H |
37 |