mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ec7d64195f
commit
4ac45ee354
@ -208,20 +208,20 @@ class Diff(Dialog):
|
||||
l.addWidget(v, l.rowCount(), 0, 1, -1)
|
||||
|
||||
r = l.rowCount()
|
||||
self.bn = b = QToolButton(self)
|
||||
b.setIcon(QIcon(I('back.png')))
|
||||
b.clicked.connect(partial(self.view.next_change, 1))
|
||||
b.setToolTip(_('Go to next change'))
|
||||
b.setText(_('&Next change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
l.addWidget(b, r, l.columnCount(), 1, 1)
|
||||
|
||||
self.bp = b = QToolButton(self)
|
||||
b.setIcon(QIcon(I('forward.png')))
|
||||
b.setIcon(QIcon(I('back.png')))
|
||||
b.clicked.connect(partial(self.view.next_change, -1))
|
||||
b.setToolTip(_('Go to previous change'))
|
||||
b.setText(_('&Previous change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
l.addWidget(b, r, l.columnCount(), 1, 1)
|
||||
|
||||
self.bn = b = QToolButton(self)
|
||||
b.setIcon(QIcon(I('forward.png')))
|
||||
b.clicked.connect(partial(self.view.next_change, 1))
|
||||
b.setToolTip(_('Go to next change'))
|
||||
b.setText(_('&Next change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
l.addWidget(b, r, l.columnCount(), 1, 1)
|
||||
|
||||
self.search = s = HistoryLineEdit2(self)
|
||||
s.initialize('diff_search_history')
|
||||
l.addWidget(s, r, l.columnCount(), 1, 1)
|
||||
|
@ -27,7 +27,7 @@ from calibre.gui2 import info_dialog
|
||||
from calibre.gui2.tweak_book import tprefs
|
||||
from calibre.gui2.tweak_book.editor.text import PlainTextEdit, get_highlighter, default_font_family, LineNumbers
|
||||
from calibre.gui2.tweak_book.editor.themes import THEMES, default_theme, theme_color
|
||||
from calibre.utils.diff import get_sequence_matcher
|
||||
from calibre.gui2.tweak_book.diff import get_sequence_matcher
|
||||
|
||||
Change = namedtuple('Change', 'ltop lbot rtop rbot kind')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user