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/project.h>
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
namespace Python::Internal {
|
2019-07-22 14:39:01 +02:00
|
|
|
|
2023-03-22 10:05:10 +01:00
|
|
|
const char PythonMimeType[] = "text/x-python-project";
|
|
|
|
|
const char PythonMimeTypeLegacy[] = "text/x-pyqt-project";
|
2019-07-22 14:39:01 +02:00
|
|
|
const char PythonProjectId[] = "PythonProject";
|
|
|
|
|
const char PythonErrorTaskCategory[] = "Task.Category.Python";
|
|
|
|
|
|
|
|
|
|
class PythonProject : public ProjectExplorer::Project
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit PythonProject(const Utils::FilePath &filename);
|
|
|
|
|
|
|
|
|
|
bool needsConfiguration() const final { return false; }
|
2022-07-15 11:49:34 +02:00
|
|
|
|
2019-07-22 14:39:01 +02:00
|
|
|
private:
|
2023-08-23 16:53:06 +02:00
|
|
|
RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) override;
|
2019-07-22 14:39:01 +02:00
|
|
|
};
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|