4 #include "abook_curses.h"
11 int is_ui_initialized();
12 void ui_init_curses();
13 void ui_init_color_pairs_user();
14 void ui_enable_mouse(bool enabled);
17 void headerline(const char *str);
18 void refresh_screen();
19 int statusline_msg(const char *msg);
20 int statusline_askchoice(const char *msg, const char *choices,
22 char *ask_filename(const char *prompt);
23 int statusline_ask_boolean(const char *msg, int def);
24 void clear_statusline();
25 void display_help(int help);
26 void statusline_addstr(const char *str);
27 char * ui_readline(const char *prompt, char *s, size_t limit,
29 void refresh_statusline();
31 void ui_remove_items();
32 void ui_merge_items();
33 void ui_remove_duplicates();
34 void ui_clear_database();
35 void ui_find(int next);
36 void ui_print_number_of_items();
37 void ui_read_database();
38 char *get_surname(char *s);
39 void ui_print_database();
40 void ui_open_datafile();
42 #if NCURSES_MOUSE_VERSION != 2
43 #define BUTTON5_PRESSED (0x80 | 0x8000000)
46 #include "options.h" /* needed for options_get_bool */
48 #define UI_HLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
50 #define UI_VLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
52 #define UI_TEE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
54 #define UI_LBOXLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
56 #define UI_RBOXLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
58 #define UI_ULCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
60 #define UI_URCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
62 #define UI_LLCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
64 #define UI_LRCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \