27
25
* ***** END GPL LICENSE BLOCK *****
29
#ifndef BKE_SUGGESTIONS_H
30
#define BKE_SUGGESTIONS_H
27
#ifndef __BKE_SUGGESTIONS_H__
28
#define __BKE_SUGGESTIONS_H__
30
/** \file BKE_suggestions.h
36
38
/* ****************************************************************************
37
Suggestions should be added in sorted order although a linear sorting method is
38
implemented. The list is then divided up based on the prefix provided by
49
**************************************************************************** */
39
* Suggestions should be added in sorted order although a linear sorting method is
40
* implemented. The list is then divided up based on the prefix provided by
51
**************************************************************************** */
66
68
/* Free all text tool memory */
67
void free_texttools();
69
void free_texttools(void);
69
71
/* Used to identify which Text object the current tools should appear against */
70
72
void texttool_text_set_active(Text *text);
71
void texttool_text_clear();
73
void texttool_text_clear(void);
72
74
short texttool_text_is_active(Text *text);
75
77
void texttool_suggest_add(const char *name, char type);
76
78
void texttool_suggest_prefix(const char *prefix);
77
void texttool_suggest_clear();
78
SuggItem *texttool_suggest_first();
79
SuggItem *texttool_suggest_last();
79
void texttool_suggest_clear(void);
80
SuggItem *texttool_suggest_first(void);
81
SuggItem *texttool_suggest_last(void);
80
82
void texttool_suggest_select(SuggItem *sel);
81
SuggItem *texttool_suggest_selected();
82
int *texttool_suggest_top();
83
SuggItem *texttool_suggest_selected(void);
84
int *texttool_suggest_top(void);
84
86
/* Documentation */
85
87
void texttool_docs_show(const char *docs);
86
char *texttool_docs_get();
87
void texttool_docs_clear();
88
char *texttool_docs_get(void);
89
void texttool_docs_clear(void);