diff options
| author | Franklin Sobrinho | 2016-01-11 09:41:26 -0300 |
|---|---|---|
| committer | Franklin Sobrinho | 2016-01-12 09:40:35 -0300 |
| commit | 94a60f408aeb1b5b58dff0ab7ae03fa290ce2ba1 (patch) | |
| tree | 89dda5423521fffb9a992e1c5271f06e1ee0f115 /tools/editor/property_editor.h | |
| parent | 7f82c8d7c5cbcb07bddf98a5006706d1f77c4444 (diff) | |
| download | godot-94a60f408aeb1b5b58dff0ab7ae03fa290ce2ba1.tar.gz godot-94a60f408aeb1b5b58dff0ab7ae03fa290ce2ba1.tar.zst godot-94a60f408aeb1b5b58dff0ab7ae03fa290ce2ba1.zip | |
Better search for SectionedPropertyEditor, added "All" section
Diffstat (limited to 'tools/editor/property_editor.h')
| -rw-r--r-- | tools/editor/property_editor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/editor/property_editor.h b/tools/editor/property_editor.h index 63ad09090..5dc2f6d15 100644 --- a/tools/editor/property_editor.h +++ b/tools/editor/property_editor.h @@ -259,12 +259,16 @@ class SectionedPropertyEditor : public HBoxContainer { OBJ_TYPE(SectionedPropertyEditor,HBoxContainer); ItemList *sections; SectionedPropertyEditorFilter *filter; + LineEdit *search_box; + ToolButton *clear_button; PropertyEditor *editor; - - static void _bind_methods(); void _section_selected(int p_which); +protected: + + void _notification(int p_what); + static void _bind_methods(); public: PropertyEditor *get_property_editor(); @@ -272,6 +276,8 @@ public: String get_full_item_path(const String& p_item); String get_current_section() const; + void clear_search_box(); + SectionedPropertyEditor(); ~SectionedPropertyEditor(); }; |
