]> git.deb.at Git - pkg/abook.git/blob - ui.h
6b6c74291da37f11fb8c0ea5bdd75009178f75b2
[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 int             init_ui();
13 void            close_ui();
14 void            headerline(char *str);
15 void            refresh_screen();
16 void            statusline_msg(char *msg);
17 char            *ask_filename(char *prompt, int flags);
18 int             statusline_ask_boolean(char *msg, int def);
19 void            clear_statusline();
20 void            display_help(int help);
21 void            statusline_addstr(char *str);
22 char            *statusline_getnstr(char *str, int n, int use_filesel);
23 void            refresh_statusline();
24 void            get_commands();
25 void            ui_remove_items();
26 void            ui_clear_database();
27 void            ui_find(int next);
28 void            ui_print_number_of_items();
29 void            ui_read_database();
30 char            *get_surname(char *s);
31 void            ui_print_database();
32 void            ui_open_datafile();
33
34
35 #ifdef USE_ASCII_ONLY
36 #       define UI_HLINE_CHAR            '-'
37 #else
38 #       define UI_HLINE_CHAR            ACS_HLINE
39 #endif
40
41 #endif