eric3.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

QRegExpWizardForm

Methods

QRegExpWizardDialog Constructor
copy Private slot to copy the regexp string into the clipboard.
execute Private slot to execute the entered regexp on the test text.
getCode Public method to get the source code.
handleAlternatives Private slot to handle the alternatives toolbutton.
handleAnyChar Private slot to handle the any character toolbutton.
handleBeginLine Private slot to handle the begin line toolbutton.
handleCharacters Private slot to handle the characters toolbutton.
handleEndLine Private slot to handle the end line toolbutton.
handleGroup Private slot to handle the group toolbutton.
handleNegLookahead Private slot to handle the negative lookahead toolbutton.
handleNonWordBoundary Private slot to handle the non word boundary toolbutton.
handlePosLookahead Private slot to handle the positive lookahead toolbutton.
handleRepeat Private slot to handle the repeat toolbutton.
handleWordBoundary Private slot to handle the word boundary toolbutton.
insertString Private method to insert a string into line edit and move cursor.
validate Private slot to validate the entered regexp.

QRegExpWizardDialog (Constructor)

QRegExpWizardDialog(parent = None, fromEric = 1)

Constructor

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

QRegExpWizardDialog.copy

copy()

Private slot to copy the regexp string into the clipboard.

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

QRegExpWizardDialog.execute

execute()

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.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.handleAlternatives

handleAlternatives()

Private slot to handle the alternatives toolbutton.

QRegExpWizardDialog.handleAnyChar

handleAnyChar()

Private slot to handle the any character toolbutton.

QRegExpWizardDialog.handleBeginLine

handleBeginLine()

Private slot to handle the begin line toolbutton.

QRegExpWizardDialog.handleCharacters

handleCharacters()

Private slot to handle the characters toolbutton.

QRegExpWizardDialog.handleEndLine

handleEndLine()

Private slot to handle the end line toolbutton.

QRegExpWizardDialog.handleGroup

handleGroup()

Private slot to handle the group toolbutton.

QRegExpWizardDialog.handleNegLookahead

handleNegLookahead()

Private slot to handle the negative lookahead toolbutton.

QRegExpWizardDialog.handleNonWordBoundary

handleNonWordBoundary()

Private slot to handle the non word boundary toolbutton.

QRegExpWizardDialog.handlePosLookahead

handlePosLookahead()

Private slot to handle the positive lookahead toolbutton.

QRegExpWizardDialog.handleRepeat

handleRepeat()

Private slot to handle the repeat toolbutton.

QRegExpWizardDialog.handleWordBoundary

handleWordBoundary()

Private slot to handle the word boundary toolbutton.

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.validate

validate()

Private slot to validate the entered regexp.

Up