2007-12-18 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Editors/_EditFamily.py: doubleclick now edits; fixed share popup * src/DisplayTabs/_EmbeddedList.py: fixed share popup * src/DisplayTabs/_GalleryTab.py: fixed share popup svn: r9530
This commit is contained in:
parent
29a40f4bca
commit
21b0612e84
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-18 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||||
|
* src/Editors/_EditFamily.py: doubleclick now edits; fixed share popup
|
||||||
|
* src/DisplayTabs/_EmbeddedList.py: fixed share popup
|
||||||
|
* src/DisplayTabs/_GalleryTab.py: fixed share popup
|
||||||
|
|
||||||
2007-12-18 Gary Burton <gary.burton@zen.co.uk>
|
2007-12-18 Gary Burton <gary.burton@zen.co.uk>
|
||||||
* src/plugins/DetAncestralReport.py: Remove some test code
|
* src/plugins/DetAncestralReport.py: Remove some test code
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ class EmbeddedList(ButtonTab):
|
|||||||
if self.share_btn:
|
if self.share_btn:
|
||||||
itemlist = [
|
itemlist = [
|
||||||
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
||||||
(True, False, _('Share'), self.edit_button_clicked),
|
(True, False, _('Share'), self.share_button_clicked),
|
||||||
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
|
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
|
||||||
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
||||||
]
|
]
|
||||||
|
@ -101,7 +101,7 @@ class GalleryTab(ButtonTab):
|
|||||||
def right_click(self, obj, event):
|
def right_click(self, obj, event):
|
||||||
itemlist = [
|
itemlist = [
|
||||||
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
||||||
(True, False, _('Share'), self.edit_button_clicked),
|
(True, False, _('Share'), self.share_button_clicked),
|
||||||
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
|
(False,True, gtk.STOCK_EDIT, self.edit_button_clicked),
|
||||||
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
||||||
]
|
]
|
||||||
|
@ -85,7 +85,7 @@ class ChildEmbedList(EmbeddedList):
|
|||||||
_MSG = {
|
_MSG = {
|
||||||
'add' : _('Create a new person and add the child to the family'),
|
'add' : _('Create a new person and add the child to the family'),
|
||||||
'del' : _('Remove the child from the family'),
|
'del' : _('Remove the child from the family'),
|
||||||
'edit' : _('Edit the child/family relationship'),
|
'edit' : _('Edit the child'),
|
||||||
'share' : _('Add an existing person as a child of the family'),
|
'share' : _('Add an existing person as a child of the family'),
|
||||||
'up' : _('Move the child up in the childrens list'),
|
'up' : _('Move the child up in the childrens list'),
|
||||||
'down' : _('Move the child down in the childrens list'),
|
'down' : _('Move the child down in the childrens list'),
|
||||||
@ -115,9 +115,9 @@ class ChildEmbedList(EmbeddedList):
|
|||||||
def get_popup_menu_items(self):
|
def get_popup_menu_items(self):
|
||||||
return [
|
return [
|
||||||
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
||||||
(True, False, _('Share'), self.edit_button_clicked),
|
(True, False, _('Add an existing child'), self.share_button_clicked),
|
||||||
(False,True, _('Edit relationship'), self.edit_button_clicked),
|
(False,True, _('Edit relationship'), self.edit_relation_button_clicked),
|
||||||
(False,True, _('Edit child'), self.edit_child_button_clicked),
|
(False,True, _('Edit child'), self.edit_button_clicked),
|
||||||
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
(True, True, gtk.STOCK_REMOVE, self.del_button_clicked),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ class ChildEmbedList(EmbeddedList):
|
|||||||
self.family.remove_child_ref(ref)
|
self.family.remove_child_ref(ref)
|
||||||
self.rebuild()
|
self.rebuild()
|
||||||
|
|
||||||
def edit_button_clicked(self,obj):
|
def edit_relation_button_clicked(self,obj):
|
||||||
handle = self.get_selected()
|
handle = self.get_selected()
|
||||||
if handle:
|
if handle:
|
||||||
from Editors import EditChildRef
|
from Editors import EditChildRef
|
||||||
@ -269,7 +269,7 @@ class ChildEmbedList(EmbeddedList):
|
|||||||
pass
|
pass
|
||||||
break
|
break
|
||||||
|
|
||||||
def edit_child_button_clicked(self, obj):
|
def edit_button_clicked(self, obj):
|
||||||
handle = self.get_selected()
|
handle = self.get_selected()
|
||||||
if handle:
|
if handle:
|
||||||
from Editors import EditPerson
|
from Editors import EditPerson
|
||||||
|
Loading…
Reference in New Issue
Block a user