* src/gramps.glade: Add date LED buttons for LDS dates.

* src/EditPerson.py (draw_lds): Add date LED buttons for LDS dates;
(lds_field): Always set date text for LDS dates.
* src/Marriage.py (__init__): Add date LED button for LDS date.


svn: r4212
This commit is contained in:
Alex Roitman 2005-03-19 18:21:57 +00:00
parent 0d5ba25da1
commit 31ce5db97d
4 changed files with 272 additions and 2399 deletions

View File

@ -1,3 +1,9 @@
2005-03-19 Alex Roitman <shura@gramps-project.org>
* src/gramps.glade: Add date LED buttons for LDS dates.
* src/EditPerson.py (draw_lds): Add date LED buttons for LDS dates;
(lds_field): Always set date text for LDS dates.
* src/Marriage.py (__init__): Add date LED button for LDS date.
2005-03-18 Alex Roitman <shura@gramps-project.org>
* doc/gramps-manual/C/figures/export-druid.png: Update.
* doc/gramps-manual/C/gramps-manual.xml: Update.

View File

@ -645,9 +645,9 @@ class EditPerson:
combo.set_active(index)
if not lds_ord.is_empty():
stat = lds_ord.get_status()
date.set_text(lds_ord.get_date())
else:
stat = 0
date.set_text(lds_ord.get_date())
build_dropdown(place,self.place_list)
if lds_ord and lds_ord.get_place_handle():
@ -666,6 +666,11 @@ class EditPerson:
self.ldsbap_temple.set_sensitive(not self.db.readonly)
self.ldsbapplace = self.get_widget("lds_bap_place")
self.ldsbapplace.set_editable(not self.db.readonly)
self.ldsbap_date_led = self.get_widget("ldsbap_stat")
self.ldsbap_date_led.set_sensitive(not self.db.readonly)
self.ldsbap_date_check = DateEdit.DateEdit(
self.lds_baptism.get_date_object(), self.ldsbap_date,
self.ldsbap_date_led, self.window)
self.ldsend_date = self.get_widget("endowdate")
self.ldsend_date.set_editable(not self.db.readonly)
@ -675,6 +680,11 @@ class EditPerson:
self.ldsendowplace.set_editable(not self.db.readonly)
self.ldsendowstat = self.get_widget("endowstat")
self.ldsendowstat.set_sensitive(not self.db.readonly)
self.ldsend_date_led = self.get_widget("endow_stat")
self.ldsend_date_led.set_sensitive(not self.db.readonly)
self.ldsend_date_check = DateEdit.DateEdit(
self.lds_endowment.get_date_object(), self.ldsend_date,
self.ldsend_date_led, self.window)
self.ldsseal_date = self.get_widget("sealdate")
self.ldsseal_temple = self.get_widget("sealtemple")
@ -682,6 +692,11 @@ class EditPerson:
self.ldsseal_date.set_editable(not self.db.readonly)
self.ldsseal_temple.set_sensitive(not self.db.readonly)
self.ldssealplace.set_editable(not self.db.readonly)
self.ldsseal_date_led = self.get_widget("seal_stat")
self.ldsseal_date_led.set_sensitive(not self.db.readonly)
self.ldsseal_date_check = DateEdit.DateEdit(
self.lds_sealing.get_date_object(), self.ldsseal_date,
self.ldsseal_date_led, self.window)
self.ldsseal_fam = self.get_widget("sealparents")
self.ldsseal_fam.set_sensitive(not self.db.readonly)

View File

@ -54,6 +54,8 @@ import DateHandler
import Sources
import GrampsKeys
import NameDisplay
import Date
import DateEdit
from QuestionDialog import QuestionDialog, WarningDialog, SaveDialog
@ -184,6 +186,8 @@ class Marriage:
self.attr_conf_field = self.get_widget("attr_conf")
self.lds_date = self.get_widget("lds_date")
self.lds_date.set_editable(mode)
self.lds_date_led = self.get_widget("lds_date_stat")
self.lds_date_led.set_sensitive(mode)
self.lds_temple = self.get_widget("lds_temple")
self.lds_temple.set_sensitive(mode)
self.lds_status = self.get_widget("lds_status")
@ -243,9 +247,15 @@ class Marriage:
self.lds_place.child.set_text(lds_ord.get_place_handle().get_title())
self.lds_date.set_text(lds_ord.get_date())
self.seal_stat = lds_ord.get_status()
self.lds_date_object = lds_ord.get_date_object()
else:
self.lds_place.child.set_text("")
self.seal_stat = 0
self.lds_date_object = Date.Date()
self.lds_date_check = DateEdit.DateEdit(
self.lds_date_object, self.lds_date,
self.lds_date_led, self.window)
if self.family.get_complete_flag():
self.complete.set_active(1)

File diff suppressed because it is too large Load Diff