|
slot 0.0.1
A real time UI render framework
|
把文件目录投影为 TreeView 的编辑器文件浏览控件。 更多...
#include <FileExplorerNode.h>


Private 成员函数 | |
| std::unique_ptr< TreeViewItemNode > | BuildItem (const std::filesystem::path &path, bool isRoot) |
静态 Private 成员函数 | |
| static std::string | ToUtf8 (const std::filesystem::path &path) |
Private 属性 | |
| std::unordered_map< const TreeViewItemNode *, std::filesystem::path > | ItemPaths |
额外继承的成员函数 | |
Protected 成员函数 继承自 z8::ui::BehaviorNode | |
| virtual void | OnVisualStateChanged () |
| void | ReleaseBehaviors () |
把文件目录投影为 TreeView 的编辑器文件浏览控件。
控件只保存展示所需的路径映射和 TreeView 展开/选择状态,不缓存文件内容; 调用方通过 PathSelected 接收稳定路径,并自行决定打开或导入资源。
| FileExplorerNode::FileExplorerNode | ( | ) |

|
private |


| const std::filesystem::path * FileExplorerNode::GetPath | ( | const TreeViewItemNode * | item | ) | const |

| void FileExplorerNode::Refresh | ( | ) |
重新扫描 RootPath;目录优先、同类按名称排序,并且不跟随目录符号链接。


|
staticprivate |

重载 z8::ui::BaseNode .
|
private |
| std::filesystem::path z8::ui::FileExplorerNode::RootPath = "asset" |