diff options
author | Dmitry Koteroff <vortex@verona.im> | 2017-11-27 18:58:28 +0300 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-27 22:39:36 +0100 |
commit | ad351a29db8328c82838a8aaf070eb111116d632 (patch) | |
tree | fea8dab87c0855865701585c09c92b44ac99e372 /scene/gui/file_dialog.h | |
parent | ed0af051116938064fbe3ef464fa41689684e796 (diff) |
Some improvements to file/dir open/save dialogs:
1. Removed "..", instead you now will see "Select Current Folder" and "Select this Folder" buttons.
2. Added "go to parent folder" (^) button to Save a File dialog.
3. Tree.cpp: "nothing_selected" signal has been re-made (previous implementation, merged in #13308, wasn't optimal in context of performance)
4. Fixed issue in Project Export dialog: MODE_SAVE_FILE wasn't set when you click "Export".
5. Now you can deselect items by clicking on empty space in Open a Directory dialog.
Diffstat (limited to 'scene/gui/file_dialog.h')
-rw-r--r-- | scene/gui/file_dialog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/file_dialog.h b/scene/gui/file_dialog.h index 6281e88731..ca3d9f54b2 100644 --- a/scene/gui/file_dialog.h +++ b/scene/gui/file_dialog.h @@ -86,6 +86,8 @@ private: DirAccess *dir_access; ConfirmationDialog *confirm_save; + ToolButton *dir_up; + ToolButton *refresh; Vector<String> filters; @@ -111,6 +113,7 @@ private: void _filter_selected(int); void _make_dir(); void _make_dir_confirm(); + void _go_up(); void _update_drives(); @@ -156,6 +159,8 @@ public: void invalidate(); + void deselect_items(); + FileDialog(); ~FileDialog(); }; |