blob: 80e4064f8f37ac6380f7ceb87c4b1320b0e80ec8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (C) 2020 Alexis Jeandet.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <projectexplorer/projectnodes.h>
#include <utils/fileutils.h>
#include <utils/fsengine/fileiconprovider.h>
namespace MesonProjectManager {
namespace Internal {
class MesonProjectNode : public ProjectExplorer::ProjectNode
{
public:
MesonProjectNode(const Utils::FilePath &directory);
};
class MesonTargetNode : public ProjectExplorer::ProjectNode
{
public:
MesonTargetNode(const Utils::FilePath &directory, const QString &name);
void build() override;
QString tooltip() const final;
QString buildKey() const final;
private:
QString m_name;
};
class MesonFileNode : public ProjectExplorer::ProjectNode
{
public:
MesonFileNode(const Utils::FilePath &file);
bool showInSimpleTree() const final { return false; }
Utils::optional<Utils::FilePath> visibleAfterAddFileAction() const override
{
return filePath().pathAppended("meson.build");
}
};
} // namespace Internal
} // namespace MesonProjectManager
|