From b5d073c25c9056cf29e4b2394f532db342f38a9f Mon Sep 17 00:00:00 2001 From: Zsolt Foldvari Date: Sun, 16 Sep 2007 09:20:23 +0000 Subject: [PATCH] 2007-09-16 Zsolt Foldvari * src/ReportBase/_ReportDialog.py: Cleanup. * src/glade/paper_settings.glade: Remove frames. svn: r8979 --- ChangeLog | 4 ++ src/ReportBase/_ReportDialog.py | 53 --------------- src/glade/paper_settings.glade | 112 ++++++++++++++++++-------------- 3 files changed, 66 insertions(+), 103 deletions(-) diff --git a/ChangeLog b/ChangeLog index 879bd801b..0da97e45e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-16 Zsolt Foldvari + * src/ReportBase/_ReportDialog.py: Cleanup. + * src/glade/paper_settings.glade: Remove frames. + 2007-09-15 Douglas S. Blank * src/ReportBase/__init__.py: * src/ReportBase/_MenuOptions.py: diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index 25ec51492..cc76fb576 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -390,59 +390,6 @@ class ReportDialog(BareReportDialog): self.options.handler.get_paper_name()) self.orientation_menu.set(self.options.handler.get_orientation()) - ##self.paper_table = gtk.Table(4,6) - ##self.paper_table.set_col_spacings(12) - ##self.paper_table.set_row_spacings(6) - ##self.paper_table.set_border_width(6) - - ##self.papersize_menu = PaperComboBox() - ##self.papersize_menu.connect('changed',self.size_changed) - - ##self.orientation_menu = OrientationComboBox() - ##l = gtk.Label("%s:" % _("Size")) - ##l.set_alignment(0.0,0.5) - - ##self.paper_table.attach(l,1,2,0,1,gtk.SHRINK|gtk.FILL) - ##self.paper_table.attach(self.papersize_menu,2,3,0,1, - ##yoptions=gtk.SHRINK) - ##l = gtk.Label("%s:" % _("Height")) - ##l.set_alignment(0.0,0.5) - ##self.paper_table.attach(l,3,4,0,1,gtk.SHRINK|gtk.FILL) - - ##self.pheight = gtk.Entry() - ##self.pheight.set_sensitive(0) - ##self.paper_table.attach(self.pheight,4,5,0,1) - - ##self.lunits1 = gtk.Label(_("cm")) - ##self.lunits1.set_alignment(0.0,0.5) - ##self.paper_table.attach(self.lunits1,5,6,0,1,gtk.SHRINK|gtk.FILL) - - ##self.metric = gtk.CheckButton (_("Metric")) - ##self.paper_table.attach(self.metric,2,3,1,2,gtk.SHRINK|gtk.FILL) - ##self.metric.connect('toggled',self.units_changed) - - ##l = gtk.Label("%s:" % _("Orientation")) - ##l.set_alignment(0.0,0.5) - ##self.paper_table.attach(l,1,2,2,3,gtk.SHRINK|gtk.FILL) - ##self.paper_table.attach(self.orientation_menu,2,3,2,3, - ##yoptions=gtk.SHRINK) - ##l = gtk.Label("%s:" % _("Width")) - ##l.set_alignment(0.0,0.5) - ##self.paper_table.attach(l,3,4,1,2,gtk.SHRINK|gtk.FILL) - - ##self.pwidth = gtk.Entry() - ##self.pwidth.set_sensitive(0) - ##self.paper_table.attach(self.pwidth,4,5,1,2) - - ##self.lunits2 = gtk.Label(_("cm")) - ##self.lunits2.set_alignment(0.0,0.5) - ##self.paper_table.attach(self.lunits2,5,6,1,2,gtk.SHRINK|gtk.FILL) - - ##self.papersize_menu.set(paper_sizes, - ##self.options.handler.get_paper_name()) - ##self.orientation_menu.set(self.options.handler.get_orientation()) - ##self.metric.set_active(1) - def html_file_enable(self,obj): active = obj.get_active() text = unicode(obj.get_model()[active][0]) diff --git a/src/glade/paper_settings.glade b/src/glade/paper_settings.glade index a4a67796f..c9beb9fab 100644 --- a/src/glade/paper_settings.glade +++ b/src/glade/paper_settings.glade @@ -31,11 +31,35 @@ - + True - 0 - 0.5 - GTK_SHADOW_ETCHED_IN + False + 0 + + + + True + Paper format + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + @@ -273,28 +297,10 @@ - - - - - True - <b>Paper format</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - label_item + 0 + True + True @@ -306,11 +312,35 @@ - + True - 0 - 0.5 - GTK_SHADOW_ETCHED_IN + False + 0 + + + + True + Margins + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + @@ -648,28 +678,10 @@ - - - - - True - <b>Margins</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - label_item + 0 + True + True