118 # page creation function, parent key, |
118 # page creation function, parent key, |
119 # reference to configuration page (must always be last)] |
119 # reference to configuration page (must always be last)] |
120 # The dialog module must have the module function create to |
120 # The dialog module must have the module function create to |
121 # create the configuration page. This must have the method |
121 # create the configuration page. This must have the method |
122 # save to save the settings. |
122 # save to save the settings. |
123 "applicationPage": \ |
123 "applicationPage": |
124 [self.trUtf8("Application"), "preferences-application.png", |
124 [self.trUtf8("Application"), "preferences-application.png", |
125 "ApplicationPage", None, None], |
125 "ApplicationPage", None, None], |
126 "cooperationPage": \ |
126 "cooperationPage": |
127 [self.trUtf8("Cooperation"), "preferences-cooperation.png", |
127 [self.trUtf8("Cooperation"), "preferences-cooperation.png", |
128 "CooperationPage", None, None], |
128 "CooperationPage", None, None], |
129 "corbaPage": \ |
129 "corbaPage": |
130 [self.trUtf8("CORBA"), "preferences-orbit.png", |
130 [self.trUtf8("CORBA"), "preferences-orbit.png", |
131 "CorbaPage", None, None], |
131 "CorbaPage", None, None], |
132 "emailPage": \ |
132 "emailPage": |
133 [self.trUtf8("Email"), "preferences-mail_generic.png", |
133 [self.trUtf8("Email"), "preferences-mail_generic.png", |
134 "EmailPage", None, None], |
134 "EmailPage", None, None], |
135 "graphicsPage": \ |
135 "graphicsPage": |
136 [self.trUtf8("Graphics"), "preferences-graphics.png", |
136 [self.trUtf8("Graphics"), "preferences-graphics.png", |
137 "GraphicsPage", None, None], |
137 "GraphicsPage", None, None], |
138 "iconsPage": \ |
138 "iconsPage": |
139 [self.trUtf8("Icons"), "preferences-icons.png", |
139 [self.trUtf8("Icons"), "preferences-icons.png", |
140 "IconsPage", None, None], |
140 "IconsPage", None, None], |
141 "ircPage": \ |
141 "ircPage": |
142 [self.trUtf8("IRC"), "irc.png", |
142 [self.trUtf8("IRC"), "irc.png", |
143 "IrcPage", None, None], |
143 "IrcPage", None, None], |
144 "networkPage": \ |
144 "networkPage": |
145 [self.trUtf8("Network"), "preferences-network.png", |
145 [self.trUtf8("Network"), "preferences-network.png", |
146 "NetworkPage", None, None], |
146 "NetworkPage", None, None], |
147 "notificationsPage": \ |
147 "notificationsPage": |
148 [self.trUtf8("Notifications"), |
148 [self.trUtf8("Notifications"), |
149 "preferences-notifications.png", |
149 "preferences-notifications.png", |
150 "NotificationsPage", None, None], |
150 "NotificationsPage", None, None], |
151 "pluginManagerPage": \ |
151 "pluginManagerPage": |
152 [self.trUtf8("Plugin Manager"), |
152 [self.trUtf8("Plugin Manager"), |
153 "preferences-pluginmanager.png", |
153 "preferences-pluginmanager.png", |
154 "PluginManagerPage", None, None], |
154 "PluginManagerPage", None, None], |
155 "printerPage": \ |
155 "printerPage": |
156 [self.trUtf8("Printer"), "preferences-printer.png", |
156 [self.trUtf8("Printer"), "preferences-printer.png", |
157 "PrinterPage", None, None], |
157 "PrinterPage", None, None], |
158 "pythonPage": \ |
158 "pythonPage": |
159 [self.trUtf8("Python"), "preferences-python.png", |
159 [self.trUtf8("Python"), "preferences-python.png", |
160 "PythonPage", None, None], |
160 "PythonPage", None, None], |
161 "qtPage": \ |
161 "qtPage": |
162 [self.trUtf8("Qt"), "preferences-qtlogo.png", |
162 [self.trUtf8("Qt"), "preferences-qtlogo.png", |
163 "QtPage", None, None], |
163 "QtPage", None, None], |
164 "securityPage": \ |
164 "securityPage": |
165 [self.trUtf8("Security"), "preferences-security.png", |
165 [self.trUtf8("Security"), "preferences-security.png", |
166 "SecurityPage", None, None], |
166 "SecurityPage", None, None], |
167 "shellPage": \ |
167 "shellPage": |
168 [self.trUtf8("Shell"), "preferences-shell.png", |
168 [self.trUtf8("Shell"), "preferences-shell.png", |
169 "ShellPage", None, None], |
169 "ShellPage", None, None], |
170 "tasksPage": \ |
170 "tasksPage": |
171 [self.trUtf8("Tasks"), "task.png", |
171 [self.trUtf8("Tasks"), "task.png", |
172 "TasksPage", None, None], |
172 "TasksPage", None, None], |
173 "templatesPage": \ |
173 "templatesPage": |
174 [self.trUtf8("Templates"), "preferences-template.png", |
174 [self.trUtf8("Templates"), "preferences-template.png", |
175 "TemplatesPage", None, None], |
175 "TemplatesPage", None, None], |
176 "trayStarterPage": \ |
176 "trayStarterPage": |
177 [self.trUtf8("Tray Starter"), "erict.png", |
177 [self.trUtf8("Tray Starter"), "erict.png", |
178 "TrayStarterPage", None, None], |
178 "TrayStarterPage", None, None], |
179 "vcsPage": \ |
179 "vcsPage": |
180 [self.trUtf8("Version Control Systems"), |
180 [self.trUtf8("Version Control Systems"), |
181 "preferences-vcs.png", |
181 "preferences-vcs.png", |
182 "VcsPage", None, None], |
182 "VcsPage", None, None], |
183 |
183 |
184 "0debuggerPage": \ |
184 "0debuggerPage": |
185 [self.trUtf8("Debugger"), "preferences-debugger.png", |
185 [self.trUtf8("Debugger"), "preferences-debugger.png", |
186 None, None, None], |
186 None, None, None], |
187 "debuggerGeneralPage": \ |
187 "debuggerGeneralPage": |
188 [self.trUtf8("General"), "preferences-debugger.png", |
188 [self.trUtf8("General"), "preferences-debugger.png", |
189 "DebuggerGeneralPage", "0debuggerPage", None], |
189 "DebuggerGeneralPage", "0debuggerPage", None], |
190 "debuggerPythonPage": \ |
190 "debuggerPythonPage": |
191 [self.trUtf8("Python"), "preferences-pyDebugger.png", |
191 [self.trUtf8("Python"), "preferences-pyDebugger.png", |
192 "DebuggerPythonPage", "0debuggerPage", None], |
192 "DebuggerPythonPage", "0debuggerPage", None], |
193 "debuggerPython3Page": \ |
193 "debuggerPython3Page": |
194 [self.trUtf8("Python3"), "preferences-pyDebugger.png", |
194 [self.trUtf8("Python3"), "preferences-pyDebugger.png", |
195 "DebuggerPython3Page", "0debuggerPage", None], |
195 "DebuggerPython3Page", "0debuggerPage", None], |
196 "debuggerRubyPage": \ |
196 "debuggerRubyPage": |
197 [self.trUtf8("Ruby"), "preferences-rbDebugger.png", |
197 [self.trUtf8("Ruby"), "preferences-rbDebugger.png", |
198 "DebuggerRubyPage", "0debuggerPage", None], |
198 "DebuggerRubyPage", "0debuggerPage", None], |
199 |
199 |
200 "0editorPage": \ |
200 "0editorPage": |
201 [self.trUtf8("Editor"), "preferences-editor.png", |
201 [self.trUtf8("Editor"), "preferences-editor.png", |
202 None, None, None], |
202 None, None, None], |
203 "editorAPIsPage": \ |
203 "editorAPIsPage": |
204 [self.trUtf8("APIs"), "preferences-api.png", |
204 [self.trUtf8("APIs"), "preferences-api.png", |
205 "EditorAPIsPage", "0editorPage", None], |
205 "EditorAPIsPage", "0editorPage", None], |
206 "editorAutocompletionPage": \ |
206 "editorAutocompletionPage": |
207 [self.trUtf8("Autocompletion"), |
207 [self.trUtf8("Autocompletion"), |
208 "preferences-autocompletion.png", |
208 "preferences-autocompletion.png", |
209 "EditorAutocompletionPage", "0editorPage", None], |
209 "EditorAutocompletionPage", "0editorPage", None], |
210 "editorAutocompletionQScintillaPage": \ |
210 "editorAutocompletionQScintillaPage": |
211 [self.trUtf8("QScintilla"), "qscintilla.png", |
211 [self.trUtf8("QScintilla"), "qscintilla.png", |
212 "EditorAutocompletionQScintillaPage", |
212 "EditorAutocompletionQScintillaPage", |
213 "editorAutocompletionPage", None], |
213 "editorAutocompletionPage", None], |
214 "editorCalltipsPage": \ |
214 "editorCalltipsPage": |
215 [self.trUtf8("Calltips"), "preferences-calltips.png", |
215 [self.trUtf8("Calltips"), "preferences-calltips.png", |
216 "EditorCalltipsPage", "0editorPage", None], |
216 "EditorCalltipsPage", "0editorPage", None], |
217 "editorCalltipsQScintillaPage": \ |
217 "editorCalltipsQScintillaPage": |
218 [self.trUtf8("QScintilla"), "qscintilla.png", |
218 [self.trUtf8("QScintilla"), "qscintilla.png", |
219 "EditorCalltipsQScintillaPage", "editorCalltipsPage", |
219 "EditorCalltipsQScintillaPage", "editorCalltipsPage", None], |
220 None], |
220 "editorGeneralPage": |
221 "editorGeneralPage": \ |
221 [self.trUtf8("General"), "preferences-general.png", |
222 [self.trUtf8("General"), "preferences-general.png", |
222 "EditorGeneralPage", "0editorPage", None], |
223 "EditorGeneralPage", "0editorPage", None], |
223 "editorFilePage": |
224 "editorFilePage": \ |
224 [self.trUtf8("Filehandling"), |
225 [self.trUtf8("Filehandling"), |
225 "preferences-filehandling.png", |
226 "preferences-filehandling.png", |
226 "EditorFilePage", "0editorPage", None], |
227 "EditorFilePage", "0editorPage", None], |
227 "editorSearchPage": |
228 "editorSearchPage": \ |
228 [self.trUtf8("Searching"), "preferences-search.png", |
229 [self.trUtf8("Searching"), "preferences-search.png", |
229 "EditorSearchPage", "0editorPage", None], |
230 "EditorSearchPage", "0editorPage", None], |
230 "editorSpellCheckingPage": |
231 "editorSpellCheckingPage": \ |
231 [self.trUtf8("Spell checking"), |
232 [self.trUtf8("Spell checking"), |
232 "preferences-spellchecking.png", |
233 "preferences-spellchecking.png", |
233 "EditorSpellCheckingPage", "0editorPage", None], |
234 "EditorSpellCheckingPage", "0editorPage", None], |
234 "editorStylesPage": |
235 "editorStylesPage": \ |
235 [self.trUtf8("Style"), "preferences-styles.png", |
236 [self.trUtf8("Style"), "preferences-styles.png", |
236 "EditorStylesPage", "0editorPage", None], |
237 "EditorStylesPage", "0editorPage", None], |
237 "editorSyntaxPage": |
238 "editorSyntaxPage": \ |
238 [self.trUtf8("Code Checkers"), "preferences-debugger.png", |
239 [self.trUtf8("Code Checkers"), "preferences-debugger.png", |
239 "EditorSyntaxPage", "0editorPage", None], |
240 "EditorSyntaxPage", "0editorPage", None], |
240 "editorTypingPage": |
241 "editorTypingPage": \ |
241 [self.trUtf8("Typing"), "preferences-typing.png", |
242 [self.trUtf8("Typing"), "preferences-typing.png", |
242 "EditorTypingPage", "0editorPage", None], |
243 "EditorTypingPage", "0editorPage", None], |
243 "editorExportersPage": |
244 "editorExportersPage": \ |
244 [self.trUtf8("Exporters"), "preferences-exporters.png", |
245 [self.trUtf8("Exporters"), "preferences-exporters.png", |
245 "EditorExportersPage", "0editorPage", None], |
246 "EditorExportersPage", "0editorPage", None], |
|
247 |
246 |
248 "1editorLexerPage": \ |
247 "1editorLexerPage": |
249 [self.trUtf8("Highlighters"), |
248 [self.trUtf8("Highlighters"), |
250 "preferences-highlighting-styles.png", |
249 "preferences-highlighting-styles.png", |
251 None, "0editorPage", None], |
250 None, "0editorPage", None], |
252 "editorHighlightersPage": \ |
251 "editorHighlightersPage": |
253 [self.trUtf8("Filetype Associations"), |
252 [self.trUtf8("Filetype Associations"), |
254 "preferences-highlighter-association.png", |
253 "preferences-highlighter-association.png", |
255 "EditorHighlightersPage", "1editorLexerPage", None], |
254 "EditorHighlightersPage", "1editorLexerPage", None], |
256 "editorHighlightingStylesPage": \ |
255 "editorHighlightingStylesPage": |
257 [self.trUtf8("Styles"), |
256 [self.trUtf8("Styles"), |
258 "preferences-highlighting-styles.png", |
257 "preferences-highlighting-styles.png", |
259 "EditorHighlightingStylesPage", "1editorLexerPage", None], |
258 "EditorHighlightingStylesPage", "1editorLexerPage", None], |
260 "editorKeywordsPage": \ |
259 "editorKeywordsPage": |
261 [self.trUtf8("Keywords"), "preferences-keywords.png", |
260 [self.trUtf8("Keywords"), "preferences-keywords.png", |
262 "EditorKeywordsPage", "1editorLexerPage", None], |
261 "EditorKeywordsPage", "1editorLexerPage", None], |
263 "editorPropertiesPage": \ |
262 "editorPropertiesPage": |
264 [self.trUtf8("Properties"), "preferences-properties.png", |
263 [self.trUtf8("Properties"), "preferences-properties.png", |
265 "EditorPropertiesPage", "1editorLexerPage", None], |
264 "EditorPropertiesPage", "1editorLexerPage", None], |
266 |
265 |
267 "0helpPage": \ |
266 "0helpPage": |
268 [self.trUtf8("Help"), "preferences-help.png", |
267 [self.trUtf8("Help"), "preferences-help.png", |
269 None, None, None], |
268 None, None, None], |
270 "helpAppearancePage": \ |
269 "helpAppearancePage": |
271 [self.trUtf8("Appearance"), "preferences-styles.png", |
270 [self.trUtf8("Appearance"), "preferences-styles.png", |
272 "HelpAppearancePage", "0helpPage", None], |
271 "HelpAppearancePage", "0helpPage", None], |
273 "helpDocumentationPage": \ |
272 "helpDocumentationPage": |
274 [self.trUtf8("Help Documentation"), |
273 [self.trUtf8("Help Documentation"), |
275 "preferences-helpdocumentation.png", |
274 "preferences-helpdocumentation.png", |
276 "HelpDocumentationPage", "0helpPage", None], |
275 "HelpDocumentationPage", "0helpPage", None], |
277 "helpViewersPage": \ |
276 "helpViewersPage": |
278 [self.trUtf8("Help Viewers"), |
277 [self.trUtf8("Help Viewers"), |
279 "preferences-helpviewers.png", |
278 "preferences-helpviewers.png", |
280 "HelpViewersPage", "0helpPage", None], |
279 "HelpViewersPage", "0helpPage", None], |
281 "helpVirusTotalPage": \ |
280 "helpVirusTotalPage": |
282 [self.trUtf8("VirusTotal Interface"), "virustotal.png", |
281 [self.trUtf8("VirusTotal Interface"), "virustotal.png", |
283 "HelpVirusTotalPage", "0helpPage", None], |
282 "HelpVirusTotalPage", "0helpPage", None], |
284 "helpWebBrowserPage": \ |
283 "helpWebBrowserPage": |
285 [self.trUtf8("eric5 Web Browser"), "ericWeb.png", |
284 [self.trUtf8("eric5 Web Browser"), "ericWeb.png", |
286 "HelpWebBrowserPage", "0helpPage", None], |
285 "HelpWebBrowserPage", "0helpPage", None], |
287 |
286 |
288 "0projectPage": \ |
287 "0projectPage": |
289 [self.trUtf8("Project"), "preferences-project.png", |
288 [self.trUtf8("Project"), "preferences-project.png", |
290 None, None, None], |
289 None, None, None], |
291 "projectBrowserPage": \ |
290 "projectBrowserPage": |
292 [self.trUtf8("Project Viewer"), "preferences-project.png", |
291 [self.trUtf8("Project Viewer"), "preferences-project.png", |
293 "ProjectBrowserPage", "0projectPage", None], |
292 "ProjectBrowserPage", "0projectPage", None], |
294 "projectPage": \ |
293 "projectPage": |
295 [self.trUtf8("Project"), "preferences-project.png", |
294 [self.trUtf8("Project"), "preferences-project.png", |
296 "ProjectPage", "0projectPage", None], |
295 "ProjectPage", "0projectPage", None], |
297 "multiProjectPage": \ |
296 "multiProjectPage": |
298 [self.trUtf8("Multiproject"), |
297 [self.trUtf8("Multiproject"), |
299 "preferences-multiproject.png", |
298 "preferences-multiproject.png", |
300 "MultiProjectPage", "0projectPage", None], |
299 "MultiProjectPage", "0projectPage", None], |
301 |
300 |
302 "0interfacePage": \ |
301 "0interfacePage": |
303 [self.trUtf8("Interface"), "preferences-interface.png", |
302 [self.trUtf8("Interface"), "preferences-interface.png", |
304 None, None, None], |
303 None, None, None], |
305 "interfacePage": \ |
304 "interfacePage": |
306 [self.trUtf8("Interface"), "preferences-interface.png", |
305 [self.trUtf8("Interface"), "preferences-interface.png", |
307 "InterfacePage", "0interfacePage", None], |
306 "InterfacePage", "0interfacePage", None], |
308 "viewmanagerPage": \ |
307 "viewmanagerPage": |
309 [self.trUtf8("Viewmanager"), "preferences-viewmanager.png", |
308 [self.trUtf8("Viewmanager"), "preferences-viewmanager.png", |
310 "ViewmanagerPage", "0interfacePage", None], |
309 "ViewmanagerPage", "0interfacePage", None], |
311 } |
310 } |
312 |
311 |
313 self.configItems.update( |
312 self.configItems.update( |
314 e5App().getObject("PluginManager").getPluginConfigData()) |
313 e5App().getObject("PluginManager").getPluginConfigData()) |
315 elif displayMode == ConfigurationWidget.HelpBrowserMode: |
314 elif displayMode == ConfigurationWidget.HelpBrowserMode: |
318 # page creation function, parent key, |
317 # page creation function, parent key, |
319 # reference to configuration page (must always be last)] |
318 # reference to configuration page (must always be last)] |
320 # The dialog module must have the module function create to |
319 # The dialog module must have the module function create to |
321 # create the configuration page. This must have the method |
320 # create the configuration page. This must have the method |
322 # save to save the settings. |
321 # save to save the settings. |
323 "interfacePage": \ |
322 "interfacePage": |
324 [self.trUtf8("Interface"), "preferences-interface.png", |
323 [self.trUtf8("Interface"), "preferences-interface.png", |
325 "HelpInterfacePage", None, None], |
324 "HelpInterfacePage", None, None], |
326 "networkPage": \ |
325 "networkPage": |
327 [self.trUtf8("Network"), "preferences-network.png", |
326 [self.trUtf8("Network"), "preferences-network.png", |
328 "NetworkPage", None, None], |
327 "NetworkPage", None, None], |
329 "printerPage": \ |
328 "printerPage": |
330 [self.trUtf8("Printer"), "preferences-printer.png", |
329 [self.trUtf8("Printer"), "preferences-printer.png", |
331 "PrinterPage", None, None], |
330 "PrinterPage", None, None], |
332 "securityPage": \ |
331 "securityPage": |
333 [self.trUtf8("Security"), "preferences-security.png", |
332 [self.trUtf8("Security"), "preferences-security.png", |
334 "SecurityPage", None, None], |
333 "SecurityPage", None, None], |
335 |
334 |
336 "0helpPage": \ |
335 "0helpPage": |
337 [self.trUtf8("Help"), "preferences-help.png", |
336 [self.trUtf8("Help"), "preferences-help.png", |
338 None, None, None], |
337 None, None, None], |
339 "helpAppearancePage": \ |
338 "helpAppearancePage": |
340 [self.trUtf8("Appearance"), "preferences-styles.png", |
339 [self.trUtf8("Appearance"), "preferences-styles.png", |
341 "HelpAppearancePage", "0helpPage", None], |
340 "HelpAppearancePage", "0helpPage", None], |
342 "helpDocumentationPage": \ |
341 "helpDocumentationPage": |
343 [self.trUtf8("Help Documentation"), |
342 [self.trUtf8("Help Documentation"), |
344 "preferences-helpdocumentation.png", |
343 "preferences-helpdocumentation.png", |
345 "HelpDocumentationPage", "0helpPage", None], |
344 "HelpDocumentationPage", "0helpPage", None], |
346 "helpVirusTotalPage": \ |
345 "helpVirusTotalPage": |
347 [self.trUtf8("VirusTotal Interface"), "virustotal.png", |
346 [self.trUtf8("VirusTotal Interface"), "virustotal.png", |
348 "HelpVirusTotalPage", "0helpPage", None], |
347 "HelpVirusTotalPage", "0helpPage", None], |
349 "helpWebBrowserPage": \ |
348 "helpWebBrowserPage": |
350 [self.trUtf8("eric5 Web Browser"), "ericWeb.png", |
349 [self.trUtf8("eric5 Web Browser"), "ericWeb.png", |
351 "HelpWebBrowserPage", "0helpPage", None], |
350 "HelpWebBrowserPage", "0helpPage", None], |
352 } |
351 } |
353 elif displayMode == ConfigurationWidget.TrayStarterMode: |
352 elif displayMode == ConfigurationWidget.TrayStarterMode: |
354 self.configItems = { |
353 self.configItems = { |
355 # key : [display string, pixmap name, dialog module name or |
354 # key : [display string, pixmap name, dialog module name or |
356 # page creation function, parent key, |
355 # page creation function, parent key, |
357 # reference to configuration page (must always be last)] |
356 # reference to configuration page (must always be last)] |
358 # The dialog module must have the module function create to |
357 # The dialog module must have the module function create to |
359 # create the configuration page. This must have the method |
358 # create the configuration page. This must have the method |
360 # save to save the settings. |
359 # save to save the settings. |
361 "trayStarterPage": \ |
360 "trayStarterPage": |
362 [self.trUtf8("Tray Starter"), "erict.png", |
361 [self.trUtf8("Tray Starter"), "erict.png", |
363 "TrayStarterPage", None, None], |
362 "TrayStarterPage", None, None], |
364 } |
363 } |
365 else: |
364 else: |
366 raise RuntimeError("Illegal mode value: {0}".format(displayMode)) |
365 raise RuntimeError("Illegal mode value: {0}".format(displayMode)) |
367 |
366 |
368 # generate the list entries |
367 # generate the list entries |