]> git.deb.at Git - pkg/abook.git/blobdiff - edit.h
initial custom field support
[pkg/abook.git] / edit.h
diff --git a/edit.h b/edit.h
index d686f9d4291e545b9f852ac90f2e2a9f7f052746..54310d788dfb11a0aa7a737eb672c30fe594982c 100644 (file)
--- a/edit.h
+++ b/edit.h
@@ -12,22 +12,23 @@ void                add_item();
 
 #define EDITOR_HELPLINE        "?:help c:contact a:address p:phone o:other"
 
-#define TABLINE                2
+#define TABLINE                1
 
-#define MAX_TAB_LINES  7
+#define MAX_TAB_FIELDS 7
 
 #define TAB_COLON_POS  28
-#define TAB_START_Y    5
-#define TAB_START_X    (EDITW_COLS > 70 ? 8:4)
+#define FIELDS_START_Y 4
+#define FIELDS_START_X 4
 
 enum {
        TAB_CONTACT,
        TAB_ADDRESS,
        TAB_PHONE,
-       TAB_OTHER
+       TAB_OTHER,
+       TAB_CUSTOM
 };
 
-#define MAX_TAB                TAB_OTHER
+#define MAX_TAB                TAB_CUSTOM
        
 #define TABS           (MAX_TAB+1)