/[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.4 - (hide annotations)
Sun Mar 4 01:38:23 2001 UTC (16 years, 7 months ago) by bertho
Branch: MAIN
Changes since 1.3: +10 -2 lines
File MIME type: text/plain
Major update of the code.
- Complete new method of getting the revision structure by directly
  reading the rcs/cvs file. This should also speed things a bit
  because no external program needs to be called anymore.
  This also means that "remote-graphs" are no longer a possible
  extension of the program. But, who cares.
- Implemented branch-kerning to save place. The images are now
  much smaller in width, dependent on the settings of the exterior
  margins.
- Fixed disjoint braches by reading the structure direct from the
  rcs/cvs file. The revision/branch structure is no longer determined
  from the revision numbers, but solely from the rcs/cvs file structure.
- Fixed display of branches with no revisions attached to them. These
  only have a tag describing the new branch.
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.4 #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 bertho 1.1 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    
48     color_t color_bg;
49    
50     font_t tag_font;
51     color_t tag_color;
52    
53     font_t rev_font;
54     color_t rev_color;
55     int rev_separator;
56     int rev_minline;
57     int rev_maxline;
58     int rev_lspace;
59     int rev_rspace;
60     int rev_tspace;
61     int rev_bspace;
62    
63     font_t branch_font;
64     color_t branch_color;
65     color_t branch_bgcolor;
66     int branch_lspace;
67     int branch_rspace;
68     int branch_tspace;
69     int branch_bspace;
70 bertho 1.4 int branch_connect;
71     int branch_margin;
72 bertho 1.1
73     char *title;
74     int title_x;
75     int title_y;
76     font_t title_font;
77     int title_align;
78     color_t title_color;
79    
80     int margin_top;
81     int margin_bottom;
82     int margin_left;
83     int margin_right;
84 bertho 1.2
85     int image_type;
86     int image_quality;
87 bertho 1.3
88     char *map_name;
89     char *map_branch;
90     char *map_rev;
91 bertho 1.1 } config_t;
92    
93     extern config_t conf;
94    
95     #endif

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0