9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QTimer, QProcess, Qt, pyqtSlot |
12 from PyQt4.QtCore import QTimer, QProcess, Qt, pyqtSlot |
13 from PyQt4.QtGui import QHeaderView, QLineEdit, QDialog, QDialogButtonBox, \ |
13 from PyQt4.QtGui import QHeaderView, QLineEdit, QDialog, QDialogButtonBox, \ |
14 QFont, QTreeWidgetItem |
14 QTreeWidgetItem |
15 |
15 |
16 from E5Gui import E5MessageBox |
16 from E5Gui import E5MessageBox |
17 |
17 |
18 from .Ui_SvnBlameDialog import Ui_SvnBlameDialog |
18 from .Ui_SvnBlameDialog import Ui_SvnBlameDialog |
19 |
19 |
20 import Preferences |
20 import Preferences |
21 import Utilities |
|
22 |
21 |
23 |
22 |
24 class SvnBlameDialog(QDialog, Ui_SvnBlameDialog): |
23 class SvnBlameDialog(QDialog, Ui_SvnBlameDialog): |
25 """ |
24 """ |
26 Class implementing a dialog to show the output of the svn blame command. |
25 Class implementing a dialog to show the output of the svn blame command. |
40 |
39 |
41 self.process = QProcess() |
40 self.process = QProcess() |
42 self.vcs = vcs |
41 self.vcs = vcs |
43 |
42 |
44 self.blameList.headerItem().setText(self.blameList.columnCount(), "") |
43 self.blameList.headerItem().setText(self.blameList.columnCount(), "") |
45 font = QFont(self.blameList.font()) |
44 font = Preferences.getEditorOtherFonts("MonospacedFont") |
46 if Utilities.isWindowsPlatform(): |
|
47 font.setFamily("Lucida Console") |
|
48 else: |
|
49 font.setFamily("Monospace") |
|
50 self.blameList.setFont(font) |
45 self.blameList.setFont(font) |
51 |
46 |
52 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
47 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
53 |
48 |
54 self.process.finished.connect(self.__procFinished) |
49 self.process.finished.connect(self.__procFinished) |