summaryrefslogtreecommitdiffstats
path: root/editor/editor_help_search.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-10-22 14:29:56 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-02-13 18:37:37 +0200
commitdeffe6a3bee2bb15fbc7946711e073ab447e472a (patch)
treeb69f9694f318cf7db190ed16c4f355227b79e403 /editor/editor_help_search.h
parente92d55bbf417aa9f4592a863cb5b2c7ba0740e21 (diff)
downloadredot-engine-deffe6a3bee2bb15fbc7946711e073ab447e472a.tar.gz
[macOS] Add support for native help menu search callbacks, integrate editor help.
Diffstat (limited to 'editor/editor_help_search.h')
-rw-r--r--editor/editor_help_search.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/editor_help_search.h b/editor/editor_help_search.h
index 18f79b824f..1982da04e8 100644
--- a/editor/editor_help_search.h
+++ b/editor/editor_help_search.h
@@ -84,6 +84,15 @@ class EditorHelpSearch : public ConfirmationDialog {
void _filter_combo_item_selected(int p_option);
void _confirmed();
+ bool _all_terms_in_name(const Vector<String> &p_terms, const String &p_name) const;
+ void _match_method_name_and_push_back(const String &p_term, const Vector<String> &p_terms, Vector<DocData::MethodDoc> &p_methods, const String &p_type, const String &p_metatype, const String &p_class_name, Dictionary &r_result) const;
+ void _match_const_name_and_push_back(const String &p_term, const Vector<String> &p_terms, Vector<DocData::ConstantDoc> &p_constants, const String &p_type, const String &p_metatype, const String &p_class_name, Dictionary &r_result) const;
+ void _match_property_name_and_push_back(const String &p_term, const Vector<String> &p_terms, Vector<DocData::PropertyDoc> &p_properties, const String &p_type, const String &p_metatype, const String &p_class_name, Dictionary &r_result) const;
+ void _match_theme_property_name_and_push_back(const String &p_term, const Vector<String> &p_terms, Vector<DocData::ThemeItemDoc> &p_properties, const String &p_type, const String &p_metatype, const String &p_class_name, Dictionary &r_result) const;
+
+ Dictionary _native_search_cb(const String &p_search_string, int p_result_limit);
+ void _native_action_cb(const String &p_item_string);
+
protected:
void _notification(int p_what);
static void _bind_methods();