Home ⌂Doc Index ◂Up ▴

eric6.Plugins.WizardPlugins.QRegExpWizard.QRegExpWizardCharactersDialog

Module implementing a dialog for entering character classes.

Global Attributes

None

Classes

QRegExpWizardCharactersDialog Class implementing a dialog for entering character classes.

Functions

None


QRegExpWizardCharactersDialog

Class implementing a dialog for entering character classes.

Derived from

QDialog, Ui_QRegExpWizardCharactersDialog

Class Attributes

RegExpMode
W3CMode
WildcardMode

Class Methods

None

Methods

QRegExpWizardCharactersDialog Constructor
__addRangesLine Private slot to add a line of entry widgets for character ranges.
__addSinglesLine Private slot to add a line of entry widgets for single characters.
__formatCharacter Private method to format the characters entered into the dialog.
__initCharacterSelectors Private method to initialize the W3C character selector entries.
__performSelectedAction Private method performing some actions depending on the input.
__populateCharTypeCombo Private method to populate a given character type selection combo box.
__populateW3cCharacterCombo Private method to populate a W3C character selection combo.
__rangesCharTypeSelected Private slot to handle the activated(int) signal of the char ranges combo boxes.
__singlesCharTypeSelected Private slot to handle the activated(int) signal of the single chars combo boxes.
getCharacters Public method to return the character string assembled via the dialog.

Static Methods

None

QRegExpWizardCharactersDialog (Constructor)

QRegExpWizardCharactersDialog(mode=RegExpMode, parent=None)

Constructor

mode
mode of the dialog (one of RegExpMode, WildcardMode, W3CMode)
parent
parent widget (QWidget)

QRegExpWizardCharactersDialog.__addRangesLine

__addRangesLine()

Private slot to add a line of entry widgets for character ranges.

QRegExpWizardCharactersDialog.__addSinglesLine

__addSinglesLine()

Private slot to add a line of entry widgets for single characters.

QRegExpWizardCharactersDialog.__formatCharacter

__formatCharacter(char, formatIdentifier)

Private method to format the characters entered into the dialog.

char
character string entered into the dialog (string)
formatIdentifier
string giving a special format (-c, -h, -i or -o) or the already formatted character (string)
Returns:
formatted character string (string)

QRegExpWizardCharactersDialog.__initCharacterSelectors

__initCharacterSelectors()

Private method to initialize the W3C character selector entries.

QRegExpWizardCharactersDialog.__performSelectedAction

__performSelectedAction(formatIdentifier, lineedit, combo)

Private method performing some actions depending on the input.

formatIdentifier
format of the selected entry (string)
lineedit
line edit widget to act on (QLineEdit)
combo
combo box widget to act on (QComboBox)

QRegExpWizardCharactersDialog.__populateCharTypeCombo

__populateCharTypeCombo(combo, isSingle)

Private method to populate a given character type selection combo box.

combo
reference to the combo box to be populated (QComboBox)
isSingle
flag indicating a singles combo (boolean)

QRegExpWizardCharactersDialog.__populateW3cCharacterCombo

__populateW3cCharacterCombo(combo, formatIdentifier)

Private method to populate a W3C character selection combo.

combo
combo box to be populated (QComboBox)
formatIdentifier
format identifier (one of "-ccp", "-ccn", "-cbp", "-cbn")

QRegExpWizardCharactersDialog.__rangesCharTypeSelected

__rangesCharTypeSelected(index, combo)

Private slot to handle the activated(int) signal of the char ranges combo boxes.

index (int)
selected list index
combo (QComboBox)
reference to the combo box

QRegExpWizardCharactersDialog.__singlesCharTypeSelected

__singlesCharTypeSelected(index, combo)

Private slot to handle the activated(int) signal of the single chars combo boxes.

index (int)
selected list index
combo (QComboBox)
reference to the combo box

QRegExpWizardCharactersDialog.getCharacters

getCharacters()

Public method to return the character string assembled via the dialog.

Returns:
formatted string for character classes (string)
Up



Home ⌂Doc Index ◂Up ▴