X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=edit.h;h=aa521411823a0b652ba910ae25fe5223a3a6c600;hb=7751b3edc145646e6b55e2fda82eb5619fbe0074;hp=5a8db0735b30fb5c58d65e822625173bdbe4a82d;hpb=addc54efb596b39b0e4e6ce219ee0f1506337475;p=pkg%2Fabook.git diff --git a/edit.h b/edit.h index 5a8db07..aa52141 100644 --- a/edit.h +++ b/edit.h @@ -10,26 +10,15 @@ void add_item(); #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