|
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 plugin.</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 plugin. |
|
55 </p> |
|
56 <h3>Derived from</h3> |
|
57 QObject |
|
58 <h3>Class Attributes</h3> |
|
59 <table> |
|
60 <tr><td>PreferencesKey</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 <table> |
|
64 <tr><td>None</td></tr> |
|
65 </table> |
|
66 <h3>Methods</h3> |
|
67 <table> |
|
68 <tr> |
|
69 <td><a href="#TranslatorPlugin.__init__">TranslatorPlugin</a></td> |
|
70 <td>Constructor</td> |
|
71 </tr><tr> |
|
72 <td><a href="#TranslatorPlugin.__initialize">__initialize</a></td> |
|
73 <td>Private slot to (re)initialize the plugin.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#TranslatorPlugin.activate">activate</a></td> |
|
76 <td>Public method to activate this plugin.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#TranslatorPlugin.deactivate">deactivate</a></td> |
|
79 <td>Public method to deactivate this plugin.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#TranslatorPlugin.getPreferences">getPreferences</a></td> |
|
82 <td>Public method to retrieve the various settings.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#TranslatorPlugin.getPreferencesDefault">getPreferencesDefault</a></td> |
|
85 <td>Public method to retrieve the various default settings.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#TranslatorPlugin.setPreferences">setPreferences</a></td> |
|
88 <td>Public method to store the various settings.</td> |
|
89 </tr> |
|
90 </table> |
|
91 <h3>Static Methods</h3> |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 <a NAME="TranslatorPlugin.__init__" ID="TranslatorPlugin.__init__"></a> |
|
96 <h4>TranslatorPlugin (Constructor)</h4> |
|
97 <b>TranslatorPlugin</b>(<i>ui</i>) |
|
98 <p> |
|
99 Constructor |
|
100 </p><dl> |
|
101 <dt><i>ui</i></dt> |
|
102 <dd> |
|
103 reference to the user interface object (UI.UserInterface) |
|
104 </dd> |
|
105 </dl><a NAME="TranslatorPlugin.__initialize" ID="TranslatorPlugin.__initialize"></a> |
|
106 <h4>TranslatorPlugin.__initialize</h4> |
|
107 <b>__initialize</b>(<i></i>) |
|
108 <p> |
|
109 Private slot to (re)initialize the plugin. |
|
110 </p><a NAME="TranslatorPlugin.activate" ID="TranslatorPlugin.activate"></a> |
|
111 <h4>TranslatorPlugin.activate</h4> |
|
112 <b>activate</b>(<i></i>) |
|
113 <p> |
|
114 Public method to activate this plugin. |
|
115 </p><dl> |
|
116 <dt>Returns:</dt> |
|
117 <dd> |
|
118 tuple of None and activation status (boolean) |
|
119 </dd> |
|
120 </dl><a NAME="TranslatorPlugin.deactivate" ID="TranslatorPlugin.deactivate"></a> |
|
121 <h4>TranslatorPlugin.deactivate</h4> |
|
122 <b>deactivate</b>(<i></i>) |
|
123 <p> |
|
124 Public method to deactivate this plugin. |
|
125 </p><a NAME="TranslatorPlugin.getPreferences" ID="TranslatorPlugin.getPreferences"></a> |
|
126 <h4>TranslatorPlugin.getPreferences</h4> |
|
127 <b>getPreferences</b>(<i>key</i>) |
|
128 <p> |
|
129 Public method to retrieve the various settings. |
|
130 </p><dl> |
|
131 <dt><i>key</i></dt> |
|
132 <dd> |
|
133 the key of the value to get |
|
134 </dd> |
|
135 </dl><dl> |
|
136 <dt>Returns:</dt> |
|
137 <dd> |
|
138 the requested setting |
|
139 </dd> |
|
140 </dl><a NAME="TranslatorPlugin.getPreferencesDefault" ID="TranslatorPlugin.getPreferencesDefault"></a> |
|
141 <h4>TranslatorPlugin.getPreferencesDefault</h4> |
|
142 <b>getPreferencesDefault</b>(<i>key</i>) |
|
143 <p> |
|
144 Public method to retrieve the various default settings. |
|
145 </p><dl> |
|
146 <dt><i>key</i></dt> |
|
147 <dd> |
|
148 the key of the value to get |
|
149 </dd> |
|
150 </dl><dl> |
|
151 <dt>Returns:</dt> |
|
152 <dd> |
|
153 the requested setting |
|
154 </dd> |
|
155 </dl><a NAME="TranslatorPlugin.setPreferences" ID="TranslatorPlugin.setPreferences"></a> |
|
156 <h4>TranslatorPlugin.setPreferences</h4> |
|
157 <b>setPreferences</b>(<i>key, value</i>) |
|
158 <p> |
|
159 Public method to store the various settings. |
|
160 </p><dl> |
|
161 <dt><i>key</i></dt> |
|
162 <dd> |
|
163 the key of the setting to be set (string) |
|
164 </dd><dt><i>value</i></dt> |
|
165 <dd> |
|
166 the value to be set |
|
167 </dd> |
|
168 </dl> |
|
169 <div align="right"><a href="#top">Up</a></div> |
|
170 <hr /><hr /> |
|
171 <a NAME="createTranslatorPage" ID="createTranslatorPage"></a> |
|
172 <h2>createTranslatorPage</h2> |
|
173 <b>createTranslatorPage</b>(<i>configDlg</i>) |
|
174 <p> |
|
175 Module function to create the Translator configuration page. |
|
176 </p><dl> |
|
177 <dt><i>configDlg</i></dt> |
|
178 <dd> |
|
179 reference to the configuration dialog |
|
180 </dd> |
|
181 </dl><dl> |
|
182 <dt>Returns:</dt> |
|
183 <dd> |
|
184 reference to the configuration page |
|
185 </dd> |
|
186 </dl> |
|
187 <div align="right"><a href="#top">Up</a></div> |
|
188 <hr /><hr /> |
|
189 <a NAME="getConfigData" ID="getConfigData"></a> |
|
190 <h2>getConfigData</h2> |
|
191 <b>getConfigData</b>(<i></i>) |
|
192 <p> |
|
193 Module function returning data as required by the configuration dialog. |
|
194 </p><dl> |
|
195 <dt>Returns:</dt> |
|
196 <dd> |
|
197 dictionary containing the relevant data |
|
198 </dd> |
|
199 </dl> |
|
200 <div align="right"><a href="#top">Up</a></div> |
|
201 <hr /><hr /> |
|
202 <a NAME="prepareUninstall" ID="prepareUninstall"></a> |
|
203 <h2>prepareUninstall</h2> |
|
204 <b>prepareUninstall</b>(<i></i>) |
|
205 <p> |
|
206 Module function to prepare for an uninstallation. |
|
207 </p> |
|
208 <div align="right"><a href="#top">Up</a></div> |
|
209 <hr /> |
|
210 </body></html> |