/[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.21 - (show annotations)
Thu Aug 5 09:35:49 2004 UTC (13 years, 3 months ago) by bertho
Branch: MAIN
Changes since 1.20: +1 -0 lines
File MIME type: text/plain
Add tag_negate option so to include matching tags instead of ignoring them
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 __font_t
44 {
45 gdFontPtr gdfont;
46 char *ttfont;
47 double ttsize;
48 } font_t;
49
50 typedef struct __color_t
51 {
52 int r;
53 int g;
54 int b;
55 int id;
56 } color_t;
57
58 typedef struct __config_t
59 {
60 char *cvsroot;
61 char *cvsmodule;
62 char *date_format;
63
64 color_t color_bg;
65 int transparent_bg;
66 int box_shadow;
67 int upside_down;
68 int left_right;
69 int strip_untagged;
70 int strip_first_rev;
71 int auto_stretch;
72 int use_ttf;
73 int anti_alias;
74 int thick_lines;
75 int parse_logs;
76 int html_level;
77
78 font_t tag_font;
79 color_t tag_color;
80 char *tag_ignore;
81 int tag_nocase;
82 int tag_negate;
83
84 font_t rev_font;
85 color_t rev_color;
86 color_t rev_bgcolor;
87 int rev_separator;
88 int rev_minline;
89 int rev_maxline;
90 int rev_lspace;
91 int rev_rspace;
92 int rev_tspace;
93 int rev_bspace;
94 char *rev_text;
95 color_t rev_text_color;
96 font_t rev_text_font;
97 int rev_maxtags;
98
99 color_t merge_color;
100 char *merge_from;
101 char *merge_to;
102 int merge_front;
103 int merge_nocase;
104 int merge_arrows;
105 int arrow_width;
106 int arrow_length;
107
108 font_t branch_font;
109 color_t branch_color;
110 font_t branch_tag_font;
111 color_t branch_tag_color;
112 color_t branch_bgcolor;
113 int branch_lspace;
114 int branch_rspace;
115 int branch_tspace;
116 int branch_bspace;
117 int branch_connect;
118 int branch_margin;
119 int branch_dupbox;
120 int branch_fold;
121 int branch_foldall;
122
123 char *title;
124 int title_x;
125 int title_y;
126 font_t title_font;
127 int title_align;
128 color_t title_color;
129
130 int margin_top;
131 int margin_bottom;
132 int margin_left;
133 int margin_right;
134
135 int image_type;
136 int image_quality;
137
138 char *map_name;
139 char *map_branch_href;
140 char *map_branch_alt;
141 char *map_rev_href;
142 char *map_rev_alt;
143 char *map_diff_href;
144 char *map_diff_alt;
145
146 char *expand[10];
147 } config_t;
148
149 extern config_t conf;
150
151 #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0