2 * ion/mod_query/wedln.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_MOD_QUERY_WEDLN_H
13 #define ION_MOD_QUERY_WEDLN_H
15 #include <libtu/obj.h>
16 #include <libextl/extl.h>
17 #include <libmainloop/signal.h>
18 #include <ioncore/common.h>
19 #include <ioncore/window.h>
20 #include <ioncore/xic.h>
21 #include <ioncore/rectangle.h>
22 #include <ioncore/binding.h>
28 INTRSTRUCT(WEdlnCreateParams);
30 DECLSTRUCT(WEdlnCreateParams){
56 WTimer *autoshowcompl_timer;
65 uint compl_history_mode:1;
67 WBindmap *cycle_bindmap;
70 extern WEdln *create_wedln(WWindow *par, const WFitParams *fp,
71 WEdlnCreateParams *p);
72 extern void wedln_finish(WEdln *wedln);
73 extern void wedln_paste(WEdln *wedln);
74 extern void wedln_draw(WEdln *wedln, bool complete);
75 extern void wedln_set_completions(WEdln *wedln, ExtlTab completions,
76 bool autoshow_select_first);
77 extern void wedln_hide_completions(WEdln *wedln);
78 extern bool wedln_set_histcompl(WEdln *wedln, int sp);
79 extern bool wedln_get_histcompl(WEdln *wedln);
81 #endif /* ION_MOD_QUERY_WEDLN_H */