14 from PyQt6.QtWidgets import ( |
14 from PyQt6.QtWidgets import ( |
15 QHeaderView, QLineEdit, QWidget, QApplication, QDialogButtonBox, |
15 QHeaderView, QLineEdit, QWidget, QApplication, QDialogButtonBox, |
16 QTreeWidgetItem |
16 QTreeWidgetItem |
17 ) |
17 ) |
18 |
18 |
19 from E5Gui import E5MessageBox |
19 from E5Gui import EricMessageBox |
20 from E5Gui.E5OverrideCursor import E5OverrideCursorProcess |
20 from E5Gui.EricOverrideCursor import EricOverrideCursorProcess |
21 |
21 |
22 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog |
22 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog |
23 |
23 |
24 import Preferences |
24 import Preferences |
25 import UI.PixmapCache |
25 import UI.PixmapCache |
63 self.__resetUI() |
63 self.__resetUI() |
64 |
64 |
65 self.__messageRole = Qt.ItemDataRole.UserRole |
65 self.__messageRole = Qt.ItemDataRole.UserRole |
66 self.__changesRole = Qt.ItemDataRole.UserRole + 1 |
66 self.__changesRole = Qt.ItemDataRole.UserRole + 1 |
67 |
67 |
68 self.__process = E5OverrideCursorProcess() |
68 self.__process = EricOverrideCursorProcess() |
69 self.__process.finished.connect(self.__procFinished) |
69 self.__process.finished.connect(self.__procFinished) |
70 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
70 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
71 self.__process.readyReadStandardError.connect(self.__readStderr) |
71 self.__process.readyReadStandardError.connect(self.__readStderr) |
72 |
72 |
73 self.rx_sep1 = re.compile('\\-+\\s*') |
73 self.rx_sep1 = re.compile('\\-+\\s*') |
312 self.__process.start('svn', args) |
312 self.__process.start('svn', args) |
313 procStarted = self.__process.waitForStarted(5000) |
313 procStarted = self.__process.waitForStarted(5000) |
314 if not procStarted: |
314 if not procStarted: |
315 self.inputGroup.setEnabled(False) |
315 self.inputGroup.setEnabled(False) |
316 self.inputGroup.hide() |
316 self.inputGroup.hide() |
317 E5MessageBox.critical( |
317 EricMessageBox.critical( |
318 self, |
318 self, |
319 self.tr('Process Generation Error'), |
319 self.tr('Process Generation Error'), |
320 self.tr( |
320 self.tr( |
321 'The process {0} could not be started. ' |
321 'The process {0} could not be started. ' |
322 'Ensure, that it is in the search path.' |
322 'Ensure, that it is in the search path.' |