4 #include "abook_curses.h"
11 int is_ui_initialized();
12 void ui_init_curses();
15 void headerline(const char *str);
16 void refresh_screen();
17 int statusline_msg(const char *msg);
18 int statusline_askchoice(const char *msg, const char *choices, short dflt);
19 char *ask_filename(char *prompt);
20 int statusline_ask_boolean(char *msg, int def);
21 void clear_statusline();
22 void display_help(int help);
23 void statusline_addstr(const char *str);
24 char * ui_readline(char *prompt, char *s, size_t limit, bool use_completion);
25 void refresh_statusline();
27 void ui_remove_items();
28 void ui_clear_database();
29 void ui_find(int next);
30 void ui_print_number_of_items();
31 void ui_read_database();
32 char *get_surname(char *s);
33 void ui_print_database();
34 void ui_open_datafile();
37 #include "options.h" /* needed for options_get_bool */
39 #define UI_HLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
41 #define UI_TEE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
43 #define UI_LBOXLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
45 #define UI_RBOXLINE_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
47 #define UI_ULCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
49 #define UI_URCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
51 #define UI_LLCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \
53 #define UI_LRCORNER_CHAR opt_get_bool(BOOL_USE_ASCII_ONLY) ? \