Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

changeset 537
72b32daeb8d6
parent 454
d28d558f7484
child 791
9ec2ac20e54e
equal deleted inserted replaced
536:6d8d39753c82 537:72b32daeb8d6
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import QProcess, Qt, QSize 12 from PyQt4.QtCore import QProcess, Qt, QSize
13 from PyQt4.QtGui import QMainWindow, QAction, QToolBar, QPlainTextEdit, \ 13 from PyQt4.QtGui import QMainWindow, QAction, QToolBar, QPlainTextEdit, \
14 QMessageBox, QTextCursor, QBrush, QSpinBox, QComboBox 14 QTextCursor, QBrush, QSpinBox, QComboBox
15 15
16 from E5Gui.E5Application import e5App 16 from E5Gui.E5Application import e5App
17 from E5Gui import E5MessageBox
17 18
18 import UI.PixmapCache 19 import UI.PixmapCache
19 20
20 import Preferences 21 import Preferences
21 22
126 self.__portSpin.setEnabled(False) 127 self.__portSpin.setEnabled(False)
127 self.__styleCombo.setEnabled(False) 128 self.__styleCombo.setEnabled(False)
128 self.vcs.getPlugin().setPreferences("ServerPort", port) 129 self.vcs.getPlugin().setPreferences("ServerPort", port)
129 self.vcs.getPlugin().setPreferences("ServerStyle", style) 130 self.vcs.getPlugin().setPreferences("ServerStyle", style)
130 else: 131 else:
131 QMessageBox.critical(None, 132 E5MessageBox.critical(self,
132 self.trUtf8('Process Generation Error'), 133 self.trUtf8('Process Generation Error'),
133 self.trUtf8( 134 self.trUtf8(
134 'The process {0} could not be started. ' 135 'The process {0} could not be started. '
135 'Ensure, that it is in the search path.' 136 'Ensure, that it is in the search path.'
136 ).format('hg')) 137 ).format('hg'))

eric ide

mercurial