From: kanschat
Date: Fri, 18 Jun 2010 22:08:59 +0000 (+0000)
Subject: work on image map
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad084aa9ccb28da734b77d8f33c4642bf09a007;p=dealii-svn.git
work on image map
git-svn-id: https://svn.dealii.org/trunk@21227 0785d39b-7218-0410-832d-ea1e28bc413d
---
diff --git a/deal.II/doc/doxygen/tutorial/steps.png b/deal.II/doc/doxygen/images/steps.png
similarity index 100%
rename from deal.II/doc/doxygen/tutorial/steps.png
rename to deal.II/doc/doxygen/images/steps.png
diff --git a/deal.II/doc/doxygen/tutorial/Makefile b/deal.II/doc/doxygen/tutorial/Makefile
index d31bf18510..1a6123773c 100644
--- a/deal.II/doc/doxygen/tutorial/Makefile
+++ b/deal.II/doc/doxygen/tutorial/Makefile
@@ -39,12 +39,16 @@ get_basename = $(shell echo $(1) | $(PERL) -pi -e 's/(generated|doxygen).//g; s/
all: $(example-doxygen)
+toc.html: steps.cmapx toc.html.in
+ @perl make_toc.pl > toc.html
+# @perl -p -e '$/=undef; open FH, "steps.cmapx"; $map=; s/@@MAP@@/\n$map"' toc.html.in > toc.html
# generate dot file
steps.dot: steps.pl
perl $< > $@
-steps.png: steps.dot
+
+steps.cmapx: steps.dot
neato -Tpng -Tcmapx -O $<
- @mv steps.dot.png steps.png
+ @mv steps.dot.png ../images/steps.png
@mv steps.dot.cmapx steps.cmapx
diff --git a/deal.II/doc/doxygen/tutorial/make_toc.pl b/deal.II/doc/doxygen/tutorial/make_toc.pl
new file mode 100644
index 0000000000..299da29717
--- /dev/null
+++ b/deal.II/doc/doxygen/tutorial/make_toc.pl
@@ -0,0 +1,17 @@
+######################################################################
+# $Id$
+######################################################################
+
+$/ = undef;
+
+open TOC, ";
+close TOC;
+
+open MAP, ";
+close MAP;
+
+$toc =~ s/\@\@MAP\@\@/$map/;
+
+print $toc;
diff --git a/deal.II/doc/doxygen/tutorial/steps.cmapx b/deal.II/doc/doxygen/tutorial/steps.cmapx
new file mode 100644
index 0000000000..c00ff9ee30
--- /dev/null
+++ b/deal.II/doc/doxygen/tutorial/steps.cmapx
@@ -0,0 +1,47 @@
+
diff --git a/deal.II/doc/doxygen/tutorial/steps.pl b/deal.II/doc/doxygen/tutorial/steps.pl
index 8a52aa58af..10dd272852 100644
--- a/deal.II/doc/doxygen/tutorial/steps.pl
+++ b/deal.II/doc/doxygen/tutorial/steps.pl
@@ -66,7 +66,7 @@ my %attribute = (
# Print a preamble setting common attributes
print << 'EOT'
-digraph G
+digraph StepsMap
{
overlap=false;
edge [fontname="FreeSans",
diff --git a/deal.II/doc/doxygen/tutorial/toc.html b/deal.II/doc/doxygen/tutorial/toc.html.in
similarity index 99%
rename from deal.II/doc/doxygen/tutorial/toc.html
rename to deal.II/doc/doxygen/tutorial/toc.html.in
index 43934b1970..f9f9a651a8 100644
--- a/deal.II/doc/doxygen/tutorial/toc.html
+++ b/deal.II/doc/doxygen/tutorial/toc.html.in
@@ -4,7 +4,7 @@
Step-by-Step
-
+
@@ -57,6 +57,10 @@ the geodynamics
demonstration suite.
+Map of tutorial programs
+
+
+@@MAP@@
Tutorial programs listed by number