summaryrefslogtreecommitdiff
path: root/LibGUI/GFilePicker.h
blob: e61bae3dd275cd756f6475effc531cd70bb1cc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;

    String selected_file() const;

    virtual const char* class_name() const override { return "GFilePicker"; }

private:
    GTableView* m_view { nullptr };
    Retained<GDirectoryModel> m_model;
    String m_selected_file;
};