Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Thompson <quornian@googlemail.com>2008-06-25 17:51:54 +0400
committerIan Thompson <quornian@googlemail.com>2008-06-25 17:51:54 +0400
commite68834c75bc3e69641a6332dab071ebaa2d9d1d3 (patch)
tree38deda31d860f518dde5d52ac58cd667061cf422 /source/blender/blenkernel/BKE_suggestions.h
parentbdc030c664640db727ea21a1e854bb62032bf705 (diff)
Added UI for suggestions list. Works with arrow-keys and mouse wheel, accept with Enter, reject with Esc or click elsewhere. Mouse selection not yet supported. The script is called from the File->Text Plugins menu.
Tidied python script, the C suggestions functions and fixed some bugs including suggestions not being freed properly.
Diffstat (limited to 'source/blender/blenkernel/BKE_suggestions.h')
-rw-r--r--source/blender/blenkernel/BKE_suggestions.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_suggestions.h b/source/blender/blenkernel/BKE_suggestions.h
index bc4e18f5a67..d0f982263c0 100644
--- a/source/blender/blenkernel/BKE_suggestions.h
+++ b/source/blender/blenkernel/BKE_suggestions.h
@@ -57,18 +57,22 @@ typedef struct SuggItem {
typedef struct SuggList {
SuggItem *first, *last;
SuggItem *firstmatch, *lastmatch;
+ SuggItem *selected;
} SuggList;
void free_suggestions();
-void add_suggestion(const char *name, char type);
-void update_suggestions(const char *prefix);
+void suggest_add(const char *name, char type);
+void suggest_prefix(const char *prefix);
SuggItem *suggest_first();
SuggItem *suggest_last();
-void set_suggest_text(Text *text);
-void clear_suggest_text();
-short is_suggest_active(Text *text);
+void suggest_set_text(Text *text);
+void suggest_clear_text();
+short suggest_is_active(Text *text);
+
+void suggest_set_selected(SuggItem *sel);
+SuggItem *suggest_get_selected();
#ifdef __cplusplus
}