From 0939c0a9ceab782501de0374ae152303d76f9291 Mon Sep 17 00:00:00 2001 From: MillionOstrich <31486600+MillionOstrich@users.noreply.github.com> Date: Sun, 1 Oct 2017 23:33:43 +0100 Subject: Add right click option to create folders. --- editor/filesystem_dock.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor/filesystem_dock.h') diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index e2d1a69137..89b250e295 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -72,6 +72,7 @@ private: FILE_REMOVE, FILE_REIMPORT, FILE_INFO, + FILE_NEW_FOLDER, FILE_SHOW_IN_EXPLORER, FILE_COPY_PATH }; @@ -82,6 +83,7 @@ private: FOLDER_MOVE, FOLDER_RENAME, FOLDER_REMOVE, + FOLDER_NEW_FOLDER, FOLDER_SHOW_IN_EXPLORER, FOLDER_COPY_PATH }; @@ -118,6 +120,8 @@ private: EditorDirDialog *move_dialog; ConfirmationDialog *rename_dialog; LineEdit *rename_dialog_text; + ConfirmationDialog *make_dir_dialog; + LineEdit *make_dir_dialog_text; class FileOrFolder { public: @@ -158,6 +162,7 @@ private: void _try_move_item(const FileOrFolder &p_item, const String &p_new_path, Map &p_renames) const; void _update_dependencies_after_move(const Map &p_renames) const; + void _make_dir_confirm(); void _rename_operation_confirm(); void _move_operation_confirm(const String &p_to_path); -- cgit v1.2.3