summaryrefslogtreecommitdiffstats
path: root/editor/editor_sectioned_inspector.h
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-09-21 21:11:58 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-09-21 21:15:46 +0800
commit267bb982319c5dbd0c5341bd85f6319b873db6d2 (patch)
tree388883338c03381c528a79bbc1e06cbecc0e4600 /editor/editor_sectioned_inspector.h
parente4e024ab88efe74677769395886bc1b09eccbac7 (diff)
downloadredot-engine-267bb982319c5dbd0c5341bd85f6319b873db6d2.tar.gz
Keep advanced toggle on when searching for settings
Diffstat (limited to 'editor/editor_sectioned_inspector.h')
-rw-r--r--editor/editor_sectioned_inspector.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/editor/editor_sectioned_inspector.h b/editor/editor_sectioned_inspector.h
index 3c9eb78571..75f1569d36 100644
--- a/editor/editor_sectioned_inspector.h
+++ b/editor/editor_sectioned_inspector.h
@@ -31,11 +31,14 @@
#ifndef EDITOR_SECTIONED_INSPECTOR_H
#define EDITOR_SECTIONED_INSPECTOR_H
-#include "editor/editor_inspector.h"
#include "scene/gui/split_container.h"
-#include "scene/gui/tree.h"
+class CheckButton;
+class EditorInspector;
+class LineEdit;
class SectionedInspectorFilter;
+class Tree;
+class TreeItem;
class SectionedInspector : public HSplitContainer {
GDCLASS(SectionedInspector, HSplitContainer);
@@ -48,6 +51,7 @@ class SectionedInspector : public HSplitContainer {
HashMap<String, TreeItem *> section_map;
EditorInspector *inspector = nullptr;
LineEdit *search_box = nullptr;
+ CheckButton *advanced_toggle = nullptr;
String selected_category;
@@ -57,9 +61,12 @@ class SectionedInspector : public HSplitContainer {
void _section_selected();
void _search_changed(const String &p_what);
+ void _advanced_toggled(bool p_toggled_on);
public:
void register_search_box(LineEdit *p_box);
+ void register_advanced_toggle(CheckButton *p_toggle);
+
EditorInspector *get_inspector();
void edit(Object *p_object);
String get_full_item_path(const String &p_item);
@@ -67,7 +74,6 @@ public:
void set_current_section(const String &p_section);
String get_current_section() const;
- void set_restrict_to_basic_settings(bool p_restrict);
void update_category_list();
SectionedInspector();