diff --git a/ChangeLog b/ChangeLog index dae765e3d..9e38de275 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-13 Don Allingham + * src/Editors/_EditEventRef.py: add attribute list, remove cause + * src/Editors/_EditEvent.py: add attribute list, remove cause + * src/glade/gramps.glade: event fixes + 2006-08-13 Alex Roitman * NEWS: Update. diff --git a/src/Editors/_EditEvent.py b/src/Editors/_EditEvent.py index fc3606a18..2d2b84c57 100644 --- a/src/Editors/_EditEvent.py +++ b/src/Editors/_EditEvent.py @@ -45,7 +45,7 @@ import GrampsDisplay from _EditPrimary import EditPrimary from QuestionDialog import ErrorDialog -from DisplayTabs import SourceEmbedList, NoteTab, GalleryTab, EventBackRefList +from DisplayTabs import SourceEmbedList, NoteTab, GalleryTab, EventBackRefList, AttrEmbedList from GrampsWidgets import * #------------------------------------------------------------------------- @@ -111,11 +111,6 @@ class EditEvent(EditPrimary): self.add_del_btn, self.share_btn) - self.cause_monitor = MonitoredEntry( - self.top.get_widget("eventCause"), - self.obj.set_cause, - self.obj.get_cause, self.db.readonly) - self.descr_field = MonitoredEntry( self.top.get_widget("event_description"), self.obj.set_description, @@ -173,6 +168,14 @@ class EditEvent(EditPrimary): notebook, EventBackRefList(self.dbstate, self.uistate, self.track, self.dbstate.db.find_backlink_handles(self.obj.handle))) + + try: + self.attr_ref_list = self._add_tab( + notebook, + AttrEmbedList(self.dbstate, self.uistate, self.track, + self.source_ref.get_attribute_list())) + except AttributeError: + print "Attribute list not available yet" notebook.show_all() self.top.get_widget('vbox').pack_start(notebook,True) diff --git a/src/Editors/_EditEventRef.py b/src/Editors/_EditEventRef.py index f17ffaa15..fa0143820 100644 --- a/src/Editors/_EditEventRef.py +++ b/src/Editors/_EditEventRef.py @@ -42,7 +42,7 @@ import gtk import const import RelLib -from DisplayTabs import SourceEmbedList,NoteTab,GalleryTab,EventBackRefList +from DisplayTabs import SourceEmbedList,NoteTab,GalleryTab,EventBackRefList,AttrEmbedList from GrampsWidgets import * from _EditReference import EditReference @@ -87,12 +87,6 @@ class EditEventRef(EditReference): def _setup_fields(self): - self.cause_monitor = MonitoredEntry( - self.top.get_widget("eer_cause"), - self.source.set_cause, - self.source.get_cause, - self.db.readonly) - self.ref_privacy = PrivacyButton( self.top.get_widget('eer_ref_priv'), self.source_ref) @@ -161,6 +155,14 @@ class EditEventRef(EditReference): notebook, SourceEmbedList(self.dbstate,self.uistate, self.track, self.source.source_list)) + + try: + self.attr_list = self._add_tab( + notebook_ref, + AttrEmbedList(self.dbstate, self.uistate, self.track, + self.source.get_attribute_list())) + except AttributeError: + print "Attribute list not available yet" self.note_tab = self._add_tab( notebook, @@ -183,6 +185,14 @@ class EditEventRef(EditReference): self.db.find_backlink_handles(self.source.handle), self.enable_warnbox)) + try: + self.attr_ref_list = self._add_tab( + notebook, + AttrEmbedList(self.dbstate, self.uistate, self.track, + self.source_ref.get_attribute_list())) + except AttributeError: + print "Attribute list not available yet" + def build_menu_names(self,eventref): if self.source: event_name = str(self.source.get_type()) diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index 7a1e83080..8651d8458 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -6792,35 +6792,6 @@ - - - True - _Cause: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - eventCause - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 2 - 3 - fill - - - - True @@ -6939,34 +6910,6 @@ - - - True - ID: - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 2 - 3 - 2 - 3 - fill - - - - True @@ -6988,48 +6931,6 @@ - - - True - True - True - True - 0 - - True - - False - - - 3 - 4 - 2 - 3 - - - - - - - True - True - True - True - 0 - - True - * - False - - - 1 - 2 - 2 - 3 - - - - True @@ -7189,6 +7090,55 @@ + + + + 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 + 4 + 2 + 3 + + + 0 @@ -10649,7 +10599,7 @@ 12 True - 7 + 6 3 False 6 @@ -10734,8 +10684,8 @@ 0 1 - 5 - 6 + 4 + 5 fill @@ -10770,35 +10720,6 @@ - - - True - _Cause: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - eer_cause - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 4 - 5 - fill - - - - True @@ -10871,8 +10792,8 @@ 0 3 - 6 - 7 + 5 + 6 expand|shrink|fill expand|shrink|fill @@ -10896,7 +10817,7 @@ - + True True True @@ -10916,58 +10837,6 @@ - - - True - True - True - True - 0 - - True - * - False - - - 1 - 2 - 5 - 6 - - - - - - - True - True - GTK_RELIEF_NONE - True - False - False - - - - True - 1 - stock_lock-open - 0.5 - 0.5 - 0 - 0 - - - - - 2 - 3 - 3 - 6 - fill - - - - True @@ -11137,6 +11006,37 @@ + + + + True + True + GTK_RELIEF_NONE + True + False + False + + + + True + 1 + stock_lock-open + 0.5 + 0.5 + 0 + 0 + + + + + 2 + 3 + 1 + 4 + fill + + + False