27 |
27 |
28 import Utilities |
28 import Utilities |
29 import Preferences |
29 import Preferences |
30 |
30 |
31 |
31 |
32 # TODO: add simple search functionality (s. LogViewer) |
|
33 class SvnDiffDialog(QWidget, SvnDialogMixin, Ui_SvnDiffDialog): |
32 class SvnDiffDialog(QWidget, SvnDialogMixin, Ui_SvnDiffDialog): |
34 """ |
33 """ |
35 Class implementing a dialog to show the output of the svn diff command. |
34 Class implementing a dialog to show the output of the svn diff command. |
36 """ |
35 """ |
37 def __init__(self, vcs, parent=None): |
36 def __init__(self, vcs, parent=None): |
46 SvnDialogMixin.__init__(self) |
45 SvnDialogMixin.__init__(self) |
47 |
46 |
48 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) |
47 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) |
49 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
48 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
50 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
49 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
|
50 |
|
51 self.searchWidget.attachTextEdit(self.contents) |
51 |
52 |
52 self.vcs = vcs |
53 self.vcs = vcs |
53 |
54 |
54 font = Preferences.getEditorOtherFonts("MonospacedFont") |
55 font = Preferences.getEditorOtherFonts("MonospacedFont") |
55 self.contents.setFontFamily(font.family()) |
56 self.contents.setFontFamily(font.family()) |