|
SILICON
|
Project document navigator used by the SILICON editor. More...
#include <projectTree.hpp>
Public Member Functions | |
| ProjectTree (QWidget *parent=nullptr) | |
| void | rebuild (const project::ProjectInfo &project, std::span< const project::Document > documents, std::string_view activeDocumentPath={}) |
| void | selectDocument (std::string_view path) |
| void | clearDocumentSelection () |
| QTreeWidgetItem * | selectedProjectItem () const |
| std::optional< ProjectTreeDocumentSelection > | selectedDocument () const |
Static Public Member Functions | |
| static ProjectTreeItemKind | itemKind (const QTreeWidgetItem *item) |
| static std::optional< project::DocumentType > | itemDocumentType (const QTreeWidgetItem *item) |
| static std::optional< project::DocumentCategory > | itemDocumentCategory (const QTreeWidgetItem *item) |
| static std::string | documentPath (const QTreeWidgetItem *item) |
| static std::string | architectureName (const QTreeWidgetItem *item) |
Private Member Functions | |
| void | addSection (QTreeWidgetItem *projectItem, project::DocumentCategory category, std::span< const project::Document > documents) |
| void | addDocument (QTreeWidgetItem *parent, const project::Document &document) |
Project document navigator used by the SILICON editor.
Definition at line 40 of file projectTree.hpp.
|
explicit |
Definition at line 89 of file projectTree.cpp.
|
private |
Definition at line 262 of file projectTree.cpp.
|
private |
Definition at line 217 of file projectTree.cpp.
|
staticnodiscard |
Definition at line 210 of file projectTree.cpp.
| void clearDocumentSelection | ( | ) |
Definition at line 153 of file projectTree.cpp.
|
staticnodiscard |
Definition at line 205 of file projectTree.cpp.
|
staticnodiscard |
Definition at line 197 of file projectTree.cpp.
|
staticnodiscard |
Definition at line 188 of file projectTree.cpp.
|
staticnodiscard |
Definition at line 182 of file projectTree.cpp.
| void rebuild | ( | const project::ProjectInfo & | project, |
| std::span< const project::Document > | documents, | ||
| std::string_view | activeDocumentPath = {} ) |
Definition at line 97 of file projectTree.cpp.
| void selectDocument | ( | std::string_view | path | ) |
Definition at line 121 of file projectTree.cpp.
|
nodiscard |
Definition at line 165 of file projectTree.cpp.
|
nodiscard |
Definition at line 159 of file projectTree.cpp.