mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
21 lines
557 B
C++
21 lines
557 B
C++
#include <LibGUI/GDialog.h>
|
|
#include <LibGUI/GTableView.h>
|
|
|
|
class GDirectoryModel;
|
|
|
|
class GFilePicker final : public GDialog {
|
|
public:
|
|
GFilePicker(const String& path = "/", CObject* parent = nullptr);
|
|
virtual ~GFilePicker() override;
|
|
|
|
// TODO: Should this return a FileSystemPath instead?
|
|
String selected_file() const { return m_selected_file; }
|
|
|
|
virtual const char* class_name() const override { return "GFilePicker"; }
|
|
|
|
private:
|
|
GTableView* m_view { nullptr };
|
|
Retained<GDirectoryModel> m_model;
|
|
String m_selected_file;
|
|
};
|