[nostalgia] Update Studio to handle tabs and open directory dialog on Mac, Update core::init
This commit is contained in:
@@ -17,15 +17,23 @@ namespace nostalgia {
|
||||
|
||||
class ProjectTreeModel {
|
||||
private:
|
||||
class ProjectExplorer *m_explorer = nullptr;
|
||||
ProjectTreeModel *m_parent = nullptr;
|
||||
ox::String m_name;
|
||||
ox::Vector <ox::UniquePtr<ProjectTreeModel>> m_children;
|
||||
ox::Vector<ox::UniquePtr<ProjectTreeModel>> m_children;
|
||||
public:
|
||||
explicit ProjectTreeModel(const ox::String &name,
|
||||
ox::Vector <ox::UniquePtr<ProjectTreeModel>> children) noexcept;
|
||||
explicit ProjectTreeModel(class ProjectExplorer *explorer, const ox::String &name,
|
||||
ProjectTreeModel *parent = nullptr) noexcept;
|
||||
|
||||
ProjectTreeModel(ProjectTreeModel &&other) noexcept;
|
||||
|
||||
void draw(core::Context *ctx) noexcept;
|
||||
|
||||
void setChildren(ox::Vector<ox::UniquePtr<ProjectTreeModel>> children) noexcept;
|
||||
|
||||
private:
|
||||
[[nodiscard]]
|
||||
ox::String fullPath() noexcept;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user