/[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.27 - (show annotations)
Thu Dec 15 13:06:09 2005 UTC (11 years, 11 months ago) by bertho
Branch: MAIN
Changes since 1.26: +15 -3 lines
File MIME type: text/plain
Implemented multiple regex match for triplets merge_{from,to,color} so
that merges can be detected with more disjoined tag definitions.
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 #define HTMLLEVEL_3 1 /* HTML 3.x compatibility */
38 #define HTMLLEVEL_4 2 /* HTML 4.x compatibility */
39 #define HTMLLEVEL_X 3 /* XHTML compatibility */
40
41 extern int debuglevel;
42
43 typedef struct __msg_stack_t
44 {
45 int severity;
46 int w;
47 int h;
48 char *msg;
49 } msg_stack_t;
50
51 #define MSG_WARN 0
52 #define MSG_ERR 1
53
54 void stack_msg(int severity, const char *fmt, ...);
55
56
57 typedef struct __font_t
58 {
59 gdFontPtr gdfont;
60 char *ttfont;
61 double ttsize;
62 } font_t;
63
64 typedef struct __color_t
65 {
66 int r;
67 int g;
68 int b;
69 int id;
70 } color_t;
71
72 typedef struct __colorlist_t
73 {
74 int n;
75 color_t *clrs;
76 } colorlist_t;
77
78 typedef struct __stringlist_t
79 {
80 int n;
81 char **strs;
82 } stringlist_t;
83
84 typedef struct __config_t
85 {
86 char *cvsroot;
87 char *cvsmodule;
88 char *date_format;
89
90 color_t color_bg;
91 int transparent_bg;
92 int box_shadow;
93 int upside_down;
94 int left_right;
95 int strip_untagged;
96 int strip_first_rev;
97 int auto_stretch;
98 int use_ttf;
99 int anti_alias;
100 int thick_lines;
101 int parse_logs;
102 int html_level;
103
104 font_t msg_font;
105 color_t msg_color;
106
107 font_t tag_font;
108 color_t tag_color;
109 char *tag_ignore;
110 int tag_ignore_merge;
111 int tag_nocase;
112 int tag_negate;
113
114 int rev_hidenumber;
115 font_t rev_font;
116 color_t rev_color;
117 color_t rev_bgcolor;
118 int rev_separator;
119 int rev_minline;
120 int rev_maxline;
121 int rev_lspace;
122 int rev_rspace;
123 int rev_tspace;
124 int rev_bspace;
125 char *rev_text;
126 color_t rev_text_color;
127 font_t rev_text_font;
128 int rev_maxtags;
129
130 colorlist_t merge_color;
131 stringlist_t merge_from;
132 stringlist_t merge_to;
133 int merge_findall;
134 int merge_front;
135 int merge_nocase;
136 int merge_arrows;
137 int merge_cvsnt;
138 color_t merge_cvsnt_color;
139 int arrow_width;
140 int arrow_length;
141
142 font_t branch_font;
143 color_t branch_color;
144 font_t branch_tag_font;
145 color_t branch_tag_color;
146 color_t branch_bgcolor;
147 int branch_lspace;
148 int branch_rspace;
149 int branch_tspace;
150 int branch_bspace;
151 int branch_connect;
152 int branch_margin;
153 int branch_dupbox;
154 int branch_fold;
155 int branch_foldall;
156 int branch_resort;
157 char *branch_subtree;
158
159 char *title;
160 int title_x;
161 int title_y;
162 font_t title_font;
163 int title_align;
164 color_t title_color;
165
166 int margin_top;
167 int margin_bottom;
168 int margin_left;
169 int margin_right;
170
171 int image_type;
172 int image_quality;
173 int image_compress;
174 int image_interlace;
175
176 char *map_name;
177 char *map_branch_href;
178 char *map_branch_alt;
179 char *map_rev_href;
180 char *map_rev_alt;
181 char *map_diff_href;
182 char *map_diff_alt;
183 char *map_merge_href;
184 char *map_merge_alt;
185
186 char *expand[10];
187 } config_t;
188
189 extern config_t conf;
190
191 #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0