2023-03-07 13:00:44 +01:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
|
|
2023-11-21 10:27:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-03-07 13:00:44 +01:00
|
|
|
#include <projectexplorer/jsonwizard/jsonwizard.h>
|
|
|
|
|
#include <projectexplorer/jsonwizard/jsonwizardpagefactory.h>
|
|
|
|
|
#include <projectexplorer/runconfigurationaspects.h>
|
|
|
|
|
|
|
|
|
|
#include <utils/aspects.h>
|
|
|
|
|
#include <utils/wizardpage.h>
|
|
|
|
|
|
|
|
|
|
namespace Python::Internal {
|
|
|
|
|
|
|
|
|
|
class PythonWizardPageFactory : public ProjectExplorer::JsonWizardPageFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PythonWizardPageFactory();
|
|
|
|
|
|
|
|
|
|
Utils::WizardPage *create(ProjectExplorer::JsonWizard *wizard,
|
|
|
|
|
Utils::Id typeId,
|
|
|
|
|
const QVariant &data) override;
|
|
|
|
|
bool validateData(Utils::Id typeId, const QVariant &data, QString *errorMessage) override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PythonWizardPage : public Utils::WizardPage
|
|
|
|
|
{
|
|
|
|
|
public:
|
2023-03-10 10:26:56 +01:00
|
|
|
PythonWizardPage(const QList<QPair<QString, QVariant>> &pySideAndData, const int defaultPyside);
|
2023-03-07 13:00:44 +01:00
|
|
|
bool validatePage() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Utils::SelectionAspect m_pySideVersion;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Python::Internal
|