* src/gramps.glade (selecty_person): Change positioning; add icon.

* src/edit_person.glade (event_tab): Correct tooltips.
* src/SelectEvent.py: Add to CVS.
* src/Makefile.am: Ship SelectEvent.py file.
* src/SelectChild.py (build_list): Use mapping from Utils.
* src/ReadGrdb.py (importData): Properly copy event table.
* src/ListBox.py: Properly fill in the Combo maps without
collisions; Add Role to the EventListbox; Support selecting an
existing Event object.
* src/GrampsInMemDB.py: Support for event id table.
* src/GrampsDbBase.py: Support for event id table.
* src/GrampsBSDDB.py: Support for event id table; emit
event-delete signal when events are deleted.
* src/EventView.py: Support deleting events.
* src/EventEdit.py: Support deleting events; Proper adding events.


svn: r4801
This commit is contained in:
Alex Roitman
2005-06-08 04:40:33 +00:00
parent f16f41cbda
commit 979474ebb9
13 changed files with 301 additions and 101 deletions

View File

@@ -46,7 +46,6 @@ from QuestionDialog import QuestionDialog, ErrorDialog
#-------------------------------------------------------------------------
from gettext import gettext as _
column_names = [
_('Description'),
_('ID'),
@@ -126,7 +125,6 @@ class EventView:
for pair in self.parent.db.get_event_column_order():
if not pair[0]:
continue
print pair
name = column_names[pair[1]]
column = gtk.TreeViewColumn(name, self.renderer, text=pair[1])
column.connect('clicked',self.column_clicked,index)
@@ -219,10 +217,10 @@ class EventView:
event = self.parent.db.get_event_from_handle(event_handle)
ans = EventEdit.DelReposQuery(event,self.parent.db,
person_list+family_list)
ans = EventEdit.DelEventQuery(event,self.parent.db,
person_list,family_list)
if len(person_list+family_list) > 0:
if len(person_list) + len(family_list) > 0:
msg = _('This event is currently being used. Deleting it '
'will remove it from the database and from all '
'people and families that reference it.')