eric4.Wizards.QRegExpWizard.QRegExpWizardDialog

Module implementing the QRegExp wizard dialog.

Classes

QRegExpWizardDialog Class implementing the QRegExp wizard dialog.

Functions

None


QRegExpWizardDialog

Class implementing the QRegExp wizard dialog.

Derived from

QDialog, Ui_QRegExpWizardDialog

Methods

QRegExpWizardDialog Constructor
__insertString Private method to insert a string into line edit and move cursor.
getCode Public method to get the source code.
on_altnButton_clicked Private slot to handle the alternatives toolbutton.
on_anycharButton_clicked Private slot to handle the any character toolbutton.
on_beglineButton_clicked Private slot to handle the begin line toolbutton.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_charButton_clicked Private slot to handle the characters toolbutton.
on_copyButton_clicked Private slot to copy the regexp string into the clipboard.
on_endlineButton_clicked Private slot to handle the end line toolbutton.
on_executeButton_clicked Private slot to execute the entered regexp on the test text.
on_groupButton_clicked Private slot to handle the group toolbutton.
on_neglookaheadButton_clicked Private slot to handle the negative lookahead toolbutton.
on_nonGroupButton_clicked Private slot to handle the non group toolbutton.
on_nonwordboundButton_clicked Private slot to handle the non word boundary toolbutton.
on_poslookaheadButton_clicked Private slot to handle the positive lookahead toolbutton.
on_repeatButton_clicked Private slot to handle the repeat toolbutton.
on_validateButton_clicked Private slot to validate the entered regexp.
on_wordboundButton_clicked Private slot to handle the word boundary toolbutton.

QRegExpWizardDialog (Constructor)

QRegExpWizardDialog(parent = None, fromEric = True)

Constructor

parent
parent widget (QWidget)
fromEric
flag indicating a call from within eric4

QRegExpWizardDialog.__insertString

__insertString(s, steps=0)

Private method to insert a string into line edit and move cursor.

s
string to be inserted into the regexp line edit (string or QString)
steps
number of characters to move the cursor (integer). Negative steps moves cursor back, positives forward.

QRegExpWizardDialog.getCode

getCode(indLevel, indString)

Public method to get the source code.

indLevel
indentation level (int)
indString
string used for indentation (space or tab) (string)
Returns:
generated code (string)

QRegExpWizardDialog.on_altnButton_clicked

on_altnButton_clicked()

Private slot to handle the alternatives toolbutton.

QRegExpWizardDialog.on_anycharButton_clicked

on_anycharButton_clicked()

Private slot to handle the any character toolbutton.

QRegExpWizardDialog.on_beglineButton_clicked

on_beglineButton_clicked()

Private slot to handle the begin line toolbutton.

QRegExpWizardDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button
button that was clicked (QAbstractButton)

QRegExpWizardDialog.on_charButton_clicked

on_charButton_clicked()

Private slot to handle the characters toolbutton.

QRegExpWizardDialog.on_copyButton_clicked

on_copyButton_clicked()

Private slot to copy the regexp string into the clipboard.

This slot is only available, if not called from within eric4.

QRegExpWizardDialog.on_endlineButton_clicked

on_endlineButton_clicked()

Private slot to handle the end line toolbutton.

QRegExpWizardDialog.on_executeButton_clicked

on_executeButton_clicked()

Private slot to execute the entered regexp on the test text.

This slot will execute the entered regexp on the entered test data and will display the result in the table part of the dialog.

QRegExpWizardDialog.on_groupButton_clicked

on_groupButton_clicked()

Private slot to handle the group toolbutton.

QRegExpWizardDialog.on_neglookaheadButton_clicked

on_neglookaheadButton_clicked()

Private slot to handle the negative lookahead toolbutton.

QRegExpWizardDialog.on_nonGroupButton_clicked

on_nonGroupButton_clicked()

Private slot to handle the non group toolbutton.

QRegExpWizardDialog.on_nonwordboundButton_clicked

on_nonwordboundButton_clicked()

Private slot to handle the non word boundary toolbutton.

QRegExpWizardDialog.on_poslookaheadButton_clicked

on_poslookaheadButton_clicked()

Private slot to handle the positive lookahead toolbutton.

QRegExpWizardDialog.on_repeatButton_clicked

on_repeatButton_clicked()

Private slot to handle the repeat toolbutton.

QRegExpWizardDialog.on_validateButton_clicked

on_validateButton_clicked()

Private slot to validate the entered regexp.

QRegExpWizardDialog.on_wordboundButton_clicked

on_wordboundButton_clicked()

Private slot to handle the word boundary toolbutton.

Up