Add clickable path navigation in Project panel

This commit is contained in:
2026-03-12 20:33:04 +08:00
parent de9d9dfa1c
commit 7d3b05573d
3 changed files with 35 additions and 1 deletions

View File

@@ -17,9 +17,12 @@ public:
void NavigateToFolder(const AssetItemPtr& folder);
void NavigateBack();
void NavigateToIndex(size_t index);
bool CanNavigateBack() const { return m_path.size() > 1; }
std::string GetCurrentPath() const;
size_t GetPathDepth() const { return m_path.size(); }
std::string GetPathName(size_t index) const;
void Initialize(const std::string& projectPath);
void RefreshCurrentFolder();