Documentation/Source/eric5.Plugins.WizardPlugins.QRegExpWizard.QRegExpWizardCharactersDialog.html

changeset 1818
a5e4cb4bed43
parent 1229
a8207dc73672
child 2367
78f6c8193d37
equal deleted inserted replaced
1817:cb644326633e 1818:a5e4cb4bed43
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QDialog, Ui_QRegExpWizardCharactersDialog 49 QDialog, Ui_QRegExpWizardCharactersDialog
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
52 <tr><td>predefinedClasses</td></tr><tr><td>specialChars</td></tr> 52 <tr><td>RegExpMode</td></tr><tr><td>W3CMode</td></tr><tr><td>WildcardMode</td></tr>
53 </table> 53 </table>
54 <h3>Class Methods</h3> 54 <h3>Class Methods</h3>
55 <table> 55 <table>
56 <tr><td>None</td></tr> 56 <tr><td>None</td></tr>
57 </table> 57 </table>
68 <td>Private slot to add a line of entry widgets for single characters.</td> 68 <td>Private slot to add a line of entry widgets for single characters.</td>
69 </tr><tr> 69 </tr><tr>
70 <td><a href="#QRegExpWizardCharactersDialog.__formatCharacter">__formatCharacter</a></td> 70 <td><a href="#QRegExpWizardCharactersDialog.__formatCharacter">__formatCharacter</a></td>
71 <td>Private method to format the characters entered into the dialog.</td> 71 <td>Private method to format the characters entered into the dialog.</td>
72 </tr><tr> 72 </tr><tr>
73 <td><a href="#QRegExpWizardCharactersDialog.__initCharacterSelectors">__initCharacterSelectors</a></td>
74 <td>Private method to initialize the W3C character selector entries.</td>
75 </tr><tr>
73 <td><a href="#QRegExpWizardCharactersDialog.__performSelectedAction">__performSelectedAction</a></td> 76 <td><a href="#QRegExpWizardCharactersDialog.__performSelectedAction">__performSelectedAction</a></td>
74 <td>Private method performing some actions depending on the input.</td> 77 <td>Private method performing some actions depending on the input.</td>
78 </tr><tr>
79 <td><a href="#QRegExpWizardCharactersDialog.__populateCharTypeCombo">__populateCharTypeCombo</a></td>
80 <td>Private method to populate a given character type selection combo box.</td>
81 </tr><tr>
82 <td><a href="#QRegExpWizardCharactersDialog.__populateW3cCharacterCombo">__populateW3cCharacterCombo</a></td>
83 <td>Private method to populate a W3C character selection combo.</td>
75 </tr><tr> 84 </tr><tr>
76 <td><a href="#QRegExpWizardCharactersDialog.__rangesCharTypeSelected">__rangesCharTypeSelected</a></td> 85 <td><a href="#QRegExpWizardCharactersDialog.__rangesCharTypeSelected">__rangesCharTypeSelected</a></td>
77 <td>Private slot to handle the activated(int) signal of the char ranges combo boxes.</td> 86 <td>Private slot to handle the activated(int) signal of the char ranges combo boxes.</td>
78 </tr><tr> 87 </tr><tr>
79 <td><a href="#QRegExpWizardCharactersDialog.__singlesCharTypeSelected">__singlesCharTypeSelected</a></td> 88 <td><a href="#QRegExpWizardCharactersDialog.__singlesCharTypeSelected">__singlesCharTypeSelected</a></td>
87 <table> 96 <table>
88 <tr><td>None</td></tr> 97 <tr><td>None</td></tr>
89 </table> 98 </table>
90 <a NAME="QRegExpWizardCharactersDialog.__init__" ID="QRegExpWizardCharactersDialog.__init__"></a> 99 <a NAME="QRegExpWizardCharactersDialog.__init__" ID="QRegExpWizardCharactersDialog.__init__"></a>
91 <h4>QRegExpWizardCharactersDialog (Constructor)</h4> 100 <h4>QRegExpWizardCharactersDialog (Constructor)</h4>
92 <b>QRegExpWizardCharactersDialog</b>(<i>parent=None</i>) 101 <b>QRegExpWizardCharactersDialog</b>(<i>mode=RegExpMode, parent=None</i>)
93 <p> 102 <p>
94 Constructor 103 Constructor
95 </p><dl> 104 </p><dl>
96 <dt><i>parent</i></dt> 105 <dt><i>mode</i></dt>
106 <dd>
107 mode of the dialog (one of RegExpMode, WildcardMode, W3CMode)
108 </dd><dt><i>parent</i></dt>
97 <dd> 109 <dd>
98 parent widget (QWidget) 110 parent widget (QWidget)
99 </dd> 111 </dd>
100 </dl><a NAME="QRegExpWizardCharactersDialog.__addRangesLine" ID="QRegExpWizardCharactersDialog.__addRangesLine"></a> 112 </dl><a NAME="QRegExpWizardCharactersDialog.__addRangesLine" ID="QRegExpWizardCharactersDialog.__addRangesLine"></a>
101 <h4>QRegExpWizardCharactersDialog.__addRangesLine</h4> 113 <h4>QRegExpWizardCharactersDialog.__addRangesLine</h4>
107 <b>__addSinglesLine</b>(<i></i>) 119 <b>__addSinglesLine</b>(<i></i>)
108 <p> 120 <p>
109 Private slot to add a line of entry widgets for single characters. 121 Private slot to add a line of entry widgets for single characters.
110 </p><a NAME="QRegExpWizardCharactersDialog.__formatCharacter" ID="QRegExpWizardCharactersDialog.__formatCharacter"></a> 122 </p><a NAME="QRegExpWizardCharactersDialog.__formatCharacter" ID="QRegExpWizardCharactersDialog.__formatCharacter"></a>
111 <h4>QRegExpWizardCharactersDialog.__formatCharacter</h4> 123 <h4>QRegExpWizardCharactersDialog.__formatCharacter</h4>
112 <b>__formatCharacter</b>(<i>index, char</i>) 124 <b>__formatCharacter</b>(<i>char, format</i>)
113 <p> 125 <p>
114 Private method to format the characters entered into the dialog. 126 Private method to format the characters entered into the dialog.
115 </p><dl> 127 </p><dl>
116 <dt><i>index</i></dt> 128 <dt><i>char</i></dt>
117 <dd> 129 <dd>
118 selected list index (integer) 130 character string entered into the dialog (string)
119 </dd><dt><i>char</i></dt> 131 </dd><dt><i>format</i></dt>
120 <dd> 132 <dd>
121 character string enetered into the dialog (string) 133 string giving a special format (-c, -h, -i or -o) or
134 the already formatted character (string)
122 </dd> 135 </dd>
123 </dl><dl> 136 </dl><dl>
124 <dt>Returns:</dt> 137 <dt>Returns:</dt>
125 <dd> 138 <dd>
126 formated character string (string) 139 formatted character string (string)
127 </dd> 140 </dd>
128 </dl><a NAME="QRegExpWizardCharactersDialog.__performSelectedAction" ID="QRegExpWizardCharactersDialog.__performSelectedAction"></a> 141 </dl><a NAME="QRegExpWizardCharactersDialog.__initCharacterSelectors" ID="QRegExpWizardCharactersDialog.__initCharacterSelectors"></a>
142 <h4>QRegExpWizardCharactersDialog.__initCharacterSelectors</h4>
143 <b>__initCharacterSelectors</b>(<i></i>)
144 <p>
145 Private method to initialize the W3C character selector entries.
146 </p><a NAME="QRegExpWizardCharactersDialog.__performSelectedAction" ID="QRegExpWizardCharactersDialog.__performSelectedAction"></a>
129 <h4>QRegExpWizardCharactersDialog.__performSelectedAction</h4> 147 <h4>QRegExpWizardCharactersDialog.__performSelectedAction</h4>
130 <b>__performSelectedAction</b>(<i>index, lineedit</i>) 148 <b>__performSelectedAction</b>(<i>format, lineedit, combo</i>)
131 <p> 149 <p>
132 Private method performing some actions depending on the input. 150 Private method performing some actions depending on the input.
133 </p><dl> 151 </p><dl>
134 <dt><i>index</i></dt> 152 <dt><i>format</i></dt>
135 <dd> 153 <dd>
136 selected list index (integer) 154 format of the selected entry (string)
137 </dd><dt><i>lineedit</i></dt> 155 </dd><dt><i>lineedit</i></dt>
138 <dd> 156 <dd>
139 line edit widget to act on (QLineEdit) 157 line edit widget to act on (QLineEdit)
158 </dd><dt><i>combo</i></dt>
159 <dd>
160 combo box widget to act on (QComboBox)
161 </dd>
162 </dl><a NAME="QRegExpWizardCharactersDialog.__populateCharTypeCombo" ID="QRegExpWizardCharactersDialog.__populateCharTypeCombo"></a>
163 <h4>QRegExpWizardCharactersDialog.__populateCharTypeCombo</h4>
164 <b>__populateCharTypeCombo</b>(<i>combo, isSingle</i>)
165 <p>
166 Private method to populate a given character type selection combo box.
167 </p><dl>
168 <dt><i>combo</i></dt>
169 <dd>
170 reference to the combo box to be populated (QComboBox)
171 </dd><dt><i>isSingle</i></dt>
172 <dd>
173 flag indicating a singles combo (boolean)
174 </dd>
175 </dl><a NAME="QRegExpWizardCharactersDialog.__populateW3cCharacterCombo" ID="QRegExpWizardCharactersDialog.__populateW3cCharacterCombo"></a>
176 <h4>QRegExpWizardCharactersDialog.__populateW3cCharacterCombo</h4>
177 <b>__populateW3cCharacterCombo</b>(<i>combo, format</i>)
178 <p>
179 Private method to populate a W3C character selection combo.
180 </p><dl>
181 <dt><i>combo</i></dt>
182 <dd>
183 combo box to be populated (QComboBox)
184 </dd><dt><i>format</i></dt>
185 <dd>
186 format identifier (one of "-ccp", "-ccn", "-cbp", "-cbn")
140 </dd> 187 </dd>
141 </dl><a NAME="QRegExpWizardCharactersDialog.__rangesCharTypeSelected" ID="QRegExpWizardCharactersDialog.__rangesCharTypeSelected"></a> 188 </dl><a NAME="QRegExpWizardCharactersDialog.__rangesCharTypeSelected" ID="QRegExpWizardCharactersDialog.__rangesCharTypeSelected"></a>
142 <h4>QRegExpWizardCharactersDialog.__rangesCharTypeSelected</h4> 189 <h4>QRegExpWizardCharactersDialog.__rangesCharTypeSelected</h4>
143 <b>__rangesCharTypeSelected</b>(<i>index</i>) 190 <b>__rangesCharTypeSelected</b>(<i>index</i>)
144 <p> 191 <p>

eric ide

mercurial