diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-03 00:22:54 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-03 00:24:36 -0300 |
commit | ce28452109676d55e4d1fbb7158c8bf1fa8db406 (patch) | |
tree | f36f735311b6b06c3be39b821b4bdf7dfe2ac83d /editor/editor_dir_dialog.h | |
parent | 53e7f55a898efd1c1a3b424c3bce81c1240a9ca6 (diff) | |
download | redot-engine-ce28452109676d55e4d1fbb7158c8bf1fa8db406.tar.gz |
-Fixed EditorDirDialog, which was really old and needed to use EditorFileSystem
-Fixed refactoring tools to work with imported scenes (properly move .import files)
Diffstat (limited to 'editor/editor_dir_dialog.h')
-rw-r--r-- | editor/editor_dir_dialog.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/editor_dir_dialog.h b/editor/editor_dir_dialog.h index b8347f75fb..8aa685947b 100644 --- a/editor/editor_dir_dialog.h +++ b/editor/editor_dir_dialog.h @@ -30,6 +30,7 @@ #ifndef EDITOR_DIR_DIALOG_H #define EDITOR_DIR_DIALOG_H +#include "editor/editor_file_system.h" #include "os/dir_access.h" #include "scene/gui/dialogs.h" #include "scene/gui/tree.h" @@ -42,12 +43,13 @@ class EditorDirDialog : public ConfirmationDialog { AcceptDialog *mkdirerr; Button *makedir; + Set<String> opened_paths; Tree *tree; bool updating; void _item_collapsed(Object *p_item); - void _update_dir(TreeItem *p_item); + void _update_dir(TreeItem *p_item, EditorFileSystemDirectory *p_dir, const String &p_select_path = String()); void _make_dir(); void _make_dir_confirm(); @@ -61,8 +63,7 @@ protected: static void _bind_methods(); public: - void set_current_path(const String &p_path); - void reload(); + void reload(const String &p_path = ""); EditorDirDialog(); }; |