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>
|
|
|
|
|
#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;
|
|
|
|
|
|
|
|
|
|
class PythonRunConfiguration : public ProjectExplorer::RunConfiguration
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
PythonRunConfiguration(ProjectExplorer::Target *target, Utils::Id id);
|
|
|
|
|
~PythonRunConfiguration() override;
|
|
|
|
|
void currentInterpreterChanged();
|
|
|
|
|
QList<PySideUicExtraCompiler *> extraCompilers() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2022-06-16 15:33:32 +02:00
|
|
|
void checkForPySide(const Utils::FilePath &python);
|
2022-05-25 15:24:09 +02:00
|
|
|
void updateExtraCompilers();
|
|
|
|
|
Utils::FilePath m_pySideUicPath;
|
|
|
|
|
|
|
|
|
|
QList<PySideUicExtraCompiler *> m_extraCompilers;
|
|
|
|
|
};
|
|
|
|
|
|
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
|