Preferences/__init__.py

Mon, 31 Dec 2012 11:46:26 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 Dec 2012 11:46:26 +0100
changeset 2294
d041f6bcda5c
parent 2267
60796f6374af
child 2298
fa4f79c34e0c
permissions
-rw-r--r--

Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.

0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
1509
c0b5e693b0eb Updated copyright for 2012.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1474
diff changeset
3 # Copyright (c) 2002 - 2012 Detlev Offenbach <detlev@die-offenbachs.de>
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Package implementing the preferences interface.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9 The preferences interface consists of a class, which defines the default
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 values for all configuration items and stores the actual values. These
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 13
diff changeset
11 values are read and written to the eric5 preferences file by module
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
12 functions. The data is stored in a file in a subdirectory of the users home
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
13 directory. The individual configuration data is accessed by accessor functions
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
14 defined on the module level. The module is simply imported wherever it is needed
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 with the statement 'import Preferences'. Do not use 'from Preferences import *'
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 to import it.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 import os
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 import fnmatch
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 import shutil
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
23 from PyQt4.QtCore import QDir, QPoint, QLocale, QSettings, QFileInfo, QCoreApplication, \
1368
4489ee4feb59 Fixed a few Mac OS X related issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1353
diff changeset
24 QByteArray, QSize, QUrl, Qt, QLibraryInfo
2084
d3f083dd0222 Made the fiveth set of Qt5 compatibility changes (some of the previous changes are backed out due to changes in PyQt4).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2077
diff changeset
25 from PyQt4.QtGui import QColor, QFont, QInputDialog, QPalette, QApplication
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
26 from PyQt4.QtNetwork import QNetworkRequest
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 from PyQt4.QtWebKit import QWebSettings
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
28 from PyQt4.Qsci import QsciScintilla
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29
882
34b86be88bf0 Redid the native file dialog code to be future proof.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 880
diff changeset
30 from E5Gui import E5FileDialog
2077
68a34718a0ce Made the first set of Qt5 compatibility changes.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2074
diff changeset
31
2074
5cb87968aad5 Reworked the FTP stuff to support a bunch of different FTP proxy types. Unfortunately FTP proxy support is not standardized.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2005
diff changeset
32 from E5Network.E5Ftp import E5FtpProxyType
882
34b86be88bf0 Redid the native file dialog code to be future proof.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 880
diff changeset
33
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 import QScintilla.Lexers
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 from Globals import settingsNameOrganization, settingsNameGlobal, settingsNameRecent, \
1425
dedba69cb847 Reverted the default view manager type for Mac OS X.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1419
diff changeset
37 isWindowsPlatform, isLinuxPlatform, findPython2Interpreters
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40 ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 OthersBrowserFlag, AllBrowsersFlag
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
43
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 class Prefs(object):
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 A class to hold all configuration items for the application.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48 # defaults for the variables window
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 varDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
50 "LocalsFilter": "[]",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
51 "GlobalsFilter": "[]"
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54 # defaults for the debugger
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
55 debuggerDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
56 "RemoteDbgEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
57 "RemoteHost": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
58 "RemoteExecution": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
59 "PassiveDbgEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
60 "PassiveDbgPort": 42424,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
61 "PassiveDbgType": "Python",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
62 "AutomaticReset": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
63 "Autosave": False,
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
64 "ThreeStateBreakPoints": False,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
65 "SuppressClientExit": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
66 "BreakAlways": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
67 "PythonInterpreter": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
68 "Python3Interpreter": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
69 "CustomPython3Interpreter": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
70 "RubyInterpreter": "/usr/bin/ruby",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
71 "DebugClientType": "standard", # supported "standard", "threaded", "custom"
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
72 "DebugClient": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
73 "DebugClientType3": "standard", # supported "standard", "threaded", "custom"
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
74 "DebugClient3": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
75 "PythonExtensions": ".py2 .pyw2 .ptl",
40
c2e5472b112c Changed some code to adjust eric5 to Python3.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 15
diff changeset
76 # space separated list of Python extensions
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
77 "Python3Extensions": ".py .pyw .py3 .pyw3",
40
c2e5472b112c Changed some code to adjust eric5 to Python3.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 15
diff changeset
78 # space separated list of Python3 extensions
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
79 "DebugEnvironmentReplace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
80 "DebugEnvironment": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
81 "PythonRedirect": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
82 "PythonNoEncoding": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
83 "Python3Redirect": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
84 "Python3NoEncoding": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
85 "RubyRedirect": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
86 "ConsoleDbgEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
87 "ConsoleDbgCommand": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
88 "PathTranslation": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
89 "PathTranslationRemote": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
90 "PathTranslationLocal": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
91 "NetworkInterface": "127.0.0.1",
1965
96f5a76e1845 Fixed some PEP-8 related issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1953
diff changeset
92 "AutoViewSourceCode": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
93 }
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
94 debuggerDefaults["AllowedHosts"] = ["127.0.0.1", "::1%0"]
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
95
149
a134031209be Added stage 1 of the cooperation functions (chat system).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 140
diff changeset
96 # defaults for the UI settings
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
97 uiDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
98 "Language": "System",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
99 "Style": "System",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
100 "StyleSheet": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
101 "ViewManager": "tabview",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
102 "LayoutType": "Sidebars",
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
103 # allowed values are "Toolboxes" and "Sidebars"
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
104 "LayoutShellEmbedded": 0, # 0 = separate
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
105 # 1 = embedded in debug browser
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
106 "LayoutFileBrowserEmbedded": 1, # 0 = separate
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
107 # 1 = embedded in debug browser
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
108 # 2 = embedded in project browser
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
109 "BrowsersListFoldersFirst": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
110 "BrowsersHideNonPublic": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
111 "BrowsersListContentsByOccurrence": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
112 "BrowsersListHiddenFiles": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
113 "BrowsersFileFilters": "*.py[co];*.so;*.dll",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
114 "LogViewerAutoRaise": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
115 "SingleApplicationMode": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
116 "CaptionShowsFilename": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
117 "CaptionFilenameLength": 100,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
118 "RecentNumber": 9,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
119 "TopLeftByLeft": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
120 "BottomLeftByLeft": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
121 "TopRightByRight": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
122 "BottomRightByRight": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
123 "TabViewManagerFilenameLength": 40,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
124 "TabViewManagerFilenameOnly": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
125 # the order in ViewProfiles is Project-Viewer, File-Browser,
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
126 # Debug-Viewer, Python-Shell, Log-Viewer, Task-Viewer,
372
237c3fe739f5 Added a numbers viewer to convert numbers into various formats.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 365
diff changeset
127 # Templates-Viewer, Multiproject-Viewer, Terminal, Chat, Symbols,
237c3fe739f5 Added a numbers viewer to convert numbers into various formats.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 365
diff changeset
128 # Numbers
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
129 "ViewProfiles": {
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
130 "edit": [
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
131 # visibility (0)
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
132 [True, False, False, True, True, True, True, True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
133 True, True, True, True],
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
134 # saved state main window with dock windows (1) OBSOLETE
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
135 b"",
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
136 # saved states floating windows (2) OBSOLETE
372
237c3fe739f5 Added a numbers viewer to convert numbers into various formats.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 365
diff changeset
137 [b"", b"", b"", b"", b"", b"", b"", b"", b"", b"", b"", b""],
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
138 # saved state main window with floating windows (3) OBSOLETE
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
139 b"",
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
140 # saved state main window with toolbox windows (4)
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
141 b"",
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
142 # visibility of the toolboxes/sidebars (5)
2182
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
143 # left, bottom, right
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
144 [True, True, True],
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
145 # saved states of the splitters and sidebars of the
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
146 # sidebars layout (6)
2182
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
147 # left splitter, vertical splitter, left sidebar, bottom sidebar,
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
148 # right splitter, right sidebar
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
149 [b"", b"", b"", b"", b"", b""],
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
150 ],
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
151 "debug": [
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
152 # visibility (0)
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
153 [False, False, True, True, True, True, False, False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
154 True, False, False, False],
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
155 # saved state main window with dock windows (1) OBSOLETE
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
156 b"",
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
157 # saved states floating windows (2) OBSOLETE
372
237c3fe739f5 Added a numbers viewer to convert numbers into various formats.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 365
diff changeset
158 [b"", b"", b"", b"", b"", b"", b"", b"", b"", b"", b"", b""],
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
159 # saved state main window with floating windows (3) OBSOLETE
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
160 b"",
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
161 # saved state main window with toolbox windows (4)
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
162 b"",
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
163 # visibility of the toolboxes/sidebars (5)
2182
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
164 # left, bottom, right
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
165 [False, True, True],
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
166 # saved states of the splitters and sidebars of the
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
167 # sidebars layout (6)
2182
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
168 # left splitter, vertical splitter, left sidebar, bottom sidebar,
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
169 # right splitter, right sidebar
fc3210851b07 Changed the layout of the right side widgets and added a sub menu for the switching between the 'inner' windows.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2164
diff changeset
170 [b"", b"", b"", b"", b"", b""],
137
9b3f3e8fc798 Fixed a few issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 130
diff changeset
171 ],
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
172 },
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
173 "ToolbarManagerState": QByteArray(),
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
174 "ShowSplash": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
175 "SingleCloseButton": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
176
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
177 "PerformVersionCheck": 4, # 0 = off
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
178 # 1 = at startup
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
179 # 2 = daily
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
180 # 3 = weekly
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
181 # 4 = monthly
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
182 "UseProxy": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
183 "UseSystemProxy": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
184 "UseHttpProxyForAll": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
185 "ProxyHost/Http": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
186 "ProxyHost/Https": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
187 "ProxyHost/Ftp": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
188 "ProxyPort/Http": 80,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
189 "ProxyPort/Https": 443,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
190 "ProxyPort/Ftp": 21,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
191 "ProxyUser/Http": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
192 "ProxyUser/Https": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
193 "ProxyUser/Ftp": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
194 "ProxyPassword/Http": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
195 "ProxyPassword/Https": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
196 "ProxyPassword/Ftp": "",
2074
5cb87968aad5 Reworked the FTP stuff to support a bunch of different FTP proxy types. Unfortunately FTP proxy support is not standardized.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2005
diff changeset
197 "ProxyType/Ftp": E5FtpProxyType.NoProxy,
5cb87968aad5 Reworked the FTP stuff to support a bunch of different FTP proxy types. Unfortunately FTP proxy support is not standardized.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2005
diff changeset
198 "ProxyAccount/Ftp": "",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
199
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
200 "PluginRepositoryUrl5": \
1813
437196b92be6 Changed the default URLs for the plug-in repository and the versions file.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1701
diff changeset
201 "http://eric-ide.python-projects.org/plugins5/repository.xml",
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
202 "VersionsUrls5": [
1813
437196b92be6 Changed the default URLs for the plug-in repository and the versions file.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1701
diff changeset
203 "http://die-offenbachs.homelinux.org:48888/eric/snapshots5/versions",
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
204 "http://eric-ide.python-projects.org/snapshots5/versions",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
205 ],
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
206
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
207 "OpenOnStartup": 0, # 0 = nothing
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
208 # 1 = last file
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
209 # 2 = last project
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
210 # 3 = last multiproject
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
211 # 4 = last global session
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
212
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
213 "DownloadPath": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
214 "RequestDownloadFilename": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
215 "CheckErrorLog": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
216
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
217 "LogStdErrColour": QColor(Qt.red),
2190
abd65b78425e Added a notification system and updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2182
diff changeset
218 "NotificationsEnabled": True,
abd65b78425e Added a notification system and updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2182
diff changeset
219 "NotificationTimeout": 5, # time in seconds the notification is shown
abd65b78425e Added a notification system and updated the source documentation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2182
diff changeset
220 "NotificationPosition": QPoint(10, 10),
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
221 }
1852
12d37ab1baf3 Removed the user interface layout types "Floating Windows" and "Dock Windows".
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1819
diff changeset
222 viewProfilesLength = len(uiDefaults["ViewProfiles"]["edit"][0])
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
223
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
224 iconsDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
225 "Path": [],
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
226 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
227
149
a134031209be Added stage 1 of the cooperation functions (chat system).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 140
diff changeset
228 # defaults for the cooperation settings
a134031209be Added stage 1 of the cooperation functions (chat system).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 140
diff changeset
229 cooperationDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
230 "ServerPort": 42000,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
231 "AutoStartServer": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
232 "TryOtherPorts": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
233 "MaxPortsToTry": 100,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
234 "AutoAcceptConnections": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
235 "BannedUsers": [],
149
a134031209be Added stage 1 of the cooperation functions (chat system).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 140
diff changeset
236 }
a134031209be Added stage 1 of the cooperation functions (chat system).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 140
diff changeset
237
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
238 # defaults for the editor settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
239 editorDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
240 "AutosaveInterval": 0,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
241 "TabWidth": 4,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
242 "IndentWidth": 4,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
243 "LinenoWidth": 4,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
244 "IndentationGuides": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
245 "UnifiedMargins": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
246 "LinenoMargin": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
247 "FoldingMargin": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
248 "FoldingStyle": 1,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
249 "TabForIndentation": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
250 "TabIndents": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
251 "ConvertTabsOnLoad": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
252 "AutomaticEOLConversion": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
253 "ShowWhitespace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
254 "WhitespaceSize": 1,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
255 "ShowEOL": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
256 "UseMonospacedFont": False,
2262
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
257 "WrapLongLinesMode": QsciScintilla.WrapNone,
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
258 "WrapVisualFlag": QsciScintilla.WrapFlagNone,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
259 "WarnFilesize": 512,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
260 "ClearBreaksOnClose": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
261 "StripTrailingWhitespace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
262 "CommentColumn0": True,
1566
0cb791cc631a Fixed the issue where a non matching background was shown in the editor for lines below the end of the text, if a lexer with a non-standard background was set.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1509
diff changeset
263 "OverrideEditAreaColours": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
264
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
265 "EdgeMode": QsciScintilla.EdgeNone,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
266 "EdgeColumn": 80,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
267
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
268 "AutoIndentation": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
269 "BraceHighlighting": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
270 "CreateBackupFile": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
271 "CaretLineVisible": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
272 "CaretWidth": 1,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
273 "ColourizeSelText": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
274 "CustomSelectionColours": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
275 "ExtendSelectionToEol": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
276
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
277 "AutoPrepareAPIs": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
278
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
279 "AutoCompletionEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
280 "AutoCompletionCaseSensitivity": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
281 "AutoCompletionReplaceWord": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
282 "AutoCompletionShowSingle": False,
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
283 "AutoCompletionSource": QsciScintilla.AcsDocument,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
284 "AutoCompletionThreshold": 2,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
285 "AutoCompletionFillups": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
286
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
287 "CallTipsEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
288 "CallTipsVisible": 0,
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
289 "CallTipsStyle": QsciScintilla.CallTipsNoContext,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
290 "CallTipsScintillaOnFail": False,
939
10d3a201cd27 Added configuration options for visible whitespace (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 910
diff changeset
291 # show QScintilla calltips, if plugin fails
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
292
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
293 "AutoCheckSyntax": True,
1353
e1c0af081a8e Added a syntax check while typing function.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1337
diff changeset
294 "OnlineSyntaxCheck": True,
e1c0af081a8e Added a syntax check while typing function.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1337
diff changeset
295 "OnlineSyntaxCheckInterval": 5,
e1c0af081a8e Added a syntax check while typing function.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1337
diff changeset
296
2162
4627e6ea7b6b Added capability to mark changed lines and to navigate between them to the editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2084
diff changeset
297 "OnlineChangeTrace": True,
4627e6ea7b6b Added capability to mark changed lines and to navigate between them to the editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2084
diff changeset
298 "OnlineChangeTraceInterval": 500, # 1000 milliseconds
4627e6ea7b6b Added capability to mark changed lines and to navigate between them to the editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2084
diff changeset
299
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
300 "AutoReopen": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
301
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
302 "AnnotationsEnabled": True,
726
57d1efea16e0 Started implementing annotations support.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 701
diff changeset
303
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
304 "MiniContextMenu": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
305
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
306 "SearchMarkersEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
307 "QuickSearchMarkersEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
308 "MarkOccurrencesEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
309 "MarkOccurrencesTimeout": 500, # 500 milliseconds
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
310 "AdvancedEncodingDetection": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
311
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
312 "SpellCheckingEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
313 "AutoSpellCheckingEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
314 "AutoSpellCheckChunkSize": 30,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
315 "SpellCheckStringsOnly": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
316 "SpellCheckingMinWordSize": 3,
1123
4ed80ed7e433 Fixed the spell checking default language.
detlev@die-offenbachs.de
parents: 1114
diff changeset
317 "SpellCheckingDefaultLanguage": "en_US",
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
318 "SpellCheckingPersonalWordList": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
319 "SpellCheckingPersonalExcludeList": "",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
320
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
321 "DefaultEncoding": "utf-8",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
322 "DefaultOpenFilter": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
323 "DefaultSaveFilter": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
324 "AdditionalOpenFilters": [],
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
325 "AdditionalSaveFilters": [],
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
326
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
327 "ZoomFactor": 0,
230
2cde09c26384 Added code to configure the zoom factor a file is opened with.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 216
diff changeset
328
1196
77da430b4080 Added an action to preview the file in the eric web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1162
diff changeset
329 "PreviewableFileNameExtensions": ["html", "htm", "svg", "asp", "kid"],
77da430b4080 Added an action to preview the file in the eric web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1162
diff changeset
330
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
331 # All (most) lexers
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
332 "AllFoldCompact": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
333
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
334 # Bash specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
335 "BashFoldComment": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
336
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
337 # CMake specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
338 "CMakeFoldAtElse": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
339
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
340 # C++ specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
341 "CppCaseInsensitiveKeywords": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
342 "CppFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
343 "CppFoldPreprocessor": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
344 "CppFoldAtElse": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
345 "CppIndentOpeningBrace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
346 "CppIndentClosingBrace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
347 "CppDollarsAllowed": True,
992
566e87428fc8 Fixed a few PEP-8 issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 978
diff changeset
348 "CppStylePreprocessor": False,
1444
552d2d74f5cf Started to add support for QScintilla 2.6 (and newer).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1425
diff changeset
349 "CppHighlightTripleQuotedStrings": False,
2261
f4bb5648fc29 Made some adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2257
diff changeset
350 "CppHighlightHashQuotedStrings": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
351
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
352 # CSS specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
353 "CssFoldComment": True,
2261
f4bb5648fc29 Made some adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2257
diff changeset
354 "CssHssSupport": False,
f4bb5648fc29 Made some adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2257
diff changeset
355 "CssLessSupport": False,
f4bb5648fc29 Made some adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2257
diff changeset
356 "CssSassySupport": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
357
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
358 # D specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
359 "DFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
360 "DFoldAtElse": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
361 "DIndentOpeningBrace": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
362 "DIndentClosingBrace": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
363
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
364 # HTML specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
365 "HtmlFoldPreprocessor": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
366 "HtmlFoldScriptComments": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
367 "HtmlFoldScriptHeredocs": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
368 "HtmlCaseSensitiveTags": False,
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
369 "HtmlDjangoTemplates": False,
992
566e87428fc8 Fixed a few PEP-8 issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 978
diff changeset
370 "HtmlMakoTemplates": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
371
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
372 # Pascal specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
373 "PascalFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
374 "PascalFoldPreprocessor": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
375 "PascalSmartHighlighting": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
376
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
377 # Perl specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
378 "PerlFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
379 "PerlFoldPackages": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
380 "PerlFoldPODBlocks": True,
1444
552d2d74f5cf Started to add support for QScintilla 2.6 (and newer).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1425
diff changeset
381 "PerlFoldAtElse": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
382
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
383 # PostScript specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
384 "PostScriptTokenize": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
385 "PostScriptLevel": 3,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
386 "PostScriptFoldAtElse": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
387
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
388 # Povray specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
389 "PovFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
390 "PovFoldDirectives": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
391
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
392 # Properties specifics
992
566e87428fc8 Fixed a few PEP-8 issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 978
diff changeset
393 "PropertiesInitialSpaces": True,
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
394
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
395 # Python specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
396 "PythonBadIndentation": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
397 "PythonFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
398 "PythonFoldString": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
399 "PythonAutoIndent": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
400 "PythonAllowV2Unicode": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
401 "PythonAllowV3Binary": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
402 "PythonAllowV3Bytes": True,
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
403 "PythonFoldQuotes": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
404 "PythonStringsOverNewLineAllowed": False,
1444
552d2d74f5cf Started to add support for QScintilla 2.6 (and newer).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1425
diff changeset
405 "PythonHighlightSubidentifier": True,
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
406
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
407 # Ruby specifics
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
408 "RubyFoldComment": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
409
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
410 # SQL specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
411 "SqlFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
412 "SqlBackslashEscapes": False,
948
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
413 "SqlDottedWords": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
414 "SqlFoldAtElse": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
415 "SqlFoldOnlyBegin": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
416 "SqlHashComments": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
417 "SqlQuotedIdentifiers": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
418
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
419 # TCL specifics
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
420 "TclFoldComment": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
421
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
422 # TeX specifics
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
423 "TexFoldComment": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
424 "TexProcessComments": False,
fe7b94ed01ec Added support for new lexer properties (as of QScintilla 2.5).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 945
diff changeset
425 "TexProcessIf": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
426
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
427 # VHDL specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
428 "VHDLFoldComment": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
429 "VHDLFoldAtElse": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
430 "VHDLFoldAtBegin": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
431 "VHDLFoldAtParenthesis": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
432
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
433 # XML specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
434 "XMLStyleScripts": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
435
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
436 # YAML specifics
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
437 "YAMLFoldComment": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
438 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
439
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
440 if isWindowsPlatform():
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
441 editorDefaults["EOLMode"] = QsciScintilla.EolWindows
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
442 else:
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
443 editorDefaults["EOLMode"] = QsciScintilla.EolUnix
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
444
2262
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
445 try:
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
446 # since QScintilla 2.7.0
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
447 editorDefaults["CallTipsPosition"] = QsciScintilla.CallTipsBelowText
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
448 except AttributeError:
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
449 editorDefaults["CallTipsPosition"] = 0
2371836c3c45 Made some more adjustments for QScintilla 2.7.0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2261
diff changeset
450
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
451 editorColourDefaults = {
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
452 "CurrentMarker": QColor(Qt.yellow),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
453 "ErrorMarker": QColor(Qt.red),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
454 "MatchingBrace": QColor(Qt.green),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
455 "MatchingBraceBack": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
456 "NonmatchingBrace": QColor(Qt.red),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
457 "NonmatchingBraceBack": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
458 "CallTipsBackground": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
459 "CaretForeground": QColor(Qt.black),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
460 "CaretLineBackground": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
461 "Edge": QColor(Qt.lightGray),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
462 "SelectionBackground": QColor(Qt.black),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
463 "SelectionForeground": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
464 "SearchMarkers": QColor(Qt.blue),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
465 "MarginsBackground": QColor(Qt.lightGray),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
466 "MarginsForeground": QColor(Qt.black),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
467 "FoldmarginBackground": QColor("#e6e6e6"),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
468 "FoldMarkersForeground": QColor(Qt.white),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
469 "FoldMarkersBackground": QColor(Qt.black),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
470 "SpellingMarkers": QColor(Qt.red),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
471 "AnnotationsWarningForeground": QColor("#606000"),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
472 "AnnotationsWarningBackground": QColor("#ffffd0"),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
473 "AnnotationsErrorForeground": QColor("#600000"),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
474 "AnnotationsErrorBackground": QColor("#ffd0d0"),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
475 "WhitespaceForeground": QColor(Qt.darkGray),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
476 "WhitespaceBackground": QColor(Qt.white),
2164
d67b14a3f884 Improved the change tracing function by marking saved and unsaved changes differently.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2162
diff changeset
477 "OnlineChangeTraceMarkerUnsaved": QColor("#ff8888"),
d67b14a3f884 Improved the change tracing function by marking saved and unsaved changes differently.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2162
diff changeset
478 "OnlineChangeTraceMarkerSaved": QColor("#88ff88"),
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
479 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
480
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
481 editorOtherFontsDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
482 "MarginsFont": "Sans Serif,10,-1,5,50,0,0,0,0,0",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
483 "DefaultFont": "Sans Serif,10,-1,5,50,0,0,0,0,0",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
484 "MonospacedFont": "Courier,10,-1,5,50,0,0,0,0,0",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
485 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
486
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
487 editorTypingDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
488 "Python/EnabledTypingAids": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
489 "Python/InsertClosingBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
490 "Python/IndentBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
491 "Python/SkipBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
492 "Python/InsertQuote": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
493 "Python/DedentElse": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
494 "Python/DedentExcept": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
495 "Python/Py24StyleTry": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
496 "Python/InsertImport": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
497 "Python/InsertSelf": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
498 "Python/InsertBlank": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
499 "Python/ColonDetection": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
500 "Python/DedentDef": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
501
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
502 "Ruby/EnabledTypingAids": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
503 "Ruby/InsertClosingBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
504 "Ruby/IndentBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
505 "Ruby/SkipBrace": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
506 "Ruby/InsertQuote": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
507 "Ruby/InsertBlank": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
508 "Ruby/InsertHereDoc": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
509 "Ruby/InsertInlineDoc": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
510 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
511
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
512 editorExporterDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
513 "HTML/WYSIWYG": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
514 "HTML/Folding": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
515 "HTML/OnlyStylesUsed": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
516 "HTML/FullPathAsTitle": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
517 "HTML/UseTabs": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
518
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
519 "RTF/WYSIWYG": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
520 "RTF/UseTabs": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
521 "RTF/Font": "Courier New,10,-1,5,50,0,0,0,0,0",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
522
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
523 "PDF/Magnification": 0,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
524 "PDF/Font": "Helvetica", # must be Courier, Helvetica or Times
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
525 "PDF/PageSize": "A4", # must be A4 or Letter
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
526 "PDF/MarginLeft": 36,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
527 "PDF/MarginRight": 36,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
528 "PDF/MarginTop": 36,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
529 "PDF/MarginBottom": 36,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
530
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
531 "TeX/OnlyStylesUsed": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
532 "TeX/FullPathAsTitle": False,
532
a3c0f1e2594a Added a source code exporter for the Open Document Text (ODT) format.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 436
diff changeset
533
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
534 "ODT/WYSIWYG": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
535 "ODT/OnlyStylesUsed": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
536 "ODT/UseTabs": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
537 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
538
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
539 # defaults for the printer settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
540 printerDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
541 "PrinterName": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
542 "ColorMode": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
543 "FirstPageFirst": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
544 "Magnification": -3,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
545 "Orientation": 0,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
546 "PageSize": 0,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
547 "HeaderFont": "Serif,10,-1,5,50,0,0,0,0,0",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
548 "LeftMargin": 1.0,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
549 "RightMargin": 1.0,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
550 "TopMargin": 1.0,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
551 "BottomMargin": 1.0,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
552 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
553
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
554 # defaults for the project settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
555 projectDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
556 "SearchNewFiles": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
557 "SearchNewFilesRecursively": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
558 "AutoIncludeNewFiles": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
559 "AutoLoadSession": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
560 "AutoSaveSession": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
561 "SessionAllBreakpoints": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
562 "XMLTimestamp": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
563 "AutoCompileForms": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
564 "AutoCompileResources": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
565 "AutoLoadDbgProperties": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
566 "AutoSaveDbgProperties": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
567 "HideGeneratedForms": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
568 "FollowEditor": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
569 "RecentNumber": 9,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
570 "DeterminePyFromProject": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
571 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
572
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
573 # defaults for the multi project settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
574 multiProjectDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
575 "OpenMasterAutomatically": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
576 "XMLTimestamp": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
577 "RecentNumber": 9,
1939
eadb2328d7d4 Introduced a "workspace" directory that is used as the default for opening or saving new files or projects (configurable on Multiproject config page).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1926
diff changeset
578 "Workspace": "",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
579 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
580
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
581 # defaults for the project browser flags settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
582 projectBrowserFlagsDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
583 "Qt4":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
584 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
585 FormsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
586 ResourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
587 TranslationsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
588 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
589 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
590 "Qt4C":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
591 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
592 ResourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
593 TranslationsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
594 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
595 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
596 "E4Plugin":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
597 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
598 FormsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
599 ResourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
600 TranslationsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
601 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
602 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
603 "Console":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
604 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
605 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
606 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
607 "Other":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
608 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
609 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
610 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
611 "PySide":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
612 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
613 FormsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
614 ResourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
615 TranslationsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
616 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
617 OthersBrowserFlag,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
618 "PySideC":
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
619 SourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
620 ResourcesBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
621 TranslationsBrowserFlag | \
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
622 InterfacesBrowserFlag | \
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
623 OthersBrowserFlag,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
624 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
625
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
626 # defaults for the project browser colour settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
627 projectBrowserColourDefaults = {
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
628 "Highlighted": QColor(Qt.red),
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
629
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
630 "VcsAdded": QColor(Qt.blue),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
631 "VcsConflict": QColor(Qt.red),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
632 "VcsModified": QColor(Qt.yellow),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
633 "VcsReplaced": QColor(Qt.cyan),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
634 "VcsUpdate": QColor(Qt.green),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
635 "VcsRemoved": QColor(Qt.magenta)
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
636 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
637
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
638 # defaults for the help settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
639 helpDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
640 "HelpViewerType": 1, # this coresponds with the radio button id
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
641 "CustomViewer": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
642 "PythonDocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
643 "Python2DocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
644 "QtDocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
645 "Qt4DocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
646 "PyQt4DocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
647 "PySideDocDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
648 "SingleHelpWindow": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
649 "SaveGeometry": True,
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
650 "HelpViewerState": QByteArray(),
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
651 "WebSearchSuggestions": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
652 "WebSearchEngine": "Google",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
653 "WebSearchKeywords": [], # array of two tuples (keyword, search engine name)
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
654 "DiskCacheEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
655 "DiskCacheSize": 50, # 50 MB
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
656 "CachePolicy": QNetworkRequest.PreferNetwork,
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
657 "AcceptCookies": 2, # CookieJar.AcceptOnlyFromSitesNavigatedTo
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
658 "KeepCookiesUntil": 0, # CookieJar.KeepUntilExpire
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
659 "FilterTrackingCookies": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
660 "PrintBackgrounds": False,
1670
6fd889391d2c Added a Speed Dial to the web browser including the capability to select the first ten pages by pressing Meta+1 to Meta+0.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1665
diff changeset
661 "StartupBehavior": 1, # show speed dial
1665
b248526d3a1b Reworked some stuff in the web browser to use Qt resources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1661
diff changeset
662 "HomePage": "eric:home",
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
663 "HistoryLimit": 30,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
664 "DefaultScheme": "file://",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
665 "AdBlockEnabled": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
666 "AdBlockSubscriptions": [],
2005
6867cf32df67 Added support for variable AdBlock update periods (given in subscription) to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1972
diff changeset
667 "AdBlockUpdatePeriod": 1,
1972
5341662d6cfb Added support for AdBlock exceptions to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1965
diff changeset
668 "AdBlockExceptions": [],
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
669 "OfflineStorageDatabaseQuota": 50, # 50 MB
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
670 "UserAgent": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
671 "ShowPreview": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
672 "DownloadManagerRemovePolicy": 0, # never delete downloads
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
673 "DownloadManagerSize": QSize(400, 300),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
674 "DownloadManagerPosition": QPoint(),
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
675 "DownloadManagerDownloads": [],
978
11f8adbcac97 Added an interface to VirusTotal to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 952
diff changeset
676 "AccessKeysEnabled": True,
11f8adbcac97 Added an interface to VirusTotal to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 952
diff changeset
677 "VirusTotalEnabled": False,
11f8adbcac97 Added an interface to VirusTotal to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 952
diff changeset
678 "VirusTotalServiceKey": "",
11f8adbcac97 Added an interface to VirusTotal to the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 952
diff changeset
679 "VirusTotalSecure": False,
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
680 "SearchLanguage": QLocale().language(),
1314
7e7b88c58fda Added the "Do Not Track" feature.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1196
diff changeset
681 "DoNotTrack": False,
1661
bfc2ea19b08f Added capability to suppress Referer Headers (configurable via eric4 Web Browser configuration page).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1653
diff changeset
682 "SendReferer": True,
1965
96f5a76e1845 Fixed some PEP-8 related issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1953
diff changeset
683 "SendRefererWhitelist": ["qt-apps.org", "kde-apps.org"],
1415
28fa9633d57e Added a dialog to show RSS feeds.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1373
diff changeset
684 "RssFeeds": [],
1626
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
685 "SyncEnabled": False,
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
686 "SyncBookmarks": True,
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
687 "SyncHistory": True,
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
688 "SyncPasswords": False,
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
689 "SyncUserAgents": True,
1700
40c911b8c0dd Made the speed dial settings synchronizable via the sync manager.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1695
diff changeset
690 "SyncSpeedDial": True,
1680
28e57079dab5 Added capability to encrypt the synchronized data (web browser).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1678
diff changeset
691 "SyncEncryptData": False,
28e57079dab5 Added capability to encrypt the synchronized data (web browser).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1678
diff changeset
692 "SyncEncryptionKey": "",
1682
0eefcc28fa74 Changed the hash iterations for sync encryption to 100 and made the key length user configurable (user can optimize for speed).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1680
diff changeset
693 "SyncEncryptionKeyLength": 32, # 16, 24 or 32
1701
9eee32bac32e Added option to only encrypt passwords upon synchronisation.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1700
diff changeset
694 "SyncEncryptPasswordsOnly": False,
1626
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
695 "SyncType": 0,
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
696 "SyncFtpServer": "",
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
697 "SyncFtpUser": "",
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
698 "SyncFtpPassword": "",
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
699 "SyncFtpPath": "",
a77c8ea8582c Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1588
diff changeset
700 "SyncFtpPort": 21,
1638
cd2f9e526710 Added an idle timeout to the FTP synchronization handler to prevent server disconnects.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1636
diff changeset
701 "SyncFtpIdleTimeout": 30,
1695
7b115f986d48 Added capability to synchronize bookmarks, history, passwords and user agent settings via a shared directory.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1682
diff changeset
702 "SyncDirectoryPath": "",
1636
6a25bb84e2a3 Added the capability to configure the web browser behavior, when multiple tabs are about to be closed.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1626
diff changeset
703 "WarnOnMultipleClose": True,
1651
bc68f24d5658 Added the ClickToFlash plug-in to (temporarily) block Flash and related content.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1638
diff changeset
704 "ClickToFlashEnabled": False,
bc68f24d5658 Added the ClickToFlash plug-in to (temporarily) block Flash and related content.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1638
diff changeset
705 "ClickToFlashWhitelist": [],
1945
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
706 "PimFullName": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
707 "PimFirstName": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
708 "PimLastName": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
709 "PimEmail": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
710 "PimPhone": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
711 "PimMobile": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
712 "PimAddress": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
713 "PimCity": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
714 "PimZip": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
715 "PimState": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
716 "PimCountry": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
717 "PimHomePage": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
718 "PimSpecial1": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
719 "PimSpecial2": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
720 "PimSpecial3": "",
47016f5af3b8 Enhanced the web browser by adding a personal information manager to assist in completing form fields through field context menu entries or by pressing Ctrl+Return/Ctrl+Enter.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1939
diff changeset
721 "PimSpecial4": "",
1953
26aa6fd94dc2 Added support for GreaseMonkey scripts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1945
diff changeset
722 "GreaseMonkeyDisabledScripts": [],
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
723 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
724
2294
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
725 @classmethod
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
726 def initWebSettingsDefaults(cls):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
727 """
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
728 Class method to initialize the web settings related defaults.
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
729 """
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
730 websettings = QWebSettings.globalSettings()
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
731 fontFamily = websettings.fontFamily(QWebSettings.StandardFont)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
732 fontSize = websettings.fontSize(QWebSettings.DefaultFontSize)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
733 cls.helpDefaults["StandardFont"] = QFont(fontFamily, fontSize).toString()
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
734 fontFamily = websettings.fontFamily(QWebSettings.FixedFont)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
735 fontSize = websettings.fontSize(QWebSettings.DefaultFixedFontSize)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
736 cls.helpDefaults["FixedFont"] = QFont(fontFamily, fontSize).toString()
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
737 cls.helpDefaults.update({
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
738 "AutoLoadImages":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
739 websettings.testAttribute(QWebSettings.AutoLoadImages),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
740 "UserStyleSheet": "",
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
741 "SaveUrlColor": QColor(248, 248, 210),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
742 "JavaEnabled":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
743 websettings.testAttribute(QWebSettings.JavaEnabled),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
744 "JavaScriptEnabled":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
745 websettings.testAttribute(QWebSettings.JavascriptEnabled),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
746 "JavaScriptCanOpenWindows":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
747 websettings.testAttribute(QWebSettings.JavascriptCanOpenWindows),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
748 "JavaScriptCanAccessClipboard":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
749 websettings.testAttribute(QWebSettings.JavascriptCanAccessClipboard),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
750 "PluginsEnabled":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
751 websettings.testAttribute(QWebSettings.PluginsEnabled),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
752 "OfflineStorageDatabaseEnabled":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
753 websettings.testAttribute(QWebSettings.OfflineStorageDatabaseEnabled),
355
c29c8b8dadf1 Added support for Web application caches and local web storage to the web browser (needs Qt >= 4.6).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 354
diff changeset
754 })
2294
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
755 if hasattr(QWebSettings, "OfflineWebApplicationCacheEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
756 cls.helpDefaults.update({
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
757 "OfflineWebApplicationCacheEnabled":
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
758 websettings.testAttribute(
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
759 QWebSettings.OfflineWebApplicationCacheEnabled),
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
760 "OfflineWebApplicationCacheQuota": 50, # 50 MB
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
761 })
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
762 if hasattr(QWebSettings, "LocalStorageEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
763 cls.helpDefaults["LocalStorageEnabled"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
764 websettings.testAttribute(QWebSettings.LocalStorageEnabled)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
765 if hasattr(QWebSettings, "DnsPrefetchEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
766 cls.helpDefaults["DnsPrefetchEnabled"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
767 websettings.testAttribute(QWebSettings.DnsPrefetchEnabled)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
768 if hasattr(QWebSettings, "defaultTextEncoding"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
769 cls.helpDefaults["DefaultTextEncoding"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
770 websettings.defaultTextEncoding()
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
771 if hasattr(QWebSettings, "SpatialNavigationEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
772 cls.helpDefaults["SpatialNavigationEnabled"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
773 websettings.testAttribute(QWebSettings.SpatialNavigationEnabled)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
774 if hasattr(QWebSettings, "LinksIncludedInFocusChain"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
775 cls.helpDefaults["LinksIncludedInFocusChain"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
776 websettings.testAttribute(QWebSettings.LinksIncludedInFocusChain)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
777 if hasattr(QWebSettings, "LocalContentCanAccessRemoteUrls"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
778 cls.helpDefaults["LocalContentCanAccessRemoteUrls"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
779 websettings.testAttribute(QWebSettings.LocalContentCanAccessRemoteUrls)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
780 if hasattr(QWebSettings, "LocalContentCanAccessFileUrls"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
781 cls.helpDefaults["LocalContentCanAccessFileUrls"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
782 websettings.testAttribute(QWebSettings.LocalContentCanAccessFileUrls)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
783 if hasattr(QWebSettings, "XSSAuditingEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
784 cls.helpDefaults["XSSAuditingEnabled"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
785 websettings.testAttribute(QWebSettings.XSSAuditingEnabled)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
786 if hasattr(QWebSettings, "SiteSpecificQuirksEnabled"):
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
787 cls.helpDefaults["SiteSpecificQuirksEnabled"] = \
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
788 websettings.testAttribute(QWebSettings.SiteSpecificQuirksEnabled)
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
789
d041f6bcda5c Made a Qt5 related change to make the default settings values load independant of the creation of a QApplication object.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2267
diff changeset
790 webSettingsIntitialized = False
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
791
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
792 # defaults for system settings
107
918a6be6f051 Deleted the code setting the default encoding because this has to be (and is automatically set to) utf-8 for Python3.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 101
diff changeset
793 sysDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
794 "StringEncoding": "utf-8",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
795 "IOEncoding": "utf-8",
107
918a6be6f051 Deleted the code setting the default encoding because this has to be (and is automatically set to) utf-8 for Python3.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 101
diff changeset
796 }
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
797
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
798 # defaults for the shell settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
799 shellDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
800 "LinenoWidth": 4,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
801 "LinenoMargin": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
802 "AutoCompletionEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
803 "CallTipsEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
804 "WrapEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
805 "MaxHistoryEntries": 100,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
806 "SyntaxHighlightingEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
807 "ShowStdOutErr": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
808 "UseMonospacedFont": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
809 "MonospacedFont": "Courier,10,-1,5,50,0,0,0,0,0",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
810 "MarginsFont": "Sans Serif,10,-1,5,50,0,0,0,0,0",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
811 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
812
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
813 # defaults for the terminal settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
814 terminalDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
815 "LinenoWidth": 4,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
816 "LinenoMargin": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
817 "MaxHistoryEntries": 100,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
818 "SyntaxHighlightingEnabled": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
819 "Shell": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
820 "ShellInteractive": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
821 "UseMonospacedFont": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
822 "MonospacedFont": "Courier,10,-1,5,50,0,0,0,0,0",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
823 "MarginsFont": "Sans Serif,10,-1,5,50,0,0,0,0,0",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
824 }
882
34b86be88bf0 Redid the native file dialog code to be future proof.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 880
diff changeset
825 if isLinuxPlatform():
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
826 terminalDefaults["Shell"] = "bash"
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
827
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
828 # defaults for Qt related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
829 qtDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
830 "Qt4TranslationsDir": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
831 "QtToolsPrefix4": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
832 "QtToolsPostfix4": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
833 "Qt4Dir": "",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
834 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
835
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
836 # defaults for corba related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
837 corbaDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
838 "omniidl": "omniidl"
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
839 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
840
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
841 # defaults for user related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
842 userDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
843 "Email": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
844 "MailServer": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
845 "Signature": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
846 "MailServerAuthentication": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
847 "MailServerUser": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
848 "MailServerPassword": "",
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
849 "MailServerUseTLS": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
850 "MailServerPort": 25,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
851 "UseSystemEmailClient": False,
1127
b1802ebe0066 Added capability to encrypt saved passwords with a master password and rearranged some configuration parameters related to security.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1123
diff changeset
852 "MasterPassword": "", # stores the password hash
b1802ebe0066 Added capability to encrypt saved passwords with a master password and rearranged some configuration parameters related to security.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1123
diff changeset
853 "UseMasterPassword": False,
b1802ebe0066 Added capability to encrypt saved passwords with a master password and rearranged some configuration parameters related to security.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1123
diff changeset
854 "SavePasswords": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
855 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
856
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
857 # defaults for vcs related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
858 vcsDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
859 "AutoClose": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
860 "AutoSaveFiles": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
861 "AutoSaveProject": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
862 "AutoUpdate": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
863 "StatusMonitorInterval": 30,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
864 "MonitorLocalStatus": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
865 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
866
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
867 # defaults for tasks related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
868 tasksDefaults = {
1819
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
869 "TasksFixmeMarkers": "FIX" + "ME:",
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
870 "TasksWarningMarkers": "WARN" + "ING:",
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
871 "TasksTodoMarkers": "TO" + "DO:",
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
872 "TasksNoteMarkers": "NO" + "TE:",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
873 # needed to keep it from being recognized as a task
1819
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
874 "TasksFixmeColor": QColor("#FFA0A0"),
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
875 "TasksWarningColor": QColor("#FFFFA0"),
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
876 "TasksTodoColor": QColor("#A0FFA0"),
cfcfd617216a Changed the tasks handling to allow for more fine grained task designations.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1813
diff changeset
877 "TasksNoteColor": QColor("#A0A0FF"),
1373
b3b3c99dba01 Made tasks manager forget about global file tasks when file is closed (configurable via configuration dialog).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1368
diff changeset
878 "ClearOnFileClose": True,
1653
fed1920ff53b Added capability to save project tasks automatically (configurable on project configuration page of configuration dialog).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1651
diff changeset
879 "TasksProjectAutoSave": True,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
880 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
881
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
882 # defaults for templates related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
883 templatesDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
884 "AutoOpenGroups": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
885 "SingleDialog": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
886 "ShowTooltip": False,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
887 "SeparatorChar": "$",
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
888 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
889
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
890 # defaults for plugin manager related stuff
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
891 pluginManagerDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
892 "ActivateExternal": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
893 "DownloadPath": ""
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
894 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
895
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
896 # defaults for the printer settings
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
897 graphicsDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
898 "Font": "SansSerif,10,-1,5,50,0,0,0,0,0"
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
899 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
900
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
901 # defaults for the icon editor
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
902 iconEditorDefaults = {
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
903 "IconEditorState": QByteArray(),
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
904 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
905
88
3701923bccf2 Added my own Python3 port of pyflakes and integrated py3flakes into syntax checker dialog and editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 42
diff changeset
906 # defaults for py3flakes
3701923bccf2 Added my own Python3 port of pyflakes and integrated py3flakes into syntax checker dialog and editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 42
diff changeset
907 py3flakesDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
908 "IncludeInSyntaxCheck": True,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
909 "IgnoreStarImportWarnings": True,
88
3701923bccf2 Added my own Python3 port of pyflakes and integrated py3flakes into syntax checker dialog and editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 42
diff changeset
910 }
3701923bccf2 Added my own Python3 port of pyflakes and integrated py3flakes into syntax checker dialog and editor.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 42
diff changeset
911
701
fc587a1c2f8b Added an option to configure the icon of the tray starter application.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 679
diff changeset
912 # defaults for tray starter
fc587a1c2f8b Added an option to configure the icon of the tray starter application.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 679
diff changeset
913 trayStarterDefaults = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
914 "TrayStarterIcon": "erict.png",
887
ccc601bc1faf Fixed an issue reading the correct values for the layout parameters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 882
diff changeset
915 # valid values are: erict.png, erict-hc.png,
ccc601bc1faf Fixed an issue reading the correct values for the layout parameters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 882
diff changeset
916 # erict-bw.png, erict-bwi.png
701
fc587a1c2f8b Added an option to configure the icon of the tray starter application.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 679
diff changeset
917 }
fc587a1c2f8b Added an option to configure the icon of the tray starter application.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 679
diff changeset
918
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
919 # defaults for geometry
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
920 geometryDefaults = {
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
921 "HelpViewerGeometry": QByteArray(),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
922 "IconEditorGeometry": QByteArray(),
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
923 "MainGeometry": QByteArray(),
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
924 "MainMaximized": False,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
925 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
926
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
927 # if true, revert layouts to factory defaults
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
928 resetLayout = False
2227
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
929
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
930 # defaults for IRC
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
931 ircDefaults = {
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
932 "ShowTimestamps": True,
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
933 "TimestampIncludeDate": False,
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
934 "TimeFormat": "hh:mm",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
935 "DateFormat": "yyyy-MM-dd",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
936
2267
60796f6374af Changed the default color for IRC network messages.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2262
diff changeset
937 "NetworkMessageColour": "#000055",
2227
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
938 "ServerMessageColour": "#91640A",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
939 "ErrorMessageColour": "#FF0000",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
940 "TimestampColour": "#709070",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
941 "HyperlinkColour": "#0000FF",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
942 "ChannelMessageColour": "#000000",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
943 "OwnNickColour": "#000000",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
944 "NickColour": "#18B33C",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
945 "JoinChannelColour": "#72D672",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
946 "LeaveChannelColour": "#B00000",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
947 "ChannelInfoColour": "#9E54B3",
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
948
2228
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
949 "EnableIrcColours": True,
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
950 "IrcColor0": "#FFFF00",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
951 "IrcColor1": "#000000",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
952 "IrcColor2": "#000080",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
953 "IrcColor3": "#008000",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
954 "IrcColor4": "#FF0000",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
955 "IrcColor5": "#A52A2A",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
956 "IrcColor6": "#800080",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
957 "IrcColor7": "#FF8000",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
958 "IrcColor8": "#808000",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
959 "IrcColor9": "#00FF00",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
960 "IrcColor10": "#008080",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
961 "IrcColor11": "#00FFFF",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
962 "IrcColor12": "#0000FF",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
963 "IrcColor13": "#FFC0CB",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
964 "IrcColor14": "#A0A0A0",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
965 "IrcColor15": "#C0C0C0",
5c59b9393306 Introduced support for colored IRC texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2227
diff changeset
966
2227
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
967 "ShowNotifications": True,
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
968 "NotifyJoinPart": True,
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
969 "NotifyMessage": False,
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
970 "NotifyNick": False,
2247
bddb4557c97e Added the auto who configuration.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2228
diff changeset
971
bddb4557c97e Added the auto who configuration.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2228
diff changeset
972 "AutoUserInfoLookup": True,
bddb4557c97e Added the auto who configuration.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2228
diff changeset
973 "AutoUserInfoMax": 200,
bddb4557c97e Added the auto who configuration.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2228
diff changeset
974 "AutoUserInfoInterval": 90,
2257
4c3bda2b71f2 Made the IRC marker line colors configurable and added a config option to not set a marker when the chat window is hidden.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2247
diff changeset
975
4c3bda2b71f2 Made the IRC marker line colors configurable and added a config option to not set a marker when the chat window is hidden.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2247
diff changeset
976 "MarkPositionWhenHidden": True,
4c3bda2b71f2 Made the IRC marker line colors configurable and added a config option to not set a marker when the chat window is hidden.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2247
diff changeset
977 "MarkerLineForegroundColour": "#000000", # Black on
4c3bda2b71f2 Made the IRC marker line colors configurable and added a config option to not set a marker when the chat window is hidden.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2247
diff changeset
978 "MarkerLineBackgroundColour": "#ffff00", # Yellow
2227
b7aceb255831 First commit of the simple IRC client for eric. It is usable but not yet complete.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2190
diff changeset
979 }
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
980
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
981
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
982 def readToolGroups(prefClass=Prefs):
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
983 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
984 Module function to read the tool groups configuration.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
985
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
986 @param prefClass preferences class used as the storage area
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
987 @return list of tuples defing the tool groups
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
988 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
989 toolGroups = []
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
990 groups = int(prefClass.settings.value("Toolgroups/Groups", 0))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
991 for groupIndex in range(groups):
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
992 groupName = \
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
993 prefClass.settings.value("Toolgroups/{0:02d}/Name".format(groupIndex))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
994 group = [groupName, []]
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
995 items = int(prefClass.settings.value(
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
996 "Toolgroups/{0:02d}/Items".format(groupIndex), 0))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
997 for ind in range(items):
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
998 menutext = prefClass.settings.value(
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
999 "Toolgroups/{0:02d}/{1:02d}/Menutext".format(groupIndex, ind))
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1000 icon = prefClass.settings.value(
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1001 "Toolgroups/{0:02d}/{1:02d}/Icon".format(groupIndex, ind))
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1002 executable = prefClass.settings.value(
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1003 "Toolgroups/{0:02d}/{1:02d}/Executable".format(groupIndex, ind))
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1004 arguments = prefClass.settings.value(
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1005 "Toolgroups/{0:02d}/{1:02d}/Arguments".format(groupIndex, ind))
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1006 redirect = prefClass.settings.value(
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1007 "Toolgroups/{0:02d}/{1:02d}/Redirect".format(groupIndex, ind))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1008
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1009 if menutext:
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1010 if menutext == '--':
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1011 tool = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1012 'menutext': '--',
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1013 'icon': '',
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1014 'executable': '',
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1015 'arguments': '',
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1016 'redirect': 'no',
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1017 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1018 group[1].append(tool)
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1019 elif executable:
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1020 tool = {
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1021 'menutext': menutext,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1022 'icon': icon,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1023 'executable': executable,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1024 'arguments': arguments,
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1025 'redirect': redirect,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1026 }
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1027 group[1].append(tool)
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1028 toolGroups.append(group)
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
1029 currentGroup = int(prefClass.settings.value("Toolgroups/Current Group", -1))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1030 return toolGroups, currentGroup
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1031
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1032
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1033 def saveToolGroups(toolGroups, currentGroup, prefClass=Prefs):
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1034 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1035 Module function to write the tool groups configuration.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1036
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1037 @param toolGroups reference to the list of tool groups
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1038 @param currentGroup index of the currently selected tool group (integer)
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1039 @param prefClass preferences class used as the storage area
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1040 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1041 # first step, remove all tool group entries
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1042 prefClass.settings.remove("Toolgroups")
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1043
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1044 # second step, write the tool group entries
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
1045 prefClass.settings.setValue("Toolgroups/Groups", len(toolGroups))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1046 groupIndex = 0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1047 for group in toolGroups:
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1048 prefClass.settings.setValue(
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1049 "Toolgroups/{0:02d}/Name".format(groupIndex), group[0])
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1050 prefClass.settings.setValue(
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1051 "Toolgroups/{0:02d}/Items".format(groupIndex), len(group[1]))
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1052 ind = 0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1053 for tool in group[1]:
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1054 prefClass.settings.setValue(
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1055 "Toolgroups/{0:02d}/{1:02d}/Menutext".format(groupIndex, ind),
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1056 tool['menutext'])
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1057 prefClass.settings.setValue(
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1058 "Toolgroups/{0:02d}/{1:02d}/Icon".format(groupIndex, ind),
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1059 tool['icon'])
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1060 prefClass.settings.setValue(
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1061 "Toolgroups/{0:02d}/{1:02d}/Executable".format(groupIndex, ind),
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1062 tool['executable'])
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1063 prefClass.settings.setValue(
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1064 "Toolgroups/{0:02d}/{1:02d}/Arguments".format(groupIndex, ind),
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1065 tool['arguments'])
564
b3d966393ba9 Did some code cleanup.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 532
diff changeset
1066 prefClass.settings.setValue(
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1067 "Toolgroups/{0:02d}/{1:02d}/Redirect".format(groupIndex, ind),
426
161992758137 Did some more string format conversions.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 405
diff changeset
1068 tool['redirect'])
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1069 ind += 1
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1070 groupIndex += 1
7
c679fb30c8f3 Change code dealing with QVariant (and QSettings) to use the PyQt4 QVariant v2 API.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
1071 prefClass.settings.setValue("Toolgroups/Current Group", currentGroup)
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1072
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1073
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1074 def initPreferences():
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1075 """
945
8cd4d08fa9f6 Made code mostly PEP 8 compliant (except all whitespace and line length).
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 942
diff changeset
1076 Module function to initialize the central configuration store.
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1077 """
1114
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
1078 Prefs.settings = QSettings(
a4dad1fff348 Change Preferences to adhere to the same coding style than the rest of the sources.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1112
diff changeset
1079 QSettings.IniFormat, QSettings.UserScope,
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1080 settingsNameOrganization, settingsNameGlobal)