Update
svn: r6267
This commit is contained in:
parent
ad13eaa168
commit
a031cd0806
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -21,8 +21,8 @@
|
|||||||
# $Id: _EditAttribute.py 6248 2006-03-31 23:46:34Z dallingham $
|
# $Id: _EditAttribute.py 6248 2006-03-31 23:46:34Z dallingham $
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The EditAttribute module provides the AttributeEditor class. This provides a
|
The EditLdsOrd module provides the EditLdsOrd class. This provides a
|
||||||
mechanism for the user to edit attribute information.
|
mechanism for the user to edit personal LDS information.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = "Donald N. Allingham"
|
__author__ = "Donald N. Allingham"
|
||||||
@ -78,9 +78,6 @@ class EditLdsOrd(EditSecondary):
|
|||||||
"""
|
"""
|
||||||
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
||||||
|
|
||||||
def attribute_list(self):
|
|
||||||
return Utils.personal_attributes
|
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
self.top = gtk.glade.XML(const.gladeFile, "lds_person_edit","gramps")
|
self.top = gtk.glade.XML(const.gladeFile, "lds_person_edit","gramps")
|
||||||
self.define_top_level(self.top.get_widget("lds_person_edit"),
|
self.define_top_level(self.top.get_widget("lds_person_edit"),
|
||||||
@ -122,7 +119,7 @@ class EditLdsOrd(EditSecondary):
|
|||||||
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))
|
||||||
|
|
||||||
self.type_menu = MonitoredStrMenu(
|
self.temple_menu = MonitoredStrMenu(
|
||||||
self.top.get_widget('temple'),
|
self.top.get_widget('temple'),
|
||||||
self.obj.set_temple,
|
self.obj.set_temple,
|
||||||
self.obj.get_temple,
|
self.obj.get_temple,
|
||||||
@ -156,4 +153,3 @@ class EditLdsOrd(EditSecondary):
|
|||||||
if self.callback:
|
if self.callback:
|
||||||
self.callback(self.obj)
|
self.callback(self.obj)
|
||||||
self.close_window(obj)
|
self.close_window(obj)
|
||||||
|
|
||||||
|
@ -350,10 +350,6 @@ class MonitoredMenu:
|
|||||||
self.get_val = get_val
|
self.get_val = get_val
|
||||||
|
|
||||||
self.obj = obj
|
self.obj = obj
|
||||||
cell = gtk.CellRendererText()
|
|
||||||
self.obj.pack_start(cell, True)
|
|
||||||
self.obj.add_attribute(cell, 'text', 0)
|
|
||||||
|
|
||||||
self.model = gtk.ListStore(str,int)
|
self.model = gtk.ListStore(str,int)
|
||||||
for t,v in mapping:
|
for t,v in mapping:
|
||||||
self.model.append(row=[t,v])
|
self.model.append(row=[t,v])
|
||||||
@ -366,9 +362,6 @@ class MonitoredMenu:
|
|||||||
self.obj.set_active(value)
|
self.obj.set_active(value)
|
||||||
|
|
||||||
def on_change(self, obj):
|
def on_change(self, obj):
|
||||||
print obj
|
|
||||||
print obj.get_active_iter()
|
|
||||||
print self.model.get_value(obj.get_active_iter(),1)
|
|
||||||
self.set_val(self.model.get_value(obj.get_active_iter(),1))
|
self.set_val(self.model.get_value(obj.get_active_iter(),1))
|
||||||
|
|
||||||
class MonitoredStrMenu:
|
class MonitoredStrMenu:
|
||||||
@ -380,10 +373,6 @@ class MonitoredStrMenu:
|
|||||||
self.obj = obj
|
self.obj = obj
|
||||||
self.model = gtk.ListStore(str)
|
self.model = gtk.ListStore(str)
|
||||||
|
|
||||||
cell = gtk.CellRendererText()
|
|
||||||
self.obj.pack_start(cell, True)
|
|
||||||
self.obj.add_attribute(cell, 'text', 0)
|
|
||||||
|
|
||||||
if len(mapping) > 20:
|
if len(mapping) > 20:
|
||||||
self.obj.set_wrap_width(3)
|
self.obj.set_wrap_width(3)
|
||||||
|
|
||||||
|
@ -15625,6 +15625,8 @@ You should select parents before adding any new information. If you select paren
|
|||||||
<child>
|
<child>
|
||||||
<widget class="GtkComboBox" id="type">
|
<widget class="GtkComboBox" id="type">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="items" translatable="yes">
|
||||||
|
</property>
|
||||||
<property name="add_tearoffs">False</property>
|
<property name="add_tearoffs">False</property>
|
||||||
<property name="focus_on_click">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
@ -15641,6 +15643,8 @@ You should select parents before adding any new information. If you select paren
|
|||||||
<child>
|
<child>
|
||||||
<widget class="GtkComboBox" id="temple">
|
<widget class="GtkComboBox" id="temple">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="items" translatable="yes">
|
||||||
|
</property>
|
||||||
<property name="add_tearoffs">False</property>
|
<property name="add_tearoffs">False</property>
|
||||||
<property name="focus_on_click">True</property>
|
<property name="focus_on_click">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user