/[CvsGraph]/cvsgraph/cvsgraph.h
ViewVC logotype

Annotate of /cvsgraph/cvsgraph.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations)
Tue Jan 1 21:03:23 2002 UTC (15 years, 9 months ago) by bertho
Branch: MAIN
Changes since 1.8: +8 -0 lines
File MIME type: text/plain
Major code update to enable some more features. The new formatting scheme is
not yet 100%. This should be close to version 1.2.0.
1 /*
2 * CvsGraph graphical representation generator of brances and revisions
3 * of a file in cvs/rcs.
4 *
5 * Copyright (C) 2001 B. Stultiens
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22 #ifndef __CVSGRAPH_H
23 #define __CVSGRAPH_H
24
25 #define CONFFILENAME "cvsgraph.conf"
26
27 #ifndef ETCDIR
28 # define ETCDIR "/usr/local/etc"
29 #endif
30
31 #define DEBUG_CONF_LEX 0x01
32 #define DEBUG_CONF_YACC 0x02
33 #define DEBUG_RCS_LEX 0x04
34 #define DEBUG_RCS_YACC 0x08
35 #define DEBUG_RCS_FILE 0x10
36
37 extern int debuglevel;
38
39 typedef gdFontPtr font_t;
40
41 typedef struct __color_t
42 {
43 int r;
44 int g;
45 int b;
46 int id;
47 } color_t;
48
49 typedef struct __config_t
50 {
51 char *cvsroot;
52 char *cvsmodule;
53 char *date_format;
54
55 color_t color_bg;
56 int box_shadow;
57 int upside_down;
58 int strip_untagged;
59 int strip_first_rev;
60 int auto_kern;
61
62 font_t tag_font;
63 color_t tag_color;
64
65 font_t rev_font;
66 color_t rev_color;
67 color_t rev_bgcolor;
68 int rev_separator;
69 int rev_minline;
70 int rev_maxline;
71 int rev_lspace;
72 int rev_rspace;
73 int rev_tspace;
74 int rev_bspace;
75 char *rev_text;
76 color_t rev_text_color;
77 font_t rev_text_font;
78
79 font_t branch_font;
80 color_t branch_color;
81 color_t branch_bgcolor;
82 int branch_lspace;
83 int branch_rspace;
84 int branch_tspace;
85 int branch_bspace;
86 int branch_connect;
87 int branch_margin;
88 int branch_dupbox;
89
90 char *title;
91 int title_x;
92 int title_y;
93 font_t title_font;
94 int title_align;
95 color_t title_color;
96
97 int margin_top;
98 int margin_bottom;
99 int margin_left;
100 int margin_right;
101
102 int image_type;
103 int image_quality;
104
105 char *map_name;
106 char *map_branch_href;
107 char *map_branch_alt;
108 char *map_rev_href;
109 char *map_rev_alt;
110 char *map_diff_href;
111 char *map_diff_alt;
112
113 char *expand[10];
114 } config_t;
115
116 extern config_t conf;
117
118 #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0