From d0905989e893c433cb47b39d5e0d71146f2932cf Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 12 Jan 2006 00:06:33 +0000 Subject: [PATCH] * src/EditPerson.py: removed unused variable * src/EditFamily.py: start of the family editor * src/FamilyView.py: call family editor * src/gramps.glade: family editor changes svn: r5718 --- gramps2/ChangeLog | 6 + gramps2/src/EditPerson.py | 1 - gramps2/src/FamilyView.py | 7 +- gramps2/src/gramps.glade | 225 ++++++++++---------------------------- 4 files changed, 68 insertions(+), 171 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3560b2494..676726af4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,9 @@ +2006-01-11 Don Allingham + * src/EditPerson.py: removed unused variable + * src/EditFamily.py: start of the family editor + * src/FamilyView.py: call family editor + * src/gramps.glade: family editor changes + 2006-01-11 Martin Hawlisch * src/PedView.py: Now using cairo :-) Changed menu handling diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index b3da4e9b0..e68ba2404 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -125,7 +125,6 @@ class EditPerson(DisplayState.ManagedWindow): self.orig_surname = self.person.get_primary_name().get_group_name() self.db = self.state.db self.callback = callback - self.child_windows = {} self.path = self.db.get_save_path() self.not_loaded = True self.lds_not_loaded = True diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index 832781a57..8bc92c803 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -632,11 +632,14 @@ class FamilyView(PageView.PersonNavView): def edit_family(self,obj,event,handle): if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: - print "Edit Family",handle + import EditFamily + family = self.dbstate.db.get_family_from_handle(handle) + EditFamily.EditFamily(self.dbstate,self.uistate,[],family) def add_family(self,obj,event,handle): if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: - print "Add Family",handle + import EditFamily + EditFamily.EditFamily(self.dbstate,self.uistate,[],None) def delete_family(self,obj,event,handle): if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: diff --git a/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index 1548845c9..b44e88666 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -241,7 +241,7 @@ True - _Relationship type: + Type: True False GTK_JUSTIFY_LEFT @@ -3453,6 +3453,7 @@ GTK_WIN_POS_NONE False 550 + 400 True False gramps.png @@ -3478,7 +3479,7 @@ GTK_BUTTONBOX_END - + True Abandon changes and close window True @@ -3566,7 +3567,7 @@ 6 True - 7 + 6 6 False 6 @@ -3594,8 +3595,8 @@ 1 2 - 6 - 7 + 5 + 6 fill @@ -3629,34 +3630,6 @@ - - - True - ID: - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 1 - 2 - 2 - 3 - fill - - - - True @@ -3678,8 +3651,8 @@ 1 2 - 3 - 4 + 2 + 3 fill @@ -3706,17 +3679,17 @@ 1 2 - 4 - 5 + 3 + 4 fill - + True - label526 + False False GTK_JUSTIFY_LEFT @@ -3734,36 +3707,8 @@ 2 3 - 4 - 5 - fill - - - - - - - True - label526 - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 2 - 3 - 2 - 3 + 3 + 4 fill @@ -3856,7 +3801,7 @@ True - _Relationship type: + Type: True False GTK_JUSTIFY_CENTER @@ -3874,17 +3819,17 @@ 4 5 - 6 - 7 + 5 + 6 fill - + True - label526 + False False GTK_JUSTIFY_LEFT @@ -3902,34 +3847,6 @@ 2 3 - 3 - 4 - fill - - - - - - - True - ID: - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 4 - 5 2 3 fill @@ -3958,8 +3875,8 @@ 4 5 - 3 - 4 + 2 + 3 fill @@ -3986,17 +3903,17 @@ 4 5 - 4 - 5 + 3 + 4 fill - + True - label526 + False False GTK_JUSTIFY_LEFT @@ -4022,9 +3939,9 @@ - + True - label526 + False False GTK_JUSTIFY_LEFT @@ -4049,34 +3966,6 @@ - - - True - label526 - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 5 - 6 - 4 - 5 - fill - - - - True @@ -4098,39 +3987,17 @@ 0 6 - 5 - 6 + 4 + 5 fill - + True - True - False - True - 0 - - True - * - False - - - 2 - 3 - 6 - 7 - - - - - - - - True - label526 + False False GTK_JUSTIFY_LEFT @@ -4155,9 +4022,9 @@ - + True - label526 + False False GTK_JUSTIFY_LEFT @@ -4191,12 +4058,34 @@ 5 6 - 6 - 7 + 5 + 6 fill fill + + + + True + True + False + True + 0 + + True + * + False + + + 2 + 3 + 5 + 6 + fill + + + 0