Misc improvements to Graphviz reports.

svn: r9551
This commit is contained in:
Brian Matherly 2007-12-21 05:57:43 +00:00
parent f84b9c816c
commit f8d3f210f8
2 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,6 @@
2007-12-20 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: Misc improvements.
2007-12-20 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/siblings.py: Quick Reports under construction...
* src/Simple/_SimpleDoc.py: added table style defaults

View File

@ -384,8 +384,8 @@ class GVJpegDoc(GVDocBase):
GVDocBase.close(self)
# Make sure the extension is correct
if self.filename[-5:] != ".jpeg":
self.filename += ".jpeg"
if self.filename[-4:] != ".jpg":
self.filename += ".jpg"
# Create a temporary dot file
(handle,tmp_dot) = tempfile.mkstemp(".dot" )
@ -489,6 +489,13 @@ _formats += [{ 'type' : "dot",
'class': GVDotDoc }]
if _dot_found:
if _gs_cmd != "":
_formats += [{ 'type' : "pdf",
'descr': _("PDF"),
'mime' : "application/pdf",
'class': GVPdfDoc }]
_formats += [{ 'type' : "ps",
'descr': _("Postscript"),
'mime' : "application/postscript",
@ -503,11 +510,6 @@ if _dot_found:
'descr': _("Compressed Structured Vector Graphs (SVG)"),
'mime' : "image/svgz",
'class': GVSvgzDoc }]
_formats += [{ 'type' : "png",
'descr': _("PNG image"),
'mime' : "image/png",
'class': GVPngDoc }]
_formats += [{ 'type' : "jpg",
'descr': _("JPEG image"),
@ -518,12 +520,11 @@ if _dot_found:
'descr': _("GIF image"),
'mime' : "image/gif",
'class': GVGifDoc }]
if _dot_found and _gs_cmd != "":
_formats += [{ 'type' : "pdf",
'descr': _("PDF"),
'mime' : "application/pdf",
'class': GVPdfDoc }]
_formats += [{ 'type' : "png",
'descr': _("PNG image"),
'mime' : "image/png",
'class': GVPngDoc }]
#-------------------------------------------------------------------------------
#