Added copy and paste to all views; gramplet view needs work

svn: r15697
This commit is contained in:
Doug Blank
2010-08-09 20:51:54 +00:00
parent 981cda7c19
commit e3cd87484c
14 changed files with 130 additions and 34 deletions

View File

@ -110,6 +110,10 @@ UIDEFAULT = '''<ui>
<menuitem action="Quit"/>
</menu>
<menu action="EditMenu">
<menuitem action="Copy"/>
<menuitem action="Paste"/>
<menuitem action="Cut"/>
<separator/>
<menuitem action="Undo"/>
<menuitem action="Redo"/>
<menuitem action="UndoHistory"/>
@ -509,6 +513,12 @@ class ViewManager(CLIManager):
('ConfigView', 'gramps-config', _('_Configure View...'),
'<shift><control>c', _('Configure the active view'),
self.config_view),
('Copy', gtk.STOCK_COPY, _('Copy'), "<control>c",
_(""), self.__keypress),
('Paste', gtk.STOCK_PASTE, _('Paste'), "<control>v",
_(""), self.__keypress),
('Cut', gtk.STOCK_CUT, _('Cut'), "<control>x",
_(""), self.__keypress),
]
self._file_toggle_action_list = [
@ -1222,7 +1232,7 @@ class ViewManager(CLIManager):
ToolPluginDialog(self.dbstate, self.uistate, [])
except Errors.WindowActiveError:
return
def scratchpad(self, obj):
"""
Displays the Clipboard (was scratchpad)