16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardCharactersDialog</h1> |
23 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardCharactersDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog for entering character classes. |
26 Module implementing a dialog for entering character classes. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#QRegularExpressionWizardCharactersDialog">QRegularExpressionWizardCharactersDialog</a></td> |
38 <td><a href="#QRegularExpressionWizardCharactersDialog">QRegularExpressionWizardCharactersDialog</a></td> |
34 <td>Class implementing a dialog for entering character classes.</td> |
39 <td>Class implementing a dialog for entering character classes.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="QRegularExpressionWizardCharactersDialog" ID="QRegularExpressionWizardCharactersDialog"></a> |
49 <a NAME="QRegularExpressionWizardCharactersDialog" ID="QRegularExpressionWizardCharactersDialog"></a> |
43 <h2>QRegularExpressionWizardCharactersDialog</h2> |
50 <h2>QRegularExpressionWizardCharactersDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog for entering character classes. |
53 Class implementing a dialog for entering character classes. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_QRegularExpressionWizardCharactersDialog |
56 QDialog, Ui_QRegularExpressionWizardCharactersDialog |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#QRegularExpressionWizardCharactersDialog.__init__">QRegularExpressionWizardCharactersDialog</a></td> |
72 <td><a href="#QRegularExpressionWizardCharactersDialog.__init__">QRegularExpressionWizardCharactersDialog</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#QRegularExpressionWizardCharactersDialog.__addRangesLine">__addRangesLine</a></td> |
76 <td><a href="#QRegularExpressionWizardCharactersDialog.__addRangesLine">__addRangesLine</a></td> |
64 <td>Private slot to add a line of entry widgets for character ranges.</td> |
77 <td>Private slot to add a line of entry widgets for character ranges.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#QRegularExpressionWizardCharactersDialog.__addSinglesLine">__addSinglesLine</a></td> |
80 <td><a href="#QRegularExpressionWizardCharactersDialog.__addSinglesLine">__addSinglesLine</a></td> |
67 <td>Private slot to add a line of entry widgets for single characters.</td> |
81 <td>Private slot to add a line of entry widgets for single characters.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#QRegularExpressionWizardCharactersDialog.__formatCharacter">__formatCharacter</a></td> |
84 <td><a href="#QRegularExpressionWizardCharactersDialog.__formatCharacter">__formatCharacter</a></td> |
70 <td>Private method to format the characters entered into the dialog.</td> |
85 <td>Private method to format the characters entered into the dialog.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#QRegularExpressionWizardCharactersDialog.__initCharacterSelectors">__initCharacterSelectors</a></td> |
88 <td><a href="#QRegularExpressionWizardCharactersDialog.__initCharacterSelectors">__initCharacterSelectors</a></td> |
73 <td>Private method to initialize the W3C character selector entries.</td> |
89 <td>Private method to initialize the W3C character selector entries.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#QRegularExpressionWizardCharactersDialog.__performSelectedAction">__performSelectedAction</a></td> |
92 <td><a href="#QRegularExpressionWizardCharactersDialog.__performSelectedAction">__performSelectedAction</a></td> |
76 <td>Private method performing some actions depending on the input.</td> |
93 <td>Private method performing some actions depending on the input.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo">__populateCharTypeCombo</a></td> |
96 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo">__populateCharTypeCombo</a></td> |
79 <td>Private method to populate a given character type selection combo box.</td> |
97 <td>Private method to populate a given character type selection combo box.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharacterCombo">__populateCharacterCombo</a></td> |
100 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharacterCombo">__populateCharacterCombo</a></td> |
82 <td>Private method to populate a character selection combo.</td> |
101 <td>Private method to populate a character selection combo.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected">__rangesCharTypeSelected</a></td> |
104 <td><a href="#QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected">__rangesCharTypeSelected</a></td> |
85 <td>Private slot to handle the activated(int) signal of the char ranges combo boxes.</td> |
105 <td>Private slot to handle the activated(int) signal of the char ranges combo boxes.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected">__singlesCharTypeSelected</a></td> |
108 <td><a href="#QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected">__singlesCharTypeSelected</a></td> |
88 <td>Private slot to handle the activated(int) signal of the single chars combo boxes.</td> |
109 <td>Private slot to handle the activated(int) signal of the single chars combo boxes.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#QRegularExpressionWizardCharactersDialog.getCharacters">getCharacters</a></td> |
112 <td><a href="#QRegularExpressionWizardCharactersDialog.getCharacters">getCharacters</a></td> |
91 <td>Public method to return the character string assembled via the dialog.</td> |
113 <td>Public method to return the character string assembled via the dialog.</td> |
92 </tr> |
114 </tr> |
93 </table> |
115 </table> |
94 <h3>Static Methods</h3> |
116 <h3>Static Methods</h3> |
95 <table> |
117 |
96 <tr><td>None</td></tr> |
118 <table> |
97 </table> |
119 <tr><td>None</td></tr> |
|
120 </table> |
|
121 |
98 <a NAME="QRegularExpressionWizardCharactersDialog.__init__" ID="QRegularExpressionWizardCharactersDialog.__init__"></a> |
122 <a NAME="QRegularExpressionWizardCharactersDialog.__init__" ID="QRegularExpressionWizardCharactersDialog.__init__"></a> |
99 <h4>QRegularExpressionWizardCharactersDialog (Constructor)</h4> |
123 <h4>QRegularExpressionWizardCharactersDialog (Constructor)</h4> |
100 <b>QRegularExpressionWizardCharactersDialog</b>(<i>parent=None</i>) |
124 <b>QRegularExpressionWizardCharactersDialog</b>(<i>parent=None</i>) |
|
125 |
101 <p> |
126 <p> |
102 Constructor |
127 Constructor |
103 </p><dl> |
128 </p> |
|
129 <dl> |
|
130 |
104 <dt><i>parent</i></dt> |
131 <dt><i>parent</i></dt> |
105 <dd> |
132 <dd> |
106 reference to the parent widget (QWidget) |
133 reference to the parent widget (QWidget) |
107 </dd> |
134 </dd> |
108 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__addRangesLine" ID="QRegularExpressionWizardCharactersDialog.__addRangesLine"></a> |
135 </dl> |
|
136 <a NAME="QRegularExpressionWizardCharactersDialog.__addRangesLine" ID="QRegularExpressionWizardCharactersDialog.__addRangesLine"></a> |
109 <h4>QRegularExpressionWizardCharactersDialog.__addRangesLine</h4> |
137 <h4>QRegularExpressionWizardCharactersDialog.__addRangesLine</h4> |
110 <b>__addRangesLine</b>(<i></i>) |
138 <b>__addRangesLine</b>(<i></i>) |
|
139 |
111 <p> |
140 <p> |
112 Private slot to add a line of entry widgets for character ranges. |
141 Private slot to add a line of entry widgets for character ranges. |
113 </p><a NAME="QRegularExpressionWizardCharactersDialog.__addSinglesLine" ID="QRegularExpressionWizardCharactersDialog.__addSinglesLine"></a> |
142 </p> |
|
143 <a NAME="QRegularExpressionWizardCharactersDialog.__addSinglesLine" ID="QRegularExpressionWizardCharactersDialog.__addSinglesLine"></a> |
114 <h4>QRegularExpressionWizardCharactersDialog.__addSinglesLine</h4> |
144 <h4>QRegularExpressionWizardCharactersDialog.__addSinglesLine</h4> |
115 <b>__addSinglesLine</b>(<i></i>) |
145 <b>__addSinglesLine</b>(<i></i>) |
|
146 |
116 <p> |
147 <p> |
117 Private slot to add a line of entry widgets for single characters. |
148 Private slot to add a line of entry widgets for single characters. |
118 </p><a NAME="QRegularExpressionWizardCharactersDialog.__formatCharacter" ID="QRegularExpressionWizardCharactersDialog.__formatCharacter"></a> |
149 </p> |
|
150 <a NAME="QRegularExpressionWizardCharactersDialog.__formatCharacter" ID="QRegularExpressionWizardCharactersDialog.__formatCharacter"></a> |
119 <h4>QRegularExpressionWizardCharactersDialog.__formatCharacter</h4> |
151 <h4>QRegularExpressionWizardCharactersDialog.__formatCharacter</h4> |
120 <b>__formatCharacter</b>(<i>char, formatIdentifier</i>) |
152 <b>__formatCharacter</b>(<i>char, formatIdentifier</i>) |
|
153 |
121 <p> |
154 <p> |
122 Private method to format the characters entered into the dialog. |
155 Private method to format the characters entered into the dialog. |
123 </p><dl> |
156 </p> |
|
157 <dl> |
|
158 |
124 <dt><i>char</i></dt> |
159 <dt><i>char</i></dt> |
125 <dd> |
160 <dd> |
126 character string entered into the dialog (string) |
161 character string entered into the dialog (string) |
127 </dd><dt><i>formatIdentifier</i></dt> |
162 </dd> |
|
163 <dt><i>formatIdentifier</i></dt> |
128 <dd> |
164 <dd> |
129 string giving a special format (-c, -h, -i or |
165 string giving a special format (-c, -h, -i or |
130 -o) or the already formatted character (string) |
166 -o) or the already formatted character (string) |
131 </dd> |
167 </dd> |
132 </dl><dl> |
168 </dl> |
|
169 <dl> |
133 <dt>Returns:</dt> |
170 <dt>Returns:</dt> |
134 <dd> |
171 <dd> |
135 formatted character string (string) |
172 formatted character string (string) |
136 </dd> |
173 </dd> |
137 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors" ID="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors"></a> |
174 </dl> |
|
175 <a NAME="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors" ID="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors"></a> |
138 <h4>QRegularExpressionWizardCharactersDialog.__initCharacterSelectors</h4> |
176 <h4>QRegularExpressionWizardCharactersDialog.__initCharacterSelectors</h4> |
139 <b>__initCharacterSelectors</b>(<i></i>) |
177 <b>__initCharacterSelectors</b>(<i></i>) |
|
178 |
140 <p> |
179 <p> |
141 Private method to initialize the W3C character selector entries. |
180 Private method to initialize the W3C character selector entries. |
142 </p><a NAME="QRegularExpressionWizardCharactersDialog.__performSelectedAction" ID="QRegularExpressionWizardCharactersDialog.__performSelectedAction"></a> |
181 </p> |
|
182 <a NAME="QRegularExpressionWizardCharactersDialog.__performSelectedAction" ID="QRegularExpressionWizardCharactersDialog.__performSelectedAction"></a> |
143 <h4>QRegularExpressionWizardCharactersDialog.__performSelectedAction</h4> |
183 <h4>QRegularExpressionWizardCharactersDialog.__performSelectedAction</h4> |
144 <b>__performSelectedAction</b>(<i>formatIdentifier, lineedit, combo</i>) |
184 <b>__performSelectedAction</b>(<i>formatIdentifier, lineedit, combo</i>) |
|
185 |
145 <p> |
186 <p> |
146 Private method performing some actions depending on the input. |
187 Private method performing some actions depending on the input. |
147 </p><dl> |
188 </p> |
|
189 <dl> |
|
190 |
148 <dt><i>formatIdentifier</i></dt> |
191 <dt><i>formatIdentifier</i></dt> |
149 <dd> |
192 <dd> |
150 format of the selected entry (string) |
193 format of the selected entry (string) |
151 </dd><dt><i>lineedit</i></dt> |
194 </dd> |
|
195 <dt><i>lineedit</i></dt> |
152 <dd> |
196 <dd> |
153 line edit widget to act on (QLineEdit) |
197 line edit widget to act on (QLineEdit) |
154 </dd><dt><i>combo</i></dt> |
198 </dd> |
|
199 <dt><i>combo</i></dt> |
155 <dd> |
200 <dd> |
156 combo box widget to act on (QComboBox) |
201 combo box widget to act on (QComboBox) |
157 </dd> |
202 </dd> |
158 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo"></a> |
203 </dl> |
|
204 <a NAME="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo"></a> |
159 <h4>QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo</h4> |
205 <h4>QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo</h4> |
160 <b>__populateCharTypeCombo</b>(<i>combo, isSingle</i>) |
206 <b>__populateCharTypeCombo</b>(<i>combo, isSingle</i>) |
|
207 |
161 <p> |
208 <p> |
162 Private method to populate a given character type selection combo box. |
209 Private method to populate a given character type selection combo box. |
163 </p><dl> |
210 </p> |
|
211 <dl> |
|
212 |
164 <dt><i>combo</i></dt> |
213 <dt><i>combo</i></dt> |
165 <dd> |
214 <dd> |
166 reference to the combo box to be populated (QComboBox) |
215 reference to the combo box to be populated (QComboBox) |
167 </dd><dt><i>isSingle</i></dt> |
216 </dd> |
|
217 <dt><i>isSingle</i></dt> |
168 <dd> |
218 <dd> |
169 flag indicating a singles combo (boolean) |
219 flag indicating a singles combo (boolean) |
170 </dd> |
220 </dd> |
171 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo"></a> |
221 </dl> |
|
222 <a NAME="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo"></a> |
172 <h4>QRegularExpressionWizardCharactersDialog.__populateCharacterCombo</h4> |
223 <h4>QRegularExpressionWizardCharactersDialog.__populateCharacterCombo</h4> |
173 <b>__populateCharacterCombo</b>(<i>combo, formatIdentifier</i>) |
224 <b>__populateCharacterCombo</b>(<i>combo, formatIdentifier</i>) |
|
225 |
174 <p> |
226 <p> |
175 Private method to populate a character selection combo. |
227 Private method to populate a character selection combo. |
176 </p><dl> |
228 </p> |
|
229 <dl> |
|
230 |
177 <dt><i>combo</i></dt> |
231 <dt><i>combo</i></dt> |
178 <dd> |
232 <dd> |
179 combo box to be populated (QComboBox) |
233 combo box to be populated (QComboBox) |
180 </dd><dt><i>formatIdentifier</i></dt> |
234 </dd> |
|
235 <dt><i>formatIdentifier</i></dt> |
181 <dd> |
236 <dd> |
182 format identifier (one of "-ccp", "-ccn", |
237 format identifier (one of "-ccp", "-ccn", |
183 "-cbp", "-cbn", "-csp", "-csn", "-psp", "-psn") |
238 "-cbp", "-cbn", "-csp", "-csn", "-psp", "-psn") |
184 </dd> |
239 </dd> |
185 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected"></a> |
240 </dl> |
|
241 <a NAME="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected"></a> |
186 <h4>QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected</h4> |
242 <h4>QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected</h4> |
187 <b>__rangesCharTypeSelected</b>(<i>index, combo</i>) |
243 <b>__rangesCharTypeSelected</b>(<i>index, combo</i>) |
|
244 |
188 <p> |
245 <p> |
189 Private slot to handle the activated(int) signal of the char ranges |
246 Private slot to handle the activated(int) signal of the char ranges |
190 combo boxes. |
247 combo boxes. |
191 </p><dl> |
248 </p> |
|
249 <dl> |
|
250 |
192 <dt><i>index</i> (int)</dt> |
251 <dt><i>index</i> (int)</dt> |
193 <dd> |
252 <dd> |
194 selected list index |
253 selected list index |
195 </dd><dt><i>combo</i> (QComboBox)</dt> |
254 </dd> |
|
255 <dt><i>combo</i> (QComboBox)</dt> |
196 <dd> |
256 <dd> |
197 reference to the combo box |
257 reference to the combo box |
198 </dd> |
258 </dd> |
199 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected"></a> |
259 </dl> |
|
260 <a NAME="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected"></a> |
200 <h4>QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected</h4> |
261 <h4>QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected</h4> |
201 <b>__singlesCharTypeSelected</b>(<i>index, combo</i>) |
262 <b>__singlesCharTypeSelected</b>(<i>index, combo</i>) |
|
263 |
202 <p> |
264 <p> |
203 Private slot to handle the activated(int) signal of the single chars |
265 Private slot to handle the activated(int) signal of the single chars |
204 combo boxes. |
266 combo boxes. |
205 </p><dl> |
267 </p> |
|
268 <dl> |
|
269 |
206 <dt><i>index</i> (int)</dt> |
270 <dt><i>index</i> (int)</dt> |
207 <dd> |
271 <dd> |
208 selected list index |
272 selected list index |
209 </dd><dt><i>combo</i> (QComboBox)</dt> |
273 </dd> |
|
274 <dt><i>combo</i> (QComboBox)</dt> |
210 <dd> |
275 <dd> |
211 reference to the combo box |
276 reference to the combo box |
212 </dd> |
277 </dd> |
213 </dl><a NAME="QRegularExpressionWizardCharactersDialog.getCharacters" ID="QRegularExpressionWizardCharactersDialog.getCharacters"></a> |
278 </dl> |
|
279 <a NAME="QRegularExpressionWizardCharactersDialog.getCharacters" ID="QRegularExpressionWizardCharactersDialog.getCharacters"></a> |
214 <h4>QRegularExpressionWizardCharactersDialog.getCharacters</h4> |
280 <h4>QRegularExpressionWizardCharactersDialog.getCharacters</h4> |
215 <b>getCharacters</b>(<i></i>) |
281 <b>getCharacters</b>(<i></i>) |
|
282 |
216 <p> |
283 <p> |
217 Public method to return the character string assembled via the dialog. |
284 Public method to return the character string assembled via the dialog. |
218 </p><dl> |
285 </p> |
|
286 <dl> |
219 <dt>Returns:</dt> |
287 <dt>Returns:</dt> |
220 <dd> |
288 <dd> |
221 formatted string for character classes (string) |
289 formatted string for character classes (string) |
222 </dd> |
290 </dd> |
223 </dl> |
291 </dl> |