* src/GenericFilter.py (HasTextMatchingSubstringOf):

Rename FullTextSearch as well as its descriptions.
* src/gramps_main.py: Change string for filter menu.
* src/plugins/FilterEditor.py (EditRule.__init__): Hide window while
drawing.
* src/DateEdit.py (DateEditorDialog.__init__): Hide window while
drawing.


svn: r4186
This commit is contained in:
Alex Roitman 2005-03-15 16:26:30 +00:00
parent c492d5a5ad
commit 0b892faff2
5 changed files with 18 additions and 10 deletions

View File

@ -3,6 +3,14 @@
Family.get_text_data_child_list): Add missing lists. Family.get_text_data_child_list): Add missing lists.
* src/GenericFilter.py (FullTextSearch): Correct description. * src/GenericFilter.py (FullTextSearch): Correct description.
* src/GenericFilter.py (HasTextMatchingSubstringOf):
Rename FullTextSearch as well as its descriptions.
* src/gramps_main.py: Change string for filter menu.
* src/plugins/FilterEditor.py (EditRule.__init__): Hide window while
drawing.
* src/DateEdit.py (DateEditorDialog.__init__): Hide window while
drawing.
2005-03-15 Richard Taylor <rjt-gramps@thegrindstone.me.uk> 2005-03-15 Richard Taylor <rjt-gramps@thegrindstone.me.uk>
* src/Makefile.am : Added TreeTip.py to list of installed modules. * src/Makefile.am : Added TreeTip.py to list of installed modules.
* src/TreeTip.py: New module that implements tooltips on TreeView rows. * src/TreeTip.py: New module that implements tooltips on TreeView rows.

View File

@ -188,6 +188,7 @@ class DateEditorDialog:
self.top = gtk.glade.XML(const.dialogFile, "date_edit","gramps" ) self.top = gtk.glade.XML(const.dialogFile, "date_edit","gramps" )
self.top_window = self.top.get_widget('date_edit') self.top_window = self.top.get_widget('date_edit')
self.top_window.hide()
title = self.top.get_widget('title') title = self.top.get_widget('title')
Utils.set_titles(self.top_window,title,_('Date selection')) Utils.set_titles(self.top_window,title,_('Date selection'))

View File

@ -57,9 +57,7 @@ import Date
import DateHandler import DateHandler
import NameDisplay import NameDisplay
from TransTable import TransTable from TransTable import TransTable
from Utils import for_each_ancestor from Utils import for_each_ancestor,probably_alive,get_source_referents
from Utils import probably_alive
from Utils import get_source_referents
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -1828,12 +1826,12 @@ class IsWitness(Rule):
self.map.append(w.get_value()) self.map.append(w.get_value())
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# "FullTextSearch" # "HasTextMatchingSubstringOf"
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
class FullTextSearch(Rule): class HasTextMatchingSubstringOf(Rule):
"""Full-text serach for ...""" """Rule that checks for string matches in any textual information"""
labels = [_('Substring:')] labels = [_('Substring:')]
@ -1850,7 +1848,7 @@ class FullTextSearch(Rule):
self.family_map = {} self.family_map = {}
def name(self): def name(self):
return 'Full-text serach for ...' return 'Has text matching substring of'
def description(self): def description(self):
return _("Matches persons whose records contain text matching a substring") return _("Matches persons whose records contain text matching a substring")
@ -2119,7 +2117,7 @@ tasks = {
unicode(_("People marked private")) : PeoplePrivate, unicode(_("People marked private")) : PeoplePrivate,
unicode(_("Witnesses")) : IsWitness, unicode(_("Witnesses")) : IsWitness,
unicode(_("Full-text search ...")) : FullTextSearch, unicode(_("Has text matching substring")) : HasTextMatchingSubstringOf,
} }
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -948,8 +948,8 @@ class Gramps:
filter_list.append(all) filter_list.append(all)
all = GenericFilter.ParamFilter() all = GenericFilter.ParamFilter()
all.set_name(_("Full-text search ...")) all.set_name(_("Any textual record contains..."))
all.add_rule(GenericFilter.FullTextSearch([])) all.add_rule(GenericFilter.HasTextMatchingSubstringOf([]))
filter_list.append(all) filter_list.append(all)
self.filter_model = GenericFilter.FilterStore(filter_list) self.filter_model = GenericFilter.FilterStore(filter_list)

View File

@ -573,6 +573,7 @@ class EditRule:
self.active_rule = val self.active_rule = val
self.rule = gtk.glade.XML(const.filterFile,'rule_editor',"gramps") self.rule = gtk.glade.XML(const.filterFile,'rule_editor',"gramps")
self.window = self.rule.get_widget('rule_editor') self.window = self.rule.get_widget('rule_editor')
self.window.hide()
self.valuebox = self.rule.get_widget('valuebox') self.valuebox = self.rule.get_widget('valuebox')
self.rname = self.rule.get_widget('ruletree') self.rname = self.rule.get_widget('ruletree')
self.rule_name = self.rule.get_widget('rulename') self.rule_name = self.rule.get_widget('rulename')