/[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.22 - (show annotations)
Sun Aug 15 16:58:22 2004 UTC (13 years, 3 months ago) by bertho
Branch: MAIN
CVS Tags: REL_1_5_0
Changes since 1.21: +20 -0 lines
File MIME type: text/plain
- Added drawing of partial trees. You now can select a subtree based on a
  revision number, branch number or symbolic tag to show only that part of the
  tree. New config option branch_subtree selects which part is shown. If the
  subtree is empty, then the whole tree is shown.

- Most error and warning messages are now displayed in the graph, instead of
  being written to stderr. This enables you to see an image eventhough errors
  might be present. The old method would generate a corrupt image.
  New configuration options include msg_color and msg_font to control the looks
  of it. Messages are always printed at the bottom of the image.

- Fixed a bug in the folding code where subtrees would not fold correctly.

- Added diff links in the map-generation for detected merges so that you can
  get the differences in merge-operations. The options map_merge_href and
  map_merge_alt must be set accordingly.
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 __config_t
73 {
74 char *cvsroot;
75 char *cvsmodule;
76 char *date_format;
77
78 color_t color_bg;
79 int transparent_bg;
80 int box_shadow;
81 int upside_down;
82 int left_right;
83 int strip_untagged;
84 int strip_first_rev;
85 int auto_stretch;
86 int use_ttf;
87 int anti_alias;
88 int thick_lines;
89 int parse_logs;
90 int html_level;
91
92 font_t msg_font;
93 color_t msg_color;
94
95 font_t tag_font;
96 color_t tag_color;
97 char *tag_ignore;
98 int tag_nocase;
99 int tag_negate;
100
101 font_t rev_font;
102 color_t rev_color;
103 color_t rev_bgcolor;
104 int rev_separator;
105 int rev_minline;
106 int rev_maxline;
107 int rev_lspace;
108 int rev_rspace;
109 int rev_tspace;
110 int rev_bspace;
111 char *rev_text;
112 color_t rev_text_color;
113 font_t rev_text_font;
114 int rev_maxtags;
115
116 color_t merge_color;
117 char *merge_from;
118 char *merge_to;
119 int merge_front;
120 int merge_nocase;
121 int merge_arrows;
122 int arrow_width;
123 int arrow_length;
124
125 font_t branch_font;
126 color_t branch_color;
127 font_t branch_tag_font;
128 color_t branch_tag_color;
129 color_t branch_bgcolor;
130 int branch_lspace;
131 int branch_rspace;
132 int branch_tspace;
133 int branch_bspace;
134 int branch_connect;
135 int branch_margin;
136 int branch_dupbox;
137 int branch_fold;
138 int branch_foldall;
139 char *branch_subtree;
140
141 char *title;
142 int title_x;
143 int title_y;
144 font_t title_font;
145 int title_align;
146 color_t title_color;
147
148 int margin_top;
149 int margin_bottom;
150 int margin_left;
151 int margin_right;
152
153 int image_type;
154 int image_quality;
155
156 char *map_name;
157 char *map_branch_href;
158 char *map_branch_alt;
159 char *map_rev_href;
160 char *map_rev_alt;
161 char *map_diff_href;
162 char *map_diff_alt;
163 char *map_merge_href;
164 char *map_merge_alt;
165
166 char *expand[10];
167 } config_t;
168
169 extern config_t conf;
170
171 #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0