eric7/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
13 from PyQt6.QtCore import pyqtSlot, Qt, QTimer, QProcess 13 from PyQt6.QtCore import pyqtSlot, Qt, QTimer, QProcess
14 from PyQt6.QtWidgets import ( 14 from PyQt6.QtWidgets import (
15 QHeaderView, QLineEdit, QDialog, QDialogButtonBox, QTreeWidgetItem 15 QHeaderView, QLineEdit, QDialog, QDialogButtonBox, QTreeWidgetItem
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_SvnRepoBrowserDialog import Ui_SvnRepoBrowserDialog 21 from .Ui_SvnRepoBrowserDialog import Ui_SvnRepoBrowserDialog
22 22
23 import UI.PixmapCache 23 import UI.PixmapCache
24 24
46 self.repoTree.header().setSortIndicator(0, Qt.SortOrder.AscendingOrder) 46 self.repoTree.header().setSortIndicator(0, Qt.SortOrder.AscendingOrder)
47 47
48 self.vcs = vcs 48 self.vcs = vcs
49 self.mode = mode 49 self.mode = mode
50 50
51 self.__process = E5OverrideCursorProcess() 51 self.__process = EricOverrideCursorProcess()
52 self.__process.finished.connect(self.__procFinished) 52 self.__process.finished.connect(self.__procFinished)
53 self.__process.readyReadStandardOutput.connect(self.__readStdout) 53 self.__process.readyReadStandardOutput.connect(self.__readStdout)
54 self.__process.readyReadStandardError.connect(self.__readStderr) 54 self.__process.readyReadStandardError.connect(self.__readStderr)
55 55
56 if self.mode == "select": 56 if self.mode == "select":
188 Preferences.getSystem("IOEncoding"), 188 Preferences.getSystem("IOEncoding"),
189 'replace') 189 'replace')
190 self.errors.insertPlainText(error) 190 self.errors.insertPlainText(error)
191 self.errors.ensureCursorVisible() 191 self.errors.ensureCursorVisible()
192 else: 192 else:
193 E5MessageBox.critical( 193 EricMessageBox.critical(
194 self, 194 self,
195 self.tr('Process Generation Error'), 195 self.tr('Process Generation Error'),
196 self.tr( 196 self.tr(
197 'The process {0} could not be started. ' 197 'The process {0} could not be started. '
198 'Ensure, that it is in the search path.' 198 'Ensure, that it is in the search path.'
254 procStarted = self.__process.waitForStarted(5000) 254 procStarted = self.__process.waitForStarted(5000)
255 if not procStarted: 255 if not procStarted:
256 self.__finish() 256 self.__finish()
257 self.inputGroup.setEnabled(False) 257 self.inputGroup.setEnabled(False)
258 self.inputGroup.hide() 258 self.inputGroup.hide()
259 E5MessageBox.critical( 259 EricMessageBox.critical(
260 self, 260 self,
261 self.tr('Process Generation Error'), 261 self.tr('Process Generation Error'),
262 self.tr( 262 self.tr(
263 'The process {0} could not be started. ' 263 'The process {0} could not be started. '
264 'Ensure, that it is in the search path.' 264 'Ensure, that it is in the search path.'

eric ide

mercurial