blob: 3d4fc2793b53e86f989dad6015b737806bbb64e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "projectexplorer_export.h"
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h>
#include <utils/filepath.h>
#include <memory>
namespace Utils { class ProjectIntroPage; }
namespace ProjectExplorer {
struct BaseProjectWizardDialogPrivate;
// Documentation inside.
class PROJECTEXPLORER_EXPORT BaseProjectWizardDialog : public Core::BaseFileWizard
{
Q_OBJECT
protected:
explicit BaseProjectWizardDialog(const Core::BaseFileWizardFactory *factory,
Utils::ProjectIntroPage *introPage, int introId,
QWidget *parent, const Core::WizardDialogParameters ¶meters);
public:
explicit BaseProjectWizardDialog(const Core::BaseFileWizardFactory *factory, QWidget *parent,
const Core::WizardDialogParameters ¶meters);
~BaseProjectWizardDialog() override;
QString projectName() const;
Utils::FilePath filePath() const;
// Generate a new project name (untitled<n>) in path.
static QString uniqueProjectName(const Utils::FilePath &path);
void addExtensionPages(const QList<QWizardPage *> &wizardPageList);
void setIntroDescription(const QString &d);
void setFilePath(const Utils::FilePath &path);
void setProjectName(const QString &name);
void setProjectList(const QStringList &projectList);
void setProjectDirectories(const Utils::FilePaths &directories);
void setForceSubProject(bool force);
signals:
void projectParametersChanged(const QString &projectName, const Utils::FilePath &path);
protected:
Utils::ProjectIntroPage *introPage() const;
Utils::Id selectedPlatform() const;
void setSelectedPlatform(Utils::Id platform);
QSet<Utils::Id> requiredFeatures() const;
void setRequiredFeatures(const QSet<Utils::Id> &featureSet);
private:
void init();
void slotAccepted();
bool validateCurrentPage() override;
std::unique_ptr<BaseProjectWizardDialogPrivate> d;
};
} // namespace ProjectExplorer
|