aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_help.h
diff options
context:
space:
mode:
authorMarcelo Fernandez2018-02-14 13:10:17 -0300
committerMarcelo Fernandez2018-02-14 19:48:35 -0300
commit621d28adeff7e9d685fae06b63b0787fa1668de1 (patch)
tree57c41f76eaa62f6db9a3f8c1c408917112a97f7f /editor/editor_help.h
parenta2a216ac56241ea53bca866fc3ed28c278a23199 (diff)
downloadgodot-621d28adeff7e9d685fae06b63b0787fa1668de1.tar.gz
godot-621d28adeff7e9d685fae06b63b0787fa1668de1.tar.zst
godot-621d28adeff7e9d685fae06b63b0787fa1668de1.zip
Diffstat (limited to 'editor/editor_help.h')
-rw-r--r--editor/editor_help.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/editor/editor_help.h b/editor/editor_help.h
index db4c33afb..aa84aa611 100644
--- a/editor/editor_help.h
+++ b/editor/editor_help.h
@@ -54,7 +54,30 @@ class EditorHelpSearch : public ConfirmationDialog {
Tree *search_options;
String base_type;
- class IncrementalSearch;
+ class IncrementalSearch : public Reference {
+ String term;
+ TreeItem *root;
+
+ EditorHelpSearch *search;
+ Tree *search_options;
+
+ DocData *doc;
+ Ref<Texture> def_icon;
+
+ int phase;
+ Map<String, DocData::ClassDoc>::Element *iterator;
+
+ void phase1(Map<String, DocData::ClassDoc>::Element *E);
+ void phase2(Map<String, DocData::ClassDoc>::Element *E);
+ bool slice();
+
+ public:
+ IncrementalSearch(EditorHelpSearch *p_search, Tree *p_search_options, const String &p_term);
+
+ bool empty() const;
+ bool work(uint64_t slot = 1000000 / 10);
+ };
+
Ref<IncrementalSearch> search;
void _update_search();