eric3.Wizards.PyRegExpWizard.PyRegExpWizardDialog

Module implementing the Python re wizard dialog.

Classes

PyRegExpWizardDialog Class implementing the Python re wizard dialog.

Functions

None


PyRegExpWizardDialog

Class implementing the Python re wizard dialog.

Derived from

PyRegExpWizardForm

Methods

PyRegExpWizardDialog 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.
handleComment Private slot to handle the comment toolbutton.
handleEndLine Private slot to handle the end line toolbutton.
handleGroup Private slot to handle the group toolbutton.
handleNamedGroup Private slot to handle the named group toolbutton.
handleNamedReference Private slot to handle the named reference toolbutton.
handleNegLookahead Private slot to handle the negative lookahead toolbutton.
handleNegLookbehind Private slot to handle the negative lookbehind toolbutton.
handleNonGroup Private slot to handle the non group toolbutton.
handleNonWordBoundary Private slot to handle the non word boundary toolbutton.
handlePosLookahead Private slot to handle the positive lookahead toolbutton.
handlePosLookbehind Private slot to handle the positive lookbehind 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.

PyRegExpWizardDialog (Constructor)

PyRegExpWizardDialog(parent = None, fromEric = 1)

Constructor

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

PyRegExpWizardDialog.copy

copy()

Private slot to copy the regexp string into the clipboard. This slot is only available, if not called from within eric3.

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

PyRegExpWizardDialog.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)

PyRegExpWizardDialog.handleAlternatives

handleAlternatives()

Private slot to handle the alternatives toolbutton.

PyRegExpWizardDialog.handleAnyChar

handleAnyChar()

Private slot to handle the any character toolbutton.

PyRegExpWizardDialog.handleBeginLine

handleBeginLine()

Private slot to handle the begin line toolbutton.

PyRegExpWizardDialog.handleCharacters

handleCharacters()

Private slot to handle the characters toolbutton.

PyRegExpWizardDialog.handleComment

handleComment()

Private slot to handle the comment toolbutton.

PyRegExpWizardDialog.handleEndLine

handleEndLine()

Private slot to handle the end line toolbutton.

PyRegExpWizardDialog.handleGroup

handleGroup()

Private slot to handle the group toolbutton.

PyRegExpWizardDialog.handleNamedGroup

handleNamedGroup()

Private slot to handle the named group toolbutton.

PyRegExpWizardDialog.handleNamedReference

handleNamedReference()

Private slot to handle the named reference toolbutton.

PyRegExpWizardDialog.handleNegLookahead

handleNegLookahead()

Private slot to handle the negative lookahead toolbutton.

PyRegExpWizardDialog.handleNegLookbehind

handleNegLookbehind()

Private slot to handle the negative lookbehind toolbutton.

PyRegExpWizardDialog.handleNonGroup

handleNonGroup()

Private slot to handle the non group toolbutton.

PyRegExpWizardDialog.handleNonWordBoundary

handleNonWordBoundary()

Private slot to handle the non word boundary toolbutton.

PyRegExpWizardDialog.handlePosLookahead

handlePosLookahead()

Private slot to handle the positive lookahead toolbutton.

PyRegExpWizardDialog.handlePosLookbehind

handlePosLookbehind()

Private slot to handle the positive lookbehind toolbutton.

PyRegExpWizardDialog.handleRepeat

handleRepeat()

Private slot to handle the repeat toolbutton.

PyRegExpWizardDialog.handleWordBoundary

handleWordBoundary()

Private slot to handle the word boundary toolbutton.

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

PyRegExpWizardDialog.validate

validate()

Private slot to validate the entered regexp.

Up