Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/compl.h @ 2042:0cb8ea02e472
Make completion sorting order configurable
* Use allocated plain array for categories
* Use callbacks for dynamic completions (private for now)
* Add compl_set_flags() to allow user to set completion order
* Bump api to 24-24
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 20 Oct 2012 18:29:49 +0300 |
parents | 924f4552996c |
children | 1bd9978ed5d0 |
comparison
equal
deleted
inserted
replaced
2041:e8f2db654e67 | 2042:0cb8ea02e472 |
---|---|
25 #define COMPL_PGP 18 | 25 #define COMPL_PGP 18 |
26 #define COMPL_COLOR 19 | 26 #define COMPL_COLOR 19 |
27 #define COMPL_OTR 20 | 27 #define COMPL_OTR 20 |
28 #define COMPL_OTRPOLICY 21 | 28 #define COMPL_OTRPOLICY 21 |
29 #define COMPL_MODULE 22 | 29 #define COMPL_MODULE 22 |
30 /* private */ | |
31 #define COMPL_MAX_ID 22 | |
32 | |
33 void compl_init_system(void); /* private */ | |
30 | 34 |
31 #ifdef MODULES_ENABLE | 35 #ifdef MODULES_ENABLE |
32 void compl_init_system(void); | 36 #define COMPL_FLAGS_SORT 0x00 |
33 guint compl_new_category(void); | 37 #define COMPL_FLAGS_REVERSE 0x10 |
38 #define COMPL_FLAGS_APPEND 0x20 | |
39 #define COMPL_FLAGS_PREPEND 0x30 | |
40 | |
41 guint compl_new_category(guint flags); | |
34 void compl_del_category(guint id); | 42 void compl_del_category(guint id); |
35 #endif | 43 #endif |
36 | 44 |
37 void compl_add_category_word(guint categ, const gchar *command); | 45 void compl_add_category_word(guint categ, const gchar *command); |
38 void compl_del_category_word(guint categ, const gchar *word); | 46 void compl_del_category_word(guint categ, const gchar *word); |