diff --git a/ChangeLog b/ChangeLog index b4cf2c774..5afb317c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,7 +8,14 @@ * src/DisplayTabs: Add package. 2006-05-04 Don Allingham - * src/DataViews/_PersonView.py: start of filter sidebar + * src/glade/gramps.glade: add call name field, add id fields + * src/glade/edit_person.glade: add call name field + * src/DataViews/_PersonView.py: start of filter sidebar, + use hbox instead of hpaned + * src/Editors/_EditPlace.py: add ID field + * src/Editors/_EditSource.py: add ID field + * src/Editors/_EditEventRef.py: add ID field + * src/Editors/_EditEvent.py: add ID field 2006-05-04 Alex Roitman * src/SelectObject.py: Convert to managed window. diff --git a/src/DataViews/_PersonView.py b/src/DataViews/_PersonView.py index 4c79f0702..226ef6268 100644 --- a/src/DataViews/_PersonView.py +++ b/src/DataViews/_PersonView.py @@ -162,7 +162,7 @@ class PersonView(PageView.PersonNavView): contains the interface. This containter will be inserted into a gtk.Notebook page. """ - hpaned = gtk.HPaned() + hpaned = gtk.HBox() self.vbox = gtk.VBox() self.vbox.set_border_width(4) self.vbox.set_spacing(4) @@ -204,8 +204,8 @@ class PersonView(PageView.PersonNavView): self.filter_pane = self.build_filter_sidebar() - hpaned.pack1(self.vbox,True,False) - hpaned.pack2(self.filter_pane) + hpaned.pack_start(self.vbox, True, True) + hpaned.pack_end(self.filter_pane, False, False) return hpaned @@ -393,29 +393,10 @@ class PersonView(PageView.PersonNavView): Builds the default filters and add them to the filter menu. """ default_filters = [ - [Rules.Person.Everyone, []], - [Rules.Person.IsFemale, []], - [Rules.Person.IsMale, []], - [Rules.Person.HasUnknownGender, []], - [Rules.Person.Disconnected, []], [Rules.Person.SearchName, ['']], - [Rules.Person.HaveAltFamilies, []], - [Rules.Person.HavePhotos, []], - [Rules.Person.IncompleteNames, []], - [Rules.Person.HaveChildren, []], - [Rules.Person.NeverMarried, []], - [Rules.Person.MultipleMarriages, []], - [Rules.Person.NoBirthdate, []], - [Rules.Person.PersonWithIncompleteEvent, []], - [Rules.Person.FamilyWithIncompleteEvent, []], - [Rules.Person.ProbablyAlive, ['']], - [Rules.Person.PeoplePrivate, []], - [Rules.Person.IsWitness, ['','']], [Rules.Person.HasTextMatchingSubstringOf, ['',0,0]], [Rules.Person.HasTextMatchingRegexpOf, ['',0,1]], - [Rules.Person.HasNote, []], [Rules.Person.HasNoteMatchingSubstringOf, ['']], - [Rules.Person.IsFemale, []], ] self.generic_filter_widget.setup_filter( default_filters, "person") diff --git a/src/Editors/_EditEvent.py b/src/Editors/_EditEvent.py index 6befdc7a3..1414439d0 100644 --- a/src/Editors/_EditEvent.py +++ b/src/Editors/_EditEvent.py @@ -122,6 +122,12 @@ class EditEvent(EditPrimary): self.obj.set_description, self.obj.get_description, self.db.readonly) + self.gid = MonitoredEntry( + self.top.get_widget("gid"), + self.obj.set_gramps_id, + self.obj.get_gramps_id, + self.db.readonly) + self.priv = PrivacyButton( self.top.get_widget("private"), self.obj, self.db.readonly) diff --git a/src/Editors/_EditEventRef.py b/src/Editors/_EditEventRef.py index d3d86378c..f6bc2bf55 100644 --- a/src/Editors/_EditEventRef.py +++ b/src/Editors/_EditEventRef.py @@ -108,6 +108,12 @@ class EditEventRef(EditReference): self.source.get_description, self.db.readonly) + self.gid = MonitoredEntry( + self.top.get_widget("gid"), + self.source.set_gramps_id, + self.source.get_gramps_id, + self.db.readonly) + self.place_field = PlaceEntry( self.top.get_widget("eer_place"), self.source.get_place_handle(), diff --git a/src/Editors/_EditPlace.py b/src/Editors/_EditPlace.py index eac9d1cd9..2634db41c 100644 --- a/src/Editors/_EditPlace.py +++ b/src/Editors/_EditPlace.py @@ -82,8 +82,6 @@ class EditPlace(EditPrimary): def _setup_fields(self): mloc = self.obj.get_main_location() - self.top.get_widget('changed').set_text(self.obj.get_change_display()) - self.title = MonitoredEntry( self.top.get_widget("place_title"), self.obj.set_title, self.obj.get_title, @@ -93,6 +91,11 @@ class EditPlace(EditPrimary): self.top.get_widget("city"), mloc.set_city, mloc.get_city, self.db.readonly) + self.gid = MonitoredEntry( + self.top.get_widget("gid"), + self.obj.set_gramps_id, + self.obj.get_gramps_id, self.db.readonly) + self.parish = MonitoredEntry( self.top.get_widget("parish"), mloc.set_parish, mloc.get_parish, self.db.readonly) diff --git a/src/Editors/_EditSource.py b/src/Editors/_EditSource.py index f012c2df4..19bc49245 100644 --- a/src/Editors/_EditSource.py +++ b/src/Editors/_EditSource.py @@ -97,6 +97,12 @@ class EditSource(EditPrimary): self.obj.get_publication_info, self.db.readonly) + self.gid = MonitoredEntry( + self.glade.get_widget("gid"), + self.obj.set_gramps_id, + self.obj.get_gramps_id, + self.db.readonly) + self.abbrev = MonitoredEntry( self.glade.get_widget("abbrev"), self.obj.set_abbreviation, diff --git a/src/glade/edit_person.glade b/src/glade/edit_person.glade index 9d2cafcdd..19f2939c7 100644 --- a/src/glade/edit_person.glade +++ b/src/glade/edit_person.glade @@ -138,6 +138,7 @@ 0.5 0 0 + given_name PANGO_ELLIPSIZE_NONE -1 False @@ -262,25 +263,6 @@ - - - True - Female -Male -Unknown - False - True - - - 2 - 3 - 5 - 6 - fill - fill - - - True @@ -449,29 +431,6 @@ Unknown - - - True - An optional prefix for the family name that is not used in sorting, such as "de" or "van" - True - True - True - 0 - - True - * - False - 10 - - - 6 - 7 - 1 - 2 - - - - True @@ -500,72 +459,6 @@ Unknown - - - True - False - 6 - - - - True - The person's given name - True - True - True - True - 0 - - True - * - False - - - - 0 - True - True - - - - - - True - Edit the preferred name - True - GTK_RELIEF_NORMAL - True - - - - - True - gtk-edit - 4 - 0.5 - 0.5 - 0 - 0 - - - - - 0 - False - False - - - - - 2 - 7 - 2 - 3 - fill - fill - - - True @@ -683,23 +576,6 @@ Unknown - - - True - False - True - True - - - 6 - 7 - 5 - 6 - fill - fill - - - True @@ -731,6 +607,180 @@ Unknown + + + + True + Call Name: + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 5 + 6 + 2 + 3 + fill + + + + + + + True + False + 6 + + + + True + An optional prefix for the family name that is not used in sorting, such as "de" or "van" + True + True + True + 0 + + True + * + False + 10 + + + 0 + True + True + + + + + + True + Edit the preferred name + True + GTK_RELIEF_NORMAL + True + + + + + True + gtk-edit + 4 + 0.5 + 0.5 + 0 + 0 + + + + + 0 + False + False + + + + + 6 + 7 + 1 + 2 + fill + fill + + + + + + True + The person's given name + True + True + True + True + 0 + + True + * + False + + + + 2 + 5 + 2 + 3 + + + + + + + True + True + True + True + 0 + + True + + False + + + 6 + 7 + 2 + 3 + + + + + + + True + False + True + True + + + 6 + 7 + 5 + 6 + fill + + + + + + + True + Female +Male +Unknown + False + True + + + 2 + 3 + 5 + 6 + fill + + + 10 diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index 701095042..304f6c276 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -122,7 +122,7 @@ 12 True - 4 + 5 2 False 6 @@ -251,8 +251,8 @@ 0 1 - 3 - 4 + 4 + 5 fill @@ -273,8 +273,8 @@ 1 2 - 3 - 4 + 4 + 5 @@ -294,8 +294,8 @@ 1 2 - 2 - 3 + 3 + 4 @@ -319,6 +319,34 @@ False 0 + + 0 + 1 + 3 + 4 + fill + + + + + + + True + ID: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + 0 1 @@ -328,6 +356,27 @@ + + + + True + True + True + True + 0 + + True + + False + + + 1 + 2 + 2 + 3 + + + 0 @@ -1535,8 +1584,8 @@ 12 True - 4 - 2 + 3 + 4 False 6 6 @@ -1570,28 +1619,6 @@ - - - True - True - True - True - True - 0 - - True - * - False - - - 1 - 2 - 0 - 1 - - - - True @@ -1662,10 +1689,10 @@ 0 - 0 - 1 - 2 - 3 + 2 + 3 + 1 + 2 fill @@ -1684,18 +1711,40 @@ False - 1 - 2 - 2 - 3 + 3 + 4 + 1 + 2 - + True - Last Changed: + True + True + True + True + 0 + + True + * + False + + + 1 + 4 + 0 + 1 + + + + + + + True + ID: False False GTK_JUSTIFY_LEFT @@ -1713,37 +1762,30 @@ 0 1 - 3 - 4 + 2 + 3 fill - + True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 + True + True + True + 0 + + True + + False 1 2 - 3 - 4 - fill + 2 + 3 @@ -7695,7 +7737,6 @@ Text Beside Icons True True gtk-cancel - True True GTK_RELIEF_NORMAL True @@ -8727,6 +8768,55 @@ Text Beside Icons + + + + True + ID: + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 3 + 4 + 3 + 4 + fill + + + + + + + True + True + True + True + 0 + + True + + False + + + 4 + 5 + 3 + 4 + + + 0 @@ -10795,59 +10885,6 @@ Text Beside Icons - - - True - True - True - True - True - 0 - - True - * - False - - - 1 - 4 - 1 - 2 - - - - - - - True - True - GTK_RELIEF_NONE - True - False - False - - - - True - 1 - gtk-dialog-authentication - 0.5 - 0.5 - 0 - 0 - - - - - 4 - 5 - 1 - 2 - shrink - - - - True @@ -10885,6 +10922,108 @@ Text Beside Icons + + + + True + True + GTK_RELIEF_NONE + True + False + False + + + + True + 1 + gtk-dialog-authentication + 0.5 + 0.5 + 0 + 0 + + + + + 4 + 5 + 2 + 3 + fill + + + + + + + True + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 1 + 2 + + + + + + + True + Call Name: + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 2 + 3 + 1 + 2 + fill + + + + + + + True + True + True + True + 0 + + True + + False + + + 3 + 5 + 1 + 2 + + + 0 @@ -12639,7 +12778,7 @@ Text Beside Icons 12 True - 3 + 2 2 False 6 @@ -12745,7 +12884,47 @@ Text Beside Icons - + + True + ID: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 12 + False + False + + + + + + True + True + True + True + 0 + + True + * + False + + + 0 + True + True + @@ -12757,55 +12936,6 @@ Text Beside Icons fill - - - - True - ID: - False - False - GTK_JUSTIFY_LEFT - False - False - 1 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 2 - 3 - fill - - - - - - - True - True - True - True - 0 - - True - * - False - - - 1 - 2 - 2 - 3 - - - 0 @@ -13139,7 +13269,7 @@ Text Beside Icons 12 True - 6 + 7 3 False 6 @@ -13224,8 +13354,8 @@ Text Beside Icons 0 1 - 4 - 5 + 5 + 6 fill @@ -13253,8 +13383,8 @@ Text Beside Icons 0 1 - 2 - 3 + 3 + 4 fill @@ -13282,8 +13412,8 @@ Text Beside Icons 0 1 - 3 - 4 + 4 + 5 fill @@ -13388,8 +13518,8 @@ Text Beside Icons 0 3 - 5 - 6 + 6 + 7 expand|shrink|fill expand|shrink|fill @@ -13427,8 +13557,8 @@ Text Beside Icons 1 2 - 2 - 3 + 3 + 4 @@ -13448,8 +13578,8 @@ Text Beside Icons 1 2 - 3 - 4 + 4 + 5 @@ -13469,8 +13599,8 @@ Text Beside Icons 1 2 - 4 - 5 + 5 + 6 @@ -13499,12 +13629,61 @@ Text Beside Icons 2 3 - 2 - 5 + 3 + 6 fill + + + + True + ID: + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 2 + 3 + fill + + + + + + + True + True + True + True + 0 + + True + + False + + + 1 + 2 + 2 + 3 + + + False @@ -15019,6 +15198,7 @@ Very High 2 2 3 + fill