13 import sys |
13 import sys |
14 import json |
14 import json |
15 |
15 |
16 from PyQt5.QtCore import QFileInfo, pyqtSlot, QProcess, QByteArray |
16 from PyQt5.QtCore import QFileInfo, pyqtSlot, QProcess, QByteArray |
17 from PyQt5.QtGui import QClipboard, QTextCursor |
17 from PyQt5.QtGui import QClipboard, QTextCursor |
18 from PyQt5.QtWidgets import QWidget, QDialog, QInputDialog, QApplication, \ |
18 from PyQt5.QtWidgets import ( |
19 QDialogButtonBox, QVBoxLayout, QTableWidgetItem |
19 QWidget, QDialog, QInputDialog, QApplication, QDialogButtonBox, |
|
20 QVBoxLayout, QTableWidgetItem |
|
21 ) |
20 |
22 |
21 from E5Gui import E5MessageBox, E5FileDialog |
23 from E5Gui import E5MessageBox, E5FileDialog |
22 from E5Gui.E5MainWindow import E5MainWindow |
24 from E5Gui.E5MainWindow import E5MainWindow |
23 |
25 |
24 from .Ui_QRegularExpressionWizardDialog import \ |
26 from .Ui_QRegularExpressionWizardDialog import ( |
25 Ui_QRegularExpressionWizardDialog |
27 Ui_QRegularExpressionWizardDialog |
|
28 ) |
26 |
29 |
27 import UI.PixmapCache |
30 import UI.PixmapCache |
28 |
31 |
29 import Utilities |
32 import Utilities |
30 import Preferences |
33 import Preferences |
212 @pyqtSlot() |
215 @pyqtSlot() |
213 def on_charButton_clicked(self): |
216 def on_charButton_clicked(self): |
214 """ |
217 """ |
215 Private slot to handle the characters toolbutton. |
218 Private slot to handle the characters toolbutton. |
216 """ |
219 """ |
217 from .QRegularExpressionWizardCharactersDialog import \ |
220 from .QRegularExpressionWizardCharactersDialog import ( |
218 QRegularExpressionWizardCharactersDialog |
221 QRegularExpressionWizardCharactersDialog |
|
222 ) |
219 dlg = QRegularExpressionWizardCharactersDialog(self) |
223 dlg = QRegularExpressionWizardCharactersDialog(self) |
220 if dlg.exec_() == QDialog.Accepted: |
224 if dlg.exec_() == QDialog.Accepted: |
221 self.__insertString(dlg.getCharacters()) |
225 self.__insertString(dlg.getCharacters()) |
222 |
226 |
223 @pyqtSlot() |
227 @pyqtSlot() |
230 @pyqtSlot() |
234 @pyqtSlot() |
231 def on_repeatButton_clicked(self): |
235 def on_repeatButton_clicked(self): |
232 """ |
236 """ |
233 Private slot to handle the repeat toolbutton. |
237 Private slot to handle the repeat toolbutton. |
234 """ |
238 """ |
235 from .QRegularExpressionWizardRepeatDialog import \ |
239 from .QRegularExpressionWizardRepeatDialog import ( |
236 QRegularExpressionWizardRepeatDialog |
240 QRegularExpressionWizardRepeatDialog |
|
241 ) |
237 dlg = QRegularExpressionWizardRepeatDialog(self) |
242 dlg = QRegularExpressionWizardRepeatDialog(self) |
238 if dlg.exec_() == QDialog.Accepted: |
243 if dlg.exec_() == QDialog.Accepted: |
239 self.__insertString(dlg.getRepeat()) |
244 self.__insertString(dlg.getRepeat()) |
240 |
245 |
241 @pyqtSlot() |
246 @pyqtSlot() |