File: edit.h

package info (click to toggle)
abook 0.6.0~pre2-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,384 kB
  • ctags: 2,011
  • sloc: ansic: 16,787; sh: 4,310; cpp: 956; makefile: 528; yacc: 288; python: 256; perl: 97
file content (25 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _EDIT_H
#define _EDIT_H

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	N_("?:help q:quit editor")

#define TABLINE		1

#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

#endif