* src/Filters/SideBar/*SidebarFilter.py: Busy cursor when filtering.

svn: r7751
This commit is contained in:
Alex Roitman 2006-12-03 00:23:59 +00:00
parent c4155ba2e2
commit 3582653f54
9 changed files with 7 additions and 21 deletions

View File

@ -1,4 +1,5 @@
2006-12-02 Alex Roitman <shura@gramps-project.org> 2006-12-02 Alex Roitman <shura@gramps-project.org>
* src/Filters/SideBar/*SidebarFilter.py: Busy cursor when filtering.
* src/plugins/Check.py (check_repo_references): Add new check. * src/plugins/Check.py (check_repo_references): Add new check.
2006-12-01 Brian Matherly <brian@gramps-project.org> 2006-12-01 Brian Matherly <brian@gramps-project.org>

View File

@ -100,9 +100,6 @@ class EventSidebarFilter(SidebarFilter):
self.etype.child.set_text('') self.etype.child.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
desc = unicode(self.filter_desc.get_text()).strip() desc = unicode(self.filter_desc.get_text()).strip()

View File

@ -122,9 +122,6 @@ class FamilySidebarFilter(SidebarFilter):
self.mtype.child.set_text('') self.mtype.child.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
father = unicode(self.filter_father.get_text()).strip() father = unicode(self.filter_father.get_text()).strip()

View File

@ -93,9 +93,6 @@ class MediaSidebarFilter(SidebarFilter):
self.filter_note.set_text('') self.filter_note.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
title = unicode(self.filter_title.get_text()).strip() title = unicode(self.filter_title.get_text()).strip()

View File

@ -114,9 +114,6 @@ class PersonSidebarFilter(SidebarFilter):
self.mtype.child.set_text('') self.mtype.child.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
name = unicode(self.filter_name.get_text()).strip() name = unicode(self.filter_name.get_text()).strip()
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()

View File

@ -102,9 +102,6 @@ class PlaceSidebarFilter(SidebarFilter):
self.filter_note.set_text('') self.filter_note.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
title = unicode(self.filter_title.get_text()).strip() title = unicode(self.filter_title.get_text()).strip()

View File

@ -100,9 +100,6 @@ class RepoSidebarFilter(SidebarFilter):
self.filter_note.set_text('') self.filter_note.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
title = unicode(self.filter_title.get_text()).strip() title = unicode(self.filter_title.get_text()).strip()

View File

@ -37,6 +37,7 @@ class SidebarFilter:
self.table.set_col_spacing(1,6) self.table.set_col_spacing(1,6)
self._init_interface() self._init_interface()
uistate.connect('filters-changed',self.on_filters_changed) uistate.connect('filters-changed',self.on_filters_changed)
self.uistate = uistate
def _init_interface(self): def _init_interface(self):
self.table.attach(GrampsWidgets.MarkupLabel(_('<b>Filter</b>')), self.table.attach(GrampsWidgets.MarkupLabel(_('<b>Filter</b>')),
@ -80,6 +81,11 @@ class SidebarFilter:
pass pass
def clicked(self, obj): def clicked(self, obj):
self.uistate.set_busy_cursor(1)
self.clicked_func()
self.uistate.set_busy_cursor(0)
def clicked_func(self):
pass pass
def get_filter(self): def get_filter(self):

View File

@ -89,9 +89,6 @@ class SourceSidebarFilter(SidebarFilter):
self.filter_note.set_text('') self.filter_note.set_text('')
self.generic.set_active(0) self.generic.set_active(0)
def clicked(self, obj):
self.clicked_func()
def get_filter(self): def get_filter(self):
gid = unicode(self.filter_id.get_text()).strip() gid = unicode(self.filter_id.get_text()).strip()
title = unicode(self.filter_title.get_text()).strip() title = unicode(self.filter_title.get_text()).strip()