2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2019-07-22 14:39:01 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2023-07-05 09:30:51 +02:00
|
|
|
#include <projectexplorer/runconfigurationaspects.h>
|
2019-07-22 14:39:01 +02:00
|
|
|
#include <projectexplorer/runcontrol.h>
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
namespace Python::Internal {
|
2019-07-22 14:39:01 +02:00
|
|
|
|
2022-05-25 15:24:09 +02:00
|
|
|
class PySideUicExtraCompiler;
|
2023-07-05 09:30:51 +02:00
|
|
|
class PythonRunConfiguration;
|
2022-05-25 15:24:09 +02:00
|
|
|
|
2023-07-05 09:30:51 +02:00
|
|
|
class PythonInterpreterAspect final : public ProjectExplorer::InterpreterAspect
|
2022-05-25 15:24:09 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2023-06-23 13:38:23 +02:00
|
|
|
|
2022-05-25 15:24:09 +02:00
|
|
|
public:
|
2023-07-07 18:28:29 +02:00
|
|
|
PythonInterpreterAspect(Utils::AspectContainer *container, ProjectExplorer::RunConfiguration *rc);
|
2023-07-05 09:30:51 +02:00
|
|
|
~PythonInterpreterAspect() final;
|
2023-06-23 13:38:23 +02:00
|
|
|
|
2022-05-25 15:24:09 +02:00
|
|
|
QList<PySideUicExtraCompiler *> extraCompilers() const;
|
2023-07-05 09:30:51 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
friend class PythonRunConfiguration;
|
|
|
|
|
class PythonInterpreterAspectPrivate *d = nullptr;
|
2022-05-25 15:24:09 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-22 14:39:01 +02:00
|
|
|
class PythonRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PythonRunConfigurationFactory();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class PythonOutputFormatterFactory : public ProjectExplorer::OutputFormatterFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PythonOutputFormatterFactory();
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|