File: edit.h

package info (click to toggle)
abook 0.5.3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,084 kB
  • ctags: 759
  • sloc: ansic: 6,613; sh: 3,272; cpp: 956; python: 256; perl: 91; makefile: 89
file content (35 lines) | stat: -rw-r--r-- 556 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
26
27
28
29
30
31
32
33
34
35
#ifndef _EDIT_H
#define _EDIT_H

void		edit_item(int item);
void		get_first_email(char *str, int item);
void		add_item();

#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 TABLINE		1

#define MAX_TAB_FIELDS	7

#define TAB_COLON_POS	28
#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