From ac2ebca5eab1ae81b31df9762ce99f4528263e76 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 18 Sep 2004 02:50:30 +0000 Subject: [PATCH] * src/gramps.glade: replace LED indicators with buttons svn: r3551 --- ChangeLog | 6 +- src/AddrEdit.py | 6 + src/EditPerson.py | 10 ++ src/EventEdit.py | 6 + src/gramps.glade | 374 +++++++++++++++++++--------------------------- 5 files changed, 181 insertions(+), 221 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe41c50a1..ad74e568f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,11 @@ names without manual encoding * src/DateParser.py: use locale.nl_langinfo to get month names without manual encoding - + * src/AddrEdit.py: Add date editor callback + * src/EditPerson.py: Add date editor callback + * src/EventEdit.py: Add date editor callback + * src/gramps.glade: replace LED indicators with buttons + 2004-09-16 Don Allingham * src/Calendar.py: removed * src/Gregorian.py: removed diff --git a/src/AddrEdit.py b/src/AddrEdit.py index 7c1d7143f..4af008b37 100644 --- a/src/AddrEdit.py +++ b/src/AddrEdit.py @@ -141,6 +141,7 @@ class AddressEditor: "on_ok_addr_clicked" : self.ok_clicked, "on_cancel_addr_clicked" : self.close, "on_addr_edit_delete_event" : self.on_delete_event, + "on_date_edit_clicked", self.on_date_edit_clicked, }) if parent_window: @@ -148,6 +149,11 @@ class AddressEditor: self.add_itself_to_menu() self.window.show() + def on_date_edit_clicked(self,obj): + from QuestionDialog import ErrorDialog + ErrorDialog("Not implemented yet", + "The Date Editor has not been implemented yet") + def on_delete_event(self,obj,b): self.close_child_windows() self.remove_itself_from_menu() diff --git a/src/EditPerson.py b/src/EditPerson.py index 7e0272994..345618c71 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -423,6 +423,8 @@ class EditPerson: "on_gender_activate" : self.on_gender_activate, "on_givenName_focus_out_event": self.on_givenName_focus_out_event, "on_help_person_clicked" : self.on_help_clicked, + "on_edit_date_birth_clicked": self.on_edit_date_birth_clicked, + "on_edit_date_death_clicked": self.on_edit_date_death_clicked, }) self.update_birth_death() @@ -446,6 +448,14 @@ class EditPerson: self.add_itself_to_winsmenu() self.window.show() + def on_edit_date_birth_clicked(self,obj): + ErrorDialog("Not implemented yet", + "The Date Editor has not been implemented yet") + + def on_edit_date_death_clicked(self,obj): + ErrorDialog("Not implemented yet", + "The Date Editor has not been implemented yet") + def close_child_windows(self): for child_window in self.child_windows.values(): child_window.close(None) diff --git a/src/EventEdit.py b/src/EventEdit.py index 6da051a6a..e0a7ec76d 100644 --- a/src/EventEdit.py +++ b/src/EventEdit.py @@ -216,6 +216,7 @@ class EventEditor: "on_deletephoto_clicked" : self.gallery.on_delete_media_clicked, "on_edit_properties_clicked": self.gallery.popup_change_description, "on_editphoto_clicked" : self.gallery.on_edit_media_clicked, + "on_date_edit_clicked" : self.on_date_edit_clicked, }) menu = gtk.Menu() @@ -236,6 +237,11 @@ class EventEditor: self.add_itself_to_menu() self.window.show() + def on_date_edit_clicked(self,obj): + from QuestionDialog import ErrorDialog + ErrorDialog("Not implemented yet", + "The Date Editor has not been implemented yet") + def on_delete_event(self,obj,b): self.gallery.close() self.close_child_windows() diff --git a/src/gramps.glade b/src/gramps.glade index ded93dbe4..0928295d8 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -8219,24 +8219,6 @@ Other - - - True - 0.5 - 0.5 - 0 - 0 - - - 3 - 4 - 13 - 14 - fill - fill - - - 1 @@ -8802,24 +8784,6 @@ Other - - - True - 0.5 - 0.5 - 0 - 0 - - - 9 - 10 - 13 - 14 - fill - fill - - - 1 @@ -9003,6 +8967,64 @@ Other fill + + + + True + Invoke date editor + True + GTK_RELIEF_NORMAL + True + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + + 3 + 4 + 13 + 14 + fill + + + + + + + True + Invoke date editor + True + GTK_RELIEF_NORMAL + True + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + + 9 + 10 + 13 + 14 + fill + + + 0 @@ -13487,30 +13509,6 @@ Other - - - True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 2 - 5 - 3 - 4 - fill - - - - True @@ -13604,6 +13602,29 @@ Other + + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 2 + 5 + 3 + 4 + + + 0 @@ -13667,7 +13688,7 @@ Other 0 False - False + True @@ -13684,7 +13705,7 @@ Other 0 False - False + True @@ -13703,7 +13724,7 @@ Other 0 False - False + True @@ -13713,7 +13734,7 @@ Other 0 - True + False True @@ -26145,7 +26166,7 @@ Other 12 True 6 - 4 + 3 False 6 12 @@ -26286,60 +26307,6 @@ Other - - - Selects the calendar format for display - True - 0 - - - - True - - - - True - Gregorian - True - - - - - - True - Julian - True - - - - - - True - Hebrew - True - - - - - - True - French - True - - - - - - - 3 - 4 - 1 - 2 - fill - - - - True @@ -26375,7 +26342,7 @@ Other 1 - 4 + 3 4 5 @@ -26396,7 +26363,7 @@ Other 1 - 4 + 3 3 4 @@ -26417,7 +26384,7 @@ Other 1 - 4 + 3 2 3 @@ -26438,7 +26405,7 @@ Other 1 - 4 + 3 5 6 fill @@ -26446,37 +26413,47 @@ Other - - - True - 0.5 - 0.5 - 0 - 0 - - - 2 - 3 - 1 - 2 - fill - fill - - - True 1 - 4 + 3 0 1 fill fill + + + + True + True + GTK_RELIEF_NORMAL + True + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + + 2 + 3 + 1 + 2 + fill + + + False @@ -28338,7 +28315,7 @@ Other 12 True 8 - 4 + 3 False 6 12 @@ -28533,77 +28510,6 @@ Other - - - Selects the calendar format for display - True - 0 - - - - True - - - - True - Gregorian - True - - - - - - True - Julian - True - - - - - - True - Hebrew - True - - - - - - True - French - True - - - - - - - 3 - 4 - 0 - 1 - fill - - - - - - - True - 0.5 - 0.5 - 0 - 0 - - - 2 - 3 - 0 - 1 - fill - - - True @@ -28640,7 +28546,7 @@ Other 1 - 4 + 3 1 2 @@ -28661,7 +28567,7 @@ Other 1 - 4 + 3 2 3 @@ -28682,7 +28588,7 @@ Other 1 - 4 + 3 3 4 @@ -28703,7 +28609,7 @@ Other 1 - 4 + 3 4 5 @@ -28724,7 +28630,7 @@ Other 1 - 4 + 3 5 6 @@ -28770,12 +28676,40 @@ Other 1 - 4 + 3 6 7 + + + + True + True + GTK_RELIEF_NORMAL + True + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + + 2 + 3 + 0 + 1 + fill + + + False