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