/[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.24 - (hide annotations)
Sun Aug 29 12:20:03 2004 UTC (13 years, 1 month ago) by bertho
Branch: MAIN
Changes since 1.23: +1 -0 lines
File MIME type: text/plain
- Add resorting of branches on how many revisions they have. This saves space under circumstances.
1 bertho 1.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 bertho 1.9 #define CONFFILENAME "cvsgraph.conf"
26    
27     #ifndef ETCDIR
28     # define ETCDIR "/usr/local/etc"
29     #endif
30    
31 bertho 1.4 #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 bertho 1.15 #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 bertho 1.4 extern int debuglevel;
42    
43 bertho 1.22 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 bertho 1.10 typedef struct __font_t
58     {
59     gdFontPtr gdfont;
60     char *ttfont;
61     double ttsize;
62     } font_t;
63 bertho 1.1
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 bertho 1.6 char *date_format;
77 bertho 1.1
78     color_t color_bg;
79 bertho 1.10 int transparent_bg;
80 bertho 1.6 int box_shadow;
81 bertho 1.7 int upside_down;
82 bertho 1.13 int left_right;
83 bertho 1.7 int strip_untagged;
84 bertho 1.9 int strip_first_rev;
85 bertho 1.10 int auto_stretch;
86     int use_ttf;
87     int anti_alias;
88 bertho 1.11 int thick_lines;
89 bertho 1.12 int parse_logs;
90 bertho 1.15 int html_level;
91 bertho 1.1
92 bertho 1.22 font_t msg_font;
93     color_t msg_color;
94    
95 bertho 1.1 font_t tag_font;
96     color_t tag_color;
97 bertho 1.20 char *tag_ignore;
98 bertho 1.23 int tag_ignore_merge;
99 bertho 1.20 int tag_nocase;
100 bertho 1.21 int tag_negate;
101 bertho 1.1
102 bertho 1.23 int rev_hidenumber;
103 bertho 1.1 font_t rev_font;
104     color_t rev_color;
105 bertho 1.6 color_t rev_bgcolor;
106 bertho 1.1 int rev_separator;
107     int rev_minline;
108     int rev_maxline;
109     int rev_lspace;
110     int rev_rspace;
111     int rev_tspace;
112     int rev_bspace;
113 bertho 1.6 char *rev_text;
114     color_t rev_text_color;
115     font_t rev_text_font;
116 bertho 1.14 int rev_maxtags;
117 bertho 1.1
118 bertho 1.16 color_t merge_color;
119     char *merge_from;
120     char *merge_to;
121 bertho 1.23 int merge_findall;
122 bertho 1.16 int merge_front;
123     int merge_nocase;
124 bertho 1.19 int merge_arrows;
125     int arrow_width;
126     int arrow_length;
127 bertho 1.16
128 bertho 1.1 font_t branch_font;
129     color_t branch_color;
130 bertho 1.10 font_t branch_tag_font;
131     color_t branch_tag_color;
132 bertho 1.1 color_t branch_bgcolor;
133     int branch_lspace;
134     int branch_rspace;
135     int branch_tspace;
136     int branch_bspace;
137 bertho 1.4 int branch_connect;
138     int branch_margin;
139 bertho 1.8 int branch_dupbox;
140 bertho 1.17 int branch_fold;
141 bertho 1.18 int branch_foldall;
142 bertho 1.24 int branch_resort;
143 bertho 1.22 char *branch_subtree;
144 bertho 1.1
145     char *title;
146     int title_x;
147     int title_y;
148     font_t title_font;
149     int title_align;
150     color_t title_color;
151    
152     int margin_top;
153     int margin_bottom;
154     int margin_left;
155     int margin_right;
156 bertho 1.2
157     int image_type;
158     int image_quality;
159 bertho 1.3
160     char *map_name;
161 bertho 1.5 char *map_branch_href;
162     char *map_branch_alt;
163     char *map_rev_href;
164     char *map_rev_alt;
165 bertho 1.6 char *map_diff_href;
166     char *map_diff_alt;
167 bertho 1.22 char *map_merge_href;
168     char *map_merge_alt;
169 bertho 1.5
170     char *expand[10];
171 bertho 1.1 } config_t;
172    
173     extern config_t conf;
174    
175     #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0