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.WebBrowser.WebBrowserLanguagesDialog</h1> |
23 <h1>eric6.WebBrowser.WebBrowserLanguagesDialog</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a dialog to configure the preferred languages. |
26 Module implementing a dialog to configure the preferred languages. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#WebBrowserLanguagesDialog">WebBrowserLanguagesDialog</a></td> |
38 <td><a href="#WebBrowserLanguagesDialog">WebBrowserLanguagesDialog</a></td> |
34 <td>Class implementing a dialog to configure the preferred languages.</td> |
39 <td>Class implementing a dialog to configure the preferred languages.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="WebBrowserLanguagesDialog" ID="WebBrowserLanguagesDialog"></a> |
49 <a NAME="WebBrowserLanguagesDialog" ID="WebBrowserLanguagesDialog"></a> |
43 <h2>WebBrowserLanguagesDialog</h2> |
50 <h2>WebBrowserLanguagesDialog</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a dialog to configure the preferred languages. |
53 Class implementing a dialog to configure the preferred languages. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QDialog, Ui_WebBrowserLanguagesDialog |
56 QDialog, Ui_WebBrowserLanguagesDialog |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
54 <table> |
63 |
|
64 <table> |
|
65 |
55 <tr> |
66 <tr> |
56 <td><a href="#WebBrowserLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
67 <td><a href="#WebBrowserLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
57 <td>Class method to get the list of default accept languages.</td> |
68 <td>Class method to get the list of default accept languages.</td> |
58 </tr><tr> |
69 </tr> |
|
70 <tr> |
59 <td><a href="#WebBrowserLanguagesDialog.expand">expand</a></td> |
71 <td><a href="#WebBrowserLanguagesDialog.expand">expand</a></td> |
60 <td>Class method to expand a language enum to a readable languages list.</td> |
72 <td>Class method to expand a language enum to a readable languages list.</td> |
61 </tr><tr> |
73 </tr> |
|
74 <tr> |
62 <td><a href="#WebBrowserLanguagesDialog.httpString">httpString</a></td> |
75 <td><a href="#WebBrowserLanguagesDialog.httpString">httpString</a></td> |
63 <td>Class method to convert a list of acceptable languages into a byte array.</td> |
76 <td>Class method to convert a list of acceptable languages into a byte array.</td> |
64 </tr> |
77 </tr> |
65 </table> |
78 </table> |
66 <h3>Methods</h3> |
79 <h3>Methods</h3> |
67 <table> |
80 |
|
81 <table> |
|
82 |
68 <tr> |
83 <tr> |
69 <td><a href="#WebBrowserLanguagesDialog.__init__">WebBrowserLanguagesDialog</a></td> |
84 <td><a href="#WebBrowserLanguagesDialog.__init__">WebBrowserLanguagesDialog</a></td> |
70 <td>Constructor</td> |
85 <td>Constructor</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#WebBrowserLanguagesDialog.__currentChanged">__currentChanged</a></td> |
88 <td><a href="#WebBrowserLanguagesDialog.__currentChanged">__currentChanged</a></td> |
73 <td>Private slot to handle a change of the current selection.</td> |
89 <td>Private slot to handle a change of the current selection.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#WebBrowserLanguagesDialog.accept">accept</a></td> |
92 <td><a href="#WebBrowserLanguagesDialog.accept">accept</a></td> |
76 <td>Public method to accept the data entered.</td> |
93 <td>Public method to accept the data entered.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#WebBrowserLanguagesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
96 <td><a href="#WebBrowserLanguagesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
79 <td>Private slot to add a language to the list of acceptable languages.</td> |
97 <td>Private slot to add a language to the list of acceptable languages.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#WebBrowserLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
100 <td><a href="#WebBrowserLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
82 <td>Private slot to move a language down.</td> |
101 <td>Private slot to move a language down.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#WebBrowserLanguagesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
104 <td><a href="#WebBrowserLanguagesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
85 <td>Private slot to remove a language from the list of acceptable languages.</td> |
105 <td>Private slot to remove a language from the list of acceptable languages.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#WebBrowserLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
108 <td><a href="#WebBrowserLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
88 <td>Private slot to move a language up.</td> |
109 <td>Private slot to move a language up.</td> |
89 </tr> |
110 </tr> |
90 </table> |
111 </table> |
91 <h3>Static Methods</h3> |
112 <h3>Static Methods</h3> |
92 <table> |
113 |
93 <tr><td>None</td></tr> |
114 <table> |
94 </table> |
115 <tr><td>None</td></tr> |
|
116 </table> |
|
117 |
95 <a NAME="WebBrowserLanguagesDialog.defaultAcceptLanguages" ID="WebBrowserLanguagesDialog.defaultAcceptLanguages"></a> |
118 <a NAME="WebBrowserLanguagesDialog.defaultAcceptLanguages" ID="WebBrowserLanguagesDialog.defaultAcceptLanguages"></a> |
96 <h4>WebBrowserLanguagesDialog.defaultAcceptLanguages (class method)</h4> |
119 <h4>WebBrowserLanguagesDialog.defaultAcceptLanguages (class method)</h4> |
97 <b>defaultAcceptLanguages</b>(<i></i>) |
120 <b>defaultAcceptLanguages</b>(<i></i>) |
|
121 |
98 <p> |
122 <p> |
99 Class method to get the list of default accept languages. |
123 Class method to get the list of default accept languages. |
100 </p><dl> |
124 </p> |
|
125 <dl> |
101 <dt>Returns:</dt> |
126 <dt>Returns:</dt> |
102 <dd> |
127 <dd> |
103 list of acceptable languages (list of strings) |
128 list of acceptable languages (list of strings) |
104 </dd> |
129 </dd> |
105 </dl><a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
130 </dl> |
|
131 <a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
106 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
132 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
107 <b>expand</b>(<i>language</i>) |
133 <b>expand</b>(<i>language</i>) |
|
134 |
108 <p> |
135 <p> |
109 Class method to expand a language enum to a readable languages |
136 Class method to expand a language enum to a readable languages |
110 list. |
137 list. |
111 </p><dl> |
138 </p> |
|
139 <dl> |
|
140 |
112 <dt><i>language</i></dt> |
141 <dt><i>language</i></dt> |
113 <dd> |
142 <dd> |
114 language number (QLocale.Language) |
143 language number (QLocale.Language) |
115 </dd> |
144 </dd> |
116 </dl><dl> |
145 </dl> |
|
146 <dl> |
117 <dt>Returns:</dt> |
147 <dt>Returns:</dt> |
118 <dd> |
148 <dd> |
119 list of expanded language names (list of strings) |
149 list of expanded language names (list of strings) |
120 </dd> |
150 </dd> |
121 </dl><a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
151 </dl> |
|
152 <a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
122 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
153 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
123 <b>httpString</b>(<i>languages</i>) |
154 <b>httpString</b>(<i>languages</i>) |
|
155 |
124 <p> |
156 <p> |
125 Class method to convert a list of acceptable languages into a |
157 Class method to convert a list of acceptable languages into a |
126 byte array. |
158 byte array. |
127 </p><p> |
159 </p> |
|
160 <p> |
128 The byte array can be sent along with the Accept-Language http header |
161 The byte array can be sent along with the Accept-Language http header |
129 (see RFC 2616). |
162 (see RFC 2616). |
130 </p><dl> |
163 </p> |
|
164 <dl> |
|
165 |
131 <dt><i>languages</i></dt> |
166 <dt><i>languages</i></dt> |
132 <dd> |
167 <dd> |
133 list of acceptable languages (list of strings) |
168 list of acceptable languages (list of strings) |
134 </dd> |
169 </dd> |
135 </dl><dl> |
170 </dl> |
|
171 <dl> |
136 <dt>Returns:</dt> |
172 <dt>Returns:</dt> |
137 <dd> |
173 <dd> |
138 converted list (QByteArray) |
174 converted list (QByteArray) |
139 </dd> |
175 </dd> |
140 </dl><a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
176 </dl> |
|
177 <a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
141 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
178 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
142 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
179 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
|
180 |
143 <p> |
181 <p> |
144 Constructor |
182 Constructor |
145 </p><dl> |
183 </p> |
|
184 <dl> |
|
185 |
146 <dt><i>parent</i></dt> |
186 <dt><i>parent</i></dt> |
147 <dd> |
187 <dd> |
148 reference to the parent widget (QWidget) |
188 reference to the parent widget (QWidget) |
149 </dd> |
189 </dd> |
150 </dl><a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
190 </dl> |
|
191 <a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
151 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
192 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
152 <b>__currentChanged</b>(<i>current, previous</i>) |
193 <b>__currentChanged</b>(<i>current, previous</i>) |
|
194 |
153 <p> |
195 <p> |
154 Private slot to handle a change of the current selection. |
196 Private slot to handle a change of the current selection. |
155 </p><dl> |
197 </p> |
|
198 <dl> |
|
199 |
156 <dt><i>current</i></dt> |
200 <dt><i>current</i></dt> |
157 <dd> |
201 <dd> |
158 index of the currently selected item (QModelIndex) |
202 index of the currently selected item (QModelIndex) |
159 </dd><dt><i>previous</i></dt> |
203 </dd> |
|
204 <dt><i>previous</i></dt> |
160 <dd> |
205 <dd> |
161 index of the previously selected item (QModelIndex) |
206 index of the previously selected item (QModelIndex) |
162 </dd> |
207 </dd> |
163 </dl><a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
208 </dl> |
|
209 <a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
164 <h4>WebBrowserLanguagesDialog.accept</h4> |
210 <h4>WebBrowserLanguagesDialog.accept</h4> |
165 <b>accept</b>(<i></i>) |
211 <b>accept</b>(<i></i>) |
|
212 |
166 <p> |
213 <p> |
167 Public method to accept the data entered. |
214 Public method to accept the data entered. |
168 </p><a NAME="WebBrowserLanguagesDialog.on_addButton_clicked" ID="WebBrowserLanguagesDialog.on_addButton_clicked"></a> |
215 </p> |
|
216 <a NAME="WebBrowserLanguagesDialog.on_addButton_clicked" ID="WebBrowserLanguagesDialog.on_addButton_clicked"></a> |
169 <h4>WebBrowserLanguagesDialog.on_addButton_clicked</h4> |
217 <h4>WebBrowserLanguagesDialog.on_addButton_clicked</h4> |
170 <b>on_addButton_clicked</b>(<i></i>) |
218 <b>on_addButton_clicked</b>(<i></i>) |
|
219 |
171 <p> |
220 <p> |
172 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. |
173 </p><a NAME="WebBrowserLanguagesDialog.on_downButton_clicked" ID="WebBrowserLanguagesDialog.on_downButton_clicked"></a> |
222 </p> |
|
223 <a NAME="WebBrowserLanguagesDialog.on_downButton_clicked" ID="WebBrowserLanguagesDialog.on_downButton_clicked"></a> |
174 <h4>WebBrowserLanguagesDialog.on_downButton_clicked</h4> |
224 <h4>WebBrowserLanguagesDialog.on_downButton_clicked</h4> |
175 <b>on_downButton_clicked</b>(<i></i>) |
225 <b>on_downButton_clicked</b>(<i></i>) |
|
226 |
176 <p> |
227 <p> |
177 Private slot to move a language down. |
228 Private slot to move a language down. |
178 </p><a NAME="WebBrowserLanguagesDialog.on_removeButton_clicked" ID="WebBrowserLanguagesDialog.on_removeButton_clicked"></a> |
229 </p> |
|
230 <a NAME="WebBrowserLanguagesDialog.on_removeButton_clicked" ID="WebBrowserLanguagesDialog.on_removeButton_clicked"></a> |
179 <h4>WebBrowserLanguagesDialog.on_removeButton_clicked</h4> |
231 <h4>WebBrowserLanguagesDialog.on_removeButton_clicked</h4> |
180 <b>on_removeButton_clicked</b>(<i></i>) |
232 <b>on_removeButton_clicked</b>(<i></i>) |
|
233 |
181 <p> |
234 <p> |
182 Private slot to remove a language from the list of acceptable |
235 Private slot to remove a language from the list of acceptable |
183 languages. |
236 languages. |
184 </p><a NAME="WebBrowserLanguagesDialog.on_upButton_clicked" ID="WebBrowserLanguagesDialog.on_upButton_clicked"></a> |
237 </p> |
|
238 <a NAME="WebBrowserLanguagesDialog.on_upButton_clicked" ID="WebBrowserLanguagesDialog.on_upButton_clicked"></a> |
185 <h4>WebBrowserLanguagesDialog.on_upButton_clicked</h4> |
239 <h4>WebBrowserLanguagesDialog.on_upButton_clicked</h4> |
186 <b>on_upButton_clicked</b>(<i></i>) |
240 <b>on_upButton_clicked</b>(<i></i>) |
|
241 |
187 <p> |
242 <p> |
188 Private slot to move a language up. |
243 Private slot to move a language up. |
189 </p> |
244 </p> |
190 <div align="right"><a href="#top">Up</a></div> |
245 <div align="right"><a href="#top">Up</a></div> |
191 <hr /> |
246 <hr /> |