summaryrefslogtreecommitdiffstats
path: root/scene/gui/file_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/file_dialog.h')
-rw-r--r--scene/gui/file_dialog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/file_dialog.h b/scene/gui/file_dialog.h
index 87c41be98b..dece241ca9 100644
--- a/scene/gui/file_dialog.h
+++ b/scene/gui/file_dialog.h
@@ -105,6 +105,7 @@ private:
static bool default_show_hidden_files;
bool show_hidden_files = false;
+ bool use_native_dialog = false;
bool is_invalidating = false;
@@ -158,6 +159,8 @@ private:
virtual void shortcut_input(const Ref<InputEvent> &p_event) override;
+ void _native_dialog_cb(bool p_ok, const Vector<String> &p_files);
+
bool _is_open_should_be_disabled();
virtual void _post_popup() override;
@@ -169,6 +172,8 @@ protected:
static void _bind_methods();
//bind helpers
public:
+ virtual void popup(const Rect2i &p_rect = Rect2i()) override;
+
void popup_file_dialog();
void clear_filters();
void add_filter(const String &p_filter, const String &p_description = "");
@@ -191,6 +196,9 @@ public:
void set_mode_overrides_title(bool p_override);
bool is_mode_overriding_title() const;
+ void set_use_native_dialog(bool p_native);
+ bool get_use_native_dialog() const;
+
void set_file_mode(FileMode p_mode);
FileMode get_file_mode() const;