|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | SuggItem |
| struct | SuggList |
Typedefs | |
| typedef struct SuggItem | SuggItem |
| typedef struct SuggList | SuggList |
Functions | |
| void | free_texttools (void) |
| void | texttool_text_set_active (struct Text *text) |
| void | texttool_text_clear (void) |
| short | texttool_text_is_active (struct Text *text) |
| void | texttool_suggest_add (const char *name, char type) |
| void | texttool_suggest_prefix (const char *prefix, int prefix_len) |
| void | texttool_suggest_clear (void) |
| SuggItem * | texttool_suggest_first (void) |
| SuggItem * | texttool_suggest_last (void) |
| void | texttool_suggest_select (SuggItem *sel) |
| SuggItem * | texttool_suggest_selected (void) |
| int * | texttool_suggest_top (void) |
| typedef struct SuggItem SuggItem |
| typedef struct SuggList SuggList |
Suggestions should be added in sorted order although a linear sorting method is implemented. The list is then divided up based on the prefix provided by update_suggestions:
Example: Prefix: ab aaa <- SuggList::first aab aba <- SuggList::firstmatch abb <- SuggList::lastmatch baa bab <- SuggList::last
| void free_texttools | ( | void | ) |
Definition at line 51 of file text_suggestions.cc.
References txttl_free_docs(), and txttl_free_suggest().
Referenced by texttool_text_clear().
| void texttool_suggest_add | ( | const char * | name, |
| char | type ) |
Definition at line 81 of file text_suggestions.cc.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, len, MEM_mallocN, SuggItem::name, SuggItem::next, SuggItem::prev, printf, SuggList::selected, suggestions, SuggList::top, and SuggItem::type.
Referenced by text_autocomplete_build().
| void texttool_suggest_clear | ( | void | ) |
Definition at line 180 of file text_suggestions.cc.
References txttl_free_suggest().
Referenced by text_autocomplete_modal().
| SuggItem * texttool_suggest_first | ( | void | ) |
Definition at line 185 of file text_suggestions.cc.
References SuggList::firstmatch, and suggestions.
Referenced by space_text_do_suggest_select(), text_autocomplete_invoke(), text_autocomplete_modal(), and text_pop_suggest_list().
| SuggItem * texttool_suggest_last | ( | void | ) |
Definition at line 190 of file text_suggestions.cc.
References SuggList::lastmatch, and suggestions.
Referenced by space_text_do_suggest_select(), text_autocomplete_invoke(), and text_autocomplete_modal().
| void texttool_suggest_prefix | ( | const char * | prefix, |
| int | prefix_len ) |
Definition at line 133 of file text_suggestions.cc.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, SuggItem::name, SuggItem::next, SuggItem::prev, SuggList::selected, suggestions, SuggList::top, and top.
Referenced by get_suggest_prefix(), and text_autocomplete_build().
| void texttool_suggest_select | ( | SuggItem * | sel | ) |
Definition at line 195 of file text_suggestions.cc.
References SuggList::selected, and suggestions.
Referenced by space_text_do_suggest_select(), and text_autocomplete_modal().
| SuggItem * texttool_suggest_selected | ( | void | ) |
Definition at line 200 of file text_suggestions.cc.
References SuggList::selected, and suggestions.
Referenced by confirm_suggestion(), text_autocomplete_modal(), and text_pop_suggest_list().
| int * texttool_suggest_top | ( | void | ) |
Definition at line 205 of file text_suggestions.cc.
References suggestions, and SuggList::top.
Referenced by space_text_do_suggest_select(), and text_pop_suggest_list().
| void texttool_text_clear | ( | void | ) |
Definition at line 66 of file text_suggestions.cc.
References activeToolText, and free_texttools().
Referenced by confirm_suggestion(), text_autocomplete_build(), text_autocomplete_free(), and texttool_text_set_active().
| short texttool_text_is_active | ( | struct Text * | text | ) |
Definition at line 72 of file text_suggestions.cc.
References activeToolText.
Referenced by confirm_suggestion(), get_suggest_prefix(), space_text_do_suggest_select(), and text_autocomplete_modal().
| void texttool_text_set_active | ( | struct Text * | text | ) |
Definition at line 57 of file text_suggestions.cc.
References activeToolText, and texttool_text_clear().
Referenced by text_autocomplete_build().