* src/plugins/WebPage.py: support for keeping track of options
* src/plugins/TimeLine.py: support for keeping track of options * src/plugins/RelGraph.py: support for keeping track of options * src/plugins/IndivSummary.py: support for keeping track of options * src/plugins/IndivComplete.py: support for keeping track of options * src/plugins/GraphViz.py: support for keeping track of options * src/plugins/FtmStyleDescendants.py: support for keeping track of options * src/plugins/FtmStyleAncestors.py: support for keeping track of options * src/plugins/FanChart.py: support for keeping track of options * src/plugins/FamilyGroup.py: support for keeping track of options * src/plugins/DetAncestralReport.py: support for keeping track of options * src/plugins/Ancestors.py: support for keeping track of options * src/plugins/AncestorReport.py: support for keeping track of options * src/plugins/AncestorChart.py: support for keeping track of options * src/Utils.py: save key on style mappings svn: r2295
This commit is contained in:
parent
aed31e7a33
commit
c971ccf8f4
@ -465,6 +465,7 @@ def build_string_optmenu(mapping, start_val):
|
||||
else:
|
||||
menuitem = gtk.MenuItem(key)
|
||||
menuitem.set_data("d", mapping[key])
|
||||
menuitem.set_data("l", key)
|
||||
menuitem.show()
|
||||
myMenu.append(menuitem)
|
||||
if key == start_val:
|
||||
|
@ -231,8 +231,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class AncestorChartDialog(Report.DrawReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.DrawReportDialog.__init__(self,database,person)
|
||||
Report.DrawReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
|
@ -222,8 +222,11 @@ class AncestorReport(Report.Report):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class AncestorReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -329,7 +329,7 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
(partner != from_family_father and
|
||||
partner != from_family_mother)):
|
||||
for photo in partner.getPhotoList ()[:1]:
|
||||
if photo.getMimeType()[0:5] == "image":
|
||||
if photo.ref.getMimeType()[0:5] == "image":
|
||||
spouse.append ((self.doc.add_photo,
|
||||
[photo.ref.getPath (),
|
||||
'right', 2, 2]))
|
||||
@ -360,7 +360,7 @@ class ComprehensiveAncestorsReport (Report.Report):
|
||||
else:
|
||||
ret.append ((self.doc.start_cell, ["AR-Photo"]))
|
||||
for photo in photos[:1]:
|
||||
if photo.getMimeType()[0:5] == "image":
|
||||
if photo.ref.getMimeType()[0:5] == "image":
|
||||
ret.append ((self.doc.add_photo,
|
||||
[photo.ref.getPath (), 'left', 2, 2]))
|
||||
ret.append ((self.doc.end_cell, []))
|
||||
@ -813,8 +813,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class ComprehensiveAncestorsReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -726,8 +726,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class DetAncestorReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -734,8 +734,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class DetDescendantReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -786,6 +786,7 @@ class FtmAncestorReport(Report.Report):
|
||||
else:
|
||||
self.doc.write_text(_("%(female_name)s%(endnotes)s was born %(birth_date)s in %(birth_place)s"
|
||||
"%(birth_endnotes)s. ") % {
|
||||
'female_name' : _('She'), 'endnotes' : '',
|
||||
'birth_endnotes' : self.endnotes(birth),
|
||||
'birth_date' : bdate, 'birth_place' : bplace,
|
||||
})
|
||||
@ -990,8 +991,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class FtmAncestorReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -1399,8 +1399,11 @@ def _make_default_style(default_style):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class FtmDescendantReportDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -71,8 +71,11 @@ _pagecount_map = {
|
||||
#------------------------------------------------------------------------
|
||||
class GraphVizDialog(Report.ReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.ReportDialog.__init__(self,database,person)
|
||||
|
||||
Report.ReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
|
@ -453,8 +453,11 @@ class IndivComplete(Report.Report):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class IndivCompleteDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
def add_user_options(self):
|
||||
self.use_srcs = gtk.CheckButton(_('Include Source Information'))
|
||||
|
@ -330,8 +330,10 @@ class IndivSummary(Report.Report):
|
||||
#------------------------------------------------------------------------
|
||||
class IndivSummaryDialog(Report.TextReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.TextReportDialog.__init__(self,database,person)
|
||||
Report.TextReportDialog.__init__(self,database,person, self.report_options)
|
||||
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
|
@ -98,8 +98,10 @@ class RelGraphDialog(Report.ReportDialog):
|
||||
TBMargin = 0
|
||||
LRMargin = 0
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.ReportDialog.__init__(self,database,person)
|
||||
Report.ReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
|
@ -388,8 +388,10 @@ def _get_sort_functions():
|
||||
#------------------------------------------------------------------------
|
||||
class TimeLineDialog(Report.DrawReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.DrawReportDialog.__init__(self,database,person)
|
||||
Report.DrawReportDialog.__init__(self,database,person,self.report_options)
|
||||
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
|
@ -889,8 +889,11 @@ class WebReport(Report.Report):
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class WebReportDialog(Report.ReportDialog):
|
||||
|
||||
report_options = {}
|
||||
|
||||
def __init__(self,database,person):
|
||||
Report.ReportDialog.__init__(self,database,person)
|
||||
Report.ReportDialog.__init__(self,database,person, self.report_options)
|
||||
|
||||
def add_user_options(self):
|
||||
lnk_msg = _("Include a link to the index page")
|
||||
|
Loading…
Reference in New Issue
Block a user