diff options
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r-- | editor/filesystem_dock.h | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index d7203c15bd..d161a3bd15 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -102,6 +102,12 @@ public: FILE_SORT_MAX, }; + enum Overwrite { + OVERWRITE_UNDECIDED, + OVERWRITE_REPLACE, + OVERWRITE_RENAME, + }; + private: enum FileMenu { FILE_OPEN, @@ -133,12 +139,6 @@ private: FILE_NEW_SCENE, }; - enum Overwrite { - OVERWRITE_UNDECIDED, - OVERWRITE_REPLACE, - OVERWRITE_RENAME, - }; - HashMap<String, Color> folder_colors; Dictionary assigned_folder_colors; @@ -154,6 +154,8 @@ private: HashSet<String> favorites; + Button *button_dock_placement = nullptr; + Button *button_toggle_display_mode = nullptr; Button *button_reload = nullptr; Button *button_file_list_display_mode = nullptr; @@ -290,7 +292,6 @@ private: void _duplicate_operation_confirm(); void _overwrite_dialog_action(bool p_overwrite); Vector<String> _check_existing(); - void _move_dialog_confirm(const String &p_path); 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); @@ -306,6 +307,7 @@ private: void _rescan(); void _change_split_mode(); + void _split_dragged(int p_offset); void _search_changed(const String &p_text, const Control *p_from); @@ -360,6 +362,11 @@ private: void _feature_profile_changed(); static Vector<String> _remove_self_included_paths(Vector<String> selected_strings); + void _change_bottom_dock_placement(); + + bool _can_dock_horizontal() const; + void _set_dock_horizontal(bool p_enable); + private: static FileSystemDock *singleton; @@ -387,18 +394,20 @@ public: void fix_dependencies(const String &p_for_file); - int get_split_offset() { return split_box->get_split_offset(); } - void set_split_offset(int p_offset) { split_box->set_split_offset(p_offset); } + 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; } + int get_v_split_offset() const { return split_box_offset_v; } + void set_v_split_offset(int p_offset) { split_box_offset_v = p_offset; } void select_file(const String &p_file); void set_display_mode(DisplayMode p_display_mode); - DisplayMode get_display_mode() { return display_mode; } + DisplayMode get_display_mode() const { return display_mode; } void set_file_sort(FileSortOption p_file_sort); - FileSortOption get_file_sort() { return file_sort; } + FileSortOption get_file_sort() const { return file_sort; } void set_file_list_display_mode(FileListDisplayMode p_mode); - FileListDisplayMode get_file_list_display_mode() { return file_list_display_mode; }; + FileListDisplayMode get_file_list_display_mode() const { return file_list_display_mode; }; Tree *get_tree_control() { return tree; } @@ -406,8 +415,13 @@ public: void remove_resource_tooltip_plugin(const Ref<EditorResourceTooltipPlugin> &p_plugin); Control *create_tooltip_for_path(const String &p_path) const; + void save_layout_to_config(Ref<ConfigFile> p_layout, const String &p_section) const; + void load_layout_from_config(Ref<ConfigFile> p_layout, const String &p_section); + FileSystemDock(); ~FileSystemDock(); }; +VARIANT_ENUM_CAST(FileSystemDock::Overwrite); + #endif // FILESYSTEM_DOCK_H |