eric7.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardDialog

Module implementing the QRegularExpression wizard dialog.

Global Attributes

None

Classes

QRegularExpressionWizardDialog Class for the dialog variant.
QRegularExpressionWizardWidget Class implementing the QRegularExpression wizard dialog.
QRegularExpressionWizardWindow Main window class for the standalone dialog.

Functions

None


QRegularExpressionWizardDialog

Class for the dialog variant.

Derived from

QDialog

Class Attributes

None

Class Methods

None

Methods

QRegularExpressionWizardDialog Constructor
accept Public slot to hide the dialog and set the result code to Accepted.
getCode Public method to get the source code.
reject Public slot to hide the dialog and set the result code to Rejected.

Static Methods

None

QRegularExpressionWizardDialog (Constructor)

QRegularExpressionWizardDialog(parent=None, fromEric=True)

Constructor

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

QRegularExpressionWizardDialog.accept

accept()

Public slot to hide the dialog and set the result code to Accepted.

QRegularExpressionWizardDialog.getCode

getCode(indLevel, indString)

Public method to get the source code.

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

QRegularExpressionWizardDialog.reject

reject()

Public slot to hide the dialog and set the result code to Rejected.

Up


QRegularExpressionWizardWidget

Class implementing the QRegularExpression wizard dialog.

Derived from

QWidget, Ui_QRegularExpressionWizardDialog

Class Attributes

None

Class Methods

None

Methods

QRegularExpressionWizardWidget Constructor
__insertString Private method to insert a string into line edit and move cursor.
__receiveResponse Private method to receive a response from the server.
__sendCommand Private method to send a command to the server.
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_atomicGroupButton_clicked Private slot to handle the atomic non group 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_commentButton_clicked Private slot to handle the comment toolbutton.
on_copyButton_clicked Private slot to copy the QRegularExpression string into the clipboard.
on_endlineButton_clicked Private slot to handle the end line toolbutton.
on_executeButton_clicked Private slot to execute the entered QRegularExpression on the test text.
on_groupButton_clicked Private slot to handle the group toolbutton.
on_loadButton_clicked Private slot to load a QRegularExpression from a file.
on_namedGroupButton_clicked Private slot to handle the named group toolbutton.
on_namedReferenceButton_clicked Private slot to handle the named reference toolbutton.
on_neglookaheadButton_clicked Private slot to handle the negative lookahead toolbutton.
on_neglookbehindButton_clicked Private slot to handle the negative lookbehind 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_poslookbehindButton_clicked Private slot to handle the positive lookbehind toolbutton.
on_redoButton_clicked Private slot to handle the redo action.
on_regexpTextEdit_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 QRegularExpression to a file.
on_undoButton_clicked Private slot to handle the undo action.
on_validateButton_clicked Private slot to validate the entered QRegularExpression.
on_wordboundButton_clicked Private slot to handle the word boundary toolbutton.
shutdown Public method to shut down the server part.

Static Methods

None

QRegularExpressionWizardWidget (Constructor)

QRegularExpressionWizardWidget(parent=None, fromEric=True)

Constructor

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

QRegularExpressionWizardWidget.__insertString

__insertString(s, steps=0)

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

s (str)
string to be inserted into the regexp line edit
steps (int)
number of characters to move the cursor. Negative steps move cursor back, positive steps forward.

QRegularExpressionWizardWidget.__receiveResponse

__receiveResponse()

Private method to receive a response from the server.

Return:
response dictionary
Return Type:
dict

QRegularExpressionWizardWidget.__sendCommand

__sendCommand(command, **kw)

Private method to send a command to the server.

command (dict)
dictionary with command string and related data
kw= (dict)
parameters for the command
Return:
flag indicating a successful transmission
Return Type:
bool

QRegularExpressionWizardWidget.getCode

getCode(indLevel, indString)

Public method to get the source code.

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

QRegularExpressionWizardWidget.on_altnButton_clicked

on_altnButton_clicked()

Private slot to handle the alternatives toolbutton.

QRegularExpressionWizardWidget.on_anycharButton_clicked

on_anycharButton_clicked()

Private slot to handle the any character toolbutton.

QRegularExpressionWizardWidget.on_atomicGroupButton_clicked

on_atomicGroupButton_clicked()

Private slot to handle the atomic non group toolbutton.

QRegularExpressionWizardWidget.on_beglineButton_clicked

on_beglineButton_clicked()

Private slot to handle the begin line toolbutton.

QRegularExpressionWizardWidget.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button (QAbstractButton)
button that was clicked

QRegularExpressionWizardWidget.on_charButton_clicked

on_charButton_clicked()

Private slot to handle the characters toolbutton.

QRegularExpressionWizardWidget.on_commentButton_clicked

on_commentButton_clicked()

Private slot to handle the comment toolbutton.

QRegularExpressionWizardWidget.on_copyButton_clicked

on_copyButton_clicked()

Private slot to copy the QRegularExpression string into the clipboard.

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

QRegularExpressionWizardWidget.on_endlineButton_clicked

on_endlineButton_clicked()

Private slot to handle the end line toolbutton.

QRegularExpressionWizardWidget.on_executeButton_clicked

on_executeButton_clicked(startpos=0)

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

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

startpos (int)
starting position for the QRegularExpression matching

QRegularExpressionWizardWidget.on_groupButton_clicked

on_groupButton_clicked()

Private slot to handle the group toolbutton.

QRegularExpressionWizardWidget.on_loadButton_clicked

on_loadButton_clicked()

Private slot to load a QRegularExpression from a file.

QRegularExpressionWizardWidget.on_namedGroupButton_clicked

on_namedGroupButton_clicked()

Private slot to handle the named group toolbutton.

QRegularExpressionWizardWidget.on_namedReferenceButton_clicked

on_namedReferenceButton_clicked()

Private slot to handle the named reference toolbutton.

QRegularExpressionWizardWidget.on_neglookaheadButton_clicked

on_neglookaheadButton_clicked()

Private slot to handle the negative lookahead toolbutton.

QRegularExpressionWizardWidget.on_neglookbehindButton_clicked

on_neglookbehindButton_clicked()

Private slot to handle the negative lookbehind toolbutton.

QRegularExpressionWizardWidget.on_nextButton_clicked

on_nextButton_clicked()

Private slot to find the next match.

QRegularExpressionWizardWidget.on_nonGroupButton_clicked

on_nonGroupButton_clicked()

Private slot to handle the non group toolbutton.

QRegularExpressionWizardWidget.on_nonwordboundButton_clicked

on_nonwordboundButton_clicked()

Private slot to handle the non word boundary toolbutton.

QRegularExpressionWizardWidget.on_poslookaheadButton_clicked

on_poslookaheadButton_clicked()

Private slot to handle the positive lookahead toolbutton.

QRegularExpressionWizardWidget.on_poslookbehindButton_clicked

on_poslookbehindButton_clicked()

Private slot to handle the positive lookbehind toolbutton.

QRegularExpressionWizardWidget.on_redoButton_clicked

on_redoButton_clicked()

Private slot to handle the redo action.

QRegularExpressionWizardWidget.on_regexpTextEdit_textChanged

on_regexpTextEdit_textChanged()

Private slot called when the regexp changes.

QRegularExpressionWizardWidget.on_repeatButton_clicked

on_repeatButton_clicked()

Private slot to handle the repeat toolbutton.

QRegularExpressionWizardWidget.on_saveButton_clicked

on_saveButton_clicked()

Private slot to save the QRegularExpression to a file.

QRegularExpressionWizardWidget.on_undoButton_clicked

on_undoButton_clicked()

Private slot to handle the undo action.

QRegularExpressionWizardWidget.on_validateButton_clicked

on_validateButton_clicked()

Private slot to validate the entered QRegularExpression.

QRegularExpressionWizardWidget.on_wordboundButton_clicked

on_wordboundButton_clicked()

Private slot to handle the word boundary toolbutton.

QRegularExpressionWizardWidget.shutdown

shutdown()

Public method to shut down the server part.

Up


QRegularExpressionWizardWindow

Main window class for the standalone dialog.

Derived from

EricMainWindow

Class Attributes

None

Class Methods

None

Methods

QRegularExpressionWizardWindow Constructor
closeEvent Protected method handling the close event.

Static Methods

None

QRegularExpressionWizardWindow (Constructor)

QRegularExpressionWizardWindow(parent=None)

Constructor

parent (QWidget)
reference to the parent widget

QRegularExpressionWizardWindow.closeEvent

closeEvent(evt)

Protected method handling the close event.

evt (QCloseEvent)
close event
Up