227 """ |
227 """ |
228 Private slot to handle the repeat toolbutton. |
228 Private slot to handle the repeat toolbutton. |
229 """ |
229 """ |
230 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
230 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
231 dlg = QRegExpWizardRepeatDialog(self) |
231 dlg = QRegExpWizardRepeatDialog(self) |
232 if dlg.exec_() == QDialog.Accepted: |
232 if dlg.exec() == QDialog.Accepted: |
233 self.__insertString(dlg.getRepeat()) |
233 self.__insertString(dlg.getRepeat()) |
234 |
234 |
235 @pyqtSlot() |
235 @pyqtSlot() |
236 def on_charButton_clicked(self): |
236 def on_charButton_clicked(self): |
237 """ |
237 """ |
240 from .QRegExpWizardCharactersDialog import ( |
240 from .QRegExpWizardCharactersDialog import ( |
241 QRegExpWizardCharactersDialog |
241 QRegExpWizardCharactersDialog |
242 ) |
242 ) |
243 dlg = QRegExpWizardCharactersDialog( |
243 dlg = QRegExpWizardCharactersDialog( |
244 mode=QRegExpWizardCharactersDialog.RegExpMode, parent=self) |
244 mode=QRegExpWizardCharactersDialog.RegExpMode, parent=self) |
245 if dlg.exec_() == QDialog.Accepted: |
245 if dlg.exec() == QDialog.Accepted: |
246 self.__insertString(dlg.getCharacters()) |
246 self.__insertString(dlg.getCharacters()) |
247 |
247 |
248 @pyqtSlot() |
248 @pyqtSlot() |
249 def on_wildcardCharButton_clicked(self): |
249 def on_wildcardCharButton_clicked(self): |
250 """ |
250 """ |
253 from .QRegExpWizardCharactersDialog import ( |
253 from .QRegExpWizardCharactersDialog import ( |
254 QRegExpWizardCharactersDialog |
254 QRegExpWizardCharactersDialog |
255 ) |
255 ) |
256 dlg = QRegExpWizardCharactersDialog( |
256 dlg = QRegExpWizardCharactersDialog( |
257 mode=QRegExpWizardCharactersDialog.WildcardMode, parent=self) |
257 mode=QRegExpWizardCharactersDialog.WildcardMode, parent=self) |
258 if dlg.exec_() == QDialog.Accepted: |
258 if dlg.exec() == QDialog.Accepted: |
259 self.__insertString(dlg.getCharacters()) |
259 self.__insertString(dlg.getCharacters()) |
260 |
260 |
261 @pyqtSlot() |
261 @pyqtSlot() |
262 def on_wildcardAnycharButton_clicked(self): |
262 def on_wildcardAnycharButton_clicked(self): |
263 """ |
263 """ |
280 from .QRegExpWizardCharactersDialog import ( |
280 from .QRegExpWizardCharactersDialog import ( |
281 QRegExpWizardCharactersDialog |
281 QRegExpWizardCharactersDialog |
282 ) |
282 ) |
283 dlg = QRegExpWizardCharactersDialog( |
283 dlg = QRegExpWizardCharactersDialog( |
284 mode=QRegExpWizardCharactersDialog.W3CMode, parent=self) |
284 mode=QRegExpWizardCharactersDialog.W3CMode, parent=self) |
285 if dlg.exec_() == QDialog.Accepted: |
285 if dlg.exec() == QDialog.Accepted: |
286 self.__insertString(dlg.getCharacters()) |
286 self.__insertString(dlg.getCharacters()) |
287 |
287 |
288 @pyqtSlot() |
288 @pyqtSlot() |
289 def on_w3cAnycharButton_clicked(self): |
289 def on_w3cAnycharButton_clicked(self): |
290 """ |
290 """ |
297 """ |
297 """ |
298 Private slot to handle the W3C repeat toolbutton. |
298 Private slot to handle the W3C repeat toolbutton. |
299 """ |
299 """ |
300 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
300 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
301 dlg = QRegExpWizardRepeatDialog(self) |
301 dlg = QRegExpWizardRepeatDialog(self) |
302 if dlg.exec_() == QDialog.Accepted: |
302 if dlg.exec() == QDialog.Accepted: |
303 self.__insertString(dlg.getRepeat()) |
303 self.__insertString(dlg.getRepeat()) |
304 |
304 |
305 @pyqtSlot() |
305 @pyqtSlot() |
306 def on_w3cGroupButton_clicked(self): |
306 def on_w3cGroupButton_clicked(self): |
307 """ |
307 """ |