From 123407e0b4ec616aef40216ab76e559e0dee5711 Mon Sep 17 00:00:00 2001 From: Ian Thompson Date: Fri, 18 Jul 2008 23:12:19 +0000 Subject: Added a documentation panel with primitive word-wrap functionality. It can be displayed by Text.showDoc(string) in python and has a text-plugin script for function docs which may be invoked with Ctrl+I inside its params list. Eg. type "dir(" --- source/blender/blenkernel/BKE_suggestions.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/BKE_suggestions.h') diff --git a/source/blender/blenkernel/BKE_suggestions.h b/source/blender/blenkernel/BKE_suggestions.h index d0f982263c0..cbddbcfc8ad 100644 --- a/source/blender/blenkernel/BKE_suggestions.h +++ b/source/blender/blenkernel/BKE_suggestions.h @@ -60,20 +60,26 @@ typedef struct SuggList { SuggItem *selected; } SuggList; +/* Free all suggestion related memory */ void free_suggestions(); +/* Used to identify which Text object the current tools should appear against */ +void suggest_set_active(Text *text); +void suggest_clear_active(); +short suggest_is_active(Text *text); + void suggest_add(const char *name, char type); void suggest_prefix(const char *prefix); SuggItem *suggest_first(); SuggItem *suggest_last(); -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(); +void suggest_documentation(const char *docs); +char *suggest_get_docs(); +void suggest_clear_docs(); + #ifdef __cplusplus } #endif -- cgit v1.2.3