give the graphvizdialog's format_str a more-unique name
(to help distinguish it from the name displayer's format_str) svn: r22844
This commit is contained in:
parent
ffab79499d
commit
02152e3abb
@ -94,7 +94,7 @@ class GraphvizFormatComboBox(gtk.ComboBox):
|
|||||||
def get_ext(self):
|
def get_ext(self):
|
||||||
return '.%s' % graphdoc.FORMATS[self.get_active()]['ext']
|
return '.%s' % graphdoc.FORMATS[self.get_active()]['ext']
|
||||||
|
|
||||||
def get_format_str(self):
|
def get_oformat_str(self): # the report's output-format type
|
||||||
return graphdoc.FORMATS[self.get_active()]["type"]
|
return graphdoc.FORMATS[self.get_active()]["type"]
|
||||||
|
|
||||||
def is_file_output(self):
|
def is_file_output(self):
|
||||||
@ -213,15 +213,15 @@ class GraphvizReportDialog(ReportDialog):
|
|||||||
fname = spath
|
fname = spath
|
||||||
self.target_fileentry.set_filename(fname)
|
self.target_fileentry.set_filename(fname)
|
||||||
|
|
||||||
format_str = obj.get_format_str()
|
output_format_str = obj.get_oformat_str()
|
||||||
if format_str in ['gvpdf', 'gspdf', 'ps']:
|
if output_format_str in ['gvpdf', 'gspdf', 'ps']:
|
||||||
# Always use 72 DPI for PostScript and PDF files.
|
# Always use 72 DPI for PostScript and PDF files.
|
||||||
self.__gvoptions.dpi.set_value(72)
|
self.__gvoptions.dpi.set_value(72)
|
||||||
self.__gvoptions.dpi.set_available(False)
|
self.__gvoptions.dpi.set_available(False)
|
||||||
else:
|
else:
|
||||||
self.__gvoptions.dpi.set_available(True)
|
self.__gvoptions.dpi.set_available(True)
|
||||||
|
|
||||||
if format_str in ['gspdf', 'dot']:
|
if output_format_str in ['gspdf', 'dot']:
|
||||||
# Multiple pages only valid for dot and PDF via GhostsScript.
|
# Multiple pages only valid for dot and PDF via GhostsScript.
|
||||||
self.__gvoptions.h_pages.set_available(True)
|
self.__gvoptions.h_pages.set_available(True)
|
||||||
self.__gvoptions.v_pages.set_available(True)
|
self.__gvoptions.v_pages.set_available(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user