#pragma once #include #include #include "raven/Widget.hpp" #include "raven/ScrollContainer.hpp" #include "raven/DocumentLayout.hpp" #include "FileButton.hpp" class DirectoryView : public Raven::ScrollContainer { public: DirectoryView() : Raven::ScrollContainer() {} ~DirectoryView(); void update(); void navigate(std::string path); void navigate_relative(std::string path); protected: void on_init(); private: std::filesystem::path m_current_path { "/" }; std::shared_ptr m_target; };