]> git.deb.at Git - pkg/abook.git/blob - edit.h
d686f9d4291e545b9f852ac90f2e2a9f7f052746
[pkg/abook.git] / edit.h
1 #ifndef _EDIT_H
2 #define _EDIT_H
3
4 void            edit_item(int item);
5 void            get_first_email(char *str, int item);
6 void            add_item();
7
8 #define EDITW_COLS      (COLS - 6)
9 #define EDITW_LINES     (LINES - 5)
10 #define EDITW_TOP       2
11 #define EDITW_X         3
12
13 #define EDITOR_HELPLINE "?:help c:contact a:address p:phone o:other"
14
15 #define TABLINE         2
16
17 #define MAX_TAB_LINES   7
18
19 #define TAB_COLON_POS   28
20 #define TAB_START_Y     5
21 #define TAB_START_X     (EDITW_COLS > 70 ? 8:4)
22
23 enum {
24         TAB_CONTACT,
25         TAB_ADDRESS,
26         TAB_PHONE,
27         TAB_OTHER
28 };
29
30 #define MAX_TAB         TAB_OTHER
31         
32 #define TABS            (MAX_TAB+1)
33
34 #endif