|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.PluginTranslator</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.PluginTranslator</h1> |
|
23 <p> |
|
24 Module implementing the Translator plugin. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>author</td></tr><tr><td>autoactivate</td></tr><tr><td>className</td></tr><tr><td>deactivateable</td></tr><tr><td>error</td></tr><tr><td>longDescription</td></tr><tr><td>name</td></tr><tr><td>needsRestart</td></tr><tr><td>packageName</td></tr><tr><td>pyqtApi</td></tr><tr><td>python2Compatible</td></tr><tr><td>shortDescription</td></tr><tr><td>translatorPluginObject</td></tr><tr><td>version</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#TranslatorPlugin">TranslatorPlugin</a></td> |
|
34 <td>Class implementing the Translator plug-in.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr> |
|
40 <td><a href="#createTranslatorPage">createTranslatorPage</a></td> |
|
41 <td>Module function to create the Translator configuration page.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#getConfigData">getConfigData</a></td> |
|
44 <td>Module function returning data as required by the configuration dialog.</td> |
|
45 </tr><tr> |
|
46 <td><a href="#prepareUninstall">prepareUninstall</a></td> |
|
47 <td>Module function to prepare for an uninstallation.</td> |
|
48 </tr> |
|
49 </table> |
|
50 <hr /><hr /> |
|
51 <a NAME="TranslatorPlugin" ID="TranslatorPlugin"></a> |
|
52 <h2>TranslatorPlugin</h2> |
|
53 <p> |
|
54 Class implementing the Translator plug-in. |
|
55 </p><h3>Signals</h3> |
|
56 <dl> |
|
57 <dt>updateLanguages()</dt> |
|
58 <dd> |
|
59 emitted to indicate a languages update |
|
60 </dd> |
|
61 </dl> |
|
62 <h3>Derived from</h3> |
|
63 QObject |
|
64 <h3>Class Attributes</h3> |
|
65 <table> |
|
66 <tr><td>PreferencesKey</td></tr> |
|
67 </table> |
|
68 <h3>Class Methods</h3> |
|
69 <table> |
|
70 <tr><td>None</td></tr> |
|
71 </table> |
|
72 <h3>Methods</h3> |
|
73 <table> |
|
74 <tr> |
|
75 <td><a href="#TranslatorPlugin.__init__">TranslatorPlugin</a></td> |
|
76 <td>Constructor</td> |
|
77 </tr><tr> |
|
78 <td><a href="#TranslatorPlugin.__initialize">__initialize</a></td> |
|
79 <td>Private slot to (re)initialize the plugin.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#TranslatorPlugin.activate">activate</a></td> |
|
82 <td>Public method to activate this plugin.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#TranslatorPlugin.deactivate">deactivate</a></td> |
|
85 <td>Public method to deactivate this plugin.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#TranslatorPlugin.getPreferences">getPreferences</a></td> |
|
88 <td>Public method to retrieve the various settings.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#TranslatorPlugin.getPreferencesDefault">getPreferencesDefault</a></td> |
|
91 <td>Public method to retrieve the various default settings.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#TranslatorPlugin.setPreferences">setPreferences</a></td> |
|
94 <td>Public method to store the various settings.</td> |
|
95 </tr> |
|
96 </table> |
|
97 <h3>Static Methods</h3> |
|
98 <table> |
|
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 <a NAME="TranslatorPlugin.__init__" ID="TranslatorPlugin.__init__"></a> |
|
102 <h4>TranslatorPlugin (Constructor)</h4> |
|
103 <b>TranslatorPlugin</b>(<i>ui</i>) |
|
104 <p> |
|
105 Constructor |
|
106 </p><dl> |
|
107 <dt><i>ui</i></dt> |
|
108 <dd> |
|
109 reference to the user interface object (UI.UserInterface) |
|
110 </dd> |
|
111 </dl><a NAME="TranslatorPlugin.__initialize" ID="TranslatorPlugin.__initialize"></a> |
|
112 <h4>TranslatorPlugin.__initialize</h4> |
|
113 <b>__initialize</b>(<i></i>) |
|
114 <p> |
|
115 Private slot to (re)initialize the plugin. |
|
116 </p><a NAME="TranslatorPlugin.activate" ID="TranslatorPlugin.activate"></a> |
|
117 <h4>TranslatorPlugin.activate</h4> |
|
118 <b>activate</b>(<i></i>) |
|
119 <p> |
|
120 Public method to activate this plugin. |
|
121 </p><dl> |
|
122 <dt>Returns:</dt> |
|
123 <dd> |
|
124 tuple of None and activation status (boolean) |
|
125 </dd> |
|
126 </dl><a NAME="TranslatorPlugin.deactivate" ID="TranslatorPlugin.deactivate"></a> |
|
127 <h4>TranslatorPlugin.deactivate</h4> |
|
128 <b>deactivate</b>(<i></i>) |
|
129 <p> |
|
130 Public method to deactivate this plugin. |
|
131 </p><a NAME="TranslatorPlugin.getPreferences" ID="TranslatorPlugin.getPreferences"></a> |
|
132 <h4>TranslatorPlugin.getPreferences</h4> |
|
133 <b>getPreferences</b>(<i>key</i>) |
|
134 <p> |
|
135 Public method to retrieve the various settings. |
|
136 </p><dl> |
|
137 <dt><i>key</i></dt> |
|
138 <dd> |
|
139 the key of the value to get |
|
140 </dd> |
|
141 </dl><dl> |
|
142 <dt>Returns:</dt> |
|
143 <dd> |
|
144 the requested setting |
|
145 </dd> |
|
146 </dl><a NAME="TranslatorPlugin.getPreferencesDefault" ID="TranslatorPlugin.getPreferencesDefault"></a> |
|
147 <h4>TranslatorPlugin.getPreferencesDefault</h4> |
|
148 <b>getPreferencesDefault</b>(<i>key</i>) |
|
149 <p> |
|
150 Public method to retrieve the various default settings. |
|
151 </p><dl> |
|
152 <dt><i>key</i></dt> |
|
153 <dd> |
|
154 the key of the value to get |
|
155 </dd> |
|
156 </dl><dl> |
|
157 <dt>Returns:</dt> |
|
158 <dd> |
|
159 the requested setting |
|
160 </dd> |
|
161 </dl><a NAME="TranslatorPlugin.setPreferences" ID="TranslatorPlugin.setPreferences"></a> |
|
162 <h4>TranslatorPlugin.setPreferences</h4> |
|
163 <b>setPreferences</b>(<i>key, value</i>) |
|
164 <p> |
|
165 Public method to store the various settings. |
|
166 </p><dl> |
|
167 <dt><i>key</i></dt> |
|
168 <dd> |
|
169 the key of the setting to be set (string) |
|
170 </dd><dt><i>value</i></dt> |
|
171 <dd> |
|
172 the value to be set |
|
173 </dd> |
|
174 </dl> |
|
175 <div align="right"><a href="#top">Up</a></div> |
|
176 <hr /><hr /> |
|
177 <a NAME="createTranslatorPage" ID="createTranslatorPage"></a> |
|
178 <h2>createTranslatorPage</h2> |
|
179 <b>createTranslatorPage</b>(<i>configDlg</i>) |
|
180 <p> |
|
181 Module function to create the Translator configuration page. |
|
182 </p><dl> |
|
183 <dt><i>configDlg</i></dt> |
|
184 <dd> |
|
185 reference to the configuration dialog |
|
186 </dd> |
|
187 </dl><dl> |
|
188 <dt>Returns:</dt> |
|
189 <dd> |
|
190 reference to the configuration page |
|
191 </dd> |
|
192 </dl> |
|
193 <div align="right"><a href="#top">Up</a></div> |
|
194 <hr /><hr /> |
|
195 <a NAME="getConfigData" ID="getConfigData"></a> |
|
196 <h2>getConfigData</h2> |
|
197 <b>getConfigData</b>(<i></i>) |
|
198 <p> |
|
199 Module function returning data as required by the configuration dialog. |
|
200 </p><dl> |
|
201 <dt>Returns:</dt> |
|
202 <dd> |
|
203 dictionary containing the relevant data |
|
204 </dd> |
|
205 </dl> |
|
206 <div align="right"><a href="#top">Up</a></div> |
|
207 <hr /><hr /> |
|
208 <a NAME="prepareUninstall" ID="prepareUninstall"></a> |
|
209 <h2>prepareUninstall</h2> |
|
210 <b>prepareUninstall</b>(<i></i>) |
|
211 <p> |
|
212 Module function to prepare for an uninstallation. |
|
213 </p> |
|
214 <div align="right"><a href="#top">Up</a></div> |
|
215 <hr /> |
|
216 </body></html> |