* src/DataViews/_MediaView.py: keybindings

* src/DataViews/_RepositoryView.py: keybindings
	* src/DataViews/_SourceView.py: keybindings
	* src/DataViews/_EventView.py: keybindings
	* src/DataViews/_FamilyList.py: keybindings
	* src/DataViews/_PlaceView.py: keybindings
	* src/DataViews/_PersonView.py: keybindings
	* src/ViewManager.py: keybindings
	* src/PageView.py: keybindings

2007-01-25  Benny Malengier  <benny.malengier@ugent.be>
	* src/Filters/Rules/Place/Makefile.am: add new files
	* src/Filters/Rules/Place/_InLatLonNeighborhood.py: added
	* src/Filters/Rules/Place/_HasNoteMatchingSubstringOf.py: added
	* src/Filters/Rules/Place/__init__.py: add new filters

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


svn: r7985
This commit is contained in:
Don Allingham 2007-01-26 05:09:25 +00:00
parent e8f9d33e9e
commit 0f6677b68f
12 changed files with 67 additions and 2 deletions

View File

@ -1,3 +1,20 @@
2007-01-25 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py: keybindings
* src/DataViews/_RepositoryView.py: keybindings
* src/DataViews/_SourceView.py: keybindings
* src/DataViews/_EventView.py: keybindings
* src/DataViews/_FamilyList.py: keybindings
* src/DataViews/_PlaceView.py: keybindings
* src/DataViews/_PersonView.py: keybindings
* src/ViewManager.py: keybindings
* src/PageView.py: keybindings
2007-01-25 Benny Malengier <benny.malengier@ugent.be>
* src/Filters/Rules/Place/Makefile.am: add new files
* src/Filters/Rules/Place/_InLatLonNeighborhood.py: added
* src/Filters/Rules/Place/_HasNoteMatchingSubstringOf.py: added
* src/Filters/Rules/Place/__init__.py: add new filters
2007-01-25 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py: fix goto-gramps-id key press
* src/DataViews/_RepositoryView.py: fix goto-gramps-id key press

View File

@ -88,6 +88,9 @@ class EventView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
PageView.ListView.__init__(

View File

@ -78,6 +78,9 @@ class FamilyListView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
PageView.ListView.__init__(

View File

@ -104,6 +104,9 @@ class MediaView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
Config.client.notify_add("/apps/gramps/interface/filter",

View File

@ -103,6 +103,9 @@ class PersonView(PageView.PersonNavView):
self.func_list = {
'F2' : self.key_goto_home_person,
'F3' : self.key_edit_selected_person,
'<CONTROL>Delete' : self.key_delete_selected_person,
'<CONTROL>BackSpace' : self.key_delete_selected_person,
'<CONTROL>Insert' : self.key_add_new_person,
'<CONTROL>J' : self.jump,
}
self.dirty = True
@ -862,3 +865,13 @@ class PersonView(PageView.PersonNavView):
self.edit(None)
self.uistate.push_message(self.dbstate,
_("Edit selected person"))
def key_delete_selected_person(self):
self.remove(None)
self.uistate.push_message(self.dbstate,
_("Delete selected person"))
def key_add_new_person(self):
self.add(None)
self.uistate.push_message(self.dbstate,
_("Add new person"))

View File

@ -95,6 +95,9 @@ class PlaceView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
PageView.ListView.__init__(

View File

@ -96,6 +96,9 @@ class RepositoryView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
PageView.ListView.__init__(

View File

@ -89,6 +89,9 @@ class SourceView(PageView.ListView):
self.func_list = {
'<CONTROL>J' : self.jump,
'<CONTROL>Insert' : self.key_insert,
'<CONTROL>Delete' : self.key_delete,
'<CONTROL>BackSpace' : self.key_delete,
}
PageView.ListView.__init__(

View File

@ -5,6 +5,8 @@ pkgdatadir = $(datadir)/@PACKAGE@/Filters/Rules/Place
pkgdata_PYTHON = \
_AllPlaces.py\
_HasIdOf.py\
_HasNoLatOrLon.py\
_InLatLonNeighborhood.py\
_HasNoteMatchingSubstringOf.py\
_HasNoteRegexp.py\
_HasPlace.py\

View File

@ -34,6 +34,8 @@ from _HasNoteMatchingSubstringOf import HasNoteMatchingSubstringOf
from _PlacePrivate import PlacePrivate
from _MatchesFilter import MatchesFilter
from _HasPlace import HasPlace
from _HasNoLatOrLon import HasNoLatOrLon
from _InLatLonNeighborhood import InLatLonNeighborhood
editor_rule_list = [
AllPlaces,
@ -44,4 +46,6 @@ editor_rule_list = [
PlacePrivate,
MatchesFilter,
HasPlace,
HasNoLatOrLon,
InLatLonNeighborhood,
]

View File

@ -279,7 +279,7 @@ class PersonNavView(BookMarkView):
self.fwd_action = gtk.ActionGroup(self.title + '/Forward')
self.fwd_action.add_actions([
('Forward',gtk.STOCK_GO_FORWARD,_("_Forward"),
None, _("Go to the next person in the history"),
"<ALT>Right", _("Go to the next person in the history"),
self.fwd_clicked)
])
@ -287,7 +287,7 @@ class PersonNavView(BookMarkView):
self.back_action = gtk.ActionGroup(self.title + '/Backward')
self.back_action.add_actions([
('Back',gtk.STOCK_GO_BACK,_("_Back"),
None, _("Go to the previous person in the history"),
"<ALT>Left", _("Go to the previous person in the history"),
self.back_clicked)
])
@ -842,3 +842,8 @@ class ListView(BookMarkView):
def change_page(self):
self.edit_action.set_sensitive(not self.dbstate.db.readonly)
def key_delete(self):
self.remove(None)
def key_insert(self):
self.add(None)

View File

@ -178,6 +178,9 @@ uidefault = '''<ui>
<accelerator action="F9"/>
<accelerator action="F11"/>
<accelerator action="F12"/>
<accelerator action="<CONTROL>Delete"/>
<accelerator action="<CONTROL>Insert"/>
<accelerator action="<CONTROL>BackSpace"/>
<accelerator action="<CONTROL>J"/>
<accelerator action="<Alt>N"/>
<accelerator action="<Alt>P"/>
@ -368,6 +371,9 @@ class ViewManager:
('F8', None, 'F9', "F8", None, self.keypress),
('F9', None, 'F9', "F9", None, self.keypress),
('F11', None, 'F11', "F11", None, self.keypress),
('<CONTROL>BackSpace', None, '<CONTROL>BackSpace', "<CONTROL>BackSpace", None, self.keypress),
('<CONTROL>Delete', None, '<CONTROL>Delete', "<CONTROL>Delete", None, self.keypress),
('<CONTROL>Insert', None, '<CONTROL>Insert', "<CONTROL>Insert", None, self.keypress),
('F12', None, 'F12', "F12", None, self.keypress),
('<CONTROL>J', None, '<CONTROL>J', "<CONTROL>J", None, self.keypress),
('<Alt>N', None, '<Alt>N', "<Alt>N", None, self.next_view),