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.Preferences.ConfigurationPages.EditorHighlightingStylesPage</h1> |
23 <h1>eric6.Preferences.ConfigurationPages.EditorHighlightingStylesPage</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the Editor Highlighting Styles configuration page. |
26 Module implementing the Editor Highlighting Styles configuration page. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>NoFontsOption</td></tr> |
31 <tr><td>NoFontsOption</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#EditorHighlightingStylesPage">EditorHighlightingStylesPage</a></td> |
38 <td><a href="#EditorHighlightingStylesPage">EditorHighlightingStylesPage</a></td> |
34 <td>Class implementing the Editor Highlighting Styles configuration page.</td> |
39 <td>Class implementing the Editor Highlighting Styles configuration page.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
|
45 |
39 <tr> |
46 <tr> |
40 <td><a href="#create">create</a></td> |
47 <td><a href="#create">create</a></td> |
41 <td>Module function to create the configuration page.</td> |
48 <td>Module function to create the configuration page.</td> |
42 </tr> |
49 </tr> |
43 </table> |
50 </table> |
44 <hr /><hr /> |
51 <hr /> |
|
52 <hr /> |
45 <a NAME="EditorHighlightingStylesPage" ID="EditorHighlightingStylesPage"></a> |
53 <a NAME="EditorHighlightingStylesPage" ID="EditorHighlightingStylesPage"></a> |
46 <h2>EditorHighlightingStylesPage</h2> |
54 <h2>EditorHighlightingStylesPage</h2> |
|
55 |
47 <p> |
56 <p> |
48 Class implementing the Editor Highlighting Styles configuration page. |
57 Class implementing the Editor Highlighting Styles configuration page. |
49 </p> |
58 </p> |
50 <h3>Derived from</h3> |
59 <h3>Derived from</h3> |
51 ConfigurationPageBase, Ui_EditorHighlightingStylesPage |
60 ConfigurationPageBase, Ui_EditorHighlightingStylesPage |
52 <h3>Class Attributes</h3> |
61 <h3>Class Attributes</h3> |
|
62 |
53 <table> |
63 <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> |
64 <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> |
65 </table> |
56 <h3>Class Methods</h3> |
66 <h3>Class Methods</h3> |
|
67 |
57 <table> |
68 <table> |
58 <tr><td>None</td></tr> |
69 <tr><td>None</td></tr> |
59 </table> |
70 </table> |
60 <h3>Methods</h3> |
71 <h3>Methods</h3> |
|
72 |
61 <table> |
73 <table> |
|
74 |
62 <tr> |
75 <tr> |
63 <td><a href="#EditorHighlightingStylesPage.__init__">EditorHighlightingStylesPage</a></td> |
76 <td><a href="#EditorHighlightingStylesPage.__init__">EditorHighlightingStylesPage</a></td> |
64 <td>Constructor</td> |
77 <td>Constructor</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#EditorHighlightingStylesPage.__allFontsButtonMenuTriggered">__allFontsButtonMenuTriggered</a></td> |
80 <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> |
81 <td>Private slot used to change the font of all styles of a selected lexer.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#EditorHighlightingStylesPage.__changeFont">__changeFont</a></td> |
84 <td><a href="#EditorHighlightingStylesPage.__changeFont">__changeFont</a></td> |
70 <td>Private slot to change the highlighter font.</td> |
85 <td>Private slot to change the highlighter font.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#EditorHighlightingStylesPage.__currentStyles">__currentStyles</a></td> |
88 <td><a href="#EditorHighlightingStylesPage.__currentStyles">__currentStyles</a></td> |
73 <td>Private method to get the styles of the current item.</td> |
89 <td>Private method to get the styles of the current item.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#EditorHighlightingStylesPage.__exportStyles">__exportStyles</a></td> |
92 <td><a href="#EditorHighlightingStylesPage.__exportStyles">__exportStyles</a></td> |
76 <td>Private method to export the styles of the given lexers.</td> |
93 <td>Private method to export the styles of the given lexers.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#EditorHighlightingStylesPage.__fontButtonMenuTriggered">__fontButtonMenuTriggered</a></td> |
96 <td><a href="#EditorHighlightingStylesPage.__fontButtonMenuTriggered">__fontButtonMenuTriggered</a></td> |
79 <td>Private slot used to select the font of the selected style and lexer.</td> |
97 <td>Private slot used to select the font of the selected style and lexer.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#EditorHighlightingStylesPage.__importStyles">__importStyles</a></td> |
100 <td><a href="#EditorHighlightingStylesPage.__importStyles">__importStyles</a></td> |
82 <td>Private method to import the styles of the given lexers.</td> |
101 <td>Private method to import the styles of the given lexers.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#EditorHighlightingStylesPage.__setToDefault">__setToDefault</a></td> |
104 <td><a href="#EditorHighlightingStylesPage.__setToDefault">__setToDefault</a></td> |
85 <td>Private method to set a specific style to its default values.</td> |
105 <td>Private method to set a specific style to its default values.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#EditorHighlightingStylesPage.__styleAllItems">__styleAllItems</a></td> |
108 <td><a href="#EditorHighlightingStylesPage.__styleAllItems">__styleAllItems</a></td> |
88 <td>Private method to style all items of the style element list.</td> |
109 <td>Private method to style all items of the style element list.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#EditorHighlightingStylesPage.__styleOneItem">__styleOneItem</a></td> |
112 <td><a href="#EditorHighlightingStylesPage.__styleOneItem">__styleOneItem</a></td> |
91 <td>Private method to style one item of the style element list.</td> |
113 <td>Private method to style one item of the style element list.</td> |
92 </tr><tr> |
114 </tr> |
|
115 <tr> |
93 <td><a href="#EditorHighlightingStylesPage.__stylesForItem">__stylesForItem</a></td> |
116 <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> |
117 <td>Private method to get the style and sub-style number of the given item.</td> |
95 </tr><tr> |
118 </tr> |
|
119 <tr> |
96 <td><a href="#EditorHighlightingStylesPage.on_addSubstyleButton_clicked">on_addSubstyleButton_clicked</a></td> |
120 <td><a href="#EditorHighlightingStylesPage.on_addSubstyleButton_clicked">on_addSubstyleButton_clicked</a></td> |
97 <td>Private slot to add a new sub-style.</td> |
121 <td>Private slot to add a new sub-style.</td> |
98 </tr><tr> |
122 </tr> |
|
123 <tr> |
99 <td><a href="#EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked">on_allBackgroundColoursButton_clicked</a></td> |
124 <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> |
125 <td>Private method used to select the background colour of all styles of a selected lexer.</td> |
101 </tr><tr> |
126 </tr> |
|
127 <tr> |
102 <td><a href="#EditorHighlightingStylesPage.on_allDefaultButton_clicked">on_allDefaultButton_clicked</a></td> |
128 <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> |
129 <td>Private method to set all styles to their default values.</td> |
104 </tr><tr> |
130 </tr> |
|
131 <tr> |
105 <td><a href="#EditorHighlightingStylesPage.on_allEolFillButton_clicked">on_allEolFillButton_clicked</a></td> |
132 <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> |
133 <td>Private method used to set the eolfill for all styles of a selected lexer.</td> |
107 </tr><tr> |
134 </tr> |
|
135 <tr> |
108 <td><a href="#EditorHighlightingStylesPage.on_backgroundButton_clicked">on_backgroundButton_clicked</a></td> |
136 <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> |
137 <td>Private method used to select the background colour of the selected style and lexer.</td> |
110 </tr><tr> |
138 </tr> |
|
139 <tr> |
111 <td><a href="#EditorHighlightingStylesPage.on_copySubstyleButton_clicked">on_copySubstyleButton_clicked</a></td> |
140 <td><a href="#EditorHighlightingStylesPage.on_copySubstyleButton_clicked">on_copySubstyleButton_clicked</a></td> |
112 <td>Private slot to copy the selected sub-style.</td> |
141 <td>Private slot to copy the selected sub-style.</td> |
113 </tr><tr> |
142 </tr> |
|
143 <tr> |
114 <td><a href="#EditorHighlightingStylesPage.on_defaultButton_clicked">on_defaultButton_clicked</a></td> |
144 <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> |
145 <td>Private method to set the current style to its default values.</td> |
116 </tr><tr> |
146 </tr> |
|
147 <tr> |
117 <td><a href="#EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked">on_defaultSubstylesButton_clicked</a></td> |
148 <td><a href="#EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked">on_defaultSubstylesButton_clicked</a></td> |
118 <td>Private slot to reset all substyles to default values.</td> |
149 <td>Private slot to reset all substyles to default values.</td> |
119 </tr><tr> |
150 </tr> |
|
151 <tr> |
120 <td><a href="#EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked">on_deleteSubstyleButton_clicked</a></td> |
152 <td><a href="#EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked">on_deleteSubstyleButton_clicked</a></td> |
121 <td>Private slot to delete the selected sub-style.</td> |
153 <td>Private slot to delete the selected sub-style.</td> |
122 </tr><tr> |
154 </tr> |
|
155 <tr> |
123 <td><a href="#EditorHighlightingStylesPage.on_editSubstyleButton_clicked">on_editSubstyleButton_clicked</a></td> |
156 <td><a href="#EditorHighlightingStylesPage.on_editSubstyleButton_clicked">on_editSubstyleButton_clicked</a></td> |
124 <td>Private slot to edit the selected sub-style entry.</td> |
157 <td>Private slot to edit the selected sub-style entry.</td> |
125 </tr><tr> |
158 </tr> |
|
159 <tr> |
126 <td><a href="#EditorHighlightingStylesPage.on_eolfillCheckBox_clicked">on_eolfillCheckBox_clicked</a></td> |
160 <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> |
161 <td>Private method used to set the eolfill for the selected style and lexer.</td> |
128 </tr><tr> |
162 </tr> |
|
163 <tr> |
129 <td><a href="#EditorHighlightingStylesPage.on_exportAllButton_clicked">on_exportAllButton_clicked</a></td> |
164 <td><a href="#EditorHighlightingStylesPage.on_exportAllButton_clicked">on_exportAllButton_clicked</a></td> |
130 <td>Private slot to export the styles of all lexers.</td> |
165 <td>Private slot to export the styles of all lexers.</td> |
131 </tr><tr> |
166 </tr> |
|
167 <tr> |
132 <td><a href="#EditorHighlightingStylesPage.on_exportCurrentButton_clicked">on_exportCurrentButton_clicked</a></td> |
168 <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> |
169 <td>Private slot to export the styles of the current lexer.</td> |
134 </tr><tr> |
170 </tr> |
|
171 <tr> |
135 <td><a href="#EditorHighlightingStylesPage.on_foregroundButton_clicked">on_foregroundButton_clicked</a></td> |
172 <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> |
173 <td>Private method used to select the foreground colour of the selected style and lexer.</td> |
137 </tr><tr> |
174 </tr> |
|
175 <tr> |
138 <td><a href="#EditorHighlightingStylesPage.on_importAllButton_clicked">on_importAllButton_clicked</a></td> |
176 <td><a href="#EditorHighlightingStylesPage.on_importAllButton_clicked">on_importAllButton_clicked</a></td> |
139 <td>Private slot to import the styles of all lexers.</td> |
177 <td>Private slot to import the styles of all lexers.</td> |
140 </tr><tr> |
178 </tr> |
|
179 <tr> |
141 <td><a href="#EditorHighlightingStylesPage.on_importCurrentButton_clicked">on_importCurrentButton_clicked</a></td> |
180 <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> |
181 <td>Private slot to import the styles of the current lexer.</td> |
143 </tr><tr> |
182 </tr> |
|
183 <tr> |
144 <td><a href="#EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated">on_lexerLanguageComboBox_activated</a></td> |
184 <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> |
185 <td>Private slot to fill the style combo of the source page.</td> |
146 </tr><tr> |
186 </tr> |
|
187 <tr> |
147 <td><a href="#EditorHighlightingStylesPage.on_styleElementList_currentItemChanged">on_styleElementList_currentItemChanged</a></td> |
188 <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> |
189 <td>Private method to handle a change of the current row.</td> |
149 </tr><tr> |
190 </tr> |
|
191 <tr> |
150 <td><a href="#EditorHighlightingStylesPage.save">save</a></td> |
192 <td><a href="#EditorHighlightingStylesPage.save">save</a></td> |
151 <td>Public slot to save the Editor Highlighting Styles configuration.</td> |
193 <td>Public slot to save the Editor Highlighting Styles configuration.</td> |
152 </tr><tr> |
194 </tr> |
|
195 <tr> |
153 <td><a href="#EditorHighlightingStylesPage.saveState">saveState</a></td> |
196 <td><a href="#EditorHighlightingStylesPage.saveState">saveState</a></td> |
154 <td>Public method to save the current state of the widget.</td> |
197 <td>Public method to save the current state of the widget.</td> |
155 </tr><tr> |
198 </tr> |
|
199 <tr> |
156 <td><a href="#EditorHighlightingStylesPage.setFont">setFont</a></td> |
200 <td><a href="#EditorHighlightingStylesPage.setFont">setFont</a></td> |
157 <td>Local function to set the font.</td> |
201 <td>Local function to set the font.</td> |
158 </tr><tr> |
202 </tr> |
|
203 <tr> |
159 <td><a href="#EditorHighlightingStylesPage.setSampleFont">setSampleFont</a></td> |
204 <td><a href="#EditorHighlightingStylesPage.setSampleFont">setSampleFont</a></td> |
160 <td>Local function to set the font of the sample text.</td> |
205 <td>Local function to set the font of the sample text.</td> |
161 </tr><tr> |
206 </tr> |
|
207 <tr> |
162 <td><a href="#EditorHighlightingStylesPage.setState">setState</a></td> |
208 <td><a href="#EditorHighlightingStylesPage.setState">setState</a></td> |
163 <td>Public method to set the state of the widget.</td> |
209 <td>Public method to set the state of the widget.</td> |
164 </tr> |
210 </tr> |
165 </table> |
211 </table> |
166 <h3>Static Methods</h3> |
212 <h3>Static Methods</h3> |
|
213 |
167 <table> |
214 <table> |
168 <tr><td>None</td></tr> |
215 <tr><td>None</td></tr> |
169 </table> |
216 </table> |
|
217 |
170 <a NAME="EditorHighlightingStylesPage.__init__" ID="EditorHighlightingStylesPage.__init__"></a> |
218 <a NAME="EditorHighlightingStylesPage.__init__" ID="EditorHighlightingStylesPage.__init__"></a> |
171 <h4>EditorHighlightingStylesPage (Constructor)</h4> |
219 <h4>EditorHighlightingStylesPage (Constructor)</h4> |
172 <b>EditorHighlightingStylesPage</b>(<i>lexers</i>) |
220 <b>EditorHighlightingStylesPage</b>(<i>lexers</i>) |
|
221 |
173 <p> |
222 <p> |
174 Constructor |
223 Constructor |
175 </p><dl> |
224 </p> |
|
225 <dl> |
|
226 |
176 <dt><i>lexers</i></dt> |
227 <dt><i>lexers</i></dt> |
177 <dd> |
228 <dd> |
178 reference to the lexers dictionary |
229 reference to the lexers dictionary |
179 </dd> |
230 </dd> |
180 </dl><a NAME="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered" ID="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered"></a> |
231 </dl> |
|
232 <a NAME="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered" ID="EditorHighlightingStylesPage.__allFontsButtonMenuTriggered"></a> |
181 <h4>EditorHighlightingStylesPage.__allFontsButtonMenuTriggered</h4> |
233 <h4>EditorHighlightingStylesPage.__allFontsButtonMenuTriggered</h4> |
182 <b>__allFontsButtonMenuTriggered</b>(<i>act</i>) |
234 <b>__allFontsButtonMenuTriggered</b>(<i>act</i>) |
|
235 |
183 <p> |
236 <p> |
184 Private slot used to change the font of all styles of a selected lexer. |
237 Private slot used to change the font of all styles of a selected lexer. |
185 </p><dl> |
238 </p> |
|
239 <dl> |
|
240 |
186 <dt><i>act</i></dt> |
241 <dt><i>act</i></dt> |
187 <dd> |
242 <dd> |
188 reference to the triggering action (QAction) |
243 reference to the triggering action (QAction) |
189 </dd> |
244 </dd> |
190 </dl><a NAME="EditorHighlightingStylesPage.__changeFont" ID="EditorHighlightingStylesPage.__changeFont"></a> |
245 </dl> |
|
246 <a NAME="EditorHighlightingStylesPage.__changeFont" ID="EditorHighlightingStylesPage.__changeFont"></a> |
191 <h4>EditorHighlightingStylesPage.__changeFont</h4> |
247 <h4>EditorHighlightingStylesPage.__changeFont</h4> |
192 <b>__changeFont</b>(<i>doAll, familyOnly, sizeOnly</i>) |
248 <b>__changeFont</b>(<i>doAll, familyOnly, sizeOnly</i>) |
|
249 |
193 <p> |
250 <p> |
194 Private slot to change the highlighter font. |
251 Private slot to change the highlighter font. |
195 </p><dl> |
252 </p> |
|
253 <dl> |
|
254 |
196 <dt><i>doAll</i></dt> |
255 <dt><i>doAll</i></dt> |
197 <dd> |
256 <dd> |
198 flag indicating to change the font for all styles |
257 flag indicating to change the font for all styles |
199 (boolean) |
258 (boolean) |
200 </dd><dt><i>familyOnly</i></dt> |
259 </dd> |
|
260 <dt><i>familyOnly</i></dt> |
201 <dd> |
261 <dd> |
202 flag indicating to set the font family only (boolean) |
262 flag indicating to set the font family only (boolean) |
203 </dd><dt><i>sizeOnly</i></dt> |
263 </dd> |
|
264 <dt><i>sizeOnly</i></dt> |
204 <dd> |
265 <dd> |
205 flag indicating to set the font size only (boolean |
266 flag indicating to set the font size only (boolean |
206 </dd> |
267 </dd> |
207 </dl><a NAME="EditorHighlightingStylesPage.__currentStyles" ID="EditorHighlightingStylesPage.__currentStyles"></a> |
268 </dl> |
|
269 <a NAME="EditorHighlightingStylesPage.__currentStyles" ID="EditorHighlightingStylesPage.__currentStyles"></a> |
208 <h4>EditorHighlightingStylesPage.__currentStyles</h4> |
270 <h4>EditorHighlightingStylesPage.__currentStyles</h4> |
209 <b>__currentStyles</b>(<i></i>) |
271 <b>__currentStyles</b>(<i></i>) |
|
272 |
210 <p> |
273 <p> |
211 Private method to get the styles of the current item. |
274 Private method to get the styles of the current item. |
212 </p><dl> |
275 </p> |
|
276 <dl> |
213 <dt>Returns:</dt> |
277 <dt>Returns:</dt> |
214 <dd> |
278 <dd> |
215 tuple containing the style and sub-style numbers |
279 tuple containing the style and sub-style numbers |
216 </dd> |
280 </dd> |
217 </dl><dl> |
281 </dl> |
|
282 <dl> |
218 <dt>Return Type:</dt> |
283 <dt>Return Type:</dt> |
219 <dd> |
284 <dd> |
220 tuple of (int, int) |
285 tuple of (int, int) |
221 </dd> |
286 </dd> |
222 </dl><a NAME="EditorHighlightingStylesPage.__exportStyles" ID="EditorHighlightingStylesPage.__exportStyles"></a> |
287 </dl> |
|
288 <a NAME="EditorHighlightingStylesPage.__exportStyles" ID="EditorHighlightingStylesPage.__exportStyles"></a> |
223 <h4>EditorHighlightingStylesPage.__exportStyles</h4> |
289 <h4>EditorHighlightingStylesPage.__exportStyles</h4> |
224 <b>__exportStyles</b>(<i>lexers</i>) |
290 <b>__exportStyles</b>(<i>lexers</i>) |
|
291 |
225 <p> |
292 <p> |
226 Private method to export the styles of the given lexers. |
293 Private method to export the styles of the given lexers. |
227 </p><dl> |
294 </p> |
|
295 <dl> |
|
296 |
228 <dt><i>lexers</i></dt> |
297 <dt><i>lexers</i></dt> |
229 <dd> |
298 <dd> |
230 list of lexer objects for which to export the styles |
299 list of lexer objects for which to export the styles |
231 </dd> |
300 </dd> |
232 </dl><a NAME="EditorHighlightingStylesPage.__fontButtonMenuTriggered" ID="EditorHighlightingStylesPage.__fontButtonMenuTriggered"></a> |
301 </dl> |
|
302 <a NAME="EditorHighlightingStylesPage.__fontButtonMenuTriggered" ID="EditorHighlightingStylesPage.__fontButtonMenuTriggered"></a> |
233 <h4>EditorHighlightingStylesPage.__fontButtonMenuTriggered</h4> |
303 <h4>EditorHighlightingStylesPage.__fontButtonMenuTriggered</h4> |
234 <b>__fontButtonMenuTriggered</b>(<i>act</i>) |
304 <b>__fontButtonMenuTriggered</b>(<i>act</i>) |
|
305 |
235 <p> |
306 <p> |
236 Private slot used to select the font of the selected style and lexer. |
307 Private slot used to select the font of the selected style and lexer. |
237 </p><dl> |
308 </p> |
|
309 <dl> |
|
310 |
238 <dt><i>act</i></dt> |
311 <dt><i>act</i></dt> |
239 <dd> |
312 <dd> |
240 reference to the triggering action (QAction) |
313 reference to the triggering action (QAction) |
241 </dd> |
314 </dd> |
242 </dl><a NAME="EditorHighlightingStylesPage.__importStyles" ID="EditorHighlightingStylesPage.__importStyles"></a> |
315 </dl> |
|
316 <a NAME="EditorHighlightingStylesPage.__importStyles" ID="EditorHighlightingStylesPage.__importStyles"></a> |
243 <h4>EditorHighlightingStylesPage.__importStyles</h4> |
317 <h4>EditorHighlightingStylesPage.__importStyles</h4> |
244 <b>__importStyles</b>(<i>lexers</i>) |
318 <b>__importStyles</b>(<i>lexers</i>) |
|
319 |
245 <p> |
320 <p> |
246 Private method to import the styles of the given lexers. |
321 Private method to import the styles of the given lexers. |
247 </p><dl> |
322 </p> |
|
323 <dl> |
|
324 |
248 <dt><i>lexers</i></dt> |
325 <dt><i>lexers</i></dt> |
249 <dd> |
326 <dd> |
250 dictionary of lexer objects for which to import the |
327 dictionary of lexer objects for which to import the |
251 styles |
328 styles |
252 </dd> |
329 </dd> |
253 </dl><a NAME="EditorHighlightingStylesPage.__setToDefault" ID="EditorHighlightingStylesPage.__setToDefault"></a> |
330 </dl> |
|
331 <a NAME="EditorHighlightingStylesPage.__setToDefault" ID="EditorHighlightingStylesPage.__setToDefault"></a> |
254 <h4>EditorHighlightingStylesPage.__setToDefault</h4> |
332 <h4>EditorHighlightingStylesPage.__setToDefault</h4> |
255 <b>__setToDefault</b>(<i>style, substyle</i>) |
333 <b>__setToDefault</b>(<i>style, substyle</i>) |
|
334 |
256 <p> |
335 <p> |
257 Private method to set a specific style to its default values. |
336 Private method to set a specific style to its default values. |
258 </p><dl> |
337 </p> |
|
338 <dl> |
|
339 |
259 <dt><i>style</i> (int)</dt> |
340 <dt><i>style</i> (int)</dt> |
260 <dd> |
341 <dd> |
261 style number |
342 style number |
262 </dd><dt><i>substyle</i> (int)</dt> |
343 </dd> |
|
344 <dt><i>substyle</i> (int)</dt> |
263 <dd> |
345 <dd> |
264 sub-style number |
346 sub-style number |
265 </dd> |
347 </dd> |
266 </dl><a NAME="EditorHighlightingStylesPage.__styleAllItems" ID="EditorHighlightingStylesPage.__styleAllItems"></a> |
348 </dl> |
|
349 <a NAME="EditorHighlightingStylesPage.__styleAllItems" ID="EditorHighlightingStylesPage.__styleAllItems"></a> |
267 <h4>EditorHighlightingStylesPage.__styleAllItems</h4> |
350 <h4>EditorHighlightingStylesPage.__styleAllItems</h4> |
268 <b>__styleAllItems</b>(<i></i>) |
351 <b>__styleAllItems</b>(<i></i>) |
|
352 |
269 <p> |
353 <p> |
270 Private method to style all items of the style element list. |
354 Private method to style all items of the style element list. |
271 </p><a NAME="EditorHighlightingStylesPage.__styleOneItem" ID="EditorHighlightingStylesPage.__styleOneItem"></a> |
355 </p> |
|
356 <a NAME="EditorHighlightingStylesPage.__styleOneItem" ID="EditorHighlightingStylesPage.__styleOneItem"></a> |
272 <h4>EditorHighlightingStylesPage.__styleOneItem</h4> |
357 <h4>EditorHighlightingStylesPage.__styleOneItem</h4> |
273 <b>__styleOneItem</b>(<i>item, style, substyle</i>) |
358 <b>__styleOneItem</b>(<i>item, style, substyle</i>) |
|
359 |
274 <p> |
360 <p> |
275 Private method to style one item of the style element list. |
361 Private method to style one item of the style element list. |
276 </p><dl> |
362 </p> |
|
363 <dl> |
|
364 |
277 <dt><i>item</i> (QTreeWidgetItem)</dt> |
365 <dt><i>item</i> (QTreeWidgetItem)</dt> |
278 <dd> |
366 <dd> |
279 reference to the item to be styled |
367 reference to the item to be styled |
280 </dd><dt><i>style</i> (int)</dt> |
368 </dd> |
|
369 <dt><i>style</i> (int)</dt> |
281 <dd> |
370 <dd> |
282 base style number |
371 base style number |
283 </dd><dt><i>substyle</i> (int)</dt> |
372 </dd> |
|
373 <dt><i>substyle</i> (int)</dt> |
284 <dd> |
374 <dd> |
285 sub-style number |
375 sub-style number |
286 </dd> |
376 </dd> |
287 </dl><a NAME="EditorHighlightingStylesPage.__stylesForItem" ID="EditorHighlightingStylesPage.__stylesForItem"></a> |
377 </dl> |
|
378 <a NAME="EditorHighlightingStylesPage.__stylesForItem" ID="EditorHighlightingStylesPage.__stylesForItem"></a> |
288 <h4>EditorHighlightingStylesPage.__stylesForItem</h4> |
379 <h4>EditorHighlightingStylesPage.__stylesForItem</h4> |
289 <b>__stylesForItem</b>(<i>itm</i>) |
380 <b>__stylesForItem</b>(<i>itm</i>) |
|
381 |
290 <p> |
382 <p> |
291 Private method to get the style and sub-style number of the given item. |
383 Private method to get the style and sub-style number of the given item. |
292 </p><dl> |
384 </p> |
|
385 <dl> |
|
386 |
293 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
387 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
294 <dd> |
388 <dd> |
295 reference to the item to extract the styles from |
389 reference to the item to extract the styles from |
296 </dd> |
390 </dd> |
297 </dl><dl> |
391 </dl> |
|
392 <dl> |
298 <dt>Returns:</dt> |
393 <dt>Returns:</dt> |
299 <dd> |
394 <dd> |
300 tuple containing the style and sub-style numbers |
395 tuple containing the style and sub-style numbers |
301 </dd> |
396 </dd> |
302 </dl><dl> |
397 </dl> |
|
398 <dl> |
303 <dt>Return Type:</dt> |
399 <dt>Return Type:</dt> |
304 <dd> |
400 <dd> |
305 tuple of (int, int) |
401 tuple of (int, int) |
306 </dd> |
402 </dd> |
307 </dl><a NAME="EditorHighlightingStylesPage.on_addSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_addSubstyleButton_clicked"></a> |
403 </dl> |
|
404 <a NAME="EditorHighlightingStylesPage.on_addSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_addSubstyleButton_clicked"></a> |
308 <h4>EditorHighlightingStylesPage.on_addSubstyleButton_clicked</h4> |
405 <h4>EditorHighlightingStylesPage.on_addSubstyleButton_clicked</h4> |
309 <b>on_addSubstyleButton_clicked</b>(<i></i>) |
406 <b>on_addSubstyleButton_clicked</b>(<i></i>) |
|
407 |
310 <p> |
408 <p> |
311 Private slot to add a new sub-style. |
409 Private slot to add a new sub-style. |
312 </p><a NAME="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked" ID="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked"></a> |
410 </p> |
|
411 <a NAME="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked" ID="EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked"></a> |
313 <h4>EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked</h4> |
412 <h4>EditorHighlightingStylesPage.on_allBackgroundColoursButton_clicked</h4> |
314 <b>on_allBackgroundColoursButton_clicked</b>(<i></i>) |
413 <b>on_allBackgroundColoursButton_clicked</b>(<i></i>) |
|
414 |
315 <p> |
415 <p> |
316 Private method used to select the background colour of all styles of a |
416 Private method used to select the background colour of all styles of a |
317 selected lexer. |
417 selected lexer. |
318 </p><a NAME="EditorHighlightingStylesPage.on_allDefaultButton_clicked" ID="EditorHighlightingStylesPage.on_allDefaultButton_clicked"></a> |
418 </p> |
|
419 <a NAME="EditorHighlightingStylesPage.on_allDefaultButton_clicked" ID="EditorHighlightingStylesPage.on_allDefaultButton_clicked"></a> |
319 <h4>EditorHighlightingStylesPage.on_allDefaultButton_clicked</h4> |
420 <h4>EditorHighlightingStylesPage.on_allDefaultButton_clicked</h4> |
320 <b>on_allDefaultButton_clicked</b>(<i></i>) |
421 <b>on_allDefaultButton_clicked</b>(<i></i>) |
|
422 |
321 <p> |
423 <p> |
322 Private method to set all styles to their default values. |
424 Private method to set all styles to their default values. |
323 </p><a NAME="EditorHighlightingStylesPage.on_allEolFillButton_clicked" ID="EditorHighlightingStylesPage.on_allEolFillButton_clicked"></a> |
425 </p> |
|
426 <a NAME="EditorHighlightingStylesPage.on_allEolFillButton_clicked" ID="EditorHighlightingStylesPage.on_allEolFillButton_clicked"></a> |
324 <h4>EditorHighlightingStylesPage.on_allEolFillButton_clicked</h4> |
427 <h4>EditorHighlightingStylesPage.on_allEolFillButton_clicked</h4> |
325 <b>on_allEolFillButton_clicked</b>(<i></i>) |
428 <b>on_allEolFillButton_clicked</b>(<i></i>) |
|
429 |
326 <p> |
430 <p> |
327 Private method used to set the eolfill for all styles of a selected |
431 Private method used to set the eolfill for all styles of a selected |
328 lexer. |
432 lexer. |
329 </p><a NAME="EditorHighlightingStylesPage.on_backgroundButton_clicked" ID="EditorHighlightingStylesPage.on_backgroundButton_clicked"></a> |
433 </p> |
|
434 <a NAME="EditorHighlightingStylesPage.on_backgroundButton_clicked" ID="EditorHighlightingStylesPage.on_backgroundButton_clicked"></a> |
330 <h4>EditorHighlightingStylesPage.on_backgroundButton_clicked</h4> |
435 <h4>EditorHighlightingStylesPage.on_backgroundButton_clicked</h4> |
331 <b>on_backgroundButton_clicked</b>(<i></i>) |
436 <b>on_backgroundButton_clicked</b>(<i></i>) |
|
437 |
332 <p> |
438 <p> |
333 Private method used to select the background colour of the selected |
439 Private method used to select the background colour of the selected |
334 style and lexer. |
440 style and lexer. |
335 </p><a NAME="EditorHighlightingStylesPage.on_copySubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_copySubstyleButton_clicked"></a> |
441 </p> |
|
442 <a NAME="EditorHighlightingStylesPage.on_copySubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_copySubstyleButton_clicked"></a> |
336 <h4>EditorHighlightingStylesPage.on_copySubstyleButton_clicked</h4> |
443 <h4>EditorHighlightingStylesPage.on_copySubstyleButton_clicked</h4> |
337 <b>on_copySubstyleButton_clicked</b>(<i></i>) |
444 <b>on_copySubstyleButton_clicked</b>(<i></i>) |
|
445 |
338 <p> |
446 <p> |
339 Private slot to copy the selected sub-style. |
447 Private slot to copy the selected sub-style. |
340 </p><a NAME="EditorHighlightingStylesPage.on_defaultButton_clicked" ID="EditorHighlightingStylesPage.on_defaultButton_clicked"></a> |
448 </p> |
|
449 <a NAME="EditorHighlightingStylesPage.on_defaultButton_clicked" ID="EditorHighlightingStylesPage.on_defaultButton_clicked"></a> |
341 <h4>EditorHighlightingStylesPage.on_defaultButton_clicked</h4> |
450 <h4>EditorHighlightingStylesPage.on_defaultButton_clicked</h4> |
342 <b>on_defaultButton_clicked</b>(<i></i>) |
451 <b>on_defaultButton_clicked</b>(<i></i>) |
|
452 |
343 <p> |
453 <p> |
344 Private method to set the current style to its default values. |
454 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> |
455 </p> |
|
456 <a NAME="EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked" ID="EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked"></a> |
346 <h4>EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked</h4> |
457 <h4>EditorHighlightingStylesPage.on_defaultSubstylesButton_clicked</h4> |
347 <b>on_defaultSubstylesButton_clicked</b>(<i></i>) |
458 <b>on_defaultSubstylesButton_clicked</b>(<i></i>) |
|
459 |
348 <p> |
460 <p> |
349 Private slot to reset all substyles to default values. |
461 Private slot to reset all substyles to default values. |
350 </p><a NAME="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked"></a> |
462 </p> |
|
463 <a NAME="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked"></a> |
351 <h4>EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked</h4> |
464 <h4>EditorHighlightingStylesPage.on_deleteSubstyleButton_clicked</h4> |
352 <b>on_deleteSubstyleButton_clicked</b>(<i></i>) |
465 <b>on_deleteSubstyleButton_clicked</b>(<i></i>) |
|
466 |
353 <p> |
467 <p> |
354 Private slot to delete the selected sub-style. |
468 Private slot to delete the selected sub-style. |
355 </p><a NAME="EditorHighlightingStylesPage.on_editSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_editSubstyleButton_clicked"></a> |
469 </p> |
|
470 <a NAME="EditorHighlightingStylesPage.on_editSubstyleButton_clicked" ID="EditorHighlightingStylesPage.on_editSubstyleButton_clicked"></a> |
356 <h4>EditorHighlightingStylesPage.on_editSubstyleButton_clicked</h4> |
471 <h4>EditorHighlightingStylesPage.on_editSubstyleButton_clicked</h4> |
357 <b>on_editSubstyleButton_clicked</b>(<i></i>) |
472 <b>on_editSubstyleButton_clicked</b>(<i></i>) |
|
473 |
358 <p> |
474 <p> |
359 Private slot to edit the selected sub-style entry. |
475 Private slot to edit the selected sub-style entry. |
360 </p><a NAME="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked" ID="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked"></a> |
476 </p> |
|
477 <a NAME="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked" ID="EditorHighlightingStylesPage.on_eolfillCheckBox_clicked"></a> |
361 <h4>EditorHighlightingStylesPage.on_eolfillCheckBox_clicked</h4> |
478 <h4>EditorHighlightingStylesPage.on_eolfillCheckBox_clicked</h4> |
362 <b>on_eolfillCheckBox_clicked</b>(<i>on</i>) |
479 <b>on_eolfillCheckBox_clicked</b>(<i>on</i>) |
|
480 |
363 <p> |
481 <p> |
364 Private method used to set the eolfill for the selected style and |
482 Private method used to set the eolfill for the selected style and |
365 lexer. |
483 lexer. |
366 </p><dl> |
484 </p> |
|
485 <dl> |
|
486 |
367 <dt><i>on</i></dt> |
487 <dt><i>on</i></dt> |
368 <dd> |
488 <dd> |
369 flag indicating enabled or disabled state (boolean) |
489 flag indicating enabled or disabled state (boolean) |
370 </dd> |
490 </dd> |
371 </dl><a NAME="EditorHighlightingStylesPage.on_exportAllButton_clicked" ID="EditorHighlightingStylesPage.on_exportAllButton_clicked"></a> |
491 </dl> |
|
492 <a NAME="EditorHighlightingStylesPage.on_exportAllButton_clicked" ID="EditorHighlightingStylesPage.on_exportAllButton_clicked"></a> |
372 <h4>EditorHighlightingStylesPage.on_exportAllButton_clicked</h4> |
493 <h4>EditorHighlightingStylesPage.on_exportAllButton_clicked</h4> |
373 <b>on_exportAllButton_clicked</b>(<i></i>) |
494 <b>on_exportAllButton_clicked</b>(<i></i>) |
|
495 |
374 <p> |
496 <p> |
375 Private slot to export the styles of all lexers. |
497 Private slot to export the styles of all lexers. |
376 </p><a NAME="EditorHighlightingStylesPage.on_exportCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_exportCurrentButton_clicked"></a> |
498 </p> |
|
499 <a NAME="EditorHighlightingStylesPage.on_exportCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_exportCurrentButton_clicked"></a> |
377 <h4>EditorHighlightingStylesPage.on_exportCurrentButton_clicked</h4> |
500 <h4>EditorHighlightingStylesPage.on_exportCurrentButton_clicked</h4> |
378 <b>on_exportCurrentButton_clicked</b>(<i></i>) |
501 <b>on_exportCurrentButton_clicked</b>(<i></i>) |
|
502 |
379 <p> |
503 <p> |
380 Private slot to export the styles of the current lexer. |
504 Private slot to export the styles of the current lexer. |
381 </p><a NAME="EditorHighlightingStylesPage.on_foregroundButton_clicked" ID="EditorHighlightingStylesPage.on_foregroundButton_clicked"></a> |
505 </p> |
|
506 <a NAME="EditorHighlightingStylesPage.on_foregroundButton_clicked" ID="EditorHighlightingStylesPage.on_foregroundButton_clicked"></a> |
382 <h4>EditorHighlightingStylesPage.on_foregroundButton_clicked</h4> |
507 <h4>EditorHighlightingStylesPage.on_foregroundButton_clicked</h4> |
383 <b>on_foregroundButton_clicked</b>(<i></i>) |
508 <b>on_foregroundButton_clicked</b>(<i></i>) |
|
509 |
384 <p> |
510 <p> |
385 Private method used to select the foreground colour of the selected |
511 Private method used to select the foreground colour of the selected |
386 style and lexer. |
512 style and lexer. |
387 </p><a NAME="EditorHighlightingStylesPage.on_importAllButton_clicked" ID="EditorHighlightingStylesPage.on_importAllButton_clicked"></a> |
513 </p> |
|
514 <a NAME="EditorHighlightingStylesPage.on_importAllButton_clicked" ID="EditorHighlightingStylesPage.on_importAllButton_clicked"></a> |
388 <h4>EditorHighlightingStylesPage.on_importAllButton_clicked</h4> |
515 <h4>EditorHighlightingStylesPage.on_importAllButton_clicked</h4> |
389 <b>on_importAllButton_clicked</b>(<i></i>) |
516 <b>on_importAllButton_clicked</b>(<i></i>) |
|
517 |
390 <p> |
518 <p> |
391 Private slot to import the styles of all lexers. |
519 Private slot to import the styles of all lexers. |
392 </p><a NAME="EditorHighlightingStylesPage.on_importCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_importCurrentButton_clicked"></a> |
520 </p> |
|
521 <a NAME="EditorHighlightingStylesPage.on_importCurrentButton_clicked" ID="EditorHighlightingStylesPage.on_importCurrentButton_clicked"></a> |
393 <h4>EditorHighlightingStylesPage.on_importCurrentButton_clicked</h4> |
522 <h4>EditorHighlightingStylesPage.on_importCurrentButton_clicked</h4> |
394 <b>on_importCurrentButton_clicked</b>(<i></i>) |
523 <b>on_importCurrentButton_clicked</b>(<i></i>) |
|
524 |
395 <p> |
525 <p> |
396 Private slot to import the styles of the current lexer. |
526 Private slot to import the styles of the current lexer. |
397 </p><a NAME="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated" ID="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated"></a> |
527 </p> |
|
528 <a NAME="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated" ID="EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated"></a> |
398 <h4>EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated</h4> |
529 <h4>EditorHighlightingStylesPage.on_lexerLanguageComboBox_activated</h4> |
399 <b>on_lexerLanguageComboBox_activated</b>(<i>language</i>) |
530 <b>on_lexerLanguageComboBox_activated</b>(<i>language</i>) |
|
531 |
400 <p> |
532 <p> |
401 Private slot to fill the style combo of the source page. |
533 Private slot to fill the style combo of the source page. |
402 </p><dl> |
534 </p> |
|
535 <dl> |
|
536 |
403 <dt><i>language</i></dt> |
537 <dt><i>language</i></dt> |
404 <dd> |
538 <dd> |
405 The lexer language (string) |
539 The lexer language (string) |
406 </dd> |
540 </dd> |
407 </dl><a NAME="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged" ID="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged"></a> |
541 </dl> |
|
542 <a NAME="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged" ID="EditorHighlightingStylesPage.on_styleElementList_currentItemChanged"></a> |
408 <h4>EditorHighlightingStylesPage.on_styleElementList_currentItemChanged</h4> |
543 <h4>EditorHighlightingStylesPage.on_styleElementList_currentItemChanged</h4> |
409 <b>on_styleElementList_currentItemChanged</b>(<i>current, previous</i>) |
544 <b>on_styleElementList_currentItemChanged</b>(<i>current, previous</i>) |
|
545 |
410 <p> |
546 <p> |
411 Private method to handle a change of the current row. |
547 Private method to handle a change of the current row. |
412 </p><dl> |
548 </p> |
|
549 <dl> |
|
550 |
413 <dt><i>current</i> (QTreeWidgetItem)</dt> |
551 <dt><i>current</i> (QTreeWidgetItem)</dt> |
414 <dd> |
552 <dd> |
415 reference to the current item |
553 reference to the current item |
416 </dd><dt><i>previous</i> (QTreeWidgetItem)</dt> |
554 </dd> |
|
555 <dt><i>previous</i> (QTreeWidgetItem)</dt> |
417 <dd> |
556 <dd> |
418 reference to the previous item |
557 reference to the previous item |
419 </dd> |
558 </dd> |
420 </dl><a NAME="EditorHighlightingStylesPage.save" ID="EditorHighlightingStylesPage.save"></a> |
559 </dl> |
|
560 <a NAME="EditorHighlightingStylesPage.save" ID="EditorHighlightingStylesPage.save"></a> |
421 <h4>EditorHighlightingStylesPage.save</h4> |
561 <h4>EditorHighlightingStylesPage.save</h4> |
422 <b>save</b>(<i></i>) |
562 <b>save</b>(<i></i>) |
|
563 |
423 <p> |
564 <p> |
424 Public slot to save the Editor Highlighting Styles configuration. |
565 Public slot to save the Editor Highlighting Styles configuration. |
425 </p><a NAME="EditorHighlightingStylesPage.saveState" ID="EditorHighlightingStylesPage.saveState"></a> |
566 </p> |
|
567 <a NAME="EditorHighlightingStylesPage.saveState" ID="EditorHighlightingStylesPage.saveState"></a> |
426 <h4>EditorHighlightingStylesPage.saveState</h4> |
568 <h4>EditorHighlightingStylesPage.saveState</h4> |
427 <b>saveState</b>(<i></i>) |
569 <b>saveState</b>(<i></i>) |
|
570 |
428 <p> |
571 <p> |
429 Public method to save the current state of the widget. |
572 Public method to save the current state of the widget. |
430 </p><dl> |
573 </p> |
|
574 <dl> |
431 <dt>Returns:</dt> |
575 <dt>Returns:</dt> |
432 <dd> |
576 <dd> |
433 list containing the index of the selected lexer language |
577 list containing the index of the selected lexer language |
434 and a tuple containing the index of the parent selected lexer |
578 and a tuple containing the index of the parent selected lexer |
435 entry and the index of the selected entry |
579 entry and the index of the selected entry |
436 </dd> |
580 </dd> |
437 </dl><dl> |
581 </dl> |
|
582 <dl> |
438 <dt>Return Type:</dt> |
583 <dt>Return Type:</dt> |
439 <dd> |
584 <dd> |
440 list of int and tuple of (int, int) |
585 list of int and tuple of (int, int) |
441 </dd> |
586 </dd> |
442 </dl><a NAME="EditorHighlightingStylesPage.setFont" ID="EditorHighlightingStylesPage.setFont"></a> |
587 </dl> |
|
588 <a NAME="EditorHighlightingStylesPage.setFont" ID="EditorHighlightingStylesPage.setFont"></a> |
443 <h4>EditorHighlightingStylesPage.setFont</h4> |
589 <h4>EditorHighlightingStylesPage.setFont</h4> |
444 <b>setFont</b>(<i>style, substyle, familyOnly, sizeOnly</i>) |
590 <b>setFont</b>(<i>style, substyle, familyOnly, sizeOnly</i>) |
|
591 |
445 <p> |
592 <p> |
446 Local function to set the font. |
593 Local function to set the font. |
447 </p><dl> |
594 </p> |
|
595 <dl> |
|
596 |
448 <dt><i>font</i> (QFont)</dt> |
597 <dt><i>font</i> (QFont)</dt> |
449 <dd> |
598 <dd> |
450 font to be set |
599 font to be set |
451 </dd><dt><i>style</i> (int)</dt> |
600 </dd> |
|
601 <dt><i>style</i> (int)</dt> |
452 <dd> |
602 <dd> |
453 style number |
603 style number |
454 </dd><dt><i>substyle</i> (int)</dt> |
604 </dd> |
|
605 <dt><i>substyle</i> (int)</dt> |
455 <dd> |
606 <dd> |
456 sub-style number |
607 sub-style number |
457 </dd><dt><i>familyOnly</i> (bool)</dt> |
608 </dd> |
|
609 <dt><i>familyOnly</i> (bool)</dt> |
458 <dd> |
610 <dd> |
459 flag indicating to set the font family only |
611 flag indicating to set the font family only |
460 </dd><dt><i>sizeOnly</i> (bool)</dt> |
612 </dd> |
|
613 <dt><i>sizeOnly</i> (bool)</dt> |
461 <dd> |
614 <dd> |
462 flag indicating to set the font size only |
615 flag indicating to set the font size only |
463 </dd> |
616 </dd> |
464 </dl><a NAME="EditorHighlightingStylesPage.setSampleFont" ID="EditorHighlightingStylesPage.setSampleFont"></a> |
617 </dl> |
|
618 <a NAME="EditorHighlightingStylesPage.setSampleFont" ID="EditorHighlightingStylesPage.setSampleFont"></a> |
465 <h4>EditorHighlightingStylesPage.setSampleFont</h4> |
619 <h4>EditorHighlightingStylesPage.setSampleFont</h4> |
466 <b>setSampleFont</b>(<i>familyOnly, sizeOnly</i>) |
620 <b>setSampleFont</b>(<i>familyOnly, sizeOnly</i>) |
|
621 |
467 <p> |
622 <p> |
468 Local function to set the font of the sample text. |
623 Local function to set the font of the sample text. |
469 </p><dl> |
624 </p> |
|
625 <dl> |
|
626 |
470 <dt><i>font</i></dt> |
627 <dt><i>font</i></dt> |
471 <dd> |
628 <dd> |
472 font to be set (QFont) |
629 font to be set (QFont) |
473 </dd><dt><i>familyOnly</i></dt> |
630 </dd> |
|
631 <dt><i>familyOnly</i></dt> |
474 <dd> |
632 <dd> |
475 flag indicating to set the font family only |
633 flag indicating to set the font family only |
476 (boolean) |
634 (boolean) |
477 </dd><dt><i>sizeOnly</i></dt> |
635 </dd> |
|
636 <dt><i>sizeOnly</i></dt> |
478 <dd> |
637 <dd> |
479 flag indicating to set the font size only (boolean |
638 flag indicating to set the font size only (boolean |
480 </dd> |
639 </dd> |
481 </dl><a NAME="EditorHighlightingStylesPage.setState" ID="EditorHighlightingStylesPage.setState"></a> |
640 </dl> |
|
641 <a NAME="EditorHighlightingStylesPage.setState" ID="EditorHighlightingStylesPage.setState"></a> |
482 <h4>EditorHighlightingStylesPage.setState</h4> |
642 <h4>EditorHighlightingStylesPage.setState</h4> |
483 <b>setState</b>(<i>state</i>) |
643 <b>setState</b>(<i>state</i>) |
|
644 |
484 <p> |
645 <p> |
485 Public method to set the state of the widget. |
646 Public method to set the state of the widget. |
486 </p><dl> |
647 </p> |
|
648 <dl> |
|
649 |
487 <dt><i>state</i></dt> |
650 <dt><i>state</i></dt> |
488 <dd> |
651 <dd> |
489 state data generated by saveState |
652 state data generated by saveState |
490 </dd> |
653 </dd> |
491 </dl> |
654 </dl> |
492 <div align="right"><a href="#top">Up</a></div> |
655 <div align="right"><a href="#top">Up</a></div> |
493 <hr /><hr /> |
656 <hr /> |
|
657 <hr /> |
494 <a NAME="create" ID="create"></a> |
658 <a NAME="create" ID="create"></a> |
495 <h2>create</h2> |
659 <h2>create</h2> |
496 <b>create</b>(<i>dlg</i>) |
660 <b>create</b>(<i>dlg</i>) |
|
661 |
497 <p> |
662 <p> |
498 Module function to create the configuration page. |
663 Module function to create the configuration page. |
499 </p><dl> |
664 </p> |
|
665 <dl> |
|
666 |
500 <dt><i>dlg</i></dt> |
667 <dt><i>dlg</i></dt> |
501 <dd> |
668 <dd> |
502 reference to the configuration dialog |
669 reference to the configuration dialog |
503 </dd> |
670 </dd> |
504 </dl><dl> |
671 </dl> |
|
672 <dl> |
505 <dt>Returns:</dt> |
673 <dt>Returns:</dt> |
506 <dd> |
674 <dd> |
507 reference to the instantiated page (ConfigurationPageBase) |
675 reference to the instantiated page (ConfigurationPageBase) |
508 </dd> |
676 </dd> |
509 </dl> |
677 </dl> |