Mercurial > projects > dil
comparison trunk/src/docgen/tests/graphs.d @ 717:cb8edb09108a
Updated docgen (mostly) to new tango.
Reflective options.
Updated translations.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Fri, 01 Feb 2008 15:05:56 +0200 |
parents | b7503e02fbe7 |
children | ec8dd7b8bf0c |
comparison
equal
deleted
inserted
replaced
716:08e6174a2e1c | 717:cb8edb09108a |
---|---|
7 import docgen.tests.common; | 7 import docgen.tests.common; |
8 import docgen.misc.parser; | 8 import docgen.misc.parser; |
9 import docgen.graphutils.writers; | 9 import docgen.graphutils.writers; |
10 import docgen.page.writers; | 10 import docgen.page.writers; |
11 import tango.io.FileConduit; | 11 import tango.io.FileConduit; |
12 import dil.Module; | 12 import dil.semantic.Module; |
13 | 13 |
14 void saveDefaultGraph(Vertex[] vertices, Edge[] edges, char[] fname) { | 14 void saveDefaultGraph(Vertex[] vertices, Edge[] edges, char[] fname) { |
15 auto gen = new TestDocGenerator; | 15 auto gen = new TestDocGenerator; |
16 gen.options.graph.highlightCyclicVertices = true; | 16 gen.options.graph.highlightCyclicVertices = true; |
17 gen.options.graph.imageFormat = ImageFormat.SVG; | 17 gen.options.graph.imageFormat = ImageFormat.SVG; |
20 gen.options.graph.depth = 5; | 20 gen.options.graph.depth = 5; |
21 auto ddf = new DefaultPageWriterFactory(gen); | 21 auto ddf = new DefaultPageWriterFactory(gen); |
22 auto gwf = new DefaultGraphWriterFactory(gen); | 22 auto gwf = new DefaultGraphWriterFactory(gen); |
23 auto file = new FileConduit("docgen/teststuff/" ~ fname, FileConduit.WriteCreate); | 23 auto file = new FileConduit("docgen/teststuff/" ~ fname, FileConduit.WriteCreate); |
24 auto file2 = new FileConduit("docgen/teststuff/" ~ fname ~ "-2", FileConduit.WriteCreate); | 24 auto file2 = new FileConduit("docgen/teststuff/" ~ fname ~ "-2", FileConduit.WriteCreate); |
25 | |
25 auto writer = gwf.createGraphWriter( | 26 auto writer = gwf.createGraphWriter( |
26 ddf.createPageWriter( [ file2 ], DocFormat.LaTeX), | 27 ddf.createPageWriter( [ file2 ], DocFormat.LaTeX), |
27 GraphFormat.Dot | 28 GraphFormat.Dot |
28 ); | 29 ); |
29 | 30 |