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