5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.WebBrowser.WebBrowserLanguagesDialog</h1> |
9 <h1>eric7.WebBrowser.WebBrowserLanguagesDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to configure the preferred languages. |
11 Module implementing a dialog to configure the preferred languages. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#WebBrowserLanguagesDialog">WebBrowserLanguagesDialog</a></td> |
22 <td><a href="#WebBrowserLanguagesDialog">WebBrowserLanguagesDialog</a></td> |
25 <td>Class implementing a dialog to configure the preferred languages.</td> |
23 <td>Class implementing a dialog to configure the preferred languages.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
29 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
30 </table> |
32 </table> |
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="WebBrowserLanguagesDialog" ID="WebBrowserLanguagesDialog"></a> |
34 <a NAME="WebBrowserLanguagesDialog" ID="WebBrowserLanguagesDialog"></a> |
36 <h2>WebBrowserLanguagesDialog</h2> |
35 <h2>WebBrowserLanguagesDialog</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing a dialog to configure the preferred languages. |
37 Class implementing a dialog to configure the preferred languages. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 QDialog, Ui_WebBrowserLanguagesDialog |
41 QDialog, Ui_WebBrowserLanguagesDialog |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
45 </table> |
47 </table> |
46 |
48 <h3>Class Methods</h3> |
47 <h3>Class Methods</h3> |
49 |
48 <table> |
50 <table> |
|
51 |
|
52 <tr> |
49 <tr> |
53 <td><a href="#WebBrowserLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
50 <td><a href="#WebBrowserLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
54 <td>Class method to get the list of default accept languages.</td> |
51 <td>Class method to get the list of default accept languages.</td> |
55 </tr> |
52 </tr> |
56 <tr> |
53 <tr> |
93 <tr> |
89 <tr> |
94 <td><a href="#WebBrowserLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
90 <td><a href="#WebBrowserLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
95 <td>Private slot to move a language up.</td> |
91 <td>Private slot to move a language up.</td> |
96 </tr> |
92 </tr> |
97 </table> |
93 </table> |
|
94 |
98 <h3>Static Methods</h3> |
95 <h3>Static Methods</h3> |
99 |
96 <table> |
100 <table> |
97 <tr><td>None</td></tr> |
101 <tr><td>None</td></tr> |
98 </table> |
102 </table> |
99 |
103 |
100 |
104 <a NAME="WebBrowserLanguagesDialog.defaultAcceptLanguages" ID="WebBrowserLanguagesDialog.defaultAcceptLanguages"></a> |
101 <a NAME="WebBrowserLanguagesDialog.defaultAcceptLanguages" ID="WebBrowserLanguagesDialog.defaultAcceptLanguages"></a> |
105 <h4>WebBrowserLanguagesDialog.defaultAcceptLanguages (class method)</h4> |
102 <h4>WebBrowserLanguagesDialog.defaultAcceptLanguages (class method)</h4> |
106 <b>defaultAcceptLanguages</b>(<i></i>) |
103 <b>defaultAcceptLanguages</b>(<i></i>) |
107 |
|
108 <p> |
104 <p> |
109 Class method to get the list of default accept languages. |
105 Class method to get the list of default accept languages. |
110 </p> |
106 </p> |
|
107 |
111 <dl> |
108 <dl> |
112 <dt>Return:</dt> |
109 <dt>Return:</dt> |
113 <dd> |
110 <dd> |
114 list of acceptable languages |
111 list of acceptable languages |
115 </dd> |
112 </dd> |
121 </dd> |
118 </dd> |
122 </dl> |
119 </dl> |
123 <a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
120 <a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
124 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
121 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
125 <b>expand</b>(<i>language</i>) |
122 <b>expand</b>(<i>language</i>) |
126 |
|
127 <p> |
123 <p> |
128 Class method to expand a language enum to a readable languages |
124 Class method to expand a language enum to a readable languages |
129 list. |
125 list. |
130 </p> |
126 </p> |
|
127 |
131 <dl> |
128 <dl> |
132 |
129 |
133 <dt><i>language</i> (QLocale.Language)</dt> |
130 <dt><i>language</i> (QLocale.Language)</dt> |
134 <dd> |
131 <dd> |
135 language number |
132 language number |
148 </dd> |
145 </dd> |
149 </dl> |
146 </dl> |
150 <a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
147 <a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
151 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
148 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
152 <b>httpString</b>(<i>languages</i>) |
149 <b>httpString</b>(<i>languages</i>) |
153 |
|
154 <p> |
150 <p> |
155 Class method to convert a list of acceptable languages into a |
151 Class method to convert a list of acceptable languages into a |
156 byte array. |
152 byte array. |
157 </p> |
153 </p> |
158 <p> |
154 <p> |
159 The byte array can be sent along with the Accept-Language http header |
155 The byte array can be sent along with the Accept-Language http header |
160 (see RFC 2616). |
156 (see RFC 2616). |
161 </p> |
157 </p> |
|
158 |
162 <dl> |
159 <dl> |
163 |
160 |
164 <dt><i>languages</i> (list of str)</dt> |
161 <dt><i>languages</i> (list of str)</dt> |
165 <dd> |
162 <dd> |
166 list of acceptable languages |
163 list of acceptable languages |
179 </dd> |
176 </dd> |
180 </dl> |
177 </dl> |
181 <a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
178 <a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
182 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
179 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
183 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
180 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
184 |
|
185 <p> |
181 <p> |
186 Constructor |
182 Constructor |
187 </p> |
183 </p> |
|
184 |
188 <dl> |
185 <dl> |
189 |
186 |
190 <dt><i>parent</i> (QWidget)</dt> |
187 <dt><i>parent</i> (QWidget)</dt> |
191 <dd> |
188 <dd> |
192 reference to the parent widget |
189 reference to the parent widget |
193 </dd> |
190 </dd> |
194 </dl> |
191 </dl> |
195 <a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
192 <a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
196 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
193 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
197 <b>__currentChanged</b>(<i>current, previous</i>) |
194 <b>__currentChanged</b>(<i>current, previous</i>) |
198 |
|
199 <p> |
195 <p> |
200 Private slot to handle a change of the current selection. |
196 Private slot to handle a change of the current selection. |
201 </p> |
197 </p> |
|
198 |
202 <dl> |
199 <dl> |
203 |
200 |
204 <dt><i>current</i> (QModelIndex)</dt> |
201 <dt><i>current</i> (QModelIndex)</dt> |
205 <dd> |
202 <dd> |
206 index of the currently selected item |
203 index of the currently selected item |
211 </dd> |
208 </dd> |
212 </dl> |
209 </dl> |
213 <a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
210 <a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
214 <h4>WebBrowserLanguagesDialog.accept</h4> |
211 <h4>WebBrowserLanguagesDialog.accept</h4> |
215 <b>accept</b>(<i></i>) |
212 <b>accept</b>(<i></i>) |
216 |
|
217 <p> |
213 <p> |
218 Public method to accept the data entered. |
214 Public method to accept the data entered. |
219 </p> |
215 </p> |
|
216 |
220 <a NAME="WebBrowserLanguagesDialog.on_addButton_clicked" ID="WebBrowserLanguagesDialog.on_addButton_clicked"></a> |
217 <a NAME="WebBrowserLanguagesDialog.on_addButton_clicked" ID="WebBrowserLanguagesDialog.on_addButton_clicked"></a> |
221 <h4>WebBrowserLanguagesDialog.on_addButton_clicked</h4> |
218 <h4>WebBrowserLanguagesDialog.on_addButton_clicked</h4> |
222 <b>on_addButton_clicked</b>(<i></i>) |
219 <b>on_addButton_clicked</b>(<i></i>) |
223 |
|
224 <p> |
220 <p> |
225 Private slot to add a language to the list of acceptable languages. |
221 Private slot to add a language to the list of acceptable languages. |
226 </p> |
222 </p> |
|
223 |
227 <a NAME="WebBrowserLanguagesDialog.on_downButton_clicked" ID="WebBrowserLanguagesDialog.on_downButton_clicked"></a> |
224 <a NAME="WebBrowserLanguagesDialog.on_downButton_clicked" ID="WebBrowserLanguagesDialog.on_downButton_clicked"></a> |
228 <h4>WebBrowserLanguagesDialog.on_downButton_clicked</h4> |
225 <h4>WebBrowserLanguagesDialog.on_downButton_clicked</h4> |
229 <b>on_downButton_clicked</b>(<i></i>) |
226 <b>on_downButton_clicked</b>(<i></i>) |
230 |
|
231 <p> |
227 <p> |
232 Private slot to move a language down. |
228 Private slot to move a language down. |
233 </p> |
229 </p> |
|
230 |
234 <a NAME="WebBrowserLanguagesDialog.on_removeButton_clicked" ID="WebBrowserLanguagesDialog.on_removeButton_clicked"></a> |
231 <a NAME="WebBrowserLanguagesDialog.on_removeButton_clicked" ID="WebBrowserLanguagesDialog.on_removeButton_clicked"></a> |
235 <h4>WebBrowserLanguagesDialog.on_removeButton_clicked</h4> |
232 <h4>WebBrowserLanguagesDialog.on_removeButton_clicked</h4> |
236 <b>on_removeButton_clicked</b>(<i></i>) |
233 <b>on_removeButton_clicked</b>(<i></i>) |
237 |
|
238 <p> |
234 <p> |
239 Private slot to remove a language from the list of acceptable |
235 Private slot to remove a language from the list of acceptable |
240 languages. |
236 languages. |
241 </p> |
237 </p> |
|
238 |
242 <a NAME="WebBrowserLanguagesDialog.on_upButton_clicked" ID="WebBrowserLanguagesDialog.on_upButton_clicked"></a> |
239 <a NAME="WebBrowserLanguagesDialog.on_upButton_clicked" ID="WebBrowserLanguagesDialog.on_upButton_clicked"></a> |
243 <h4>WebBrowserLanguagesDialog.on_upButton_clicked</h4> |
240 <h4>WebBrowserLanguagesDialog.on_upButton_clicked</h4> |
244 <b>on_upButton_clicked</b>(<i></i>) |
241 <b>on_upButton_clicked</b>(<i></i>) |
245 |
|
246 <p> |
242 <p> |
247 Private slot to move a language up. |
243 Private slot to move a language up. |
248 </p> |
244 </p> |
|
245 |
249 <div align="right"><a href="#top">Up</a></div> |
246 <div align="right"><a href="#top">Up</a></div> |
250 <hr /> |
247 <hr /> |
251 </body></html> |
248 </body></html> |