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> 2007-12-20 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/siblings.py: Quick Reports under construction... * src/plugins/siblings.py: Quick Reports under construction...
* src/Simple/_SimpleDoc.py: added table style defaults * src/Simple/_SimpleDoc.py: added table style defaults

View File

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