2006-07-02 Don Allingham <don@gramps-project.org>
* src/DataViews/_PedigreeView.py: add filter editor support * src/DataViews/_Relationship.py: add filter editor support * src/DataViews/_PersonView.py: move filter editor support to PageView * src/PageView.py: add filter editor support svn: r6981
This commit is contained in:
parent
6e19f2e13e
commit
33a3a1a755
@ -1,3 +1,9 @@
|
||||
2006-07-02 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews/_PedigreeView.py: add filter editor support
|
||||
* src/DataViews/_Relationship.py: add filter editor support
|
||||
* src/DataViews/_PersonView.py: move filter editor support to PageView
|
||||
* src/PageView.py: add filter editor support
|
||||
|
||||
2006-07-01 Don Allingham <don@gramps-project.org>
|
||||
* src/DisplayState.py: fix spacing
|
||||
* src/DisplayTabs/_SourceEmbedList.py: check for empty reference
|
||||
|
@ -493,6 +493,9 @@ class PedigreeView(PageView.PersonNavView):
|
||||
<separator/>
|
||||
</placeholder>
|
||||
</menu>
|
||||
<menu action="EditMenu">
|
||||
<menuitem action="FilterEdit"/>
|
||||
</menu>
|
||||
<menu action="BookMenu">
|
||||
<placeholder name="AddEditBook">
|
||||
<menuitem action="AddBook"/>
|
||||
|
@ -138,9 +138,6 @@ class PersonView(PageView.PersonNavView):
|
||||
self.add_action('ColumnEdit', gtk.STOCK_PROPERTIES,
|
||||
_('_Column Editor'), callback=self.column_editor,)
|
||||
|
||||
self.add_action('FilterEdit', None,
|
||||
_('Filter Editor'), callback=self.filter_editor,)
|
||||
|
||||
self.add_action('CmpMerge', None, _('_Compare and merge'),
|
||||
callback=self.cmp_merge)
|
||||
self.add_action('FastMerge', None, _('_Fast merge'),
|
||||
@ -202,15 +199,6 @@ class PersonView(PageView.PersonNavView):
|
||||
column_names,
|
||||
self.set_column_order)
|
||||
|
||||
def filter_editor(self,obj):
|
||||
from FilterEditor import FilterEditor
|
||||
|
||||
FilterEditor(
|
||||
'Person',
|
||||
const.custom_filters,
|
||||
self.dbstate,
|
||||
self.uistate)
|
||||
|
||||
def set_column_order(self, column_list):
|
||||
self.dbstate.db.set_person_column_order(column_list)
|
||||
self.build_columns()
|
||||
|
@ -195,6 +195,9 @@ class RelationshipView(PageView.PersonNavView):
|
||||
<separator/>
|
||||
</placeholder>
|
||||
</menu>
|
||||
<menu action="EditMenu">
|
||||
<menuitem action="FilterEdit"/>
|
||||
</menu>
|
||||
<menu action="BookMenu">
|
||||
<placeholder name="AddEditBook">
|
||||
<menuitem action="AddBook"/>
|
||||
|
@ -293,6 +293,8 @@ class PersonNavView(BookMarkView):
|
||||
tip=_("Go to the default person"), callback=self.home)
|
||||
self.add_action('SetActive', gtk.STOCK_HOME, _("Set _Home Person"),
|
||||
callback=self.set_default_person)
|
||||
self.add_action('FilterEdit', None,
|
||||
_('Filter Editor'), callback=self.filter_editor,)
|
||||
|
||||
self.add_action_group(self.back_action)
|
||||
self.add_action_group(self.fwd_action)
|
||||
@ -362,6 +364,15 @@ class PersonNavView(BookMarkView):
|
||||
_("Error: %s is not a valid GRAMPS ID") % gid)
|
||||
dialog.destroy()
|
||||
|
||||
def filter_editor(self,obj):
|
||||
from FilterEditor import FilterEditor
|
||||
|
||||
FilterEditor(
|
||||
'Person',
|
||||
const.custom_filters,
|
||||
self.dbstate,
|
||||
self.uistate)
|
||||
|
||||
def fwd_clicked(self,obj,step=1):
|
||||
hobj = self.uistate.phistory
|
||||
hobj.lock = True
|
||||
|
Loading…
Reference in New Issue
Block a user