eric6/Documentation/Source/eric6.Preferences.ConfigurationPages.EditorHighlightingStylesPage.html

changeset 6942
2602857055c5
parent 6884
2a34f22cdbc1
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Preferences.ConfigurationPages.EditorHighlightingStylesPage</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.Preferences.ConfigurationPages.EditorHighlightingStylesPage</h1>
23 <p>
24 Module implementing the Editor Highlighting Styles configuration page.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>NoFontsOption</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#EditorHighlightingStylesPage">EditorHighlightingStylesPage</a></td>
34 <td>Class implementing the Editor Highlighting Styles configuration page.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr>
40 <td><a href="#create">create</a></td>
41 <td>Module function to create the configuration page.</td>
42 </tr>
43 </table>
44 <hr /><hr />
45 <a NAME="EditorHighlightingStylesPage" ID="EditorHighlightingStylesPage"></a>
46 <h2>EditorHighlightingStylesPage</h2>
47 <p>
48 Class implementing the Editor Highlighting Styles configuration page.
49 </p>
50 <h3>Derived from</h3>
51 ConfigurationPageBase, Ui_EditorHighlightingStylesPage
52 <h3>Class Attributes</h3>
53 <table>
54 <tr><td>FAMILYANDSIZE</td></tr><tr><td>FAMILYONLY</td></tr><tr><td>FONT</td></tr><tr><td>SIZEONLY</td></tr><tr><td>StyleRole</td></tr><tr><td>SubstyleRole</td></tr>
55 </table>
56 <h3>Class Methods</h3>
57 <table>
58 <tr><td>None</td></tr>
59 </table>
60 <h3>Methods</h3>
61 <table>
62 <tr>
63 <td><a href="#EditorHighlightingStylesPage.__init__">EditorHighlightingStylesPage</a></td>
64 <td>Constructor</td>
65 </tr><tr>
66 <td><a href="#EditorHighlightingStylesPage.__allFontsButtonMenuTriggered">__allFontsButtonMenuTriggered</a></td>
67 <td>Private slot used to change the font of all styles of a selected lexer.</td>
68 </tr><tr>
69 <td><a href="#EditorHighlightingStylesPage.__changeFont">__changeFont</a></td>
70 <td>Private slot to change the highlighter font.</td>
71 </tr><tr>
72 <td><a href="#EditorHighlightingStylesPage.__currentStyles">__currentStyles</a></td>
73 <td>Private method to get the styles of the current item.</td>
74 </tr><tr>
75 <td><a href="#EditorHighlightingStylesPage.__exportStyles">__exportStyles</a></td>
76 <td>Private method to export the styles of the given lexers.</td>
77 </tr><tr>
78 <td><a href="#EditorHighlightingStylesPage.__fontButtonMenuTriggered">__fontButtonMenuTriggered</a></td>
79 <td>Private slot used to select the font of the selected style and lexer.</td>
80 </tr><tr>
81 <td><a href="#EditorHighlightingStylesPage.__importStyles">__importStyles</a></td>
82 <td>Private method to import the styles of the given lexers.</td>
83 </tr><tr>
84 <td><a href="#EditorHighlightingStylesPage.__setToDefault">__setToDefault</a></td>
85 <td>Private method to set a specific style to its default values.</td>
86 </tr><tr>
87 <td><a href="#EditorHighlightingStylesPage.__styleAllItems">__styleAllItems</a></td>
88 <td>Private method to style all items of the style element list.</td>
89 </tr><tr>
90 <td><a href="#EditorHighlightingStylesPage.__styleOneItem">__styleOneItem</a></td>
91 <td>Private method to style one item of the style element list.</td>
92 </tr><tr>
93 <td><a href="#EditorHighlightingStylesPage.__stylesForItem">__stylesForItem</a></td>
94 <td>Private method to get the style and sub-style number of the given item.</td>
95 </tr><tr>
96 <td><a href="#EditorHighlightingStylesPage.on_addSubstyleButton_clicked">on_addSubstyleButton_clicked</a></td>
97 <td>Private slot to add a new sub-style.</td>
98 </tr><tr>
99 <td><a href="#EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked">on_allBackgroundColoursButton_clicked</a></td>
100 <td>Private method used to select the background colour of all styles of a selected lexer.</td>
101 </tr><tr>
102 <td><a href="#EditorHighlightingStylesPage.on_allDefaultButton_clicked">on_allDefaultButton_clicked</a></td>
103 <td>Private method to set all styles to their default values.</td>
104 </tr><tr>
105 <td><a href="#EditorHighlightingStylesPage.on_allEolFillButton_clicked">on_allEolFillButton_clicked</a></td>
106 <td>Private method used to set the eolfill for all styles of a selected lexer.</td>
107 </tr><tr>
108 <td><a href="#EditorHighlightingStylesPage.on_backgroundButton_clicked">on_backgroundButton_clicked</a></td>
109 <td>Private method used to select the background colour of the selected style and lexer.</td>
110 </tr><tr>
111 <td><a href="#EditorHighlightingStylesPage.on_copySubstyleButton_clicked">on_copySubstyleButton_clicked</a></td>
112 <td>Private slot to copy the selected sub-style.</td>
113 </tr><tr>
114 <td><a href="#EditorHighlightingStylesPage.on_defaultButton_clicked">on_defaultButton_clicked</a></td>
115 <td>Private method to set the current style to its default values.</td>
116 </tr><tr>
117 <td><a href="#EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked">on_defaultSubstylesButton_clicked</a></td>
118 <td>Private slot to reset all substyles to default values.</td>
119 </tr><tr>
120 <td><a href="#EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked">on_deleteSubstyleButton_clicked</a></td>
121 <td>Private slot to delete the selected sub-style.</td>
122 </tr><tr>
123 <td><a href="#EditorHighlightingStylesPage.on_editSubstyleButton_clicked">on_editSubstyleButton_clicked</a></td>
124 <td>Private slot to edit the selected sub-style entry.</td>
125 </tr><tr>
126 <td><a href="#EditorHighlightingStylesPage.on_eolfillCheckBox_clicked">on_eolfillCheckBox_clicked</a></td>
127 <td>Private method used to set the eolfill for the selected style and lexer.</td>
128 </tr><tr>
129 <td><a href="#EditorHighlightingStylesPage.on_exportAllButton_clicked">on_exportAllButton_clicked</a></td>
130 <td>Private slot to export the styles of all lexers.</td>
131 </tr><tr>
132 <td><a href="#EditorHighlightingStylesPage.on_exportCurrentButton_clicked">on_exportCurrentButton_clicked</a></td>
133 <td>Private slot to export the styles of the current lexer.</td>
134 </tr><tr>
135 <td><a href="#EditorHighlightingStylesPage.on_foregroundButton_clicked">on_foregroundButton_clicked</a></td>
136 <td>Private method used to select the foreground colour of the selected style and lexer.</td>
137 </tr><tr>
138 <td><a href="#EditorHighlightingStylesPage.on_importAllButton_clicked">on_importAllButton_clicked</a></td>
139 <td>Private slot to import the styles of all lexers.</td>
140 </tr><tr>
141 <td><a href="#EditorHighlightingStylesPage.on_importCurrentButton_clicked">on_importCurrentButton_clicked</a></td>
142 <td>Private slot to import the styles of the current lexer.</td>
143 </tr><tr>
144 <td><a href="#EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated">on_lexerLanguageComboBox_activated</a></td>
145 <td>Private slot to fill the style combo of the source page.</td>
146 </tr><tr>
147 <td><a href="#EditorHighlightingStylesPage.on_styleElementList_currentItemChanged">on_styleElementList_currentItemChanged</a></td>
148 <td>Private method to handle a change of the current row.</td>
149 </tr><tr>
150 <td><a href="#EditorHighlightingStylesPage.save">save</a></td>
151 <td>Public slot to save the Editor Highlighting Styles configuration.</td>
152 </tr><tr>
153 <td><a href="#EditorHighlightingStylesPage.saveState">saveState</a></td>
154 <td>Public method to save the current state of the widget.</td>
155 </tr><tr>
156 <td><a href="#EditorHighlightingStylesPage.setFont">setFont</a></td>
157 <td>Local function to set the font.</td>
158 </tr><tr>
159 <td><a href="#EditorHighlightingStylesPage.setSampleFont">setSampleFont</a></td>
160 <td>Local function to set the font of the sample text.</td>
161 </tr><tr>
162 <td><a href="#EditorHighlightingStylesPage.setState">setState</a></td>
163 <td>Public method to set the state of the widget.</td>
164 </tr>
165 </table>
166 <h3>Static Methods</h3>
167 <table>
168 <tr><td>None</td></tr>
169 </table>
170 <a NAME="EditorHighlightingStylesPage.__init__" ID="EditorHighlightingStylesPage.__init__"></a>
171 <h4>EditorHighlightingStylesPage (Constructor)</h4>
172 <b>EditorHighlightingStylesPage</b>(<i>lexers</i>)
173 <p>
174 Constructor
175 </p><dl>
176 <dt><i>lexers</i></dt>
177 <dd>
178 reference to the lexers dictionary
179 </dd>
180 </dl><a NAME="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered" ID="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered"></a>
181 <h4>EditorHighlightingStylesPage.__allFontsButtonMenuTriggered</h4>
182 <b>__allFontsButtonMenuTriggered</b>(<i>act</i>)
183 <p>
184 Private slot used to change the font of all styles of a selected lexer.
185 </p><dl>
186 <dt><i>act</i></dt>
187 <dd>
188 reference to the triggering action (QAction)
189 </dd>
190 </dl><a NAME="EditorHighlightingStylesPage.__changeFont" ID="EditorHighlightingStylesPage.__changeFont"></a>
191 <h4>EditorHighlightingStylesPage.__changeFont</h4>
192 <b>__changeFont</b>(<i>doAll, familyOnly, sizeOnly</i>)
193 <p>
194 Private slot to change the highlighter font.
195 </p><dl>
196 <dt><i>doAll</i></dt>
197 <dd>
198 flag indicating to change the font for all styles
199 (boolean)
200 </dd><dt><i>familyOnly</i></dt>
201 <dd>
202 flag indicating to set the font family only (boolean)
203 </dd><dt><i>sizeOnly</i></dt>
204 <dd>
205 flag indicating to set the font size only (boolean
206 </dd>
207 </dl><a NAME="EditorHighlightingStylesPage.__currentStyles" ID="EditorHighlightingStylesPage.__currentStyles"></a>
208 <h4>EditorHighlightingStylesPage.__currentStyles</h4>
209 <b>__currentStyles</b>(<i></i>)
210 <p>
211 Private method to get the styles of the current item.
212 </p><dl>
213 <dt>Returns:</dt>
214 <dd>
215 tuple containing the style and sub-style numbers
216 </dd>
217 </dl><dl>
218 <dt>Return Type:</dt>
219 <dd>
220 tuple of (int, int)
221 </dd>
222 </dl><a NAME="EditorHighlightingStylesPage.__exportStyles" ID="EditorHighlightingStylesPage.__exportStyles"></a>
223 <h4>EditorHighlightingStylesPage.__exportStyles</h4>
224 <b>__exportStyles</b>(<i>lexers</i>)
225 <p>
226 Private method to export the styles of the given lexers.
227 </p><dl>
228 <dt><i>lexers</i></dt>
229 <dd>
230 list of lexer objects for which to export the styles
231 </dd>
232 </dl><a NAME="EditorHighlightingStylesPage.__fontButtonMenuTriggered" ID="EditorHighlightingStylesPage.__fontButtonMenuTriggered"></a>
233 <h4>EditorHighlightingStylesPage.__fontButtonMenuTriggered</h4>
234 <b>__fontButtonMenuTriggered</b>(<i>act</i>)
235 <p>
236 Private slot used to select the font of the selected style and lexer.
237 </p><dl>
238 <dt><i>act</i></dt>
239 <dd>
240 reference to the triggering action (QAction)
241 </dd>
242 </dl><a NAME="EditorHighlightingStylesPage.__importStyles" ID="EditorHighlightingStylesPage.__importStyles"></a>
243 <h4>EditorHighlightingStylesPage.__importStyles</h4>
244 <b>__importStyles</b>(<i>lexers</i>)
245 <p>
246 Private method to import the styles of the given lexers.
247 </p><dl>
248 <dt><i>lexers</i></dt>
249 <dd>
250 dictionary of lexer objects for which to import the
251 styles
252 </dd>
253 </dl><a NAME="EditorHighlightingStylesPage.__setToDefault" ID="EditorHighlightingStylesPage.__setToDefault"></a>
254 <h4>EditorHighlightingStylesPage.__setToDefault</h4>
255 <b>__setToDefault</b>(<i>style, substyle</i>)
256 <p>
257 Private method to set a specific style to its default values.
258 </p><dl>
259 <dt><i>style</i> (int)</dt>
260 <dd>
261 style number
262 </dd><dt><i>substyle</i> (int)</dt>
263 <dd>
264 sub-style number
265 </dd>
266 </dl><a NAME="EditorHighlightingStylesPage.__styleAllItems" ID="EditorHighlightingStylesPage.__styleAllItems"></a>
267 <h4>EditorHighlightingStylesPage.__styleAllItems</h4>
268 <b>__styleAllItems</b>(<i></i>)
269 <p>
270 Private method to style all items of the style element list.
271 </p><a NAME="EditorHighlightingStylesPage.__styleOneItem" ID="EditorHighlightingStylesPage.__styleOneItem"></a>
272 <h4>EditorHighlightingStylesPage.__styleOneItem</h4>
273 <b>__styleOneItem</b>(<i>item, style, substyle</i>)
274 <p>
275 Private method to style one item of the style element list.
276 </p><dl>
277 <dt><i>item</i> (QTreeWidgetItem)</dt>
278 <dd>
279 reference to the item to be styled
280 </dd><dt><i>style</i> (int)</dt>
281 <dd>
282 base style number
283 </dd><dt><i>substyle</i> (int)</dt>
284 <dd>
285 sub-style number
286 </dd>
287 </dl><a NAME="EditorHighlightingStylesPage.__stylesForItem" ID="EditorHighlightingStylesPage.__stylesForItem"></a>
288 <h4>EditorHighlightingStylesPage.__stylesForItem</h4>
289 <b>__stylesForItem</b>(<i>itm</i>)
290 <p>
291 Private method to get the style and sub-style number of the given item.
292 </p><dl>
293 <dt><i>itm</i> (QTreeWidgetItem)</dt>
294 <dd>
295 reference to the item to extract the styles from
296 </dd>
297 </dl><dl>
298 <dt>Returns:</dt>
299 <dd>
300 tuple containing the style and sub-style numbers
301 </dd>
302 </dl><dl>
303 <dt>Return Type:</dt>
304 <dd>
305 tuple of (int, int)
306 </dd>
307 </dl><a NAME="EditorHighlightingStylesPage.on_addSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_addSubstyleButton_clicked"></a>
308 <h4>EditorHighlightingStylesPage.on_addSubstyleButton_clicked</h4>
309 <b>on_addSubstyleButton_clicked</b>(<i></i>)
310 <p>
311 Private slot to add a new sub-style.
312 </p><a NAME="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked" ID="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked"></a>
313 <h4>EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked</h4>
314 <b>on_allBackgroundColoursButton_clicked</b>(<i></i>)
315 <p>
316 Private method used to select the background colour of all styles of a
317 selected lexer.
318 </p><a NAME="EditorHighlightingStylesPage.on_allDefaultButton_clicked" ID="EditorHighlightingStylesPage.on_allDefaultButton_clicked"></a>
319 <h4>EditorHighlightingStylesPage.on_allDefaultButton_clicked</h4>
320 <b>on_allDefaultButton_clicked</b>(<i></i>)
321 <p>
322 Private method to set all styles to their default values.
323 </p><a NAME="EditorHighlightingStylesPage.on_allEolFillButton_clicked" ID="EditorHighlightingStylesPage.on_allEolFillButton_clicked"></a>
324 <h4>EditorHighlightingStylesPage.on_allEolFillButton_clicked</h4>
325 <b>on_allEolFillButton_clicked</b>(<i></i>)
326 <p>
327 Private method used to set the eolfill for all styles of a selected
328 lexer.
329 </p><a NAME="EditorHighlightingStylesPage.on_backgroundButton_clicked" ID="EditorHighlightingStylesPage.on_backgroundButton_clicked"></a>
330 <h4>EditorHighlightingStylesPage.on_backgroundButton_clicked</h4>
331 <b>on_backgroundButton_clicked</b>(<i></i>)
332 <p>
333 Private method used to select the background colour of the selected
334 style and lexer.
335 </p><a NAME="EditorHighlightingStylesPage.on_copySubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_copySubstyleButton_clicked"></a>
336 <h4>EditorHighlightingStylesPage.on_copySubstyleButton_clicked</h4>
337 <b>on_copySubstyleButton_clicked</b>(<i></i>)
338 <p>
339 Private slot to copy the selected sub-style.
340 </p><a NAME="EditorHighlightingStylesPage.on_defaultButton_clicked" ID="EditorHighlightingStylesPage.on_defaultButton_clicked"></a>
341 <h4>EditorHighlightingStylesPage.on_defaultButton_clicked</h4>
342 <b>on_defaultButton_clicked</b>(<i></i>)
343 <p>
344 Private method to set the current style to its default values.
345 </p><a NAME="EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked" ID="EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked"></a>
346 <h4>EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked</h4>
347 <b>on_defaultSubstylesButton_clicked</b>(<i></i>)
348 <p>
349 Private slot to reset all substyles to default values.
350 </p><a NAME="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked"></a>
351 <h4>EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked</h4>
352 <b>on_deleteSubstyleButton_clicked</b>(<i></i>)
353 <p>
354 Private slot to delete the selected sub-style.
355 </p><a NAME="EditorHighlightingStylesPage.on_editSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_editSubstyleButton_clicked"></a>
356 <h4>EditorHighlightingStylesPage.on_editSubstyleButton_clicked</h4>
357 <b>on_editSubstyleButton_clicked</b>(<i></i>)
358 <p>
359 Private slot to edit the selected sub-style entry.
360 </p><a NAME="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked" ID="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked"></a>
361 <h4>EditorHighlightingStylesPage.on_eolfillCheckBox_clicked</h4>
362 <b>on_eolfillCheckBox_clicked</b>(<i>on</i>)
363 <p>
364 Private method used to set the eolfill for the selected style and
365 lexer.
366 </p><dl>
367 <dt><i>on</i></dt>
368 <dd>
369 flag indicating enabled or disabled state (boolean)
370 </dd>
371 </dl><a NAME="EditorHighlightingStylesPage.on_exportAllButton_clicked" ID="EditorHighlightingStylesPage.on_exportAllButton_clicked"></a>
372 <h4>EditorHighlightingStylesPage.on_exportAllButton_clicked</h4>
373 <b>on_exportAllButton_clicked</b>(<i></i>)
374 <p>
375 Private slot to export the styles of all lexers.
376 </p><a NAME="EditorHighlightingStylesPage.on_exportCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_exportCurrentButton_clicked"></a>
377 <h4>EditorHighlightingStylesPage.on_exportCurrentButton_clicked</h4>
378 <b>on_exportCurrentButton_clicked</b>(<i></i>)
379 <p>
380 Private slot to export the styles of the current lexer.
381 </p><a NAME="EditorHighlightingStylesPage.on_foregroundButton_clicked" ID="EditorHighlightingStylesPage.on_foregroundButton_clicked"></a>
382 <h4>EditorHighlightingStylesPage.on_foregroundButton_clicked</h4>
383 <b>on_foregroundButton_clicked</b>(<i></i>)
384 <p>
385 Private method used to select the foreground colour of the selected
386 style and lexer.
387 </p><a NAME="EditorHighlightingStylesPage.on_importAllButton_clicked" ID="EditorHighlightingStylesPage.on_importAllButton_clicked"></a>
388 <h4>EditorHighlightingStylesPage.on_importAllButton_clicked</h4>
389 <b>on_importAllButton_clicked</b>(<i></i>)
390 <p>
391 Private slot to import the styles of all lexers.
392 </p><a NAME="EditorHighlightingStylesPage.on_importCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_importCurrentButton_clicked"></a>
393 <h4>EditorHighlightingStylesPage.on_importCurrentButton_clicked</h4>
394 <b>on_importCurrentButton_clicked</b>(<i></i>)
395 <p>
396 Private slot to import the styles of the current lexer.
397 </p><a NAME="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated" ID="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated"></a>
398 <h4>EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated</h4>
399 <b>on_lexerLanguageComboBox_activated</b>(<i>language</i>)
400 <p>
401 Private slot to fill the style combo of the source page.
402 </p><dl>
403 <dt><i>language</i></dt>
404 <dd>
405 The lexer language (string)
406 </dd>
407 </dl><a NAME="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged" ID="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged"></a>
408 <h4>EditorHighlightingStylesPage.on_styleElementList_currentItemChanged</h4>
409 <b>on_styleElementList_currentItemChanged</b>(<i>current, previous</i>)
410 <p>
411 Private method to handle a change of the current row.
412 </p><dl>
413 <dt><i>current</i> (QTreeWidgetItem)</dt>
414 <dd>
415 reference to the current item
416 </dd><dt><i>previous</i> (QTreeWidgetItem)</dt>
417 <dd>
418 reference to the previous item
419 </dd>
420 </dl><a NAME="EditorHighlightingStylesPage.save" ID="EditorHighlightingStylesPage.save"></a>
421 <h4>EditorHighlightingStylesPage.save</h4>
422 <b>save</b>(<i></i>)
423 <p>
424 Public slot to save the Editor Highlighting Styles configuration.
425 </p><a NAME="EditorHighlightingStylesPage.saveState" ID="EditorHighlightingStylesPage.saveState"></a>
426 <h4>EditorHighlightingStylesPage.saveState</h4>
427 <b>saveState</b>(<i></i>)
428 <p>
429 Public method to save the current state of the widget.
430 </p><dl>
431 <dt>Returns:</dt>
432 <dd>
433 list containing the index of the selected lexer language
434 and a tuple containing the index of the parent selected lexer
435 entry and the index of the selected entry
436 </dd>
437 </dl><dl>
438 <dt>Return Type:</dt>
439 <dd>
440 list of int and tuple of (int, int)
441 </dd>
442 </dl><a NAME="EditorHighlightingStylesPage.setFont" ID="EditorHighlightingStylesPage.setFont"></a>
443 <h4>EditorHighlightingStylesPage.setFont</h4>
444 <b>setFont</b>(<i>style, substyle, familyOnly, sizeOnly</i>)
445 <p>
446 Local function to set the font.
447 </p><dl>
448 <dt><i>font</i> (QFont)</dt>
449 <dd>
450 font to be set
451 </dd><dt><i>style</i> (int)</dt>
452 <dd>
453 style number
454 </dd><dt><i>substyle</i> (int)</dt>
455 <dd>
456 sub-style number
457 </dd><dt><i>familyOnly</i> (bool)</dt>
458 <dd>
459 flag indicating to set the font family only
460 </dd><dt><i>sizeOnly</i> (bool)</dt>
461 <dd>
462 flag indicating to set the font size only
463 </dd>
464 </dl><a NAME="EditorHighlightingStylesPage.setSampleFont" ID="EditorHighlightingStylesPage.setSampleFont"></a>
465 <h4>EditorHighlightingStylesPage.setSampleFont</h4>
466 <b>setSampleFont</b>(<i>familyOnly, sizeOnly</i>)
467 <p>
468 Local function to set the font of the sample text.
469 </p><dl>
470 <dt><i>font</i></dt>
471 <dd>
472 font to be set (QFont)
473 </dd><dt><i>familyOnly</i></dt>
474 <dd>
475 flag indicating to set the font family only
476 (boolean)
477 </dd><dt><i>sizeOnly</i></dt>
478 <dd>
479 flag indicating to set the font size only (boolean
480 </dd>
481 </dl><a NAME="EditorHighlightingStylesPage.setState" ID="EditorHighlightingStylesPage.setState"></a>
482 <h4>EditorHighlightingStylesPage.setState</h4>
483 <b>setState</b>(<i>state</i>)
484 <p>
485 Public method to set the state of the widget.
486 </p><dl>
487 <dt><i>state</i></dt>
488 <dd>
489 state data generated by saveState
490 </dd>
491 </dl>
492 <div align="right"><a href="#top">Up</a></div>
493 <hr /><hr />
494 <a NAME="create" ID="create"></a>
495 <h2>create</h2>
496 <b>create</b>(<i>dlg</i>)
497 <p>
498 Module function to create the configuration page.
499 </p><dl>
500 <dt><i>dlg</i></dt>
501 <dd>
502 reference to the configuration dialog
503 </dd>
504 </dl><dl>
505 <dt>Returns:</dt>
506 <dd>
507 reference to the instantiated page (ConfigurationPageBase)
508 </dd>
509 </dl>
510 <div align="right"><a href="#top">Up</a></div>
511 <hr />
512 </body></html>

eric ide

mercurial