In .:
* src/DataViews/_PersonView.py: add enter to collapse row as well 2007-01-27 Benny Malengier <benny.malengier@ugent.be> * src/DataViews/_PersonView.py: add enter to expand a tree row 2007-01-27 Don Allingham <don@gramps-project.org> * src/PageView.py: add key accelerators * src/ViewManager.py: block interface on autobackup (#856), add key accelerators In help: 2007-01-27 Don Allingham <don@gramps-project.org> * C/gramps.xml: add more keybindings svn: r7999
This commit is contained in:
parent
1056dd37e0
commit
23d75ca987
@ -1,5 +1,13 @@
|
||||
2007-01-27 Don Allingham <don@gramps-project.org>
|
||||
* src/ViewManager.py: block interface on autobackup (#856)
|
||||
* src/DataViews/_PersonView.py: add enter to collapse row as well
|
||||
|
||||
2007-01-27 Benny Malengier <benny.malengier@ugent.be>
|
||||
* src/DataViews/_PersonView.py: add enter to expand a tree row
|
||||
|
||||
2007-01-27 Don Allingham <don@gramps-project.org>
|
||||
* src/PageView.py: add key accelerators
|
||||
* src/ViewManager.py: block interface on autobackup (#856), add key
|
||||
accelerators
|
||||
* src/DisplayState.py: block interface on autobackup
|
||||
* src/Utils.py: handle missing/invalid encoding
|
||||
* src/DisplayModels/_BaseModel.py: handle None vs. 0
|
||||
|
@ -6876,6 +6876,22 @@
|
||||
<entry><para><keycap><Alt>P</keycap></para></entry>
|
||||
<entry>Changes the view to the previous view</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap><Ctrl>D</keycap></para></entry>
|
||||
<entry>Add the selected item as a bookmark</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap><Ctrl>B</keycap></para></entry>
|
||||
<entry>Edit the bookmarks</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap><Alt>S</keycap></para></entry>
|
||||
<entry>Open the Scratch Pad</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap><Alt>H</keycap></para></entry>
|
||||
<entry>Open the Undo History dialog</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
@ -6896,12 +6912,16 @@
|
||||
|
||||
<tbody>
|
||||
<row valign="top">
|
||||
<entry><para><keycap>F2</keycap></para></entry>
|
||||
<entry><para>Set the active person to the default person</para></entry>
|
||||
<entry><para><keycap><Ctrl>Enter</keycap></para></entry>
|
||||
<entry>Edits the selected person</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap>F3</keycap></para></entry>
|
||||
<entry>Edit the active person</entry>
|
||||
<entry><para><keycap><Ctrl>Insert</keycap></para></entry>
|
||||
<entry>Adds a new person to the database</entry>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<entry><para><keycap><Ctrl>Delete</keycap></para></entry>
|
||||
<entry>Deletes the selected person</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
|
@ -1,8 +1,10 @@
|
||||
2007-01-27 Don Allingham <don@gramps-project.org>
|
||||
* C/gramps.xml: add more keybindings
|
||||
|
||||
2007-01-09 Martin Hawlisch <martin.hawlisch@gmx.de>
|
||||
* C/gramps.xml: Correct Pedigree behaviour.
|
||||
|
||||
2006-12-30 Don Allingham <don@gramps-project.org>
|
||||
|
||||
* C/gramps.xml: start the rework of the key binding sections
|
||||
|
||||
2006-12-21 Lubo Vasko <pgval@inMail.sk>
|
||||
|
@ -149,7 +149,7 @@ class PersonView(PageView.PersonNavView):
|
||||
self.all_action.add_actions([
|
||||
('OpenAllNodes', None, _("Expand all nodes"), None, None,
|
||||
self.open_all_nodes),
|
||||
('Edit', gtk.STOCK_EDIT, _("_Edit"), None,
|
||||
('Edit', gtk.STOCK_EDIT, _("_Edit"), "<control>Return",
|
||||
_("Edit the selected person"), self.edit),
|
||||
('CloseAllNodes', None, _("Collapse all nodes"), None, None,
|
||||
self.close_all_nodes),
|
||||
@ -854,6 +854,22 @@ class PersonView(PageView.PersonNavView):
|
||||
return True
|
||||
return False
|
||||
|
||||
def key_press(self,obj,event):
|
||||
if not event.state:
|
||||
if event.keyval in (gtk.keysyms.Return, gtk.keysyms.KP_Enter):
|
||||
if self.dbstate.active:
|
||||
self.edit(obj)
|
||||
return True
|
||||
else:
|
||||
store, paths = self.selection.get_selected_rows()
|
||||
if paths and len(paths[0]) == 1 :
|
||||
if self.tree.row_expanded(paths[0]):
|
||||
self.tree.collapse_row(paths[0])
|
||||
else:
|
||||
self.tree.expand_row(paths[0], 0)
|
||||
return True
|
||||
return False
|
||||
|
||||
def key_goto_home_person(self):
|
||||
self.home(None)
|
||||
self.uistate.push_message(self.dbstate,
|
||||
|
@ -292,6 +292,7 @@ class PersonNavView(BookMarkView):
|
||||
])
|
||||
|
||||
self.add_action('HomePerson', gtk.STOCK_HOME, _("_Home"),
|
||||
accel="<Alt>Home",
|
||||
tip=_("Go to the default person"), callback=self.home)
|
||||
self.add_action('FilterEdit', None, _('Person Filter Editor'),
|
||||
callback=self.filter_editor)
|
||||
@ -813,7 +814,9 @@ class ListView(BookMarkView):
|
||||
|
||||
self.add_action_group(self.edit_action)
|
||||
|
||||
self.add_action('Edit', gtk.STOCK_EDIT,_("_Edit"), tip=self.EDIT_MSG,
|
||||
self.add_action('Edit', gtk.STOCK_EDIT, _("_Edit"),
|
||||
accel="<control>Return",
|
||||
tip=self.EDIT_MSG,
|
||||
callback=self.edit)
|
||||
|
||||
self.add_toggle_action('Filter', None, _('_Filter'),
|
||||
|
@ -379,7 +379,7 @@ class ViewManager:
|
||||
]
|
||||
|
||||
self._action_action_list = [
|
||||
('ScratchPad', gtk.STOCK_PASTE, _('_ScratchPad'), "",
|
||||
('ScratchPad', gtk.STOCK_PASTE, _('_ScratchPad'), "<alt>s",
|
||||
_("Open the ScratchPad dialog"), self.scratchpad),
|
||||
('Import', gtk.STOCK_CONVERT, _('_Import'), "<control>i", None,
|
||||
self.import_data),
|
||||
@ -411,7 +411,7 @@ class ViewManager:
|
||||
|
||||
self._undo_history_action_list = [
|
||||
('UndoHistory', 'gramps-undo-history',
|
||||
_('Undo History'), None, None, self.undo_history),
|
||||
_('Undo History'), "<Alt>H", None, self.undo_history),
|
||||
]
|
||||
|
||||
self._navigation_type = {
|
||||
|
Loading…
Reference in New Issue
Block a user