Python: split buildsystem and project into separate files

Change-Id: Ic226ff6685cb6657a5e83258aab151754d80b3bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2023-11-09 08:28:12 +01:00
parent 5acce4bd7f
commit f6e403b219
6 changed files with 453 additions and 410 deletions

View File

@@ -4,6 +4,9 @@
#pragma once
#include <projectexplorer/project.h>
#include <projectexplorer/projectnodes.h>
namespace Utils { class FilePath; }
namespace Python::Internal {
@@ -12,6 +15,24 @@ const char PythonMimeTypeLegacy[] = "text/x-pyqt-project";
const char PythonProjectId[] = "PythonProject";
const char PythonErrorTaskCategory[] = "Task.Category.Python";
class PythonFileNode : public ProjectExplorer::FileNode
{
public:
PythonFileNode(const Utils::FilePath &filePath,
const QString &nodeDisplayName,
ProjectExplorer::FileType fileType = ProjectExplorer::FileType::Source);
QString displayName() const override;
private:
QString m_displayName;
};
class PythonProjectNode : public ProjectExplorer::ProjectNode
{
public:
explicit PythonProjectNode(const Utils::FilePath &path);
};
class PythonProject : public ProjectExplorer::Project
{
Q_OBJECT