Home ⌂Doc Index ◂Up ▴

eric6.Plugins.WizardPlugins.QRegExpWizard.QRegExpWizardDialog

Module implementing the QRegExp wizard dialog.

Global Attributes

None

Classes

QRegExpWizardDialog Class for the dialog variant.
QRegExpWizardWidget Class implementing the QRegExp wizard dialog.
QRegExpWizardWindow Main window class for the standalone dialog.

Functions

None


QRegExpWizardDialog

Class for the dialog variant.

Derived from

QDialog

Class Attributes

None

Class Methods

None

Methods

QRegExpWizardDialog Constructor
getCode Public method to get the source code.

Static Methods

None

QRegExpWizardDialog (Constructor)

QRegExpWizardDialog(parent=None, fromEric=True)

Constructor

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

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)
Up


QRegExpWizardWidget

Class implementing the QRegExp wizard dialog.

Derived from

QWidget, Ui_QRegExpWizardWidget

Class Attributes

None

Class Methods

None

Methods

QRegExpWizardWidget Constructor
__getPatternSyntaxCode Private method to convert a pattern syntax value into a pattern syntax string.
__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_loadButton_clicked Private slot to load a regexp from a file.
on_neglookaheadButton_clicked Private slot to handle the negative lookahead toolbutton.
on_nextButton_clicked Private slot to find the next match.
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_regexpLineEdit_textChanged Private slot called when the regexp changes.
on_repeatButton_clicked Private slot to handle the repeat toolbutton.
on_saveButton_clicked Private slot to save the regexp to a file.
on_syntaxCombo_currentIndexChanged Private slot handling the selection of a pattern syntax.
on_validateButton_clicked Private slot to validate the entered regexp.
on_w3cAltnButton_clicked Private slot to handle the alternatives toolbutton.
on_w3cAnycharButton_clicked Private slot to handle the W3C any character toolbutton.
on_w3cCharButton_clicked Private slot to handle the wildcard characters toolbutton.
on_w3cGroupButton_clicked Private slot to handle the W3C group toolbutton.
on_w3cRepeatButton_clicked Private slot to handle the W3C repeat toolbutton.
on_wildcardAnycharButton_clicked Private slot to handle the wildcard any character toolbutton.
on_wildcardCharButton_clicked Private slot to handle the wildcard characters toolbutton.
on_wildcardRepeatButton_clicked Private slot to handle the wildcard multiple characters toolbutton.
on_wordboundButton_clicked Private slot to handle the word boundary toolbutton.

Static Methods

None

QRegExpWizardWidget (Constructor)

QRegExpWizardWidget(parent=None, fromEric=True)

Constructor

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

QRegExpWizardWidget.__getPatternSyntaxCode

__getPatternSyntaxCode(syntaxValue)

Private method to convert a pattern syntax value into a pattern syntax string.

syntaxValue
pattern syntax value (integer)
Returns:
pattern syntax string (string)

QRegExpWizardWidget.__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)
steps
number of characters to move the cursor (integer). Negative steps moves cursor back, positives forward.

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

QRegExpWizardWidget.on_altnButton_clicked

on_altnButton_clicked()

Private slot to handle the alternatives toolbutton.

QRegExpWizardWidget.on_anycharButton_clicked

on_anycharButton_clicked()

Private slot to handle the any character toolbutton.

QRegExpWizardWidget.on_beglineButton_clicked

on_beglineButton_clicked()

Private slot to handle the begin line toolbutton.

QRegExpWizardWidget.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button
button that was clicked (QAbstractButton)

QRegExpWizardWidget.on_charButton_clicked

on_charButton_clicked()

Private slot to handle the characters toolbutton.

QRegExpWizardWidget.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 eric6.

QRegExpWizardWidget.on_endlineButton_clicked

on_endlineButton_clicked()

Private slot to handle the end line toolbutton.

QRegExpWizardWidget.on_executeButton_clicked

on_executeButton_clicked(startpos=0)

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.

startpos
starting position for the regexp matching

QRegExpWizardWidget.on_groupButton_clicked

on_groupButton_clicked()

Private slot to handle the group toolbutton.

QRegExpWizardWidget.on_loadButton_clicked

on_loadButton_clicked()

Private slot to load a regexp from a file.

QRegExpWizardWidget.on_neglookaheadButton_clicked

on_neglookaheadButton_clicked()

Private slot to handle the negative lookahead toolbutton.

QRegExpWizardWidget.on_nextButton_clicked

on_nextButton_clicked()

Private slot to find the next match.

QRegExpWizardWidget.on_nonGroupButton_clicked

on_nonGroupButton_clicked()

Private slot to handle the non group toolbutton.

QRegExpWizardWidget.on_nonwordboundButton_clicked

on_nonwordboundButton_clicked()

Private slot to handle the non word boundary toolbutton.

QRegExpWizardWidget.on_poslookaheadButton_clicked

on_poslookaheadButton_clicked()

Private slot to handle the positive lookahead toolbutton.

QRegExpWizardWidget.on_regexpLineEdit_textChanged

on_regexpLineEdit_textChanged(txt)

Private slot called when the regexp changes.

txt
the new text of the line edit (string)

QRegExpWizardWidget.on_repeatButton_clicked

on_repeatButton_clicked()

Private slot to handle the repeat toolbutton.

QRegExpWizardWidget.on_saveButton_clicked

on_saveButton_clicked()

Private slot to save the regexp to a file.

QRegExpWizardWidget.on_syntaxCombo_currentIndexChanged

on_syntaxCombo_currentIndexChanged(index)

Private slot handling the selection of a pattern syntax.

index
index of the selected entry (integer)

QRegExpWizardWidget.on_validateButton_clicked

on_validateButton_clicked()

Private slot to validate the entered regexp.

QRegExpWizardWidget.on_w3cAltnButton_clicked

on_w3cAltnButton_clicked()

Private slot to handle the alternatives toolbutton.

QRegExpWizardWidget.on_w3cAnycharButton_clicked

on_w3cAnycharButton_clicked()

Private slot to handle the W3C any character toolbutton.

QRegExpWizardWidget.on_w3cCharButton_clicked

on_w3cCharButton_clicked()

Private slot to handle the wildcard characters toolbutton.

QRegExpWizardWidget.on_w3cGroupButton_clicked

on_w3cGroupButton_clicked()

Private slot to handle the W3C group toolbutton.

QRegExpWizardWidget.on_w3cRepeatButton_clicked

on_w3cRepeatButton_clicked()

Private slot to handle the W3C repeat toolbutton.

QRegExpWizardWidget.on_wildcardAnycharButton_clicked

on_wildcardAnycharButton_clicked()

Private slot to handle the wildcard any character toolbutton.

QRegExpWizardWidget.on_wildcardCharButton_clicked

on_wildcardCharButton_clicked()

Private slot to handle the wildcard characters toolbutton.

QRegExpWizardWidget.on_wildcardRepeatButton_clicked

on_wildcardRepeatButton_clicked()

Private slot to handle the wildcard multiple characters toolbutton.

QRegExpWizardWidget.on_wordboundButton_clicked

on_wordboundButton_clicked()

Private slot to handle the word boundary toolbutton.

Up


QRegExpWizardWindow

Main window class for the standalone dialog.

Derived from

E5MainWindow

Class Attributes

None

Class Methods

None

Methods

QRegExpWizardWindow Constructor

Static Methods

None

QRegExpWizardWindow (Constructor)

QRegExpWizardWindow(parent=None)

Constructor

parent
reference to the parent widget (QWidget)
Up



Home ⌂Doc Index ◂Up ▴