From 345d80b58841f3ca8561a67ad6b64ba556cbeaa6 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 11 Jul 2012 15:04:15 +0000 Subject: [PATCH] 5900: reports should remember their last-used GUI output file name svn: r19988 --- src/gen/plug/report/_options.py | 28 +++++++++++++++++++- src/gui/plug/report/_docreportdialog.py | 6 ++++- src/gui/plug/report/_graphvizreportdialog.py | 6 ++++- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/gen/plug/report/_options.py b/src/gen/plug/report/_options.py index 277d496f8..7dc1b92e6 100644 --- a/src/gen/plug/report/_options.py +++ b/src/gen/plug/report/_options.py @@ -4,7 +4,7 @@ # Copyright (C) 2004-2007 Donald N. Allingham # Copyright (C) 2008,2011 Gary Burton # Copyright (C) 2010 Jakim Friant -# Copyright (C) 2011 Paul Franklin +# Copyright (C) 2011-2012 Paul Franklin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -83,6 +83,7 @@ class OptionList(_options.OptionList): self.margins = [2.54, 2.54, 2.54, 2.54] self.format_name = None self.css_filename = None + self.output = None def set_style_name(self, style_name): """ @@ -234,6 +235,22 @@ class OptionList(_options.OptionList): """ return self.format_name + def set_output(self, output): + """ + Set the output for the OptionList. + @param output: name of the output to set. + @type output: str + """ + self.output = output + + def get_output(self): + """ + Return the output of the OptionList. + @returns: returns the output name + @rtype: str + """ + return self.output + #------------------------------------------------------------------------- # # Collection of option lists @@ -445,6 +462,9 @@ class OptionListCollection(_options.OptionListCollection): if option_list.get_style_name(): f.write('