summaryrefslogtreecommitdiffstats
path: root/editor/filesystem_dock.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r--editor/filesystem_dock.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h
index 2f54cb91db..108b646029 100644
--- a/editor/filesystem_dock.h
+++ b/editor/filesystem_dock.h
@@ -140,6 +140,7 @@ private:
FILE_NEW_FOLDER,
FILE_NEW_SCRIPT,
FILE_NEW_SCENE,
+ CONVERT_BASE_ID = 1000,
};
HashMap<String, Color> folder_colors;
@@ -201,6 +202,8 @@ private:
Label *overwrite_dialog_footer = nullptr;
Label *overwrite_dialog_file_list = nullptr;
+ ConfirmationDialog *conversion_dialog = nullptr;
+
SceneCreateDialog *make_scene_dialog = nullptr;
ScriptCreateDialog *make_script_dialog = nullptr;
ShaderCreateDialog *make_shader_dialog = nullptr;
@@ -226,6 +229,9 @@ private:
String to_move_path;
bool to_move_or_copy = false;
+ Vector<String> to_convert;
+ int selected_conversion_id = 0;
+
Vector<String> history;
int history_pos;
int history_max_size;
@@ -245,6 +251,8 @@ private:
LocalVector<Ref<EditorResourceTooltipPlugin>> tooltip_plugins;
+ HashSet<String> cached_valid_conversion_targets;
+
void _tree_mouse_exited();
void _reselect_items_selected_on_drag_begin(bool reset = false);
@@ -256,6 +264,8 @@ private:
void _file_list_gui_input(Ref<InputEvent> p_event);
void _tree_gui_input(Ref<InputEvent> p_event);
+ HashSet<String> _get_valid_conversions_for_file_paths(const Vector<String> &p_paths);
+
void _update_file_list(bool p_keep_selection);
void _toggle_file_display();
void _set_file_display(bool p_active);
@@ -292,11 +302,13 @@ private:
void _rename_operation_confirm();
void _duplicate_operation_confirm();
void _overwrite_dialog_action(bool p_overwrite);
+ void _convert_dialog_action();
Vector<String> _check_existing();
void _move_operation_confirm(const String &p_to_path, bool p_copy = false, Overwrite p_overwrite = OVERWRITE_UNDECIDED);
void _tree_rmb_option(int p_option);
void _file_list_rmb_option(int p_option);
+ void _generic_rmb_option_selected(int p_option);
void _file_option(int p_option, const Vector<String> &p_selected);
void _fw_history();
@@ -404,6 +416,7 @@ public:
ScriptCreateDialog *get_script_create_dialog() const;
void fix_dependencies(const String &p_for_file);
+ void update_all();
int get_h_split_offset() const { return split_box_offset_h; }
void set_h_split_offset(int p_offset) { split_box_offset_h = p_offset; }