Add duplice option to filesystem dock
Add duplice option to filesystem dock based move option
This commit is contained in:
@ -70,6 +70,7 @@ private:
|
||||
FILE_MOVE,
|
||||
FILE_RENAME,
|
||||
FILE_REMOVE,
|
||||
FILE_DUPLICATE,
|
||||
FILE_REIMPORT,
|
||||
FILE_INFO,
|
||||
FILE_NEW_FOLDER,
|
||||
@ -120,6 +121,8 @@ private:
|
||||
EditorDirDialog *move_dialog;
|
||||
ConfirmationDialog *rename_dialog;
|
||||
LineEdit *rename_dialog_text;
|
||||
ConfirmationDialog *duplicate_dialog;
|
||||
LineEdit *duplicate_dialog_text;
|
||||
ConfirmationDialog *make_dir_dialog;
|
||||
LineEdit *make_dir_dialog_text;
|
||||
|
||||
@ -134,6 +137,7 @@ private:
|
||||
: path(p_path), is_file(p_is_file) {}
|
||||
};
|
||||
FileOrFolder to_rename;
|
||||
FileOrFolder to_duplicate;
|
||||
Vector<FileOrFolder> to_move;
|
||||
|
||||
Vector<String> history;
|
||||
@ -170,10 +174,12 @@ private:
|
||||
void _get_all_files_in_dir(EditorFileSystemDirectory *efsd, Vector<String> &files) const;
|
||||
void _find_remaps(EditorFileSystemDirectory *efsd, const Map<String, String> &renames, Vector<String> &to_remaps) const;
|
||||
void _try_move_item(const FileOrFolder &p_item, const String &p_new_path, Map<String, String> &p_renames) const;
|
||||
void _try_duplicate_item(const FileOrFolder &p_item, const String &p_new_path) const;
|
||||
void _update_dependencies_after_move(const Map<String, String> &p_renames) const;
|
||||
|
||||
void _make_dir_confirm();
|
||||
void _rename_operation_confirm();
|
||||
void _duplicate_operation_confirm();
|
||||
void _move_operation_confirm(const String &p_to_path);
|
||||
|
||||
void _file_option(int p_option);
|
||||
|
||||
Reference in New Issue
Block a user