45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
46 |
46 |
47 if mode not in [self.INCOMING, self.OUTGOING]: |
47 if mode not in [self.INCOMING, self.OUTGOING]: |
48 raise ValueError("Bad value for mode") |
48 raise ValueError("Bad value for mode") |
49 if mode == self.INCOMING: |
49 if mode == self.INCOMING: |
50 self.setWindowTitle(self.trUtf8("Mercurial Incoming Bookmarks")) |
50 self.setWindowTitle(self.tr("Mercurial Incoming Bookmarks")) |
51 elif mode == self.OUTGOING: |
51 elif mode == self.OUTGOING: |
52 self.setWindowTitle(self.trUtf8("Mercurial Outgoing Bookmarks")) |
52 self.setWindowTitle(self.tr("Mercurial Outgoing Bookmarks")) |
53 |
53 |
54 self.process = QProcess() |
54 self.process = QProcess() |
55 self.vcs = vcs |
55 self.vcs = vcs |
56 self.mode = mode |
56 self.mode = mode |
57 self.__hgClient = vcs.getClient() |
57 self.__hgClient = vcs.getClient() |
137 if not procStarted: |
137 if not procStarted: |
138 self.inputGroup.setEnabled(False) |
138 self.inputGroup.setEnabled(False) |
139 self.inputGroup.hide() |
139 self.inputGroup.hide() |
140 E5MessageBox.critical( |
140 E5MessageBox.critical( |
141 self, |
141 self, |
142 self.trUtf8('Process Generation Error'), |
142 self.tr('Process Generation Error'), |
143 self.trUtf8( |
143 self.tr( |
144 'The process {0} could not be started. ' |
144 'The process {0} could not be started. ' |
145 'Ensure, that it is in the search path.' |
145 'Ensure, that it is in the search path.' |
146 ).format('hg')) |
146 ).format('hg')) |
147 else: |
147 else: |
148 self.inputGroup.setEnabled(True) |
148 self.inputGroup.setEnabled(True) |
170 |
170 |
171 self.process = None |
171 self.process = None |
172 |
172 |
173 if self.bookmarksList.topLevelItemCount() == 0: |
173 if self.bookmarksList.topLevelItemCount() == 0: |
174 # no bookmarks defined |
174 # no bookmarks defined |
175 self.__generateItem(self.trUtf8("no bookmarks found"), "") |
175 self.__generateItem(self.tr("no bookmarks found"), "") |
176 self.__resizeColumns() |
176 self.__resizeColumns() |
177 self.__resort() |
177 self.__resort() |
178 |
178 |
179 def on_buttonBox_clicked(self, button): |
179 def on_buttonBox_clicked(self, button): |
180 """ |
180 """ |