diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-21 20:40:32 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-21 20:40:32 +0400 |
commit | 434f2172f65cc547c26fc6d7c5a2d5400eff162f (patch) | |
tree | 0bd2545b05423aff5162122a9eb3e548cc9d29cf /source/blender/blenkernel/BKE_suggestions.h | |
parent | 5435d7c3ea051bc7195d0c21ebc29a723222a795 (diff) |
Removed requirement for suggestions to be pre-sorted. Allowed lists of strings to be suggested without having to specify their type. Specifying a prefix when suggesting is now also optional.
Diffstat (limited to 'source/blender/blenkernel/BKE_suggestions.h')
-rw-r--r-- | source/blender/blenkernel/BKE_suggestions.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_suggestions.h b/source/blender/blenkernel/BKE_suggestions.h index cbddbcfc8ad..b150e279574 100644 --- a/source/blender/blenkernel/BKE_suggestions.h +++ b/source/blender/blenkernel/BKE_suggestions.h @@ -34,8 +34,10 @@ extern "C" { #endif /* **************************************************************************** -Suggestions must be added in sorted order (no attempt is made to sort the list) -The list is then divided up based on the prefix provided by update_suggestions: +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 <-- first @@ -70,6 +72,7 @@ short suggest_is_active(Text *text); void suggest_add(const char *name, char type); void suggest_prefix(const char *prefix); +void suggest_clear_list(); SuggItem *suggest_first(); SuggItem *suggest_last(); |