2007-01-15 Don Allingham <don@gramps-project.org>

* src/DataViews/_PersonView.py: use watch cursor on node expand
	* src/GrampsDb/_ReadGedcom.py: handle empty repo instances
	* src/plugins/TestCaseGenerator.py: fix typo
	* src/DisplayState.py: manage watch cursors better (don't set twice)
	* src/DisplayModels/_PeopleModel.py: maintain backref hash table for quick access 
	to iter to node mappings at the top level.



svn: r7914
This commit is contained in:
Don Allingham
2007-01-16 05:54:40 +00:00
parent cd12fc26f5
commit 88e4ddc0a6
6 changed files with 42 additions and 11 deletions

View File

@@ -254,6 +254,12 @@ class PersonView(PageView.PersonNavView):
"""
return 'gramps-person'
def start_expand(self, *obj):
self.uistate.set_busy_cursor(True)
def expanded(self, *obj):
self.uistate.set_busy_cursor(False)
def build_widget(self):
"""
Builds the interface and returns a gtk.Container type that
@@ -274,6 +280,8 @@ class PersonView(PageView.PersonNavView):
self.tree.set_headers_visible(True)
self.tree.set_fixed_height_mode(True)
self.tree.connect('key-press-event', self.key_press)
self.tree.connect('row-expanded', self.expanded)
self.tree.connect('test-expand-row', self.start_expand)
scrollwindow = gtk.ScrolledWindow()
scrollwindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
@@ -561,8 +569,14 @@ class PersonView(PageView.PersonNavView):
pass
def open_all_nodes(self, obj):
self.uistate.status_text(_("Updating display..."))
self.uistate.set_busy_cursor(True)
self.tree.expand_all()
self.uistate.set_busy_cursor(False)
self.uistate.modify_statusbar(self.dbstate)
def close_all_nodes(self, obj):
self.tree.collapse_all()