|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric4.Helpviewer.HelpLanguagesDialog</title> |
|
6 <style> |
|
7 body { |
|
8 background:white; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #4FA4FF; } |
|
14 h2 { color: white; background: #4FA4FF; } |
|
15 h3 { color: white; background: #00557F; } |
|
16 h4 { color: white; background: #00557F; } |
|
17 |
|
18 a { color: #AA5500; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric4.Helpviewer.HelpLanguagesDialog</h1> |
|
24 <p> |
|
25 Module implementing a dialog to configure the preferred languages. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#HelpLanguagesDialog">HelpLanguagesDialog</a></td> |
|
35 <td>Class implementing a dialog to configure the preferred languages.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="HelpLanguagesDialog" ID="HelpLanguagesDialog"></a> |
|
44 <h2>HelpLanguagesDialog</h2> |
|
45 <p> |
|
46 Class implementing a dialog to configure the preferred languages. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QDialog, Ui_HelpLanguagesDialog |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Methods</h3> |
|
55 <table> |
|
56 <tr> |
|
57 <td><a href="#HelpLanguagesDialog.__init__">HelpLanguagesDialog</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#HelpLanguagesDialog.__currentChanged">__currentChanged</a></td> |
|
61 <td>Private slot to handle a change of the current selection.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#HelpLanguagesDialog.accept">accept</a></td> |
|
64 <td>Public method to accept the data entered.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#HelpLanguagesDialog.defaultAcceptLanguages">defaultAcceptLanguages</a></td> |
|
67 <td>Class method to get the list of default accept languages.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#HelpLanguagesDialog.expand">expand</a></td> |
|
70 <td>Class method to expand a language enum to a readable languages list.</td> |
|
71 </tr><tr> |
|
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> |
|
74 </tr><tr> |
|
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> |
|
77 </tr><tr> |
|
78 <td><a href="#HelpLanguagesDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
|
79 <td>Private slot to move a language down.</td> |
|
80 </tr><tr> |
|
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> |
|
83 </tr><tr> |
|
84 <td><a href="#HelpLanguagesDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
|
85 <td>Private slot to move a language up.</td> |
|
86 </tr> |
|
87 </table> |
|
88 <a NAME="HelpLanguagesDialog.__init__" ID="HelpLanguagesDialog.__init__"></a> |
|
89 <h4>HelpLanguagesDialog (Constructor)</h4> |
|
90 <b>HelpLanguagesDialog</b>(<i>parent = None</i>) |
|
91 <p> |
|
92 Constructor |
|
93 </p><dl> |
|
94 <dt><i>parent</i></dt> |
|
95 <dd> |
|
96 reference to the parent widget (QWidget) |
|
97 </dd> |
|
98 </dl><a NAME="HelpLanguagesDialog.__currentChanged" ID="HelpLanguagesDialog.__currentChanged"></a> |
|
99 <h4>HelpLanguagesDialog.__currentChanged</h4> |
|
100 <b>__currentChanged</b>(<i>current, previous</i>) |
|
101 <p> |
|
102 Private slot to handle a change of the current selection. |
|
103 </p><dl> |
|
104 <dt><i>current</i></dt> |
|
105 <dd> |
|
106 index of the currently selected item (QModelIndex) |
|
107 </dd><dt><i>previous</i></dt> |
|
108 <dd> |
|
109 index of the previously selected item (QModelIndex) |
|
110 </dd> |
|
111 </dl><a NAME="HelpLanguagesDialog.accept" ID="HelpLanguagesDialog.accept"></a> |
|
112 <h4>HelpLanguagesDialog.accept</h4> |
|
113 <b>accept</b>(<i></i>) |
|
114 <p> |
|
115 Public method to accept the data entered. |
|
116 </p><a NAME="HelpLanguagesDialog.defaultAcceptLanguages" ID="HelpLanguagesDialog.defaultAcceptLanguages"></a> |
|
117 <h4>HelpLanguagesDialog.defaultAcceptLanguages</h4> |
|
118 <b>defaultAcceptLanguages</b>(<i></i>) |
|
119 <p> |
|
120 Class method to get the list of default accept languages. |
|
121 </p><dl> |
|
122 <dt>Returns:</dt> |
|
123 <dd> |
|
124 list of acceptable languages (list of strings) |
|
125 </dd> |
|
126 </dl><a NAME="HelpLanguagesDialog.expand" ID="HelpLanguagesDialog.expand"></a> |
|
127 <h4>HelpLanguagesDialog.expand</h4> |
|
128 <b>expand</b>(<i>language</i>) |
|
129 <p> |
|
130 Class method to expand a language enum to a readable languages list. |
|
131 </p><dl> |
|
132 <dt><i>language</i></dt> |
|
133 <dd> |
|
134 language number (QLocale.Language) |
|
135 </dd> |
|
136 </dl><dl> |
|
137 <dt>Returns:</dt> |
|
138 <dd> |
|
139 list of expanded language names (list of strings) |
|
140 </dd> |
|
141 </dl><a NAME="HelpLanguagesDialog.httpString" ID="HelpLanguagesDialog.httpString"></a> |
|
142 <h4>HelpLanguagesDialog.httpString</h4> |
|
143 <b>httpString</b>(<i>languages</i>) |
|
144 <p> |
|
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). |
|
147 </p><dl> |
|
148 <dt><i>languages</i></dt> |
|
149 <dd> |
|
150 list of acceptable languages (list of strings) |
|
151 </dd> |
|
152 </dl><dl> |
|
153 <dt>Returns:</dt> |
|
154 <dd> |
|
155 converted list (QByteArray) |
|
156 </dd> |
|
157 </dl><a NAME="HelpLanguagesDialog.on_addButton_clicked" ID="HelpLanguagesDialog.on_addButton_clicked"></a> |
|
158 <h4>HelpLanguagesDialog.on_addButton_clicked</h4> |
|
159 <b>on_addButton_clicked</b>(<i></i>) |
|
160 <p> |
|
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> |
|
163 <h4>HelpLanguagesDialog.on_downButton_clicked</h4> |
|
164 <b>on_downButton_clicked</b>(<i></i>) |
|
165 <p> |
|
166 Private slot to move a language down. |
|
167 </p><a NAME="HelpLanguagesDialog.on_removeButton_clicked" ID="HelpLanguagesDialog.on_removeButton_clicked"></a> |
|
168 <h4>HelpLanguagesDialog.on_removeButton_clicked</h4> |
|
169 <b>on_removeButton_clicked</b>(<i></i>) |
|
170 <p> |
|
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> |
|
173 <h4>HelpLanguagesDialog.on_upButton_clicked</h4> |
|
174 <b>on_upButton_clicked</b>(<i></i>) |
|
175 <p> |
|
176 Private slot to move a language up. |
|
177 </p> |
|
178 <div align="right"><a href="#top">Up</a></div> |
|
179 <hr /> |
|
180 </body></html> |