eric6/Documentation/Source/eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardCharactersDialog.html

changeset 6942
2602857055c5
parent 6123
39cd368143db
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardCharactersDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardCharactersDialog</h1>
23 <p>
24 Module implementing a dialog for entering character classes.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#QRegularExpressionWizardCharactersDialog">QRegularExpressionWizardCharactersDialog</a></td>
34 <td>Class implementing a dialog for entering character classes.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="QRegularExpressionWizardCharactersDialog" ID="QRegularExpressionWizardCharactersDialog"></a>
43 <h2>QRegularExpressionWizardCharactersDialog</h2>
44 <p>
45 Class implementing a dialog for entering character classes.
46 </p>
47 <h3>Derived from</h3>
48 QDialog, Ui_QRegularExpressionWizardCharactersDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#QRegularExpressionWizardCharactersDialog.__init__">QRegularExpressionWizardCharactersDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#QRegularExpressionWizardCharactersDialog.__addRangesLine">__addRangesLine</a></td>
64 <td>Private slot to add a line of entry widgets for character ranges.</td>
65 </tr><tr>
66 <td><a href="#QRegularExpressionWizardCharactersDialog.__addSinglesLine">__addSinglesLine</a></td>
67 <td>Private slot to add a line of entry widgets for single characters.</td>
68 </tr><tr>
69 <td><a href="#QRegularExpressionWizardCharactersDialog.__formatCharacter">__formatCharacter</a></td>
70 <td>Private method to format the characters entered into the dialog.</td>
71 </tr><tr>
72 <td><a href="#QRegularExpressionWizardCharactersDialog.__initCharacterSelectors">__initCharacterSelectors</a></td>
73 <td>Private method to initialize the W3C character selector entries.</td>
74 </tr><tr>
75 <td><a href="#QRegularExpressionWizardCharactersDialog.__performSelectedAction">__performSelectedAction</a></td>
76 <td>Private method performing some actions depending on the input.</td>
77 </tr><tr>
78 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo">__populateCharTypeCombo</a></td>
79 <td>Private method to populate a given character type selection combo box.</td>
80 </tr><tr>
81 <td><a href="#QRegularExpressionWizardCharactersDialog.__populateCharacterCombo">__populateCharacterCombo</a></td>
82 <td>Private method to populate a character selection combo.</td>
83 </tr><tr>
84 <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>
86 </tr><tr>
87 <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>
89 </tr><tr>
90 <td><a href="#QRegularExpressionWizardCharactersDialog.getCharacters">getCharacters</a></td>
91 <td>Public method to return the character string assembled via the dialog.</td>
92 </tr>
93 </table>
94 <h3>Static Methods</h3>
95 <table>
96 <tr><td>None</td></tr>
97 </table>
98 <a NAME="QRegularExpressionWizardCharactersDialog.__init__" ID="QRegularExpressionWizardCharactersDialog.__init__"></a>
99 <h4>QRegularExpressionWizardCharactersDialog (Constructor)</h4>
100 <b>QRegularExpressionWizardCharactersDialog</b>(<i>parent=None</i>)
101 <p>
102 Constructor
103 </p><dl>
104 <dt><i>parent</i></dt>
105 <dd>
106 reference to the parent widget (QWidget)
107 </dd>
108 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__addRangesLine" ID="QRegularExpressionWizardCharactersDialog.__addRangesLine"></a>
109 <h4>QRegularExpressionWizardCharactersDialog.__addRangesLine</h4>
110 <b>__addRangesLine</b>(<i></i>)
111 <p>
112 Private slot to add a line of entry widgets for character ranges.
113 </p><a NAME="QRegularExpressionWizardCharactersDialog.__addSinglesLine" ID="QRegularExpressionWizardCharactersDialog.__addSinglesLine"></a>
114 <h4>QRegularExpressionWizardCharactersDialog.__addSinglesLine</h4>
115 <b>__addSinglesLine</b>(<i></i>)
116 <p>
117 Private slot to add a line of entry widgets for single characters.
118 </p><a NAME="QRegularExpressionWizardCharactersDialog.__formatCharacter" ID="QRegularExpressionWizardCharactersDialog.__formatCharacter"></a>
119 <h4>QRegularExpressionWizardCharactersDialog.__formatCharacter</h4>
120 <b>__formatCharacter</b>(<i>char, formatIdentifier</i>)
121 <p>
122 Private method to format the characters entered into the dialog.
123 </p><dl>
124 <dt><i>char</i></dt>
125 <dd>
126 character string entered into the dialog (string)
127 </dd><dt><i>formatIdentifier</i></dt>
128 <dd>
129 string giving a special format (-c, -h, -i or
130 -o) or the already formatted character (string)
131 </dd>
132 </dl><dl>
133 <dt>Returns:</dt>
134 <dd>
135 formatted character string (string)
136 </dd>
137 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors" ID="QRegularExpressionWizardCharactersDialog.__initCharacterSelectors"></a>
138 <h4>QRegularExpressionWizardCharactersDialog.__initCharacterSelectors</h4>
139 <b>__initCharacterSelectors</b>(<i></i>)
140 <p>
141 Private method to initialize the W3C character selector entries.
142 </p><a NAME="QRegularExpressionWizardCharactersDialog.__performSelectedAction" ID="QRegularExpressionWizardCharactersDialog.__performSelectedAction"></a>
143 <h4>QRegularExpressionWizardCharactersDialog.__performSelectedAction</h4>
144 <b>__performSelectedAction</b>(<i>formatIdentifier, lineedit, combo</i>)
145 <p>
146 Private method performing some actions depending on the input.
147 </p><dl>
148 <dt><i>formatIdentifier</i></dt>
149 <dd>
150 format of the selected entry (string)
151 </dd><dt><i>lineedit</i></dt>
152 <dd>
153 line edit widget to act on (QLineEdit)
154 </dd><dt><i>combo</i></dt>
155 <dd>
156 combo box widget to act on (QComboBox)
157 </dd>
158 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo"></a>
159 <h4>QRegularExpressionWizardCharactersDialog.__populateCharTypeCombo</h4>
160 <b>__populateCharTypeCombo</b>(<i>combo, isSingle</i>)
161 <p>
162 Private method to populate a given character type selection combo box.
163 </p><dl>
164 <dt><i>combo</i></dt>
165 <dd>
166 reference to the combo box to be populated (QComboBox)
167 </dd><dt><i>isSingle</i></dt>
168 <dd>
169 flag indicating a singles combo (boolean)
170 </dd>
171 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo" ID="QRegularExpressionWizardCharactersDialog.__populateCharacterCombo"></a>
172 <h4>QRegularExpressionWizardCharactersDialog.__populateCharacterCombo</h4>
173 <b>__populateCharacterCombo</b>(<i>combo, formatIdentifier</i>)
174 <p>
175 Private method to populate a character selection combo.
176 </p><dl>
177 <dt><i>combo</i></dt>
178 <dd>
179 combo box to be populated (QComboBox)
180 </dd><dt><i>formatIdentifier</i></dt>
181 <dd>
182 format identifier (one of "-ccp", "-ccn",
183 "-cbp", "-cbn", "-csp", "-csn", "-psp", "-psn")
184 </dd>
185 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected"></a>
186 <h4>QRegularExpressionWizardCharactersDialog.__rangesCharTypeSelected</h4>
187 <b>__rangesCharTypeSelected</b>(<i>index, combo</i>)
188 <p>
189 Private slot to handle the activated(int) signal of the char ranges
190 combo boxes.
191 </p><dl>
192 <dt><i>index</i> (int)</dt>
193 <dd>
194 selected list index
195 </dd><dt><i>combo</i> (QComboBox)</dt>
196 <dd>
197 reference to the combo box
198 </dd>
199 </dl><a NAME="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected" ID="QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected"></a>
200 <h4>QRegularExpressionWizardCharactersDialog.__singlesCharTypeSelected</h4>
201 <b>__singlesCharTypeSelected</b>(<i>index, combo</i>)
202 <p>
203 Private slot to handle the activated(int) signal of the single chars
204 combo boxes.
205 </p><dl>
206 <dt><i>index</i> (int)</dt>
207 <dd>
208 selected list index
209 </dd><dt><i>combo</i> (QComboBox)</dt>
210 <dd>
211 reference to the combo box
212 </dd>
213 </dl><a NAME="QRegularExpressionWizardCharactersDialog.getCharacters" ID="QRegularExpressionWizardCharactersDialog.getCharacters"></a>
214 <h4>QRegularExpressionWizardCharactersDialog.getCharacters</h4>
215 <b>getCharacters</b>(<i></i>)
216 <p>
217 Public method to return the character string assembled via the dialog.
218 </p><dl>
219 <dt>Returns:</dt>
220 <dd>
221 formatted string for character classes (string)
222 </dd>
223 </dl>
224 <div align="right"><a href="#top">Up</a></div>
225 <hr />
226 </body></html>

eric ide

mercurial