* src/plugins/AncestorChart2.py: fix comment
* src/plugins/DecendChart.py: fix comment * src/plugins/TimeLine.py: Remove Title option svn: r6963
This commit is contained in:
parent
27541aa86b
commit
ae8a270c53
@ -1,3 +1,8 @@
|
||||
2006-06-25 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/AncestorChart2.py: fix comment
|
||||
* src/plugins/DecendChart.py: fix comment
|
||||
* src/plugins/TimeLine.py: Remove Title option
|
||||
|
||||
2006-06-24 Alex Roitman <shura@gramps-project.org>
|
||||
* debian/control (Build-Depends-Indep): Add xsltproc
|
||||
|
||||
|
@ -184,7 +184,6 @@ class AncestorChart(Report):
|
||||
dispf - Display format for the output box.
|
||||
singlep - Whether to scale to fit on a single page.
|
||||
compress - Whether to compress chart.
|
||||
title - Title of the report displayed on top.
|
||||
"""
|
||||
Report.__init__(self,database,person,options_class)
|
||||
|
||||
|
@ -122,7 +122,6 @@ class DescendChart(Report):
|
||||
|
||||
dispf - Display format for the output box.
|
||||
singlep - Whether to scale to fit on a single page.
|
||||
title - Title of the report displayed on top.
|
||||
maxgen - Maximum number of generations to include.
|
||||
"""
|
||||
Report.__init__(self,database,person,options_class)
|
||||
|
@ -51,6 +51,7 @@ import BaseDoc
|
||||
from Filters import GenericFilter, Rules, CustomFilters
|
||||
import Sort
|
||||
from QuestionDialog import ErrorDialog
|
||||
import NameDisplay
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@ -75,7 +76,6 @@ class TimeLine(Report):
|
||||
filter - Filter to be applied to the people of the database.
|
||||
The option class carries its number, and the function
|
||||
returning the list of filters.
|
||||
title - Title of the report displayed on top
|
||||
sort_func - function used to sort entries, that returns -1/0/1
|
||||
when given two personal handles (like cmp).
|
||||
The option class carries its number, and the function
|
||||
@ -89,7 +89,8 @@ class TimeLine(Report):
|
||||
filters.extend(CustomFilters.get_filters())
|
||||
self.filter = filters[filter_num]
|
||||
|
||||
self.title = options_class.handler.options_dict['title']
|
||||
name = NameDisplay.displayer.display_formal(person)
|
||||
self.title = _("Timeline Graph for %s") % name
|
||||
|
||||
sort_func_num = options_class.handler.options_dict['sortby']
|
||||
sort_functions = options_class.get_sort_functions(Sort.Sort(database))
|
||||
@ -362,15 +363,12 @@ class TimeLineOptions(ReportOptions):
|
||||
# Options specific for this report
|
||||
self.options_dict = {
|
||||
'sortby' : 0,
|
||||
'title' : '',
|
||||
}
|
||||
self.options_help = {
|
||||
'sortby' : ("=num","Number of a sorting function",
|
||||
[item[0] for item in
|
||||
self.get_sort_functions(Sort.Sort(None))],
|
||||
True),
|
||||
'title' : ("=str","Title string for the report",
|
||||
"Whatever String You Wish"),
|
||||
}
|
||||
|
||||
def enable_options(self):
|
||||
@ -456,19 +454,10 @@ class TimeLineOptions(ReportOptions):
|
||||
|
||||
dialog.add_option(_('Sort by'),self.sort_menu)
|
||||
|
||||
self.title_box = gtk.Entry()
|
||||
if self.options_dict['title']:
|
||||
self.title_box.set_text(self.options_dict['title'])
|
||||
else:
|
||||
self.title_box.set_text(dialog.get_header(dialog.person.get_primary_name().get_name()))
|
||||
self.title_box.show()
|
||||
dialog.add_option(_('report|Title'),self.title_box)
|
||||
|
||||
def parse_user_options(self,dialog):
|
||||
"""
|
||||
Parses the custom options that we have added.
|
||||
"""
|
||||
self.options_dict['title'] = unicode(self.title_box.get_text())
|
||||
self.options_dict['sortby'] = self.sort_menu.get_active()
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user