]> git.deb.at Git - pkg/abook.git/blobdiff - edit.h
Support for dynamic views.
[pkg/abook.git] / edit.h
diff --git a/edit.h b/edit.h
index 1b8c8f609b50725d5e4b1946b9dc9b8fcbf6546c..aa521411823a0b652ba910ae25fe5223a3a6c600 100644 (file)
--- a/edit.h
+++ b/edit.h
@@ -10,19 +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                2
+#define TABLINE                1
 
-enum {
-       TAB_CONTACT,
-       TAB_ADDRESS,
-       TAB_PHONE,
-       TAB_OTHER
-};
+#define TAB_COLON_POS  28
+#define FIELDNAME_MAX_WIDTH    20
+#define FIELD_MAX_WIDTH        (EDITW_COLS - TAB_COLON_POS - FIELDS_START_X - 2)
 
-#define MAX_TAB                TAB_OTHER
-       
-#define TABS           (MAX_TAB+1)
+#define FIELDS_START_Y 4
+#define FIELDS_START_X 4
 
 #endif