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')) |