* src/plugins/EventCmp.py (__init__): Add custom filters.
svn: r7230
This commit is contained in:
parent
b6773c06a7
commit
5974a4864b
@ -1,4 +1,5 @@
|
|||||||
2006-08-21 Alex Roitman <shura@gramps-project.org>
|
2006-08-21 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/plugins/EventCmp.py (__init__): Add custom filters.
|
||||||
* src/plugins/ChangeTypes.py (on_apply_clicked): Remove extra
|
* src/plugins/ChangeTypes.py (on_apply_clicked): Remove extra
|
||||||
unicode conversion.
|
unicode conversion.
|
||||||
* src/plugins/Checkpoint.py (__init__): Assign dbstate.
|
* src/plugins/Checkpoint.py (__init__): Assign dbstate.
|
||||||
|
@ -43,7 +43,7 @@ import gtk.glade
|
|||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
from Filters import GenericFilter, build_filter_menu, Rules
|
from Filters import GenericFilter, build_filter_menu, Rules, CustomFilters
|
||||||
import ListModel
|
import ListModel
|
||||||
import Sort
|
import Sort
|
||||||
import Utils
|
import Utils
|
||||||
@ -157,11 +157,14 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow):
|
|||||||
self.set_window(window,self.filterDialog.get_widget('title'),
|
self.set_window(window,self.filterDialog.get_widget('title'),
|
||||||
self.label)
|
self.label)
|
||||||
|
|
||||||
self.all = GenericFilter()
|
all = GenericFilter()
|
||||||
self.all.set_name(_("Entire Database"))
|
all.set_name(_("Entire Database"))
|
||||||
self.all.add_rule(Rules.Person.Everyone([]))
|
all.add_rule(Rules.Person.Everyone([]))
|
||||||
|
|
||||||
self.filter_menu = build_filter_menu([self.all])
|
the_filters = [all]
|
||||||
|
the_filters.extend(CustomFilters.get_filters('Person'))
|
||||||
|
|
||||||
|
self.filter_menu = build_filter_menu(the_filters)
|
||||||
filter_num = self.options.handler.get_filter_number()
|
filter_num = self.options.handler.get_filter_number()
|
||||||
self.filter_menu.set_active(filter_num)
|
self.filter_menu.set_active(filter_num)
|
||||||
self.filter_menu.show()
|
self.filter_menu.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user