Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py

changeset 2407
b98cc8ee1142
parent 2302
f29e9405c851
child 2525
8b507a9a2d40
child 2752
5d556f9040e3
equal deleted inserted replaced
2406:975af671146d 2407:b98cc8ee1142
15 15
16 from E5Gui import E5MessageBox, E5FileDialog 16 from E5Gui import E5MessageBox, E5FileDialog
17 from E5Gui.E5MainWindow import E5MainWindow 17 from E5Gui.E5MainWindow import E5MainWindow
18 18
19 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardWidget 19 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardWidget
20
21 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog
22 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog
23 20
24 import UI.PixmapCache 21 import UI.PixmapCache
25 22
26 import Utilities 23 import Utilities
27 import Preferences 24 import Preferences
216 @pyqtSlot() 213 @pyqtSlot()
217 def on_repeatButton_clicked(self): 214 def on_repeatButton_clicked(self):
218 """ 215 """
219 Private slot to handle the repeat toolbutton. 216 Private slot to handle the repeat toolbutton.
220 """ 217 """
218 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog
221 dlg = QRegExpWizardRepeatDialog(self) 219 dlg = QRegExpWizardRepeatDialog(self)
222 if dlg.exec_() == QDialog.Accepted: 220 if dlg.exec_() == QDialog.Accepted:
223 self.__insertString(dlg.getRepeat()) 221 self.__insertString(dlg.getRepeat())
224 222
225 @pyqtSlot() 223 @pyqtSlot()
226 def on_charButton_clicked(self): 224 def on_charButton_clicked(self):
227 """ 225 """
228 Private slot to handle the characters toolbutton. 226 Private slot to handle the characters toolbutton.
229 """ 227 """
228 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog
230 dlg = QRegExpWizardCharactersDialog( 229 dlg = QRegExpWizardCharactersDialog(
231 mode=QRegExpWizardCharactersDialog.RegExpMode, parent=self) 230 mode=QRegExpWizardCharactersDialog.RegExpMode, parent=self)
232 if dlg.exec_() == QDialog.Accepted: 231 if dlg.exec_() == QDialog.Accepted:
233 self.__insertString(dlg.getCharacters()) 232 self.__insertString(dlg.getCharacters())
234 233
235 @pyqtSlot() 234 @pyqtSlot()
236 def on_wildcardCharButton_clicked(self): 235 def on_wildcardCharButton_clicked(self):
237 """ 236 """
238 Private slot to handle the wildcard characters toolbutton. 237 Private slot to handle the wildcard characters toolbutton.
239 """ 238 """
239 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog
240 dlg = QRegExpWizardCharactersDialog( 240 dlg = QRegExpWizardCharactersDialog(
241 mode=QRegExpWizardCharactersDialog.WildcardMode, parent=self) 241 mode=QRegExpWizardCharactersDialog.WildcardMode, parent=self)
242 if dlg.exec_() == QDialog.Accepted: 242 if dlg.exec_() == QDialog.Accepted:
243 self.__insertString(dlg.getCharacters()) 243 self.__insertString(dlg.getCharacters())
244 244
259 @pyqtSlot() 259 @pyqtSlot()
260 def on_w3cCharButton_clicked(self): 260 def on_w3cCharButton_clicked(self):
261 """ 261 """
262 Private slot to handle the wildcard characters toolbutton. 262 Private slot to handle the wildcard characters toolbutton.
263 """ 263 """
264 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog
264 dlg = QRegExpWizardCharactersDialog( 265 dlg = QRegExpWizardCharactersDialog(
265 mode=QRegExpWizardCharactersDialog.W3CMode, parent=self) 266 mode=QRegExpWizardCharactersDialog.W3CMode, parent=self)
266 if dlg.exec_() == QDialog.Accepted: 267 if dlg.exec_() == QDialog.Accepted:
267 self.__insertString(dlg.getCharacters()) 268 self.__insertString(dlg.getCharacters())
268 269
276 @pyqtSlot() 277 @pyqtSlot()
277 def on_w3cRepeatButton_clicked(self): 278 def on_w3cRepeatButton_clicked(self):
278 """ 279 """
279 Private slot to handle the W3C repeat toolbutton. 280 Private slot to handle the W3C repeat toolbutton.
280 """ 281 """
282 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog
281 dlg = QRegExpWizardRepeatDialog(self) 283 dlg = QRegExpWizardRepeatDialog(self)
282 if dlg.exec_() == QDialog.Accepted: 284 if dlg.exec_() == QDialog.Accepted:
283 self.__insertString(dlg.getRepeat()) 285 self.__insertString(dlg.getRepeat())
284 286
285 @pyqtSlot() 287 @pyqtSlot()

eric ide

mercurial