* src/GenericFilter.py (HasTextMatchingSubstringOf): add checkboxes for case and regexp matching; (HasTextMatchingRegexpOf)

Added wrapper to use regexp matching in HasTextMatchingSubstringOf
* src/gramps_main.py: Add new regular expression filter
* src/plugins/FilterEditor.py (EditRule:__init__): Treat params of new filter as boolean.
* TODO: Add parameter definition of Filter Rules to the filter itself, so it can be removed from the filter editor and used by
PeopleView.


svn: r4193
This commit is contained in:
Martin Hawlisch
2005-03-16 14:13:33 +00:00
parent 78e8029352
commit a30cffdb9d
5 changed files with 72 additions and 7 deletions

View File

@@ -637,6 +637,10 @@ class EditRule:
t = MyListSelect(data)
elif v == _('Inclusive:'):
t = MyBoolean(_('Include original person'))
elif v == _('Case sensitive:'):
t = MyBoolean(_('Use exact case of letters:'))
elif v == _('Regular-Expression matching:'):
t = MyBoolean(_('Use regular expression'))
else:
t = MyEntry()
tlist.append(t)