1 //
2 //	aegis - project change supervisor
3 //	Copyright (C) 1999, 2004, 2006, 2008 Peter Miller
4 //
5 //	This program is free software; you can redistribute it and/or modify
6 //	it under the terms of the GNU General Public License as published by
7 //	the Free Software Foundation; either version 3 of the License, or
8 //	(at your option) any later version.
9 //
10 //	This program is distributed in the hope that it will be useful,
11 //	but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //	GNU General Public License for more details.
14 //
15 //	You should have received a copy of the GNU General Public License
16 //	along with this program. If not, see
17 //	<http://www.gnu.org/licenses/>.
18 //
19 
20 #ifndef LIBAEGIS_AEL_COLUMN_WIDTH_H
21 #define LIBAEGIS_AEL_COLUMN_WIDTH_H
22 
23 
24 #define ELAPSED_TIME_THRESHOLD (10L * 60L) // ten minutes
25 
26 //
27 // widths of the various columns
28 //
29 // (Many are 8n-1; this does nice things with tabs.)
30 //
31 #define USAGE_WIDTH	7	// strlen("manual_") = 7
32 #define ACTION_WIDTH	8	// strlen("insulate") = 8
33 #define EDIT_WIDTH	12	// strlen("1.23 (4.56)") = 11,
34 				   // strlen("1.23 -> 4.56") = 12
35 #define LOGIN_WIDTH	8	// login names will be <= 8
36 #define WHAT_WIDTH	15	// widest is 20, worst is 10
37 #define WHEN_WIDTH	15	// ctime fits in 2 lines
38 #define WHO_WIDTH	LOGIN_WIDTH
39 #define	CHANGE_WIDTH	7
40 #define	STATE_WIDTH	15	// widest is 20, worst is 11
41 #define ARCH_WIDTH	8
42 #define HOST_WIDTH	8
43 #define TIME_WIDTH	11	// strlen("99-Oct-2000") = 11
44 #define INDENT_WIDTH	8	// used for change_details
45 #define PROJECT_WIDTH	15
46 #define DIRECTORY_WIDTH 23
47 #define ATTR_WIDTH      15	// used for file and change attributes
48 #define UUID_WIDTH      36
49 #define FILENAME_WIDTH  42	// FILENAME_WIDTH + 1 + UUID_WIDTH < 80
50 #define VERSION_WIDTH   10       // strlen("1.234.D567") = 10
51 
52 #endif // LIBAEGIS_AEL_COLUMN_WIDTH_H
53