53 </table> |
53 </table> |
54 <h3>Methods</h3> |
54 <h3>Methods</h3> |
55 <table> |
55 <table> |
56 <tr> |
56 <tr> |
57 <td><a href="#HelpLanguagesDialog.__init__">HelpLanguagesDialog</a></td> |
57 <td><a href="#HelpLanguagesDialog.__init__">HelpLanguagesDialog</a></td> |
58 <td>Constructor</td> |
58 <td>Constructor</td> |
59 </tr><tr> |
59 </tr><tr> |
60 <td><a href="#HelpLanguagesDialog.__currentChanged">__currentChanged</a></td> |
60 <td><a href="#HelpLanguagesDialog.__currentChanged">__currentChanged</a></td> |
61 <td>Private slot to handle a change of the current selection.</td> |
61 <td>Private slot to handle a change of the current selection.</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#HelpLanguagesDialog.accept">accept</a></td> |
63 <td><a href="#HelpLanguagesDialog.accept">accept</a></td> |
64 <td>Public method to accept the data entered.</td> |
64 <td>Public method to accept the data entered.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#HelpLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
66 <td><a href="#HelpLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
67 <td>Class method to get the list of default accept languages.</td> |
67 <td>Class method to get the list of default accept languages.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#HelpLanguagesDialog.expand">expand</a></td> |
69 <td><a href="#HelpLanguagesDialog.expand">expand</a></td> |
70 <td>Class method to expand a language enum to a readable languages list.</td> |
70 <td>Class method to expand a language enum to a readable languages list.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#HelpLanguagesDialog.httpString">httpString</a></td> |
72 <td><a href="#HelpLanguagesDialog.httpString">httpString</a></td> |
73 <td>Class method to convert a list of acceptable languages into a byte array that can be sent along with the Accept-Language http header (see RFC 2616).</td> |
73 <td>Class method to convert a list of acceptable languages into a byte array that can be sent along with the Accept-Language http header (see RFC 2616).</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#HelpLanguagesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
75 <td><a href="#HelpLanguagesDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
76 <td>Private slot to add a language to the list of acceptable languages.</td> |
76 <td>Private slot to add a language to the list of acceptable languages.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#HelpLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
78 <td><a href="#HelpLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
79 <td>Private slot to move a language down.</td> |
79 <td>Private slot to move a language down.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#HelpLanguagesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
81 <td><a href="#HelpLanguagesDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> |
82 <td>Private slot to remove a language from the list of acceptable languages.</td> |
82 <td>Private slot to remove a language from the list of acceptable languages.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#HelpLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
84 <td><a href="#HelpLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
85 <td>Private slot to move a language up.</td> |
85 <td>Private slot to move a language up.</td> |
86 </tr> |
86 </tr> |
87 </table> |
87 </table> |
88 <a NAME="HelpLanguagesDialog.__init__" ID="HelpLanguagesDialog.__init__"></a> |
88 <a NAME="HelpLanguagesDialog.__init__" ID="HelpLanguagesDialog.__init__"></a> |
89 <h4>HelpLanguagesDialog (Constructor)</h4> |
89 <h4>HelpLanguagesDialog (Constructor)</h4> |
90 <b>HelpLanguagesDialog</b>(<i>parent = None</i>) |
90 <b>HelpLanguagesDialog</b>(<i>parent = None</i>) |
91 <p> |
91 <p> |
92 Constructor |
92 Constructor |
93 </p><dl> |
93 </p><dl> |
94 <dt><i>parent</i></dt> |
94 <dt><i>parent</i></dt> |
95 <dd> |
95 <dd> |
96 reference to the parent widget (QWidget) |
96 reference to the parent widget (QWidget) |
97 </dd> |
97 </dd> |
98 </dl><a NAME="HelpLanguagesDialog.__currentChanged" ID="HelpLanguagesDialog.__currentChanged"></a> |
98 </dl><a NAME="HelpLanguagesDialog.__currentChanged" ID="HelpLanguagesDialog.__currentChanged"></a> |
99 <h4>HelpLanguagesDialog.__currentChanged</h4> |
99 <h4>HelpLanguagesDialog.__currentChanged</h4> |
100 <b>__currentChanged</b>(<i>current, previous</i>) |
100 <b>__currentChanged</b>(<i>current, previous</i>) |
101 <p> |
101 <p> |
102 Private slot to handle a change of the current selection. |
102 Private slot to handle a change of the current selection. |
103 </p><dl> |
103 </p><dl> |
104 <dt><i>current</i></dt> |
104 <dt><i>current</i></dt> |
105 <dd> |
105 <dd> |
106 index of the currently selected item (QModelIndex) |
106 index of the currently selected item (QModelIndex) |
107 </dd><dt><i>previous</i></dt> |
107 </dd><dt><i>previous</i></dt> |
108 <dd> |
108 <dd> |
109 index of the previously selected item (QModelIndex) |
109 index of the previously selected item (QModelIndex) |
110 </dd> |
110 </dd> |
111 </dl><a NAME="HelpLanguagesDialog.accept" ID="HelpLanguagesDialog.accept"></a> |
111 </dl><a NAME="HelpLanguagesDialog.accept" ID="HelpLanguagesDialog.accept"></a> |
112 <h4>HelpLanguagesDialog.accept</h4> |
112 <h4>HelpLanguagesDialog.accept</h4> |
113 <b>accept</b>(<i></i>) |
113 <b>accept</b>(<i></i>) |
114 <p> |
114 <p> |
115 Public method to accept the data entered. |
115 Public method to accept the data entered. |
116 </p><a NAME="HelpLanguagesDialog.defaultAcceptLanguages" ID="HelpLanguagesDialog.defaultAcceptLanguages"></a> |
116 </p><a NAME="HelpLanguagesDialog.defaultAcceptLanguages" ID="HelpLanguagesDialog.defaultAcceptLanguages"></a> |
117 <h4>HelpLanguagesDialog.defaultAcceptLanguages</h4> |
117 <h4>HelpLanguagesDialog.defaultAcceptLanguages</h4> |
118 <b>defaultAcceptLanguages</b>(<i></i>) |
118 <b>defaultAcceptLanguages</b>(<i></i>) |
119 <p> |
119 <p> |
120 Class method to get the list of default accept languages. |
120 Class method to get the list of default accept languages. |
121 </p><dl> |
121 </p><dl> |
122 <dt>Returns:</dt> |
122 <dt>Returns:</dt> |
123 <dd> |
123 <dd> |
124 list of acceptable languages (list of strings) |
124 list of acceptable languages (list of strings) |
125 </dd> |
125 </dd> |
126 </dl><a NAME="HelpLanguagesDialog.expand" ID="HelpLanguagesDialog.expand"></a> |
126 </dl><a NAME="HelpLanguagesDialog.expand" ID="HelpLanguagesDialog.expand"></a> |
127 <h4>HelpLanguagesDialog.expand</h4> |
127 <h4>HelpLanguagesDialog.expand</h4> |
128 <b>expand</b>(<i>language</i>) |
128 <b>expand</b>(<i>language</i>) |
129 <p> |
129 <p> |
130 Class method to expand a language enum to a readable languages list. |
130 Class method to expand a language enum to a readable languages list. |
131 </p><dl> |
131 </p><dl> |
132 <dt><i>language</i></dt> |
132 <dt><i>language</i></dt> |
133 <dd> |
133 <dd> |
134 language number (QLocale.Language) |
134 language number (QLocale.Language) |
135 </dd> |
135 </dd> |
136 </dl><dl> |
136 </dl><dl> |
137 <dt>Returns:</dt> |
137 <dt>Returns:</dt> |
138 <dd> |
138 <dd> |
139 list of expanded language names (list of strings) |
139 list of expanded language names (list of strings) |
140 </dd> |
140 </dd> |
141 </dl><a NAME="HelpLanguagesDialog.httpString" ID="HelpLanguagesDialog.httpString"></a> |
141 </dl><a NAME="HelpLanguagesDialog.httpString" ID="HelpLanguagesDialog.httpString"></a> |
142 <h4>HelpLanguagesDialog.httpString</h4> |
142 <h4>HelpLanguagesDialog.httpString</h4> |
143 <b>httpString</b>(<i>languages</i>) |
143 <b>httpString</b>(<i>languages</i>) |
144 <p> |
144 <p> |
145 Class method to convert a list of acceptable languages into a byte array that |
145 Class method to convert a list of acceptable languages into a byte array that |
146 can be sent along with the Accept-Language http header (see RFC 2616). |
146 can be sent along with the Accept-Language http header (see RFC 2616). |
147 </p><dl> |
147 </p><dl> |
148 <dt><i>languages</i></dt> |
148 <dt><i>languages</i></dt> |
149 <dd> |
149 <dd> |
150 list of acceptable languages (list of strings) |
150 list of acceptable languages (list of strings) |
151 </dd> |
151 </dd> |
152 </dl><dl> |
152 </dl><dl> |
153 <dt>Returns:</dt> |
153 <dt>Returns:</dt> |
154 <dd> |
154 <dd> |
155 converted list (QByteArray) |
155 converted list (QByteArray) |
156 </dd> |
156 </dd> |
157 </dl><a NAME="HelpLanguagesDialog.on_addButton_clicked" ID="HelpLanguagesDialog.on_addButton_clicked"></a> |
157 </dl><a NAME="HelpLanguagesDialog.on_addButton_clicked" ID="HelpLanguagesDialog.on_addButton_clicked"></a> |
158 <h4>HelpLanguagesDialog.on_addButton_clicked</h4> |
158 <h4>HelpLanguagesDialog.on_addButton_clicked</h4> |
159 <b>on_addButton_clicked</b>(<i></i>) |
159 <b>on_addButton_clicked</b>(<i></i>) |
160 <p> |
160 <p> |
161 Private slot to add a language to the list of acceptable languages. |
161 Private slot to add a language to the list of acceptable languages. |
162 </p><a NAME="HelpLanguagesDialog.on_downButton_clicked" ID="HelpLanguagesDialog.on_downButton_clicked"></a> |
162 </p><a NAME="HelpLanguagesDialog.on_downButton_clicked" ID="HelpLanguagesDialog.on_downButton_clicked"></a> |
163 <h4>HelpLanguagesDialog.on_downButton_clicked</h4> |
163 <h4>HelpLanguagesDialog.on_downButton_clicked</h4> |
164 <b>on_downButton_clicked</b>(<i></i>) |
164 <b>on_downButton_clicked</b>(<i></i>) |
165 <p> |
165 <p> |
166 Private slot to move a language down. |
166 Private slot to move a language down. |
167 </p><a NAME="HelpLanguagesDialog.on_removeButton_clicked" ID="HelpLanguagesDialog.on_removeButton_clicked"></a> |
167 </p><a NAME="HelpLanguagesDialog.on_removeButton_clicked" ID="HelpLanguagesDialog.on_removeButton_clicked"></a> |
168 <h4>HelpLanguagesDialog.on_removeButton_clicked</h4> |
168 <h4>HelpLanguagesDialog.on_removeButton_clicked</h4> |
169 <b>on_removeButton_clicked</b>(<i></i>) |
169 <b>on_removeButton_clicked</b>(<i></i>) |
170 <p> |
170 <p> |
171 Private slot to remove a language from the list of acceptable languages. |
171 Private slot to remove a language from the list of acceptable languages. |
172 </p><a NAME="HelpLanguagesDialog.on_upButton_clicked" ID="HelpLanguagesDialog.on_upButton_clicked"></a> |
172 </p><a NAME="HelpLanguagesDialog.on_upButton_clicked" ID="HelpLanguagesDialog.on_upButton_clicked"></a> |
173 <h4>HelpLanguagesDialog.on_upButton_clicked</h4> |
173 <h4>HelpLanguagesDialog.on_upButton_clicked</h4> |
174 <b>on_upButton_clicked</b>(<i></i>) |
174 <b>on_upButton_clicked</b>(<i></i>) |
175 <p> |
175 <p> |
176 Private slot to move a language up. |
176 Private slot to move a language up. |
177 </p> |
177 </p> |
178 <div align="right"><a href="#top">Up</a></div> |
178 <div align="right"><a href="#top">Up</a></div> |
179 <hr /> |
179 <hr /> |
180 </body></html> |
180 </body></html> |