138 # reference to configuration page (must always be last)] |
138 # reference to configuration page (must always be last)] |
139 # The dialog module must have the module function 'create' to |
139 # The dialog module must have the module function 'create' to |
140 # create the configuration page. This must have the method |
140 # create the configuration page. This must have the method |
141 # 'save' to save the settings. |
141 # 'save' to save the settings. |
142 "applicationPage": |
142 "applicationPage": |
143 [self.tr("Application"), "preferences-application.png", |
143 [self.tr("Application"), "preferences-application", |
144 "ApplicationPage", None, None], |
144 "ApplicationPage", None, None], |
145 "condaPage": |
145 "condaPage": |
146 [self.tr("Conda"), "miniconda.png", |
146 [self.tr("Conda"), "miniconda", |
147 "CondaPage", None, None], |
147 "CondaPage", None, None], |
148 "cooperationPage": |
148 "cooperationPage": |
149 [self.tr("Cooperation"), "preferences-cooperation.png", |
149 [self.tr("Cooperation"), "preferences-cooperation", |
150 "CooperationPage", None, None], |
150 "CooperationPage", None, None], |
151 "corbaPage": |
151 "corbaPage": |
152 [self.tr("CORBA"), "preferences-orbit.png", |
152 [self.tr("CORBA"), "preferences-orbit", |
153 "CorbaPage", None, None], |
153 "CorbaPage", None, None], |
154 "diffPage": |
154 "diffPage": |
155 [self.tr("Diff"), "diffFiles.png", |
155 [self.tr("Diff"), "diffFiles", |
156 "DiffColoursPage", None, None], |
156 "DiffColoursPage", None, None], |
157 "emailPage": |
157 "emailPage": |
158 [self.tr("Email"), "preferences-mail_generic.png", |
158 [self.tr("Email"), "preferences-mail_generic", |
159 "EmailPage", None, None], |
159 "EmailPage", None, None], |
160 "graphicsPage": |
160 "graphicsPage": |
161 [self.tr("Graphics"), "preferences-graphics.png", |
161 [self.tr("Graphics"), "preferences-graphics", |
162 "GraphicsPage", None, None], |
162 "GraphicsPage", None, None], |
163 "hexEditorPage": |
163 "hexEditorPage": |
164 [self.tr("Hex Editor"), "hexEditor.png", |
164 [self.tr("Hex Editor"), "hexEditor", |
165 "HexEditorPage", None, None], |
165 "HexEditorPage", None, None], |
166 "iconsPage": |
166 "iconsPage": |
167 [self.tr("Icons"), "preferences-icons.png", |
167 [self.tr("Icons"), "preferences-icons", |
168 "IconsPage", None, None], |
168 "IconsPage", None, None], |
169 "ircPage": |
169 "ircPage": |
170 [self.tr("IRC"), "irc.png", |
170 [self.tr("IRC"), "irc", |
171 "IrcPage", None, None], |
171 "IrcPage", None, None], |
172 "logViewerPage": |
172 "logViewerPage": |
173 [self.tr("Log-Viewer"), "preferences-logviewer.png", |
173 [self.tr("Log-Viewer"), "preferences-logviewer", |
174 "LogViewerPage", None, None], |
174 "LogViewerPage", None, None], |
175 "microPythonPage": |
175 "microPythonPage": |
176 [self.tr("MicroPython"), "micropython", |
176 [self.tr("MicroPython"), "micropython", |
177 "MicroPythonPage", None, None], |
177 "MicroPythonPage", None, None], |
178 "mimeTypesPage": |
178 "mimeTypesPage": |
179 [self.tr("Mimetypes"), "preferences-mimetypes.png", |
179 [self.tr("Mimetypes"), "preferences-mimetypes", |
180 "MimeTypesPage", None, None], |
180 "MimeTypesPage", None, None], |
181 "networkPage": |
181 "networkPage": |
182 [self.tr("Network"), "preferences-network.png", |
182 [self.tr("Network"), "preferences-network", |
183 "NetworkPage", None, None], |
183 "NetworkPage", None, None], |
184 "notificationsPage": |
184 "notificationsPage": |
185 [self.tr("Notifications"), |
185 [self.tr("Notifications"), |
186 "preferences-notifications.png", |
186 "preferences-notifications", |
187 "NotificationsPage", None, None], |
187 "NotificationsPage", None, None], |
188 "pipPage": |
188 "pipPage": |
189 [self.tr("Python Package Management"), "pypi.png", |
189 [self.tr("Python Package Management"), "pypi", |
190 "PipPage", None, None], |
190 "PipPage", None, None], |
191 "pluginManagerPage": |
191 "pluginManagerPage": |
192 [self.tr("Plugin Manager"), |
192 [self.tr("Plugin Manager"), |
193 "preferences-pluginmanager.png", |
193 "preferences-pluginmanager", |
194 "PluginManagerPage", None, None], |
194 "PluginManagerPage", None, None], |
195 "printerPage": |
195 "printerPage": |
196 [self.tr("Printer"), "preferences-printer.png", |
196 [self.tr("Printer"), "preferences-printer", |
197 "PrinterPage", None, None], |
197 "PrinterPage", None, None], |
198 "protobufPage": |
198 "protobufPage": |
199 [self.tr("Protobuf"), "protobuf.png", |
199 [self.tr("Protobuf"), "protobuf", |
200 "ProtobufPage", None, None], |
200 "ProtobufPage", None, None], |
201 "pythonPage": |
201 "pythonPage": |
202 [self.tr("Python"), "preferences-python.png", |
202 [self.tr("Python"), "preferences-python", |
203 "PythonPage", None, None], |
203 "PythonPage", None, None], |
204 "qtPage": |
204 "qtPage": |
205 [self.tr("Qt"), "preferences-qtlogo.png", |
205 [self.tr("Qt"), "preferences-qtlogo", |
206 "QtPage", None, None], |
206 "QtPage", None, None], |
207 "securityPage": |
207 "securityPage": |
208 [self.tr("Security"), "preferences-security.png", |
208 [self.tr("Security"), "preferences-security", |
209 "SecurityPage", None, None], |
209 "SecurityPage", None, None], |
210 "shellPage": |
210 "shellPage": |
211 [self.tr("Shell"), "preferences-shell.png", |
211 [self.tr("Shell"), "preferences-shell", |
212 "ShellPage", None, None], |
212 "ShellPage", None, None], |
213 "tasksPage": |
213 "tasksPage": |
214 [self.tr("Tasks"), "task.png", |
214 [self.tr("Tasks"), "task", |
215 "TasksPage", None, None], |
215 "TasksPage", None, None], |
216 "templatesPage": |
216 "templatesPage": |
217 [self.tr("Templates"), "preferences-template.png", |
217 [self.tr("Templates"), "preferences-template", |
218 "TemplatesPage", None, None], |
218 "TemplatesPage", None, None], |
219 "trayStarterPage": |
219 "trayStarterPage": |
220 [self.tr("Tray Starter"), "erict.png", |
220 [self.tr("Tray Starter"), "erict", |
221 "TrayStarterPage", None, None], |
221 "TrayStarterPage", None, None], |
222 "vcsPage": |
222 "vcsPage": |
223 [self.tr("Version Control Systems"), |
223 [self.tr("Version Control Systems"), |
224 "preferences-vcs.png", |
224 "preferences-vcs", |
225 "VcsPage", None, None], |
225 "VcsPage", None, None], |
226 |
226 |
227 "0debuggerPage": |
227 "0debuggerPage": |
228 [self.tr("Debugger"), "preferences-debugger.png", |
228 [self.tr("Debugger"), "preferences-debugger", |
229 None, None, None], |
229 None, None, None], |
230 "debuggerGeneralPage": |
230 "debuggerGeneralPage": |
231 [self.tr("General"), "preferences-debugger.png", |
231 [self.tr("General"), "preferences-debugger", |
232 "DebuggerGeneralPage", "0debuggerPage", None], |
232 "DebuggerGeneralPage", "0debuggerPage", None], |
233 "debuggerPython2Page": |
233 "debuggerPython2Page": |
234 [self.tr("Python2"), "preferences-pyDebugger.png", |
234 [self.tr("Python2"), "preferences-pyDebugger", |
235 "DebuggerPython2Page", "0debuggerPage", None], |
235 "DebuggerPython2Page", "0debuggerPage", None], |
236 "debuggerPython3Page": |
236 "debuggerPython3Page": |
237 [self.tr("Python3"), "preferences-pyDebugger.png", |
237 [self.tr("Python3"), "preferences-pyDebugger", |
238 "DebuggerPython3Page", "0debuggerPage", None], |
238 "DebuggerPython3Page", "0debuggerPage", None], |
239 |
239 |
240 "0editorPage": |
240 "0editorPage": |
241 [self.tr("Editor"), "preferences-editor.png", |
241 [self.tr("Editor"), "preferences-editor", |
242 None, None, None], |
242 None, None, None], |
243 "editorAPIsPage": |
243 "editorAPIsPage": |
244 [self.tr("APIs"), "preferences-api.png", |
244 [self.tr("APIs"), "preferences-api", |
245 "EditorAPIsPage", "0editorPage", None], |
245 "EditorAPIsPage", "0editorPage", None], |
246 "editorAutocompletionPage": |
246 "editorAutocompletionPage": |
247 [self.tr("Autocompletion"), |
247 [self.tr("Autocompletion"), |
248 "preferences-autocompletion.png", |
248 "preferences-autocompletion", |
249 "EditorAutocompletionPage", "0editorPage", None], |
249 "EditorAutocompletionPage", "0editorPage", None], |
250 "editorAutocompletionQScintillaPage": |
250 "editorAutocompletionQScintillaPage": |
251 [self.tr("QScintilla"), "qscintilla.png", |
251 [self.tr("QScintilla"), "qscintilla", |
252 "EditorAutocompletionQScintillaPage", |
252 "EditorAutocompletionQScintillaPage", |
253 "editorAutocompletionPage", None], |
253 "editorAutocompletionPage", None], |
254 "editorCalltipsPage": |
254 "editorCalltipsPage": |
255 [self.tr("Calltips"), "preferences-calltips.png", |
255 [self.tr("Calltips"), "preferences-calltips", |
256 "EditorCalltipsPage", "0editorPage", None], |
256 "EditorCalltipsPage", "0editorPage", None], |
257 "editorCalltipsQScintillaPage": |
257 "editorCalltipsQScintillaPage": |
258 [self.tr("QScintilla"), "qscintilla.png", |
258 [self.tr("QScintilla"), "qscintilla", |
259 "EditorCalltipsQScintillaPage", "editorCalltipsPage", None], |
259 "EditorCalltipsQScintillaPage", "editorCalltipsPage", None], |
260 "editorDocViewerPage": |
260 "editorDocViewerPage": |
261 [self.tr("Documentation Viewer"), "codeDocuViewer.png", |
261 [self.tr("Documentation Viewer"), "codeDocuViewer", |
262 "EditorDocViewerPage", "0editorPage", None], |
262 "EditorDocViewerPage", "0editorPage", None], |
263 "editorGeneralPage": |
263 "editorGeneralPage": |
264 [self.tr("General"), "preferences-general.png", |
264 [self.tr("General"), "preferences-general", |
265 "EditorGeneralPage", "0editorPage", None], |
265 "EditorGeneralPage", "0editorPage", None], |
266 "editorFilePage": |
266 "editorFilePage": |
267 [self.tr("Filehandling"), |
267 [self.tr("Filehandling"), |
268 "preferences-filehandling.png", |
268 "preferences-filehandling", |
269 "EditorFilePage", "0editorPage", None], |
269 "EditorFilePage", "0editorPage", None], |
270 "editorSearchPage": |
270 "editorSearchPage": |
271 [self.tr("Searching"), "preferences-search.png", |
271 [self.tr("Searching"), "preferences-search", |
272 "EditorSearchPage", "0editorPage", None], |
272 "EditorSearchPage", "0editorPage", None], |
273 "editorSpellCheckingPage": |
273 "editorSpellCheckingPage": |
274 [self.tr("Spell checking"), |
274 [self.tr("Spell checking"), |
275 "preferences-spellchecking.png", |
275 "preferences-spellchecking", |
276 "EditorSpellCheckingPage", "0editorPage", None], |
276 "EditorSpellCheckingPage", "0editorPage", None], |
277 "editorStylesPage": |
277 "editorStylesPage": |
278 [self.tr("Style"), "preferences-styles.png", |
278 [self.tr("Style"), "preferences-styles", |
279 "EditorStylesPage", "0editorPage", None], |
279 "EditorStylesPage", "0editorPage", None], |
280 "editorSyntaxPage": |
280 "editorSyntaxPage": |
281 [self.tr("Code Checkers"), "preferences-debugger.png", |
281 [self.tr("Code Checkers"), "preferences-debugger", |
282 "EditorSyntaxPage", "0editorPage", None], |
282 "EditorSyntaxPage", "0editorPage", None], |
283 "editorTypingPage": |
283 "editorTypingPage": |
284 [self.tr("Typing"), "preferences-typing.png", |
284 [self.tr("Typing"), "preferences-typing", |
285 "EditorTypingPage", "0editorPage", None], |
285 "EditorTypingPage", "0editorPage", None], |
286 "editorExportersPage": |
286 "editorExportersPage": |
287 [self.tr("Exporters"), "preferences-exporters.png", |
287 [self.tr("Exporters"), "preferences-exporters", |
288 "EditorExportersPage", "0editorPage", None], |
288 "EditorExportersPage", "0editorPage", None], |
289 |
289 |
290 "1editorLexerPage": |
290 "1editorLexerPage": |
291 [self.tr("Highlighters"), |
291 [self.tr("Highlighters"), |
292 "preferences-highlighting-styles.png", |
292 "preferences-highlighting-styles", |
293 None, "0editorPage", None], |
293 None, "0editorPage", None], |
294 "editorHighlightersPage": |
294 "editorHighlightersPage": |
295 [self.tr("Filetype Associations"), |
295 [self.tr("Filetype Associations"), |
296 "preferences-highlighter-association.png", |
296 "preferences-highlighter-association", |
297 "EditorHighlightersPage", "1editorLexerPage", None], |
297 "EditorHighlightersPage", "1editorLexerPage", None], |
298 "editorHighlightingStylesPage": |
298 "editorHighlightingStylesPage": |
299 [self.tr("Styles"), |
299 [self.tr("Styles"), |
300 "preferences-highlighting-styles.png", |
300 "preferences-highlighting-styles", |
301 "EditorHighlightingStylesPage", "1editorLexerPage", None], |
301 "EditorHighlightingStylesPage", "1editorLexerPage", None], |
302 "editorKeywordsPage": |
302 "editorKeywordsPage": |
303 [self.tr("Keywords"), "preferences-keywords.png", |
303 [self.tr("Keywords"), "preferences-keywords", |
304 "EditorKeywordsPage", "1editorLexerPage", None], |
304 "EditorKeywordsPage", "1editorLexerPage", None], |
305 "editorPropertiesPage": |
305 "editorPropertiesPage": |
306 [self.tr("Properties"), "preferences-properties.png", |
306 [self.tr("Properties"), "preferences-properties", |
307 "EditorPropertiesPage", "1editorLexerPage", None], |
307 "EditorPropertiesPage", "1editorLexerPage", None], |
308 |
308 |
309 "1editorMouseClickHandlers": |
309 "1editorMouseClickHandlers": |
310 [self.tr("Mouse Click Handlers"), |
310 [self.tr("Mouse Click Handlers"), |
311 "preferences-mouse-click-handler.png", |
311 "preferences-mouse-click-handler", |
312 "EditorMouseClickHandlerPage", "0editorPage", None], |
312 "EditorMouseClickHandlerPage", "0editorPage", None], |
313 |
313 |
314 "0helpPage": |
314 "0helpPage": |
315 [self.tr("Help"), "preferences-help.png", |
315 [self.tr("Help"), "preferences-help", |
316 None, None, None], |
316 None, None, None], |
317 "helpDocumentationPage": |
317 "helpDocumentationPage": |
318 [self.tr("Help Documentation"), |
318 [self.tr("Help Documentation"), |
319 "preferences-helpdocumentation.png", |
319 "preferences-helpdocumentation", |
320 "HelpDocumentationPage", "0helpPage", None], |
320 "HelpDocumentationPage", "0helpPage", None], |
321 "helpViewersPage": |
321 "helpViewersPage": |
322 [self.tr("Help Viewers"), |
322 [self.tr("Help Viewers"), |
323 "preferences-helpviewers.png", |
323 "preferences-helpviewers", |
324 "HelpViewersPage", "0helpPage", None], |
324 "HelpViewersPage", "0helpPage", None], |
325 |
325 |
326 "0projectPage": |
326 "0projectPage": |
327 [self.tr("Project"), "preferences-project.png", |
327 [self.tr("Project"), "preferences-project", |
328 None, None, None], |
328 None, None, None], |
329 "projectBrowserPage": |
329 "projectBrowserPage": |
330 [self.tr("Project Viewer"), "preferences-project.png", |
330 [self.tr("Project Viewer"), "preferences-project", |
331 "ProjectBrowserPage", "0projectPage", None], |
331 "ProjectBrowserPage", "0projectPage", None], |
332 "projectPage": |
332 "projectPage": |
333 [self.tr("Project"), "preferences-project.png", |
333 [self.tr("Project"), "preferences-project", |
334 "ProjectPage", "0projectPage", None], |
334 "ProjectPage", "0projectPage", None], |
335 "multiProjectPage": |
335 "multiProjectPage": |
336 [self.tr("Multiproject"), |
336 [self.tr("Multiproject"), |
337 "preferences-multiproject.png", |
337 "preferences-multiproject", |
338 "MultiProjectPage", "0projectPage", None], |
338 "MultiProjectPage", "0projectPage", None], |
339 |
339 |
340 "0interfacePage": |
340 "0interfacePage": |
341 [self.tr("Interface"), "preferences-interface.png", |
341 [self.tr("Interface"), "preferences-interface", |
342 None, None, None], |
342 None, None, None], |
343 "interfacePage": |
343 "interfacePage": |
344 [self.tr("Interface"), "preferences-interface.png", |
344 [self.tr("Interface"), "preferences-interface", |
345 "InterfacePage", "0interfacePage", None], |
345 "InterfacePage", "0interfacePage", None], |
346 "viewmanagerPage": |
346 "viewmanagerPage": |
347 [self.tr("Viewmanager"), "preferences-viewmanager.png", |
347 [self.tr("Viewmanager"), "preferences-viewmanager", |
348 "ViewmanagerPage", "0interfacePage", None], |
348 "ViewmanagerPage", "0interfacePage", None], |
349 } |
349 } |
350 if self.__webEngine: |
350 if self.__webEngine: |
351 self.configItems.update({ |
351 self.configItems.update({ |
352 "0webBrowserPage": |
352 "0webBrowserPage": |
353 [self.tr("Web Browser"), "ericWeb.png", |
353 [self.tr("Web Browser"), "ericWeb", |
354 None, None, None], |
354 None, None, None], |
355 "webBrowserAppearancePage": |
355 "webBrowserAppearancePage": |
356 [self.tr("Appearance"), "preferences-styles.png", |
356 [self.tr("Appearance"), "preferences-styles", |
357 "WebBrowserAppearancePage", "0webBrowserPage", None], |
357 "WebBrowserAppearancePage", "0webBrowserPage", None], |
358 "webBrowserPage": |
358 "webBrowserPage": |
359 [self.tr("eric6 Web Browser"), "ericWeb.png", |
359 [self.tr("eric6 Web Browser"), "ericWeb", |
360 "WebBrowserPage", "0webBrowserPage", None], |
360 "WebBrowserPage", "0webBrowserPage", None], |
361 "webBrowserFlashCookieManagerPage": |
361 "webBrowserFlashCookieManagerPage": |
362 [self.tr("Flash Cookie Manager"), |
362 [self.tr("Flash Cookie Manager"), |
363 "flashCookie16.png", |
363 "flashCookie16", |
364 "WebBrowserFlashCookieManagerPage", "0webBrowserPage", |
364 "WebBrowserFlashCookieManagerPage", "0webBrowserPage", |
365 None], |
365 None], |
366 "webBrowserVirusTotalPage": |
366 "webBrowserVirusTotalPage": |
367 [self.tr("VirusTotal Interface"), "virustotal.png", |
367 [self.tr("VirusTotal Interface"), "virustotal", |
368 "WebBrowserVirusTotalPage", "0webBrowserPage", None], |
368 "WebBrowserVirusTotalPage", "0webBrowserPage", None], |
369 "webBrowserSpellCheckingPage": |
369 "webBrowserSpellCheckingPage": |
370 [self.tr("Spell checking"), |
370 [self.tr("Spell checking"), |
371 "preferences-spellchecking.png", |
371 "preferences-spellchecking", |
372 "WebBrowserSpellCheckingPage", "0webBrowserPage", |
372 "WebBrowserSpellCheckingPage", "0webBrowserPage", |
373 None], |
373 None], |
374 }) |
374 }) |
375 |
375 |
376 self.configItems.update( |
376 self.configItems.update( |