|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Preferences.ConfigurationPages.EditorStylesPage</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Preferences.ConfigurationPages.EditorStylesPage</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the Editor Styles configuration page. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#EditorStylesPage">EditorStylesPage</a></td> |
|
39 <td>Class implementing the Editor Styles configuration page.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 |
|
46 <tr> |
|
47 <td><a href="#create">create</a></td> |
|
48 <td>Module function to create the configuration page.</td> |
|
49 </tr> |
|
50 </table> |
|
51 <hr /> |
|
52 <hr /> |
|
53 <a NAME="EditorStylesPage" ID="EditorStylesPage"></a> |
|
54 <h2>EditorStylesPage</h2> |
|
55 |
|
56 <p> |
|
57 Class implementing the Editor Styles configuration page. |
|
58 </p> |
|
59 <h3>Derived from</h3> |
|
60 ConfigurationPageBase, Ui_EditorStylesPage |
|
61 <h3>Class Attributes</h3> |
|
62 |
|
63 <table> |
|
64 <tr><td>None</td></tr> |
|
65 </table> |
|
66 <h3>Class Methods</h3> |
|
67 |
|
68 <table> |
|
69 <tr><td>None</td></tr> |
|
70 </table> |
|
71 <h3>Methods</h3> |
|
72 |
|
73 <table> |
|
74 |
|
75 <tr> |
|
76 <td><a href="#EditorStylesPage.__init__">EditorStylesPage</a></td> |
|
77 <td>Constructor</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#EditorStylesPage.on_annotationsErrorBgButton_clicked">on_annotationsErrorBgButton_clicked</a></td> |
|
81 <td>Private slot to set the background colour of the error annotations.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#EditorStylesPage.on_annotationsErrorFgButton_clicked">on_annotationsErrorFgButton_clicked</a></td> |
|
85 <td>Private slot to set the foreground colour of the error annotations.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#EditorStylesPage.on_annotationsStyleWarningBgButton_clicked">on_annotationsStyleWarningBgButton_clicked</a></td> |
|
89 <td>Private slot to set the background colour of the style annotations.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#EditorStylesPage.on_annotationsStyleWarningFgButton_clicked">on_annotationsStyleWarningFgButton_clicked</a></td> |
|
93 <td>Private slot to set the foreground colour of the style annotations.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#EditorStylesPage.on_annotationsWarningBgButton_clicked">on_annotationsWarningBgButton_clicked</a></td> |
|
97 <td>Private slot to set the background colour of the warning annotations.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#EditorStylesPage.on_annotationsWarningFgButton_clicked">on_annotationsWarningFgButton_clicked</a></td> |
|
101 <td>Private slot to set the foreground colour of the warning annotations.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#EditorStylesPage.on_defaultFontButton_clicked">on_defaultFontButton_clicked</a></td> |
|
105 <td>Private method used to select the default font for the editor.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#EditorStylesPage.on_linenumbersFontButton_clicked">on_linenumbersFontButton_clicked</a></td> |
|
109 <td>Private method used to select the font for the editor margins.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#EditorStylesPage.on_monospacedFontButton_clicked">on_monospacedFontButton_clicked</a></td> |
|
113 <td>Private method used to select the font to be used as the monospaced font.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#EditorStylesPage.polishPage">polishPage</a></td> |
|
117 <td>Public slot to perform some polishing actions.</td> |
|
118 </tr> |
|
119 <tr> |
|
120 <td><a href="#EditorStylesPage.save">save</a></td> |
|
121 <td>Public slot to save the Editor Styles configuration.</td> |
|
122 </tr> |
|
123 </table> |
|
124 <h3>Static Methods</h3> |
|
125 |
|
126 <table> |
|
127 <tr><td>None</td></tr> |
|
128 </table> |
|
129 |
|
130 <a NAME="EditorStylesPage.__init__" ID="EditorStylesPage.__init__"></a> |
|
131 <h4>EditorStylesPage (Constructor)</h4> |
|
132 <b>EditorStylesPage</b>(<i></i>) |
|
133 |
|
134 <p> |
|
135 Constructor |
|
136 </p> |
|
137 <a NAME="EditorStylesPage.on_annotationsErrorBgButton_clicked" ID="EditorStylesPage.on_annotationsErrorBgButton_clicked"></a> |
|
138 <h4>EditorStylesPage.on_annotationsErrorBgButton_clicked</h4> |
|
139 <b>on_annotationsErrorBgButton_clicked</b>(<i></i>) |
|
140 |
|
141 <p> |
|
142 Private slot to set the background colour of the error annotations. |
|
143 </p> |
|
144 <a NAME="EditorStylesPage.on_annotationsErrorFgButton_clicked" ID="EditorStylesPage.on_annotationsErrorFgButton_clicked"></a> |
|
145 <h4>EditorStylesPage.on_annotationsErrorFgButton_clicked</h4> |
|
146 <b>on_annotationsErrorFgButton_clicked</b>(<i></i>) |
|
147 |
|
148 <p> |
|
149 Private slot to set the foreground colour of the error annotations. |
|
150 </p> |
|
151 <a NAME="EditorStylesPage.on_annotationsStyleWarningBgButton_clicked" ID="EditorStylesPage.on_annotationsStyleWarningBgButton_clicked"></a> |
|
152 <h4>EditorStylesPage.on_annotationsStyleWarningBgButton_clicked</h4> |
|
153 <b>on_annotationsStyleWarningBgButton_clicked</b>(<i></i>) |
|
154 |
|
155 <p> |
|
156 Private slot to set the background colour of the style annotations. |
|
157 </p> |
|
158 <a NAME="EditorStylesPage.on_annotationsStyleWarningFgButton_clicked" ID="EditorStylesPage.on_annotationsStyleWarningFgButton_clicked"></a> |
|
159 <h4>EditorStylesPage.on_annotationsStyleWarningFgButton_clicked</h4> |
|
160 <b>on_annotationsStyleWarningFgButton_clicked</b>(<i></i>) |
|
161 |
|
162 <p> |
|
163 Private slot to set the foreground colour of the style annotations. |
|
164 </p> |
|
165 <a NAME="EditorStylesPage.on_annotationsWarningBgButton_clicked" ID="EditorStylesPage.on_annotationsWarningBgButton_clicked"></a> |
|
166 <h4>EditorStylesPage.on_annotationsWarningBgButton_clicked</h4> |
|
167 <b>on_annotationsWarningBgButton_clicked</b>(<i></i>) |
|
168 |
|
169 <p> |
|
170 Private slot to set the background colour of the warning annotations. |
|
171 </p> |
|
172 <a NAME="EditorStylesPage.on_annotationsWarningFgButton_clicked" ID="EditorStylesPage.on_annotationsWarningFgButton_clicked"></a> |
|
173 <h4>EditorStylesPage.on_annotationsWarningFgButton_clicked</h4> |
|
174 <b>on_annotationsWarningFgButton_clicked</b>(<i></i>) |
|
175 |
|
176 <p> |
|
177 Private slot to set the foreground colour of the warning annotations. |
|
178 </p> |
|
179 <a NAME="EditorStylesPage.on_defaultFontButton_clicked" ID="EditorStylesPage.on_defaultFontButton_clicked"></a> |
|
180 <h4>EditorStylesPage.on_defaultFontButton_clicked</h4> |
|
181 <b>on_defaultFontButton_clicked</b>(<i></i>) |
|
182 |
|
183 <p> |
|
184 Private method used to select the default font for the editor. |
|
185 </p> |
|
186 <a NAME="EditorStylesPage.on_linenumbersFontButton_clicked" ID="EditorStylesPage.on_linenumbersFontButton_clicked"></a> |
|
187 <h4>EditorStylesPage.on_linenumbersFontButton_clicked</h4> |
|
188 <b>on_linenumbersFontButton_clicked</b>(<i></i>) |
|
189 |
|
190 <p> |
|
191 Private method used to select the font for the editor margins. |
|
192 </p> |
|
193 <a NAME="EditorStylesPage.on_monospacedFontButton_clicked" ID="EditorStylesPage.on_monospacedFontButton_clicked"></a> |
|
194 <h4>EditorStylesPage.on_monospacedFontButton_clicked</h4> |
|
195 <b>on_monospacedFontButton_clicked</b>(<i></i>) |
|
196 |
|
197 <p> |
|
198 Private method used to select the font to be used as the monospaced |
|
199 font. |
|
200 </p> |
|
201 <a NAME="EditorStylesPage.polishPage" ID="EditorStylesPage.polishPage"></a> |
|
202 <h4>EditorStylesPage.polishPage</h4> |
|
203 <b>polishPage</b>(<i></i>) |
|
204 |
|
205 <p> |
|
206 Public slot to perform some polishing actions. |
|
207 </p> |
|
208 <a NAME="EditorStylesPage.save" ID="EditorStylesPage.save"></a> |
|
209 <h4>EditorStylesPage.save</h4> |
|
210 <b>save</b>(<i></i>) |
|
211 |
|
212 <p> |
|
213 Public slot to save the Editor Styles configuration. |
|
214 </p> |
|
215 <div align="right"><a href="#top">Up</a></div> |
|
216 <hr /> |
|
217 <hr /> |
|
218 <a NAME="create" ID="create"></a> |
|
219 <h2>create</h2> |
|
220 <b>create</b>(<i>dlg</i>) |
|
221 |
|
222 <p> |
|
223 Module function to create the configuration page. |
|
224 </p> |
|
225 <dl> |
|
226 |
|
227 <dt><i>dlg</i></dt> |
|
228 <dd> |
|
229 reference to the configuration dialog |
|
230 </dd> |
|
231 </dl> |
|
232 <dl> |
|
233 <dt>Return:</dt> |
|
234 <dd> |
|
235 reference to the instantiated page (ConfigurationPageBase) |
|
236 </dd> |
|
237 </dl> |
|
238 <div align="right"><a href="#top">Up</a></div> |
|
239 <hr /> |
|
240 </body></html> |