Better search for SectionedPropertyEditor, added "All" section

This commit is contained in:
Franklin Sobrinho
2016-01-11 09:41:26 -03:00
parent 7f82c8d7c5
commit 94a60f408a
6 changed files with 88 additions and 124 deletions

View File

@ -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();
};