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 struct __font_t
|
40 |
{
|
41 |
gdFontPtr gdfont;
|
42 |
char *ttfont;
|
43 |
double ttsize;
|
44 |
} font_t;
|
45 |
|
46 |
typedef struct __color_t
|
47 |
{
|
48 |
int r;
|
49 |
int g;
|
50 |
int b;
|
51 |
int id;
|
52 |
} color_t;
|
53 |
|
54 |
typedef struct __config_t
|
55 |
{
|
56 |
char *cvsroot;
|
57 |
char *cvsmodule;
|
58 |
char *date_format;
|
59 |
|
60 |
color_t color_bg;
|
61 |
int transparent_bg;
|
62 |
int box_shadow;
|
63 |
int upside_down;
|
64 |
int strip_untagged;
|
65 |
int strip_first_rev;
|
66 |
int auto_stretch;
|
67 |
int use_ttf;
|
68 |
int anti_alias;
|
69 |
|
70 |
font_t tag_font;
|
71 |
color_t tag_color;
|
72 |
|
73 |
font_t rev_font;
|
74 |
color_t rev_color;
|
75 |
color_t rev_bgcolor;
|
76 |
int rev_separator;
|
77 |
int rev_minline;
|
78 |
int rev_maxline;
|
79 |
int rev_lspace;
|
80 |
int rev_rspace;
|
81 |
int rev_tspace;
|
82 |
int rev_bspace;
|
83 |
char *rev_text;
|
84 |
color_t rev_text_color;
|
85 |
font_t rev_text_font;
|
86 |
|
87 |
font_t branch_font;
|
88 |
color_t branch_color;
|
89 |
font_t branch_tag_font;
|
90 |
color_t branch_tag_color;
|
91 |
color_t branch_bgcolor;
|
92 |
int branch_lspace;
|
93 |
int branch_rspace;
|
94 |
int branch_tspace;
|
95 |
int branch_bspace;
|
96 |
int branch_connect;
|
97 |
int branch_margin;
|
98 |
int branch_dupbox;
|
99 |
|
100 |
char *title;
|
101 |
int title_x;
|
102 |
int title_y;
|
103 |
font_t title_font;
|
104 |
int title_align;
|
105 |
color_t title_color;
|
106 |
|
107 |
int margin_top;
|
108 |
int margin_bottom;
|
109 |
int margin_left;
|
110 |
int margin_right;
|
111 |
|
112 |
int image_type;
|
113 |
int image_quality;
|
114 |
|
115 |
char *map_name;
|
116 |
char *map_branch_href;
|
117 |
char *map_branch_alt;
|
118 |
char *map_rev_href;
|
119 |
char *map_rev_alt;
|
120 |
char *map_diff_href;
|
121 |
char *map_diff_alt;
|
122 |
|
123 |
char *expand[10];
|
124 |
} config_t;
|
125 |
|
126 |
extern config_t conf;
|
127 |
|
128 |
#endif
|