forked from qt-creator/qt-creator
CMake: Project tree for server mode data
Change-Id: Ief884a76c1b4211501dd6515b17b6e88a8e881e5 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -32,12 +32,49 @@ class CMakeProject;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class CMakeInputsNode : public ProjectExplorer::ProjectNode
|
||||
{
|
||||
public:
|
||||
CMakeInputsNode(const Utils::FileName &cmakeLists);
|
||||
|
||||
static Utils::FileName inputsPathFromCMakeListsPath(const Utils::FileName &cmakeLists);
|
||||
|
||||
bool showInSimpleTree() const final;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const final;
|
||||
};
|
||||
|
||||
class CMakeListsNode : public ProjectExplorer::ProjectNode
|
||||
{
|
||||
public:
|
||||
CMakeListsNode(const Utils::FileName &cmakeListPath);
|
||||
|
||||
bool showInSimpleTree() const final;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const final;
|
||||
};
|
||||
|
||||
class CMakeProjectNode : public ProjectExplorer::ProjectNode
|
||||
{
|
||||
public:
|
||||
CMakeProjectNode(const Utils::FileName &dirName);
|
||||
bool showInSimpleTree() const override;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const override;
|
||||
CMakeProjectNode(const Utils::FileName &directory);
|
||||
|
||||
bool showInSimpleTree() const final;
|
||||
QString tooltip() const final;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const final;
|
||||
};
|
||||
|
||||
class CMakeTargetNode : public ProjectExplorer::ProjectNode
|
||||
{
|
||||
public:
|
||||
CMakeTargetNode(const Utils::FileName &directory);
|
||||
|
||||
void setTargetInformation(const QList<Utils::FileName> &artifacts, const QString &type);
|
||||
|
||||
bool showInSimpleTree() const final;
|
||||
QString tooltip() const final;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const final;
|
||||
|
||||
private:
|
||||
QString m_tooltip;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user