widget connections
svn: r6264
This commit is contained in:
parent
c989069c93
commit
fd8ae5b10b
@ -59,6 +59,7 @@ def fill_combo(combo,data_list):
|
|||||||
|
|
||||||
def fill_entry(entry,data_list):
|
def fill_entry(entry,data_list):
|
||||||
store = gtk.ListStore(str)
|
store = gtk.ListStore(str)
|
||||||
|
|
||||||
for data in data_list:
|
for data in data_list:
|
||||||
if data:
|
if data:
|
||||||
store.append(row=[data])
|
store.append(row=[data])
|
||||||
|
@ -109,6 +109,15 @@ class EditLdsOrd(EditSecondary):
|
|||||||
self.dbstate.get_place_completion(),
|
self.dbstate.get_place_completion(),
|
||||||
self.db.readonly)
|
self.db.readonly)
|
||||||
|
|
||||||
|
self.type_menu = MonitoredMenu(
|
||||||
|
self.top.get_widget('type'),
|
||||||
|
self.obj.set_type,
|
||||||
|
self.obj.get_type,
|
||||||
|
[(_('Baptism'),RelLib.LdsOrd.BAPTISM),
|
||||||
|
(_('Endowment'),RelLib.LdsOrd.ENDOWMENT),
|
||||||
|
(_('Sealed to Parents'),RelLib.LdsOrd.SEAL_TO_PARENTS)],
|
||||||
|
self.db.readonly)
|
||||||
|
|
||||||
temple_list = []
|
temple_list = []
|
||||||
for val in lds.temple_codes.keys():
|
for val in lds.temple_codes.keys():
|
||||||
temple_list.append((lds.temple_codes[val],val))
|
temple_list.append((lds.temple_codes[val],val))
|
||||||
|
@ -87,24 +87,28 @@ class EditName(EditSecondary):
|
|||||||
|
|
||||||
def _setup_fields(self):
|
def _setup_fields(self):
|
||||||
self.group_as = MonitoredEntry(
|
self.group_as = MonitoredEntry(
|
||||||
self.top.get_widget("group_as"), self.obj.set_group_as,
|
self.top.get_widget("group_as"),
|
||||||
self.obj.get_group_as, self.db.readonly)
|
self.obj.set_group_as,
|
||||||
|
self.obj.get_group_as,
|
||||||
|
self.db.readonly)
|
||||||
|
|
||||||
if not self.original_group_as:
|
if not self.original_group_as:
|
||||||
self.group_as.force_value(self.obj.get_surname())
|
self.group_as.force_value(self.obj.get_surname())
|
||||||
|
|
||||||
self.sort_as = MonitoredMenu(
|
self.sort_as = MonitoredMenu(
|
||||||
self.top.get_widget('sort_as'),self.obj.set_sort_as,
|
self.top.get_widget('sort_as'),
|
||||||
|
self.obj.set_sort_as,
|
||||||
self.obj.get_sort_as,
|
self.obj.get_sort_as,
|
||||||
[(_('Default (based on locale'),RelLib.Name.DEF),
|
[(_('Default (based on locale)'),RelLib.Name.DEF),
|
||||||
(_('Given name Family name'), RelLib.Name.FNLN),
|
(_('Given name Family name'), RelLib.Name.FNLN),
|
||||||
(_('Family name Given Name'), RelLib.Name.LNFN)],
|
(_('Family name Given Name'), RelLib.Name.LNFN)],
|
||||||
self.db.readonly)
|
self.db.readonly)
|
||||||
|
|
||||||
self.display_as = MonitoredMenu(
|
self.display_as = MonitoredMenu(
|
||||||
self.top.get_widget('display_as'),
|
self.top.get_widget('display_as'),
|
||||||
self.obj.set_display_as, self.obj.get_display_as,
|
self.obj.set_display_as,
|
||||||
[(_('Default (based on locale'),RelLib.Name.DEF),
|
self.obj.get_display_as,
|
||||||
|
[(_('Default (based on locale)'),RelLib.Name.DEF),
|
||||||
(_('Given name Family name'), RelLib.Name.FNLN),
|
(_('Given name Family name'), RelLib.Name.FNLN),
|
||||||
(_('Family name Given Name'), RelLib.Name.LNFN)],
|
(_('Family name Given Name'), RelLib.Name.LNFN)],
|
||||||
self.db.readonly)
|
self.db.readonly)
|
||||||
@ -126,9 +130,11 @@ class EditName(EditSecondary):
|
|||||||
self.obj.get_patronymic, self.db.readonly)
|
self.obj.get_patronymic, self.db.readonly)
|
||||||
|
|
||||||
self.surname_field = MonitoredEntry(
|
self.surname_field = MonitoredEntry(
|
||||||
self.top.get_widget("alt_surname"), self.obj.set_surname,
|
self.top.get_widget("alt_surname"),
|
||||||
self.obj.get_surname, self.db.readonly,
|
self.obj.set_surname,
|
||||||
self.update_group_as)
|
self.obj.get_surname,
|
||||||
|
self.db.readonly,
|
||||||
|
changed=self.update_group_as)
|
||||||
|
|
||||||
self.prefix_field = MonitoredEntry(
|
self.prefix_field = MonitoredEntry(
|
||||||
self.top.get_widget("alt_prefix"), self.obj.set_surname_prefix,
|
self.top.get_widget("alt_prefix"), self.obj.set_surname_prefix,
|
||||||
|
Loading…
Reference in New Issue
Block a user