summaryrefslogtreecommitdiffstats
path: root/editor/filesystem_dock.h
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2023-05-11 04:17:03 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2023-05-11 04:17:03 +0200
commitdc46163b121993229fedc7853000bd9bcb9ec2de (patch)
treec699ce969c8c13e5278dc57e8e5f61ab06333f9f /editor/filesystem_dock.h
parent74c34aed38cecf502c257938d268d5f522557a0e (diff)
downloadredot-engine-dc46163b121993229fedc7853000bd9bcb9ec2de.tar.gz
Improve editor state persistence
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r--editor/filesystem_dock.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h
index e47178d294..37e325c873 100644
--- a/editor/filesystem_dock.h
+++ b/editor/filesystem_dock.h
@@ -125,7 +125,7 @@ private:
Button *button_file_list_display_mode = nullptr;
Button *button_hist_next = nullptr;
Button *button_hist_prev = nullptr;
- LineEdit *current_path = nullptr;
+ LineEdit *current_path_line_edit = nullptr;
HBoxContainer *toolbar2_hbc = nullptr;
LineEdit *tree_search_box = nullptr;
@@ -185,7 +185,7 @@ private:
int history_pos;
int history_max_size;
- String path;
+ String current_path;
bool initialized = false;
@@ -204,7 +204,6 @@ private:
Ref<Texture2D> _get_tree_item_icon(bool p_is_valid, String p_file_type);
bool _create_tree(TreeItem *p_parent, EditorFileSystemDirectory *p_dir, Vector<String> &uncollapsed_paths, bool p_select_in_favorites, bool p_unfold_path = false);
- Vector<String> _compute_uncollapsed_paths();
void _update_tree(const Vector<String> &p_uncollapsed_paths = Vector<String>(), bool p_uncollapse_root = false, bool p_select_in_favorites = false, bool p_unfold_path = false);
void _navigate_to_path(const String &p_path, bool p_select_in_favorites = false);
@@ -295,7 +294,7 @@ private:
void _search(EditorFileSystemDirectory *p_path, List<FileInfo> *matches, int p_max_items);
- void _set_current_path_text(const String &p_path);
+ void _set_current_path_line_edit_text(const String &p_path);
Variant get_drag_data_fw(const Point2 &p_point, Control *p_from);
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
@@ -327,6 +326,7 @@ protected:
public:
Vector<String> get_selected_paths() const;
+ Vector<String> get_uncollapsed_paths() const;
String get_current_path() const;
String get_current_directory() const;
@@ -351,6 +351,8 @@ public:
void set_file_list_display_mode(FileListDisplayMode p_mode);
FileListDisplayMode get_file_list_display_mode() { return file_list_display_mode; };
+ Tree *get_tree_control() { return tree; }
+
FileSystemDock();
~FileSystemDock();
};