X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=edit.h;h=8f1ada501b76df84a3c1ef78693265357ec1d515;hb=242907dcb6220a23b620f3314e96581b5b472a0d;hp=54310d788dfb11a0aa7a737eb672c30fe594982c;hpb=c5d8ef5198f2bfd02f678b7a709b6538ef83cd44;p=pkg%2Fabook.git diff --git a/edit.h b/edit.h index 54310d7..8f1ada5 100644 --- a/edit.h +++ b/edit.h @@ -4,32 +4,22 @@ void edit_item(int item); void get_first_email(char *str, int item); void add_item(); +int parse_date_string(char *s, int *day, int *month, int *year); #define EDITW_COLS (COLS - 6) #define EDITW_LINES (LINES - 5) #define EDITW_TOP 2 #define EDITW_X 3 -#define EDITOR_HELPLINE "?:help c:contact a:address p:phone o:other" +#define EDITOR_HELPLINE N_("?:help q:quit editor") #define TABLINE 1 -#define MAX_TAB_FIELDS 7 - #define TAB_COLON_POS 28 +#define FIELDNAME_MAX_WIDTH 20 +#define FIELD_MAX_WIDTH (EDITW_COLS - TAB_COLON_POS - FIELDS_START_X - 2) + #define FIELDS_START_Y 4 #define FIELDS_START_X 4 -enum { - TAB_CONTACT, - TAB_ADDRESS, - TAB_PHONE, - TAB_OTHER, - TAB_CUSTOM -}; - -#define MAX_TAB TAB_CUSTOM - -#define TABS (MAX_TAB+1) - #endif