* src/Filters/SideBar/*SidebarFilter.py: Busy cursor when filtering.
svn: r7751
This commit is contained in:
parent
c4155ba2e2
commit
3582653f54
@ -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>
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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):
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user