Blender
V3.3
|
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_string.h"
#include "BKE_text_suggestions.h"
#include "DNA_text_types.h"
Go to the source code of this file.
Functions | |
static void | txttl_free_suggest (void) |
static void | txttl_free_docs (void) |
void | free_texttools (void) |
void | texttool_text_set_active (Text *text) |
void | texttool_text_clear (void) |
short | texttool_text_is_active (Text *text) |
void | texttool_suggest_add (const char *name, char type) |
void | texttool_suggest_prefix (const char *prefix, const 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) |
void | texttool_docs_show (const char *docs) |
char * | texttool_docs_get (void) |
void | texttool_docs_clear (void) |
Variables | |
static Text * | activeToolText = NULL |
static SuggList | suggestions = {NULL, NULL, NULL, NULL, NULL} |
static char * | documentation = NULL |
Definition at line 51 of file text_suggestions.c.
References txttl_free_docs(), and txttl_free_suggest().
Referenced by texttool_text_clear().
Definition at line 244 of file text_suggestions.c.
References txttl_free_docs().
Referenced by text_autocomplete_modal().
char* texttool_docs_get | ( | void | ) |
Definition at line 239 of file text_suggestions.c.
References documentation.
Referenced by text_autocomplete_modal().
void texttool_docs_show | ( | const char * | docs | ) |
Definition at line 214 of file text_suggestions.c.
References documentation, len, MEM_mallocN, and MEM_SAFE_FREE.
void texttool_suggest_add | ( | const char * | name, |
char | type | ||
) |
Definition at line 81 of file text_suggestions.c.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, len, MEM_mallocN, SuggItem::name, SuggItem::next, NULL, SuggItem::prev, SuggList::selected, suggestions, SuggList::top, SuggItem::type, and type.
Referenced by text_autocomplete_build().
Definition at line 180 of file text_suggestions.c.
References txttl_free_suggest().
Referenced by text_autocomplete_modal().
Definition at line 185 of file text_suggestions.c.
References SuggList::firstmatch, and suggestions.
Referenced by text_autocomplete_invoke(), text_autocomplete_modal(), text_do_suggest_select(), and text_pop_suggest_list().
Definition at line 190 of file text_suggestions.c.
References SuggList::lastmatch, and suggestions.
Referenced by text_autocomplete_invoke(), text_autocomplete_modal(), and text_do_suggest_select().
void texttool_suggest_prefix | ( | const char * | prefix, |
const int | prefix_len | ||
) |
Definition at line 133 of file text_suggestions.c.
References BLI_strncasecmp(), SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, SuggItem::name, SuggItem::next, NULL, SuggItem::prev, SuggList::selected, suggestions, SuggList::top, and top.
Referenced by get_suggest_prefix(), and text_autocomplete_build().
Definition at line 195 of file text_suggestions.c.
References SuggList::selected, and suggestions.
Referenced by text_autocomplete_modal(), and text_do_suggest_select().
Definition at line 200 of file text_suggestions.c.
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.c.
References suggestions, and SuggList::top.
Referenced by text_do_suggest_select(), and text_pop_suggest_list().
Definition at line 66 of file text_suggestions.c.
References activeToolText, free_texttools(), and NULL.
Referenced by confirm_suggestion(), text_autocomplete_build(), text_autocomplete_free(), and texttool_text_set_active().
short texttool_text_is_active | ( | Text * | text | ) |
Definition at line 72 of file text_suggestions.c.
References activeToolText.
Referenced by confirm_suggestion(), get_suggest_prefix(), text_autocomplete_modal(), and text_do_suggest_select().
Definition at line 57 of file text_suggestions.c.
References activeToolText, and texttool_text_clear().
Referenced by text_autocomplete_build().
Definition at line 42 of file text_suggestions.c.
References documentation, and MEM_SAFE_FREE.
Referenced by free_texttools(), and texttool_docs_clear().
Definition at line 29 of file text_suggestions.c.
References SuggList::first, SuggList::firstmatch, SuggList::last, SuggList::lastmatch, MEM_freeN, NULL, SuggItem::prev, blender::meshintersect::prev(), SuggList::selected, suggestions, and SuggList::top.
Referenced by free_texttools(), and texttool_suggest_clear().
Definition at line 24 of file text_suggestions.c.
Referenced by texttool_text_clear(), texttool_text_is_active(), and texttool_text_set_active().
|
static |
Definition at line 26 of file text_suggestions.c.
Referenced by texttool_docs_get(), texttool_docs_show(), and txttl_free_docs().
Definition at line 25 of file text_suggestions.c.
Referenced by texttool_suggest_add(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_prefix(), texttool_suggest_select(), texttool_suggest_selected(), texttool_suggest_top(), and txttl_free_suggest().