mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibGUI: Start working on a file picker dialog (GFilePicker).
Have LibGUI adopt GDirectoryModel from FileManager since it fits perfectly for the needs of a file picker.
This commit is contained in:
parent
d4ac9e9a8a
commit
bd5c79aff2
9 changed files with 103 additions and 29 deletions
|
@ -1,11 +1,18 @@
|
|||
#include <LibGUI/GDialog.h>
|
||||
#include <LibGUI/GTableView.h>
|
||||
|
||||
class GDirectoryModel;
|
||||
|
||||
class GFilePicker final : public GDialog {
|
||||
public:
|
||||
GFilePicker();
|
||||
GFilePicker(const String& path = "/", CObject* parent = nullptr);
|
||||
virtual ~GFilePicker() override;
|
||||
|
||||
virtual const char* class_name() const override { return "GFilePicker"; }
|
||||
|
||||
private:
|
||||
GDirectoryModel& model() { return *m_model; }
|
||||
|
||||
GTableView* m_view { nullptr };
|
||||
Retained<GDirectoryModel> m_model;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue