summaryrefslogtreecommitdiffstats
path: root/editor/filesystem_dock.h
diff options
context:
space:
mode:
authorMillionOstrich <31486600+MillionOstrich@users.noreply.github.com>2017-10-01 23:33:43 +0100
committerMillionOstrich <31486600+MillionOstrich@users.noreply.github.com>2017-10-09 15:11:44 +0100
commit0939c0a9ceab782501de0374ae152303d76f9291 (patch)
tree54de3b523e6b3bf3cf71a4fe831f8f89b9278f68 /editor/filesystem_dock.h
parent40d1866b051f24b42e5de37c08b300214a0092a6 (diff)
downloadredot-engine-0939c0a9ceab782501de0374ae152303d76f9291.tar.gz
Add right click option to create folders.
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r--editor/filesystem_dock.h5
1 files changed, 5 insertions, 0 deletions
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<String, String> &p_renames) const;
void _update_dependencies_after_move(const Map<String, String> &p_renames) const;
+ void _make_dir_confirm();
void _rename_operation_confirm();
void _move_operation_confirm(const String &p_to_path);