]> git.deb.at Git - pkg/abook.git/blobdiff - edit.h
build system: updating gnuconfig files to 2013-06-10
[pkg/abook.git] / edit.h
diff --git a/edit.h b/edit.h
index d686f9d4291e545b9f852ac90f2e2a9f7f052746..3beed6501f7bff5ef4afb3903d9737c604d3c795 100644 (file)
--- a/edit.h
+++ b/edit.h
@@ -1,34 +1,29 @@
 #ifndef _EDIT_H
 #define _EDIT_H
 
+#include "misc.h"      /* for rotate_dir enum definition */
+
+
 void           edit_item(int item);
 void           get_first_email(char *str, int item);
+void           roll_emails(int item, enum rotate_dir dir);
 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                2
-
-#define MAX_TAB_LINES  7
+#define TABLINE                1
 
 #define TAB_COLON_POS  28
-#define TAB_START_Y    5
-#define TAB_START_X    (EDITW_COLS > 70 ? 8:4)
-
-enum {
-       TAB_CONTACT,
-       TAB_ADDRESS,
-       TAB_PHONE,
-       TAB_OTHER
-};
-
-#define MAX_TAB                TAB_OTHER
-       
-#define TABS           (MAX_TAB+1)
+#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
 
 #endif