/[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.6 - (show annotations)
Sat Mar 10 02:54:39 2001 UTC (16 years, 9 months ago) by bertho
Branch: MAIN
CVS Tags: REL_1_1_2, REL_1_1_1, REL_1_1_3
Changes since 1.5: +8 -0 lines
File MIME type: text/plain
- Fixed path problems. Cvsroot and module will always have a
  trailing '/' if they are not empty so that simple files
  can be addressed directly from the commandline. This also
  eases expansions.
- Implemented new features:
	* revisions can have custom text
	* background colors of boxes working
	* boxes can have shadow (looks nice)
	* imagemaps generate diff areas between revisions
- Several new config parameters to support above functionality.
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 DEBUG_CONF_LEX 0x01
26 #define DEBUG_CONF_YACC 0x02
27 #define DEBUG_RCS_LEX 0x04
28 #define DEBUG_RCS_YACC 0x08
29 #define DEBUG_RCS_FILE 0x10
30
31 extern int debuglevel;
32
33 typedef gdFontPtr font_t;
34
35 typedef struct __color_t
36 {
37 int r;
38 int g;
39 int b;
40 int id;
41 } color_t;
42
43 typedef struct __config_t
44 {
45 char *cvsroot;
46 char *cvsmodule;
47 char *date_format;
48
49 color_t color_bg;
50 int box_shadow;
51
52 font_t tag_font;
53 color_t tag_color;
54
55 font_t rev_font;
56 color_t rev_color;
57 color_t rev_bgcolor;
58 int rev_separator;
59 int rev_minline;
60 int rev_maxline;
61 int rev_lspace;
62 int rev_rspace;
63 int rev_tspace;
64 int rev_bspace;
65 char *rev_text;
66 color_t rev_text_color;
67 font_t rev_text_font;
68
69 font_t branch_font;
70 color_t branch_color;
71 color_t branch_bgcolor;
72 int branch_lspace;
73 int branch_rspace;
74 int branch_tspace;
75 int branch_bspace;
76 int branch_connect;
77 int branch_margin;
78
79 char *title;
80 int title_x;
81 int title_y;
82 font_t title_font;
83 int title_align;
84 color_t title_color;
85
86 int margin_top;
87 int margin_bottom;
88 int margin_left;
89 int margin_right;
90
91 int image_type;
92 int image_quality;
93
94 char *map_name;
95 char *map_branch_href;
96 char *map_branch_alt;
97 char *map_rev_href;
98 char *map_rev_alt;
99 char *map_diff_href;
100 char *map_diff_alt;
101
102 char *expand[10];
103 } config_t;
104
105 extern config_t conf;
106
107 #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0