/[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.17 - (hide annotations)
Fri Mar 14 01:38:39 2003 UTC (14 years, 8 months ago) by bertho
Branch: MAIN
Changes since 1.16: +1 -0 lines
File MIME type: text/plain
- Fixed a bug in the initial placing of left to right displaying.
- Half-fixed a bug in the kerning code, where a loop-safeguard was triggered
  way too soon (at 100 iterations). This has now been changed to 10000, but
  should be dependent on the number of drawable branches, as the function is
  _at least_ order O(N^2). However, more analysis is required to ensure
  safe guarding under all circumstances.
- Implemented folding of empty branches. Many uses of CVS create many
  branches on the same revision but have no commits on them. This occurs
  often with stable files like .cvsignore files and the like. A new
  configuration option branch_fold enables imaging consequtive brances
  with no commits in the same branch-box. This reduces images by a huge
  factor (28000x1700 -> 2100x2300, i.e. a factor of 10). It also speeds up
  drawing considerably. The branch_fold option is *on* by default.
- Fix duplicate branch-boxes (branch_dupbox=true). No duplicates should be
  created if there are no commits on a specific branch. There is no reason
  for having two boxes on top of each other.
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.10 typedef struct __font_t
44     {
45     gdFontPtr gdfont;
46     char *ttfont;
47     double ttsize;
48     } font_t;
49 bertho 1.1
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 bertho 1.6 char *date_format;
63 bertho 1.1
64     color_t color_bg;
65 bertho 1.10 int transparent_bg;
66 bertho 1.6 int box_shadow;
67 bertho 1.7 int upside_down;
68 bertho 1.13 int left_right;
69 bertho 1.7 int strip_untagged;
70 bertho 1.9 int strip_first_rev;
71 bertho 1.10 int auto_stretch;
72     int use_ttf;
73     int anti_alias;
74 bertho 1.11 int thick_lines;
75 bertho 1.12 int parse_logs;
76 bertho 1.15 int html_level;
77 bertho 1.1
78     font_t tag_font;
79     color_t tag_color;
80    
81     font_t rev_font;
82     color_t rev_color;
83 bertho 1.6 color_t rev_bgcolor;
84 bertho 1.1 int rev_separator;
85     int rev_minline;
86     int rev_maxline;
87     int rev_lspace;
88     int rev_rspace;
89     int rev_tspace;
90     int rev_bspace;
91 bertho 1.6 char *rev_text;
92     color_t rev_text_color;
93     font_t rev_text_font;
94 bertho 1.14 int rev_maxtags;
95 bertho 1.1
96 bertho 1.16 color_t merge_color;
97     char *merge_from;
98     char *merge_to;
99     int merge_front;
100     int merge_nocase;
101    
102 bertho 1.1 font_t branch_font;
103     color_t branch_color;
104 bertho 1.10 font_t branch_tag_font;
105     color_t branch_tag_color;
106 bertho 1.1 color_t branch_bgcolor;
107     int branch_lspace;
108     int branch_rspace;
109     int branch_tspace;
110     int branch_bspace;
111 bertho 1.4 int branch_connect;
112     int branch_margin;
113 bertho 1.8 int branch_dupbox;
114 bertho 1.17 int branch_fold;
115 bertho 1.1
116     char *title;
117     int title_x;
118     int title_y;
119     font_t title_font;
120     int title_align;
121     color_t title_color;
122    
123     int margin_top;
124     int margin_bottom;
125     int margin_left;
126     int margin_right;
127 bertho 1.2
128     int image_type;
129     int image_quality;
130 bertho 1.3
131     char *map_name;
132 bertho 1.5 char *map_branch_href;
133     char *map_branch_alt;
134     char *map_rev_href;
135     char *map_rev_alt;
136 bertho 1.6 char *map_diff_href;
137     char *map_diff_alt;
138 bertho 1.5
139     char *expand[10];
140 bertho 1.1 } config_t;
141    
142     extern config_t conf;
143    
144     #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0