From c326597f6116724b6373e45dde17be918c59c3a7 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 17 Mar 2003 05:21:40 +0000 Subject: [PATCH] HIG changes svn: r1355 --- src/gramps_main.py | 1 + src/plugins/ChangeTypes.py | 16 +- src/plugins/ReadGedcom.py | 4 + src/plugins/WriteGedcom.py | 8 + src/plugins/changetype.glade | 475 ++++++++++------- src/plugins/gedcomexport.glade | 670 ++++++++++++------------ src/plugins/gedcomimport.glade | 922 +++++++++++++++++---------------- src/plugins/patchnames.glade | 1 + src/plugins/readgedcom.glade | 85 --- src/plugins/soundex.glade | 460 ++++++++-------- src/plugins/soundgen.py | 9 +- 11 files changed, 1356 insertions(+), 1295 deletions(-) delete mode 100644 src/plugins/readgedcom.glade diff --git a/src/gramps_main.py b/src/gramps_main.py index 37a2636e0..8b7e148e6 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -1349,6 +1349,7 @@ class Gramps: def complete_rebuild(self): self.id2col = {} self.model_used = {} + self.alpha_page = {} self.apply_filter() self.goto_active_person() self.modify_statusbar() diff --git a/src/plugins/ChangeTypes.py b/src/plugins/ChangeTypes.py index eaa0ca149..894f9bc58 100644 --- a/src/plugins/ChangeTypes.py +++ b/src/plugins/ChangeTypes.py @@ -29,6 +29,7 @@ import const import Utils from intl import gettext as _ from QuestionDialog import OkDialog +import AutoComp #------------------------------------------------------------------------- # @@ -42,6 +43,11 @@ def runTool(database,person,callback): import DisplayTrace DisplayTrace.DisplayTrace() +#------------------------------------------------------------------------- +# +# +# +#------------------------------------------------------------------------- class ChangeTypes: def __init__(self,db,person): self.person = person @@ -51,8 +57,14 @@ class ChangeTypes: glade_file = "%s/%s" % (base,"changetype.glade") self.glade = gtk.glade.XML(glade_file,"top") - self.glade.get_widget("original").set_popdown_strings(const.personalEvents) - self.glade.get_widget("new").set_popdown_strings(const.personalEvents) + self.auto1 = AutoComp.AutoCombo(self.glade.get_widget("original"), + const.personalEvents) + self.auto2 = AutoComp.AutoCombo(self.glade.get_widget("new"), + const.personalEvents) + + Utils.set_titles(self.glade.get_widget('top'), + self.glade.get_widget('title'), + _('Change event types')) self.glade.signal_autoconnect({ "on_close_clicked" : Utils.destroy_passed_object, diff --git a/src/plugins/ReadGedcom.py b/src/plugins/ReadGedcom.py index fd8327c44..8e29755b5 100644 --- a/src/plugins/ReadGedcom.py +++ b/src/plugins/ReadGedcom.py @@ -120,6 +120,10 @@ def importData(database, filename, cb=None): statusTop = gtk.glade.XML(glade_file,"status") statusWindow = statusTop.get_widget("status") + + Utils.set_titles(statusWindow,statusTop.get_widget('title'), + _('GEDCOM import status')) + statusTop.get_widget("close").set_sensitive(0) statusTop.signal_autoconnect({ "destroy_passed_object" : Utils.destroy_passed_object diff --git a/src/plugins/WriteGedcom.py b/src/plugins/WriteGedcom.py index 8306cdc6a..493dd82bf 100644 --- a/src/plugins/WriteGedcom.py +++ b/src/plugins/WriteGedcom.py @@ -361,6 +361,10 @@ class GedcomWriter: "no_copyright" : self.no_copyright, "on_ok_clicked" : self.on_ok_clicked }) + + Utils.set_titles(self.topDialog.get_widget('gedcomExport'), + self.topDialog.get_widget('title'), + _('GEDCOM export')) filter_obj = self.topDialog.get_widget("filter") self.copy = 0 @@ -467,6 +471,10 @@ class GedcomWriter: "on_close_clicked" : Utils.destroy_passed_object }) + Utils.set_titles(self.topDialog.get_widget('exportprogress'), + self.topDialog.get_widget('title'), + _('GEDCOM export')) + self.fbar = self.exprogress.get_widget("fbar") self.pbar = self.exprogress.get_widget("pbar") self.sbar = self.exprogress.get_widget("sbar") diff --git a/src/plugins/changetype.glade b/src/plugins/changetype.glade index 603c12bb1..11d4ce7e5 100644 --- a/src/plugins/changetype.glade +++ b/src/plugins/changetype.glade @@ -1,216 +1,309 @@ - + - - Change Event Types - GRAMPS - GTK_WINDOW_TOPLEVEL - no - no - yes - yes - GTK_WIN_POS_NONE - - - no - 8 - yes + + True + + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + False - - - GTK_BUTTONBOX_END - 8 - yes + + + True + False + 8 - - - yes - yes - yes - gtk-ok - yes - yes + + + True + GTK_BUTTONBOX_END - - - + + + True + True + True + gtk-ok + True + GTK_RELIEF_NORMAL + 0 + + + - - - yes - yes - yes - gtk-cancel - yes - yes + + + True + True + True + gtk-cancel + True + GTK_RELIEF_NORMAL + 0 + + + + + + 0 + False + True + GTK_PACK_END + + - - - - - - 0 - no - yes - GTK_PACK_END - - + + + 10 + True + False + 0 - - - 10 - no - 0 - yes + + + True + + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 10 + + + 0 + False + False + + - - - Change Event Type of - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 10 - yes - - - 0 - no - no - - + + + True + This tool will rename all events of one type to a different type. Once completed, this cannot be undone without abandoning all changes since the last database save. + False + False + GTK_JUSTIFY_LEFT + True + False + 0.5 + 0.5 + 12 + 12 + + + 0 + False + False + + - - - yes - yes - 250 - yes - no - yes - yes + + + 12 + True + 2 + 2 + False + 6 + 12 - - - yes - yes - - 0 - yes - yes + + + True + True + True + True + True + False - - - + + + True + True + True + True + 0 + + True + * + False + + - - - yes + + + True + GTK_SELECTION_BROWSE - - - yes + + + True - - - - 0.0 - yes - - - - - - - - - 0 - no - no - - + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + + + + + + + 1 + 2 + 0 + 1 + + + - - - to - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 10 - yes - - - 0 - no - no - - + + + True + False + True + True + True + False - - - no - yes - yes - no - yes - yes + + + True + True + True + True + 0 + + True + * + False + + - - - yes - yes - - 0 - yes - yes + + + True + GTK_SELECTION_BROWSE - - - + + + True - - - yes + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + + + + + + + 1 + 2 + 1 + 2 + + + - - - yes + + + True + _Original event type: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + original_text + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + _New event type: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + new_text + + + 0 + 1 + 1 + 2 + fill + + + + + + 0 + True + True + + + + + 0 + True + True + + + + + - - - - 0.0 - yes - - - - - - - - - 0 - no - no - - - - - 0 - yes - yes - - - - - 4 - yes - yes - - - diff --git a/src/plugins/gedcomexport.glade b/src/plugins/gedcomexport.glade index 27bc95ec2..71e530c05 100644 --- a/src/plugins/gedcomexport.glade +++ b/src/plugins/gedcomexport.glade @@ -6,14 +6,14 @@ True - Export GEDCOM file + GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE True 400 True False - True + False @@ -67,9 +67,9 @@ 0 - + True - GEDCOM Export + False False GTK_JUSTIFY_CENTER @@ -78,7 +78,7 @@ 0.5 0.5 0 - 0 + 6 0 @@ -88,57 +88,49 @@ - + + 12 True - - - 10 - True - True - - + 11 + 3 + False + 6 + 12 - - - True - gedcomExport - 10 - Export GEDCOM - False - True - - - + + True - True - True - True - 0 - - True - * - False - - - - - 5 - False - False - - + gedcomExport + 10 + Export GEDCOM + False + True - - - 5 - True - 0 - 0.5 - GTK_SHADOW_ETCHED_IN + + + True + True + True + True + 0 + + True + * + False + + + + + 1 + 3 + 1 + 2 + + + - 5 True True -1 @@ -149,334 +141,336 @@ + + 2 + 3 + 6 + 7 + fill + + True - Filter - False + _Filter: + True False GTK_JUSTIFY_LEFT False False - 0.5 + 0 0.5 0 0 + filter + + + - label_item + 1 + 2 + 6 + 7 + fill + - - - 0 - True - True - - - - - - 5 - True - 0 - 0.5 - GTK_SHADOW_ETCHED_IN - + True - False - 0 - - - - 2 - True - True - ANSEL - True - GTK_RELIEF_NORMAL - False - False - True - - - 0 - False - False - - - - - - 2 - True - True - UNICODE - True - GTK_RELIEF_NORMAL - True - False - True - ansel - - - 0 - False - False - - - - - - - - True - Encoding - False + _Target: + True False - GTK_JUSTIFY_LEFT + GTK_JUSTIFY_CENTER False False - 0.5 + 0 0.5 0 0 + target + + + - label_item + 1 + 2 + 7 + 8 + fill + - - - 0 - True - True - - - - - - 5 - True - 0 - 0.5 - GTK_SHADOW_ETCHED_IN - + True - False - 0 + True + 0 - - + + True - 2 - 2 - False - 0 - 0 - + True - Copyright - False - False - GTK_JUSTIFY_LEFT - False - False - 0.001 - 0.5 - 0 - 0 + Standard GEDCOM 5.5 + True - - 0 - 1 - 1 - 2 - 3 - 3 - fill - - - - - - - True - Target - False - False - GTK_JUSTIFY_CENTER - False - False - 1 - 0.5 - 5 - 0 - - - 0 - 1 - 0 - 1 - 3 - 3 - fill - - - - - - - True - True - 0 - - - - True - - - - True - Standard GEDCOM 5.5 - True - - - - - - - 1 - 2 - 0 - 1 - 3 - 3 - - - - - - - True - True - 0 - - - - - - - True - Standard Copyright - True - - - - - - - True - GNU Free Documentation License - True - - - - - - - True - No Copyright - True - - - - - - - - 1 - 2 - 1 - 2 - 3 - 3 - fill - - - - 0 - True - True - - - - - - 3 - True - True - Do not include records marked private - True - GTK_RELIEF_NORMAL - True - False - True - - - 0 - False - False - - - - - - 3 - True - True - Restrict data on living people - True - GTK_RELIEF_NORMAL - True - False - True - - - 0 - False - False - + + 2 + 3 + 7 + 8 + fill + + - + True - Options - False + _Copyright: + True False GTK_JUSTIFY_LEFT False False - 0.5 + 0.001 + 0.5 + 0 + 0 + copyright + + + + + + 1 + 2 + 8 + 9 + fill + + + + + + + True + True + 0 + + + + + + + True + Standard Copyright + True + + + + + + + True + GNU Free Documentation License + True + + + + + + + True + No Copyright + True + + + + + + + + 2 + 3 + 8 + 9 + fill + + + + + + + True + <b>Filename</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 0.5 0 0 - label_item + 0 + 3 + 0 + 1 + fill + + + + + + + True + <b>Encoding</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 3 + 2 + 3 + fill + + + + + + + True + <b>Options</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 3 + 5 + 6 + fill + + + + + + + 3 + True + True + _Do not include records marked private + True + GTK_RELIEF_NORMAL + True + False + True + + + 1 + 3 + 9 + 10 + fill + + + + + + + 3 + True + True + _Restrict data on living people + True + GTK_RELIEF_NORMAL + True + False + True + + + 1 + 3 + 10 + 11 + fill + + + + + + + 2 + True + True + _ANSEL + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 3 + 3 + 4 + fill + + + + + + + 2 + True + True + _UNICODE + True + GTK_RELIEF_NORMAL + True + False + True + ansel + + + 1 + 3 + 4 + 5 + fill + @@ -499,13 +493,13 @@ True - Export GEDCOM file + GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False - True + False @@ -546,9 +540,9 @@ 0 - + True - GEDCOM Export + False False GTK_JUSTIFY_CENTER @@ -557,7 +551,7 @@ 0.5 0.5 0 - 0 + 6 0 @@ -566,30 +560,20 @@ - - - True - - - 5 - False - True - - - + 12 True 3 2 False - 0 - 0 + 6 + 12 True - Sources + Sources: False False GTK_JUSTIFY_CENTER @@ -615,7 +599,7 @@ True - Families + Families: False False GTK_JUSTIFY_CENTER @@ -641,7 +625,7 @@ True - People + People: False False GTK_JUSTIFY_CENTER diff --git a/src/plugins/gedcomimport.glade b/src/plugins/gedcomimport.glade index cea8c1514..a61575b40 100644 --- a/src/plugins/gedcomimport.glade +++ b/src/plugins/gedcomimport.glade @@ -1,473 +1,509 @@ - + - - GEDCOM Import Status - GTK_WINDOW_TOPLEVEL - yes - no - yes - GTK_WIN_POS_CENTER - yes - - - no - 0 - yes + + True + + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + True + 500 + 450 + True + False - - - GEDCOM Import - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - 500 - yes - - - 5 - no - no - - + + + True + False + 0 - - - yes - - - 2 - no - yes - - + + + True + + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 6 + + + 5 + False + False + + - - - no - 0 - 0 - 8 - 2 - yes + + + 12 + True + 11 + 3 + False + 6 + 12 - - - File - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 0 - 1 - 0 - 0 - fill - - - + + + True + File: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 1 + 2 + fill + + + - - - Created by - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 1 - 2 - 0 - 0 - fill - - - + + + True + Created by: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 2 + 3 + fill + + + - - - Version - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 2 - 3 - 0 - 0 - fill - - - + + + True + Version: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 3 + 4 + fill + + + - - - Number of Families - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 4 - 5 - 0 - 0 - fill - - - + + + True + Families: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 5 + 6 + fill + + + - - - Number of People - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 5 - 6 - 0 - 0 - fill - - - + + + True + People: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 6 + 7 + fill + + + - - - Number of Errors - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 6 - 7 - 0 - 0 - fill - - - + + + True + Errors: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 7 + 8 + fill + + + - - - Encoding - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 5 - yes - - - 0 - 1 - 3 - 4 - 0 - 0 - fill - - - + + + True + Encoding: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 4 + 5 + fill + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 0 - 1 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 1 + 2 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 1 - 2 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 2 + 3 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 2 - 3 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 3 + 4 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 3 - 4 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 4 + 5 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 4 - 5 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 5 + 6 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 5 - 6 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 6 + 7 + + + - - - yes - no - - 0 - yes - yes - - - 1 - 2 - 6 - 7 - 5 - 2 - expand|fill - - - + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 7 + 8 + + + - - - yes - Close window when complete - no - yes - yes - - - 1 - 2 - 7 - 8 - 5 - 2 - fill - - - - - - 0 - yes - yes - - + + + True + True + _Close window when complete + True + GTK_RELIEF_NORMAL + False + False + True + + + 2 + 3 + 8 + 9 + fill + + + - - - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - yes + + + True + <b>Status</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 3 + 0 + 1 + fill + + + - - - yes - no - - GTK_WRAP_WORD - 146 - yes - - + + + True + <b>Messages</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 3 + 9 + 10 + fill + + + - - - GTK_UPDATE_CONTINUOUS - yes - - + + + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT - - - GTK_UPDATE_CONTINUOUS - yes - - - - - 0 - yes - yes - - + + + True + True + False + GTK_JUSTIFY_LEFT + GTK_WRAP_WORD + True + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + 1 + 3 + 10 + 11 + fill + + + + + 0 + True + True + + - - - yes - - - 0 - yes - yes - - + + + 12 + True + GTK_BUTTONBOX_END + 30 - - - GTK_BUTTONBOX_END - 30 - yes + + + True + True + True + gtk-close + True + GTK_RELIEF_NORMAL + + + + + + 0 + True + True + + + + + - - - yes - yes - GTK_RELIEF_NORMAL - yes - gtk-close - yes - yes - - - - - - - 0 - yes - yes - - - - - diff --git a/src/plugins/patchnames.glade b/src/plugins/patchnames.glade index 5d204f253..d15cef659 100644 --- a/src/plugins/patchnames.glade +++ b/src/plugins/patchnames.glade @@ -68,6 +68,7 @@ + 6 True False 0 diff --git a/src/plugins/readgedcom.glade b/src/plugins/readgedcom.glade deleted file mode 100644 index 292024ad0..000000000 --- a/src/plugins/readgedcom.glade +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - GEDCOM Read Progress - GTK_WINDOW_TOPLEVEL - yes - no - yes - GTK_WIN_POS_CENTER - yes - - - - yes - 20 - yes - - - - GEDCOM Import Progress - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 20 - no - no - - - - - - no - 0 - yes - - - - - - - - GTK_PROGRESS_CONTINUOUS - GTK_PROGRESS_LEFT_TO_RIGHT - no - yes - %P %% - 0.5 - 0.5 - 250 - yes - 0 0 100 1 10 10 - - - 20 - yes - no - - - - - - - - - 0 - no - no - - - - - - - - - - diff --git a/src/plugins/soundex.glade b/src/plugins/soundex.glade index a508683ae..cdf0982d1 100644 --- a/src/plugins/soundex.glade +++ b/src/plugins/soundex.glade @@ -1,251 +1,251 @@ - + - - SoundEx Code Generator - GRAMPS - GTK_WINDOW_TOPLEVEL - no - no - no - yes - GTK_WIN_POS_NONE - - - no - 8 - yes + + True + + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + False - - - GTK_BUTTONBOX_END - 8 - yes + + + True + False + 8 - - - Calculate SoundEx code for the name - yes - yes - yes - gtk-apply - yes - yes + + + True + GTK_BUTTONBOX_END - - - + + + True + Calculate SoundEx code for the name + True + True + gtk-apply + True + GTK_RELIEF_NORMAL + 0 + + + - - - Close Window - yes - yes - yes - gtk-close - yes - yes + + + True + Close Window + True + True + gtk-close + True + GTK_RELIEF_NORMAL + 0 + + + + + + 0 + False + True + GTK_PACK_END + + - - - - - - 0 - no - yes - GTK_PACK_END - - + + + True + False + 0 - - - no - 0 - yes + + + True + + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 6 + + + 0 + False + False + + - - - SoundEx Code Generator - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - + + + 12 + True + 2 + 2 + False + 6 + 12 - - - yes - - - 5 - yes - yes - - + + + True + Name: + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 1 + 0 + 1 + fill + + + - - - no - 0 - 0 - 2 - 2 - yes + + + True + SoundEx code: + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 0 + 0 + + + 0 + 1 + 1 + 2 + fill + + + - - - Name - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 0 - yes - - - 0 - 1 - 0 - 1 - 0 - 0 - fill - - - + + + True + False + True + False + True + False - - - SoundEx Code - GTK_JUSTIFY_CENTER - no - 1 - 0.5 - 5 - 0 - yes - - - 0 - 1 - 1 - 2 - 0 - 0 - fill - - - + + + True + Name used to generate SoundEx code + True + True + True + 0 + + True + * + False + + - - - - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 5 - 5 - yes - - - 1 - 2 - 1 - 2 - 5 - 5 - fill - - - + + + True + GTK_SELECTION_BROWSE - - - no - no - yes - no - yes - yes + + + True - - - Name used to generate SoundEx code - yes - yes - - 0 - yes - yes + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + + + + + + + 1 + 2 + 0 + 1 + + + - - - + + + True + + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 1 + 2 + 1 + 2 + fill + + + + + + 0 + True + True + + + + + 0 + True + True + + + + + - - - yes - - - - yes - - - - - 0.0 - yes - - - - - - - - - 1 - 2 - 0 - 1 - 5 - 5 - expand|fill - - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - 4 - yes - yes - - - diff --git a/src/plugins/soundgen.py b/src/plugins/soundgen.py index d0f84746a..de8163291 100644 --- a/src/plugins/soundgen.py +++ b/src/plugins/soundgen.py @@ -27,6 +27,8 @@ import gtk.glade import soundex import Utils +import AutoComp + from intl import gettext as _ #------------------------------------------------------------------------- @@ -50,6 +52,10 @@ class SoundGen: "on_apply_clicked" : self.on_apply_clicked, }) + Utils.set_titles(self.glade.get_widget('soundEx'), + self.glade.get_widget('title'), + _('SoundEx code generator')) + self.value = self.glade.get_widget("value") self.name = self.glade.get_widget("name") names = [] @@ -59,7 +65,8 @@ class SoundGen: names.append(lastname) names.sort() - self.glade.get_widget("nameList").set_popdown_strings(names) + self.autocomp = AutoComp.AutoCombo(self.glade.get_widget("nameList"), + names) if active_person: n = active_person.getPrimaryName().getSurname()