mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
dd05c065e2
commit
506f08be46
BIN
resources/images/edit-select-all.png
Normal file
BIN
resources/images/edit-select-all.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
@ -74,6 +74,7 @@ class EditorWidget(QWebView):
|
||||
_('Align justified'), False),
|
||||
('Undo', 'undo', 'edit-undo', _('Undo'), False),
|
||||
('Redo', 'redo', 'edit-redo', _('Redo'), False),
|
||||
('RemoveFormat', 'remove_format', 'trash', _('Remove formatting'), False),
|
||||
('Copy', 'copy', 'edit-copy', _('Copy'), False),
|
||||
('Paste', 'paste', 'edit-paste', _('Paste'), False),
|
||||
('Cut', 'cut', 'edit-cut', _('Cut'), False),
|
||||
@ -81,6 +82,8 @@ class EditorWidget(QWebView):
|
||||
_('Increase Indentation'), False),
|
||||
('Outdent', 'outdent', 'format-indent-less',
|
||||
_('Decrease Indentation'), False),
|
||||
('SelectAll', 'select_all', 'edit-select-all',
|
||||
_('Select all'), False),
|
||||
]:
|
||||
ac = PageAction(wac, icon, text, checkable, self)
|
||||
setattr(self, 'action_'+name, ac)
|
||||
@ -159,6 +162,8 @@ class Editor(QWidget):
|
||||
|
||||
self.toolbar1.addAction(self.editor.action_undo)
|
||||
self.toolbar1.addAction(self.editor.action_redo)
|
||||
self.toolbar1.addAction(self.editor.action_select_all)
|
||||
self.toolbar1.addAction(self.editor.action_remove_format)
|
||||
self.toolbar1.addSeparator()
|
||||
|
||||
for x in ('copy', 'cut', 'paste'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user