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