]> git.deb.at Git - pkg/abook.git/blob - ui.h
Imported Upstream version 0.4.16
[pkg/abook.git] / ui.h
1 #ifndef _UI_H
2 #define _UI_H
3
4 #include "abook_curses.h"
5
6 enum {
7         HELP_MAIN,
8         HELP_EDITOR
9 };
10
11 int             is_ui_initialized();
12 void            ui_init_curses();
13 int             init_ui();
14 void            close_ui();
15 void            headerline(char *str);
16 void            refresh_screen();
17 void            statusline_msg(char *msg);
18 char            *ask_filename(char *prompt, int flags);
19 int             statusline_ask_boolean(char *msg, int def);
20 void            clear_statusline();
21 void            display_help(int help);
22 void            statusline_addstr(char *str);
23 char            *statusline_getnstr(char *str, int n, int use_filesel);
24 void            refresh_statusline();
25 void            get_commands();
26 void            ui_remove_items();
27 void            ui_clear_database();
28 void            ui_find(int next);
29 void            ui_print_number_of_items();
30 void            ui_read_database();
31 char            *get_surname(char *s);
32 void            ui_print_database();
33 void            ui_open_datafile();
34
35
36 #include "options.h" /* needed for options_get_int */
37
38 #define UI_HLINE_CHAR           options_get_int("use_ascii_only") ? \
39                                         '-' : ACS_HLINE
40
41 #endif