13 from PyQt6.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QWidget, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QApplication, |
14 QWidget, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QApplication, |
15 QLineEdit |
15 QLineEdit |
16 ) |
16 ) |
17 |
17 |
18 from E5Gui import E5MessageBox |
18 from E5Gui import EricMessageBox |
19 from E5Gui.E5OverrideCursor import E5OverrideCursorProcess |
19 from E5Gui.EricOverrideCursor import EricOverrideCursorProcess |
20 |
20 |
21 from .Ui_GitReflogBrowserDialog import Ui_GitReflogBrowserDialog |
21 from .Ui_GitReflogBrowserDialog import Ui_GitReflogBrowserDialog |
22 |
22 |
23 import Preferences |
23 import Preferences |
24 from Globals import strToQByteArray |
24 from Globals import strToQByteArray |
74 self.__currentCommitId = "" |
74 self.__currentCommitId = "" |
75 |
75 |
76 self.__initData() |
76 self.__initData() |
77 self.__resetUI() |
77 self.__resetUI() |
78 |
78 |
79 self.__process = E5OverrideCursorProcess() |
79 self.__process = EricOverrideCursorProcess() |
80 self.__process.finished.connect(self.__procFinished) |
80 self.__process.finished.connect(self.__procFinished) |
81 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
81 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
82 self.__process.readyReadStandardError.connect(self.__readStderr) |
82 self.__process.readyReadStandardError.connect(self.__readStderr) |
83 |
83 |
84 def __initData(self): |
84 def __initData(self): |
193 self.__process.start('git', args) |
193 self.__process.start('git', args) |
194 procStarted = self.__process.waitForStarted(5000) |
194 procStarted = self.__process.waitForStarted(5000) |
195 if not procStarted: |
195 if not procStarted: |
196 self.inputGroup.setEnabled(False) |
196 self.inputGroup.setEnabled(False) |
197 self.inputGroup.hide() |
197 self.inputGroup.hide() |
198 E5MessageBox.critical( |
198 EricMessageBox.critical( |
199 self, |
199 self, |
200 self.tr('Process Generation Error'), |
200 self.tr('Process Generation Error'), |
201 self.tr( |
201 self.tr( |
202 'The process {0} could not be started. ' |
202 'The process {0} could not be started. ' |
203 'Ensure, that it is in the search path.' |
203 'Ensure, that it is in the search path.' |