forked from qt-creator/qt-creator
Python: split buildsystem and project into separate files
Change-Id: Ic226ff6685cb6657a5e83258aab151754d80b3bf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user