Preferences/__init__.py

Mon, 07 Feb 2011 19:06:59 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Feb 2011 19:06:59 +0100
branch
5_0_x
changeset 886
bb59d644fca6
parent 792
a13346916170
permissions
-rw-r--r--

Fixed an issue reading the correct values for the layout parameters.

434
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1 # -*- coding: utf-8 -*-
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
2
792
a13346916170 Updated copyright notice.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 434
diff changeset
3 # Copyright (c) 2002 - 2011 Detlev Offenbach <detlev@die-offenbachs.de>
434
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
4 #
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
5
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
6 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
7 Package implementing the preferences interface.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
8
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
9 The preferences interface consists of a class, which defines the default
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
10 values for all configuration items and stores the actual values. These
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
11 values are read and written to the eric5 preferences file by module
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
12 functions. The data is stored in a file in a subdirectory of the users home
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
13 directory. The individual configuration data is accessed by accessor functions
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
14 defined on the module level. The module is simply imported wherever it is needed
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
15 with the statement 'import Preferences'. Do not use 'from Preferences import *'
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
16 to import it.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
17 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
18
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
19 import sys
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
20 import os
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
21 import fnmatch
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
22 import shutil
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
23
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
24 from PyQt4 import QtCore, QtGui
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
25 from PyQt4 import Qsci
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
26 from PyQt4.QtWebKit import QWebSettings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
27
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
28 import QScintilla.Lexers
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
29
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
30 from Globals import settingsNameOrganization, settingsNameGlobal, settingsNameRecent, \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
31 isWindowsPlatform
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
32
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
33 from Project.ProjectBrowserFlags import SourcesBrowserFlag, FormsBrowserFlag, \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
34 ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
35 OthersBrowserFlag, AllBrowsersFlag
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
36
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
37 class Prefs(object):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
38 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
39 A class to hold all configuration items for the application.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
40 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
41 # defaults for the variables window
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
42 varDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
43 "LocalsFilter" : "[]",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
44 "GlobalsFilter" : "[]"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
45 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
46
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
47 # defaults for the debugger
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
48 debuggerDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
49 "RemoteDbgEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
50 "RemoteHost" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
51 "RemoteExecution" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
52 "PassiveDbgEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
53 "PassiveDbgPort" : 42424,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
54 "PassiveDbgType" : "Python",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
55 "AutomaticReset" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
56 "Autosave" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
57 "ThreeStateBreakPoints": False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
58 "SuppressClientExit" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
59 "BreakAlways" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
60 "PythonInterpreter" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
61 "Python3Interpreter" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
62 "CustomPython3Interpreter" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
63 "RubyInterpreter" : "/usr/bin/ruby",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
64 "DebugClientType" : "standard", # supported "standard", "threaded", "custom"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
65 "DebugClient" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
66 "DebugClientType3" : "standard", # supported "standard", "threaded", "custom"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
67 "DebugClient3" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
68 "PythonExtensions" : ".py2 .pyw2 .ptl",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
69 # space separated list of Python extensions
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
70 "Python3Extensions" : ".py .pyw .py3 .pyw3",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
71 # space separated list of Python3 extensions
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
72 "DebugEnvironmentReplace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
73 "DebugEnvironment" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
74 "PythonRedirect" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
75 "PythonNoEncoding" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
76 "Python3Redirect" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
77 "Python3NoEncoding" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
78 "RubyRedirect" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
79 "ConsoleDbgEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
80 "ConsoleDbgCommand" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
81 "PathTranslation" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
82 "PathTranslationRemote" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
83 "PathTranslationLocal" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
84 "NetworkInterface" : "127.0.0.1",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
85 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
86 debuggerDefaults["AllowedHosts"] = ["127.0.0.1", "::1%0"]
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
87
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
88 # defaults for the UI settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
89 uiDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
90 "Language" : "System",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
91 "Style" : "System",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
92 "StyleSheet" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
93 "ViewManager" : "tabview",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
94 "LayoutType" : "Toolboxes",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
95 # allowed values are "DockWindows", "FloatingWindows", "Toolboxes" and "Sidebars"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
96 "LayoutShellEmbedded" : 0, # 0 = separate
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
97 # 1 = embedded in debug browser
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
98 "LayoutFileBrowserEmbedded" : 1, # 0 = separate
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
99 # 1 = embedded in debug browser
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
100 # 2 = embedded in project browser
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
101 "BrowsersListFoldersFirst" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
102 "BrowsersHideNonPublic" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
103 "BrowsersListContentsByOccurrence" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
104 "LogViewerAutoRaise" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
105 "SingleApplicationMode" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
106 "CaptionShowsFilename" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
107 "CaptionFilenameLength" : 100,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
108 "RecentNumber" : 9,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
109 "TopLeftByLeft" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
110 "BottomLeftByLeft" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
111 "TopRightByRight" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
112 "BottomRightByRight" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
113 "TabViewManagerFilenameLength" : 40,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
114 "TabViewManagerFilenameOnly" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
115 # the order in ViewProfiles is Project-Viewer, File-Browser,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
116 # Debug-Viewer, Python-Shell, Log-Viewer, Task-Viewer,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
117 # Templates-Viewer, Multiproject-Viewer, Terminal, Chat
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
118 "ViewProfiles" : {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
119 "edit" : [
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
120 # visibility (0)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
121 [ True, False, False, True, True, True, True, True, True, True],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
122 # saved state main window with dock windows (1)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
123 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
124 # saved states floating windows (2)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
125 [b"", b"", b"", b"", b"", b"", b"", b"", b"", b""],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
126 # saved state main window with floating windows (3)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
127 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
128 # saved state main window with toolbox windows (4)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
129 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
130 # visibility of the toolboxes/sidebars (5)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
131 [ True, True],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
132 # saved states of the splitters and sidebars of the
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
133 # sidebars layout (6)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
134 [b"", b"", b"", b""],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
135 ],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
136 "debug" : [
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
137 # visibility (0)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
138 [ False, False, True, True, True, True, False, False, True, True],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
139 # saved state main window with dock windows (1)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
140 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
141 # saved states floating windows (2)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
142 [b"", b"", b"", b"", b"", b"", b"", b"", b"", b""],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
143 # saved state main window with floating windows (3)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
144 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
145 # saved state main window with toolbox windows (4)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
146 b"",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
147 # visibility of the toolboxes/sidebars (5)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
148 [ False, True],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
149 # saved states of the splitters and sidebars of the
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
150 # sidebars layout (6)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
151 [b"", b"", b"", b""],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
152 ],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
153 },
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
154 "ToolbarManagerState" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
155 "ShowSplash" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
156 "SingleCloseButton" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
157
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
158 "PerformVersionCheck" : 4, # 0 = off
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
159 # 1 = at startup
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
160 # 2 = daily
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
161 # 3 = weekly
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
162 # 4 = monthly
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
163 "UseProxy" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
164 "UseSystemProxy" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
165 "ProxyHost" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
166 "ProxyPort" : 80,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
167 "ProxyUser" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
168 "ProxyPassword" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
169 "ProxyType" : 0, # 0 = transparent HTTP proxy
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
170 # 1 = caching HTTP proxy
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
171 # 2 = SOCKS5 proxy
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
172
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
173 "PluginRepositoryUrl5" : \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
174 "http://die-offenbachs.homelinux.org/eric/plugins5/repository.xml",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
175 "VersionsUrls5" : [
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
176 "http://die-offenbachs.homelinux.org/eric/snapshots5/versions",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
177 "http://eric-ide.python-projects.org/snapshots5/versions",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
178 ],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
179
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
180 "OpenOnStartup" : 0, # 0 = nothing
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
181 # 1 = last file
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
182 # 2 = last project
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
183 # 3 = last multiproject
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
184 # 4 = last global session
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
185
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
186 "DownloadPath" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
187 "RequestDownloadFilename" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
188 "CheckErrorLog" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
189
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
190 "LogStdErrColour" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
191 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
192 viewProfilesLength = len(uiDefaults["ViewProfiles"]["edit"][2])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
193
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
194 iconsDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
195 "Path" : [],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
196 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
197
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
198 # defaults for the cooperation settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
199 cooperationDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
200 "ServerPort" : 42000,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
201 "AutoStartServer" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
202 "TryOtherPorts" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
203 "MaxPortsToTry" : 100,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
204 "AutoAcceptConnections" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
205 "BannedUsers" : [],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
206 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
207
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
208 # defaults for the editor settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
209 editorDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
210 "AutosaveInterval" : 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
211 "TabWidth" : 4,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
212 "IndentWidth" : 4,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
213 "LinenoWidth" : 4,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
214 "IndentationGuides" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
215 "UnifiedMargins" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
216 "LinenoMargin" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
217 "FoldingMargin" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
218 "FoldingStyle" : 1,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
219 "TabForIndentation" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
220 "TabIndents" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
221 "ConvertTabsOnLoad" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
222 "AutomaticEOLConversion" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
223 "ShowWhitespace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
224 "ShowEOL" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
225 "UseMonospacedFont" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
226 "WrapLongLines" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
227 "WarnFilesize" : 512,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
228 "ClearBreaksOnClose" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
229 "StripTrailingWhitespace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
230 "CommentColumn0" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
231
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
232 "EdgeMode" : Qsci.QsciScintilla.EdgeNone,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
233 "EdgeColumn" : 80,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
234
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
235 "AutoIndentation" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
236 "BraceHighlighting" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
237 "CreateBackupFile" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
238 "CaretLineVisible" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
239 "CaretWidth" : 1,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
240 "ColourizeSelText" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
241 "CustomSelectionColours" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
242 "ExtendSelectionToEol" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
243
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
244 "AutoPrepareAPIs" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
245
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
246 "AutoCompletionEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
247 "AutoCompletionCaseSensitivity" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
248 "AutoCompletionReplaceWord" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
249 "AutoCompletionShowSingle" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
250 "AutoCompletionSource" : Qsci.QsciScintilla.AcsDocument,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
251 "AutoCompletionThreshold" : 2,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
252 "AutoCompletionFillups" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
253
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
254 "CallTipsEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
255 "CallTipsVisible" : 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
256 "CallTipsStyle" : Qsci.QsciScintilla.CallTipsNoContext,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
257 "CallTipsScintillaOnFail" : False, # show QScintilla calltips, if plugin fails
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
258
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
259 "AutoCheckSyntax" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
260 "AutoReopen" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
261
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
262 "MiniContextMenu" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
263
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
264 "SearchMarkersEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
265 "QuickSearchMarkersEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
266 "MarkOccurrencesEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
267 "MarkOccurrencesTimeout" : 500, # 500 milliseconds
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
268 "AdvancedEncodingDetection" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
269
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
270 "SpellCheckingEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
271 "AutoSpellCheckingEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
272 "AutoSpellCheckChunkSize" : 30,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
273 "SpellCheckStringsOnly" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
274 "SpellCheckingMinWordSize" : 3,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
275 "SpellCheckingDefaultLanguage" : "en",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
276 "SpellCheckingPersonalWordList" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
277 "SpellCheckingPersonalExcludeList" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
278
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
279 "DefaultEncoding" : "utf-8",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
280 "DefaultOpenFilter" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
281 "DefaultSaveFilter" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
282
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
283 "ZoomFactor" : 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
284
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
285 # All (most) lexers
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
286 "AllFoldCompact" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
287
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
288 # Bash specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
289 "BashFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
290
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
291 # CMake specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
292 "CMakeFoldAtElse" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
293
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
294 # C++ specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
295 "CppCaseInsensitiveKeywords" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
296 "CppFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
297 "CppFoldPreprocessor" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
298 "CppFoldAtElse" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
299 "CppIndentOpeningBrace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
300 "CppIndentClosingBrace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
301 "CppDollarsAllowed" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
302
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
303 # CSS specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
304 "CssFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
305
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
306 # D specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
307 "DFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
308 "DFoldAtElse" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
309 "DIndentOpeningBrace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
310 "DIndentClosingBrace" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
311
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
312 # HTML specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
313 "HtmlFoldPreprocessor" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
314 "HtmlFoldScriptComments" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
315 "HtmlFoldScriptHeredocs" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
316 "HtmlCaseSensitiveTags" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
317
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
318 # Pascal specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
319 "PascalFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
320 "PascalFoldPreprocessor" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
321 "PascalSmartHighlighting" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
322
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
323 # Perl specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
324 "PerlFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
325 "PerlFoldPackages" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
326 "PerlFoldPODBlocks" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
327
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
328 # PostScript specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
329 "PostScriptTokenize" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
330 "PostScriptLevel" : 3,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
331 "PostScriptFoldAtElse" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
332
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
333 # Povray specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
334 "PovFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
335 "PovFoldDirectives" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
336
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
337 # Python specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
338 "PythonBadIndentation" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
339 "PythonFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
340 "PythonFoldString" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
341 "PythonAutoIndent" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
342 "PythonAllowV2Unicode" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
343 "PythonAllowV3Binary" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
344 "PythonAllowV3Bytes" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
345
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
346 # SQL specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
347 "SqlFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
348 "SqlBackslashEscapes" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
349
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
350 # VHDL specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
351 "VHDLFoldComment" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
352 "VHDLFoldAtElse" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
353 "VHDLFoldAtBegin" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
354 "VHDLFoldAtParenthesis" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
355
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
356 # XML specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
357 "XMLStyleScripts" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
358
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
359 # YAML specifics
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
360 "YAMLFoldComment" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
361 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
362
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
363 if isWindowsPlatform():
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
364 editorDefaults["EOLMode"] = Qsci.QsciScintilla.EolWindows
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
365 else:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
366 editorDefaults["EOLMode"] = Qsci.QsciScintilla.EolUnix
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
367
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
368 editorColourDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
369 "CurrentMarker" : QtGui.QColor(QtCore.Qt.yellow),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
370 "ErrorMarker" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
371 "MatchingBrace" : QtGui.QColor(QtCore.Qt.green),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
372 "MatchingBraceBack" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
373 "NonmatchingBrace" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
374 "NonmatchingBraceBack" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
375 "CallTipsBackground" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
376 "CaretForeground" : QtGui.QColor(QtCore.Qt.black),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
377 "CaretLineBackground" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
378 "Edge" : QtGui.QColor(QtCore.Qt.lightGray),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
379 "SelectionBackground" : QtGui.QColor(QtCore.Qt.black),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
380 "SelectionForeground" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
381 "SearchMarkers" : QtGui.QColor(QtCore.Qt.blue),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
382 "MarginsBackground" : QtGui.QColor(QtCore.Qt.lightGray),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
383 "MarginsForeground" : QtGui.QColor(QtCore.Qt.black),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
384 "FoldmarginBackground" : QtGui.QColor(230, 230, 230),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
385 "SpellingMarkers" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
386 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
387
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
388 editorOtherFontsDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
389 "MarginsFont" : "Sans Serif,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
390 "DefaultFont" : "Sans Serif,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
391 "MonospacedFont" : "Courier,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
392 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
393
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
394 editorTypingDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
395 "Python/EnabledTypingAids" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
396 "Python/InsertClosingBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
397 "Python/IndentBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
398 "Python/SkipBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
399 "Python/InsertQuote" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
400 "Python/DedentElse" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
401 "Python/DedentExcept" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
402 "Python/Py24StyleTry" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
403 "Python/InsertImport" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
404 "Python/InsertSelf" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
405 "Python/InsertBlank" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
406 "Python/ColonDetection" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
407 "Python/DedentDef" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
408
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
409 "Ruby/EnabledTypingAids" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
410 "Ruby/InsertClosingBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
411 "Ruby/IndentBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
412 "Ruby/SkipBrace" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
413 "Ruby/InsertQuote" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
414 "Ruby/InsertBlank" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
415 "Ruby/InsertHereDoc" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
416 "Ruby/InsertInlineDoc" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
417 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
418
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
419 editorExporterDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
420 "HTML/WYSIWYG" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
421 "HTML/Folding" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
422 "HTML/OnlyStylesUsed" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
423 "HTML/FullPathAsTitle" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
424 "HTML/UseTabs" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
425
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
426 "RTF/WYSIWYG" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
427 "RTF/UseTabs" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
428 "RTF/Font" : "Courier New,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
429
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
430 "PDF/Magnification" : 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
431 "PDF/Font" : "Helvetica", # must be Courier, Helvetica or Times
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
432 "PDF/PageSize" : "A4", # must be A4 or Letter
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
433 "PDF/MarginLeft" : 36,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
434 "PDF/MarginRight" : 36,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
435 "PDF/MarginTop" : 36,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
436 "PDF/MarginBottom" : 36,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
437
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
438 "TeX/OnlyStylesUsed" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
439 "TeX/FullPathAsTitle" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
440 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
441
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
442 # defaults for the printer settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
443 printerDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
444 "PrinterName" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
445 "ColorMode" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
446 "FirstPageFirst" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
447 "Magnification" : -3,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
448 "Orientation" : 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
449 "PageSize": 0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
450 "HeaderFont" : "Serif,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
451 "LeftMargin" : 1.0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
452 "RightMargin" : 1.0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
453 "TopMargin" : 1.0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
454 "BottomMargin" : 1.0,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
455 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
456
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
457 # defaults for the project settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
458 projectDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
459 "SearchNewFiles" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
460 "SearchNewFilesRecursively" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
461 "AutoIncludeNewFiles" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
462 "AutoLoadSession" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
463 "AutoSaveSession" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
464 "SessionAllBreakpoints" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
465 "CompressedProjectFiles" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
466 "XMLTimestamp" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
467 "AutoCompileForms" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
468 "AutoCompileResources" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
469 "AutoLoadDbgProperties" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
470 "AutoSaveDbgProperties" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
471 "HideGeneratedForms" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
472 "FollowEditor" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
473 "RecentNumber" : 9,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
474 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
475
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
476 # defaults for the multi project settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
477 multiProjectDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
478 "OpenMasterAutomatically" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
479 "XMLTimestamp" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
480 "RecentNumber" : 9,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
481 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
482
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
483 # defaults for the project browser flags settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
484 projectBrowserFlagsDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
485 "Qt4" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
486 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
487 FormsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
488 ResourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
489 TranslationsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
490 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
491 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
492 "Qt4C" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
493 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
494 ResourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
495 TranslationsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
496 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
497 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
498 "E4Plugin" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
499 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
500 FormsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
501 ResourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
502 TranslationsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
503 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
504 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
505 "Console" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
506 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
507 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
508 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
509 "Other" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
510 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
511 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
512 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
513 "PySide" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
514 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
515 FormsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
516 ResourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
517 TranslationsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
518 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
519 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
520 "PySideC" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
521 SourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
522 ResourcesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
523 TranslationsBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
524 InterfacesBrowserFlag | \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
525 OthersBrowserFlag,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
526 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
527
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
528 # defaults for the project browser colour settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
529 projectBrowserColourDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
530 "Highlighted" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
531
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
532 "VcsAdded" : QtGui.QColor(QtCore.Qt.blue),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
533 "VcsConflict" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
534 "VcsModified" : QtGui.QColor(QtCore.Qt.yellow),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
535 "VcsReplaced" : QtGui.QColor(QtCore.Qt.cyan),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
536 "VcsUpdate" : QtGui.QColor(QtCore.Qt.green),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
537 "VcsRemoved" : QtGui.QColor(QtCore.Qt.magenta)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
538 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
539
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
540 # defaults for the help settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
541 helpDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
542 "HelpViewerType" : 1, # this coresponds with the radio button id
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
543 "CustomViewer" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
544 "PythonDocDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
545 "QtDocDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
546 "Qt4DocDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
547 "PyQt4DocDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
548 "PySideDocDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
549 "SingleHelpWindow" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
550 "SaveGeometry" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
551 "HelpViewerState" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
552 "WebSearchSuggestions" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
553 "WebSearchEngine" : "Google",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
554 "WebSearchKeywords" : [], # array of two tuples (keyword, search engine name)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
555 "DiskCacheEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
556 "DiskCacheSize" : 50, # 50 MB
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
557 "AcceptCookies" : 2, # CookieJar.AcceptOnlyFromSitesNavigatedTo
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
558 "KeepCookiesUntil" : 0, # CookieJar.KeepUntilExpire
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
559 "FilterTrackingCookies" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
560 "PrintBackgrounds" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
561 "StartupBehavior" : 0, # show home page
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
562 "HomePage": "pyrc:home",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
563 "HistoryLimit" : 30,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
564 "DefaultScheme" : "file://",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
565 "SavePasswords" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
566 "AdBlockEnabled" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
567 "AdBlockSubscriptions" : [],
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
568 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
569
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
570 websettings = QWebSettings.globalSettings()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
571 fontFamily = websettings.fontFamily(QWebSettings.StandardFont)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
572 fontSize = websettings.fontSize(QWebSettings.DefaultFontSize)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
573 helpDefaults["StandardFont"] = QtGui.QFont(fontFamily, fontSize).toString()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
574 fontFamily = websettings.fontFamily(QWebSettings.FixedFont)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
575 fontSize = websettings.fontSize(QWebSettings.DefaultFixedFontSize)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
576 helpDefaults["FixedFont"] = QtGui.QFont(fontFamily, fontSize).toString()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
577 helpDefaults.update({
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
578 "AutoLoadImages" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
579 websettings.testAttribute(QWebSettings.AutoLoadImages),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
580 "UserStyleSheet" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
581 "SaveUrlColor" : QtGui.QColor(248, 248, 210),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
582 "JavaEnabled" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
583 websettings.testAttribute(QWebSettings.JavaEnabled),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
584 "JavaScriptEnabled" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
585 websettings.testAttribute(QWebSettings.JavascriptEnabled),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
586 "JavaScriptCanOpenWindows" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
587 websettings.testAttribute(QWebSettings.JavascriptCanOpenWindows),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
588 "JavaScriptCanAccessClipboard" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
589 websettings.testAttribute(QWebSettings.JavascriptCanAccessClipboard),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
590 "PluginsEnabled" :
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
591 websettings.testAttribute(QWebSettings.PluginsEnabled),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
592 })
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
593
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
594 # defaults for system settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
595 sysDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
596 "StringEncoding" : "utf-8",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
597 "IOEncoding" : "utf-8",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
598 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
599
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
600 # defaults for the shell settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
601 shellDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
602 "LinenoWidth" : 4,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
603 "LinenoMargin" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
604 "AutoCompletionEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
605 "CallTipsEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
606 "WrapEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
607 "MaxHistoryEntries" : 100,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
608 "SyntaxHighlightingEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
609 "ShowStdOutErr" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
610 "UseMonospacedFont" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
611 "MonospacedFont" : "Courier,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
612 "MarginsFont" : "Sans Serif,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
613 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
614
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
615 # defaults for the terminal settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
616 terminalDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
617 "LinenoWidth" : 4,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
618 "LinenoMargin" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
619 "MaxHistoryEntries" : 100,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
620 "SyntaxHighlightingEnabled" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
621 "Shell" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
622 "ShellInteractive" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
623 "UseMonospacedFont" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
624 "MonospacedFont" : "Courier,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
625 "MarginsFont" : "Sans Serif,10,-1,5,50,0,0,0,0,0",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
626 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
627 if sys.platform.lower().startswith("linux"):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
628 terminalDefaults["Shell"] = "bash"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
629
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
630 # defaults for Qt related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
631 qtDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
632 "Qt4TranslationsDir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
633 "QtToolsPrefix4" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
634 "QtToolsPostfix4" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
635 "Qt4Dir" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
636 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
637
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
638 # defaults for corba related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
639 corbaDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
640 "omniidl" : "omniidl"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
641 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
642
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
643 # defaults for user related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
644 userDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
645 "Email" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
646 "MailServer" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
647 "Signature" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
648 "MailServerAuthentication" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
649 "MailServerUser" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
650 "MailServerPassword" : "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
651 "MailServerUseTLS" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
652 "MailServerPort" : 25,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
653 "UseSystemEmailClient" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
654 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
655
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
656 # defaults for vcs related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
657 vcsDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
658 "AutoClose" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
659 "AutoSaveFiles" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
660 "AutoSaveProject" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
661 "AutoUpdate" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
662 "StatusMonitorInterval" : 30,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
663 "MonitorLocalStatus" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
664 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
665
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
666 # defaults for tasks related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
667 tasksDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
668 "TasksMarkers" : "TO" + "DO:",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
669 "TasksMarkersBugfix" : "FIX" + "ME:",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
670 # needed to keep it from being recognized as a task
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
671 "TasksColour" : QtGui.QColor(QtCore.Qt.black),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
672 "TasksBugfixColour" : QtGui.QColor(QtCore.Qt.red),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
673 "TasksBgColour" : QtGui.QColor(QtCore.Qt.white),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
674 "TasksProjectBgColour" : QtGui.QColor(QtCore.Qt.lightGray),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
675 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
676
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
677 # defaults for templates related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
678 templatesDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
679 "AutoOpenGroups" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
680 "SingleDialog" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
681 "ShowTooltip" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
682 "SeparatorChar" : "$",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
683 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
684
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
685 # defaults for plugin manager related stuff
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
686 pluginManagerDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
687 "ActivateExternal" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
688 "DownloadPath" : ""
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
689 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
690
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
691 # defaults for the printer settings
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
692 graphicsDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
693 "Font" : "SansSerif,10,-1,5,50,0,0,0,0,0"
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
694 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
695
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
696 # defaults for the icon editor
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
697 iconEditorDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
698 "IconEditorState" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
699 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
700
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
701 # defaults for py3flakes
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
702 py3flakesDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
703 "IncludeInSyntaxCheck" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
704 "IgnoreStarImportWarnings" : True,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
705 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
706
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
707 # defaults for geometry
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
708 geometryDefaults = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
709 "HelpViewerGeometry" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
710 "IconEditorGeometry" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
711 "MainGeometry" : QtCore.QByteArray(),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
712 "MainMaximized" : False,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
713 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
714
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
715 # if true, revert layouts to factory defaults
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
716 resetLayout = False
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
717
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
718 def readToolGroups(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
719 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
720 Module function to read the tool groups configuration.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
721
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
722 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
723 @return list of tuples defing the tool groups
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
724 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
725 toolGroups = []
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
726 groups = int(prefClass.settings.value("Toolgroups/Groups", 0))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
727 for groupIndex in range(groups):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
728 groupName = \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
729 prefClass.settings.value("Toolgroups/%02d/Name" % groupIndex)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
730 group = [groupName, []]
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
731 items = int(prefClass.settings.value("Toolgroups/%02d/Items" % groupIndex, 0))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
732 for ind in range(items):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
733 menutext = prefClass.settings.value(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
734 "Toolgroups/%02d/%02d/Menutext" % (groupIndex, ind))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
735 icon = prefClass.settings.value(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
736 "Toolgroups/%02d/%02d/Icon" % (groupIndex, ind))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
737 executable = prefClass.settings.value(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
738 "Toolgroups/%02d/%02d/Executable" % (groupIndex, ind))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
739 arguments = prefClass.settings.value(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
740 "Toolgroups/%02d/%02d/Arguments" % (groupIndex, ind))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
741 redirect = prefClass.settings.value(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
742 "Toolgroups/%02d/%02d/Redirect" % (groupIndex, ind))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
743
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
744 if menutext:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
745 if menutext == '--':
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
746 tool = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
747 'menutext' : '--',
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
748 'icon' : '',
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
749 'executable' : '',
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
750 'arguments' : '',
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
751 'redirect' : 'no',
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
752 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
753 group[1].append(tool)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
754 elif executable:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
755 tool = {
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
756 'menutext' : menutext,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
757 'icon' : icon,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
758 'executable' : executable,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
759 'arguments' : arguments,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
760 'redirect' : redirect,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
761 }
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
762 group[1].append(tool)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
763 toolGroups.append(group)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
764 currentGroup = int(prefClass.settings.value("Toolgroups/Current Group", -1))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
765 return toolGroups, currentGroup
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
766
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
767 def saveToolGroups(toolGroups, currentGroup, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
768 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
769 Module function to write the tool groups configuration.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
770
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
771 @param toolGroups reference to the list of tool groups
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
772 @param currentGroup index of the currently selected tool group (integer)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
773 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
774 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
775 # first step, remove all tool group entries
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
776 prefClass.settings.remove("Toolgroups")
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
777
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
778 # second step, write the tool group entries
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
779 prefClass.settings.setValue("Toolgroups/Groups", len(toolGroups))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
780 groupIndex = 0
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
781 for group in toolGroups:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
782 prefClass.settings.setValue("Toolgroups/%02d/Name" % groupIndex, group[0])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
783 prefClass.settings.setValue("Toolgroups/%02d/Items" % groupIndex, len(group[1]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
784 ind = 0
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
785 for tool in group[1]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
786 prefClass.settings.setValue(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
787 "Toolgroups/%02d/%02d/Menutext" % (groupIndex, ind), tool['menutext'])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
788 prefClass.settings.setValue(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
789 "Toolgroups/%02d/%02d/Icon" % (groupIndex, ind), tool['icon'])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
790 prefClass.settings.setValue(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
791 "Toolgroups/%02d/%02d/Executable" % (groupIndex, ind), tool['executable'])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
792 prefClass.settings.setValue(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
793 "Toolgroups/%02d/%02d/Arguments" % (groupIndex, ind), tool['arguments'])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
794 prefClass.settings.setValue(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
795 "Toolgroups/%02d/%02d/Redirect" % (groupIndex, ind), tool['redirect'])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
796 ind += 1
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
797 groupIndex += 1
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
798 prefClass.settings.setValue("Toolgroups/Current Group", currentGroup)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
799
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
800 def initPreferences():
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
801 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
802 Module function to initialize the central configuration store.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
803 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
804 Prefs.settings = QtCore.QSettings(
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
805 QtCore.QSettings.IniFormat, QtCore.QSettings.UserScope,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
806 settingsNameOrganization, settingsNameGlobal)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
807 if not isWindowsPlatform():
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
808 hp = QtCore.QDir.homePath()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
809 dn = QtCore.QDir(hp)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
810 dn.mkdir(".eric5")
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
811 QtCore.QCoreApplication.setOrganizationName(settingsNameOrganization)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
812 QtCore.QCoreApplication.setApplicationName(settingsNameGlobal)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
813
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
814 def syncPreferences(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
815 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
816 Module function to sync the preferences to disk.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
817
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
818 In addition to syncing, the central configuration store is reinitialized as well.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
819
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
820 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
821 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
822 prefClass.settings.setValue("General/Configured", True)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
823 prefClass.settings.sync()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
824 ## initPreferences()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
825
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
826 def exportPreferences(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
827 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
828 Module function to export the current preferences.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
829
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
830 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
831 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
832 filename = QtGui.QFileDialog.getSaveFileName(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
833 None,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
834 QtCore.QCoreApplication.translate("Preferences", "Export Preferences"),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
835 "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
836 "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
837 QtGui.QFileDialog.Options(QtGui.QFileDialog.DontConfirmOverwrite))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
838 if filename:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
839 settingsFile = prefClass.settings.fileName()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
840 prefClass.settings = None
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
841 shutil.copy(settingsFile, filename)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
842 initPreferences()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
843
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
844 def importPreferences(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
845 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
846 Module function to import preferences from a file previously saved by
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
847 the export function.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
848
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
849 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
850 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
851 filename = QtGui.QFileDialog.getOpenFileName(\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
852 None,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
853 QtCore.QCoreApplication.translate("Preferences", "Import Preferences"),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
854 "",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
855 "")
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
856 if filename:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
857 settingsFile = prefClass.settings.fileName()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
858 shutil.copy(filename, settingsFile)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
859 initPreferences()
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
860
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
861 def isConfigured(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
862 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
863 Module function to check, if the the application has been configured.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
864
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
865 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
866 @return flag indicating the configured status (boolean)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
867 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
868 return toBool(prefClass.settings.value("General/Configured", False))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
869
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
870 def initRecentSettings():
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
871 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
872 Module function to initialize the central configuration store for recently
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
873 opened files and projects.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
874
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
875 This function is called once upon import of the module.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
876 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
877 Prefs.rsettings = QtCore.QSettings(
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
878 QtCore.QSettings.IniFormat, QtCore.QSettings.UserScope,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
879 settingsNameOrganization, settingsNameRecent)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
880
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
881 def getVarFilters(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
882 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
883 Module function to retrieve the variables filter settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
884
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
885 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
886 @return a tuple defing the variables filter
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
887 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
888 localsFilter = eval(prefClass.settings.value("Variables/LocalsFilter",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
889 prefClass.varDefaults["LocalsFilter"]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
890 globalsFilter = eval(prefClass.settings.value("Variables/GlobalsFilter",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
891 prefClass.varDefaults["GlobalsFilter"]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
892 return (localsFilter, globalsFilter)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
893
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
894 def setVarFilters(filters, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
895 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
896 Module function to store the variables filter settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
897
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
898 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
899 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
900 prefClass.settings.setValue("Variables/LocalsFilter", str(filters[0]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
901 prefClass.settings.setValue("Variables/GlobalsFilter", str(filters[1]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
902
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
903 def getDebugger(key, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
904 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
905 Module function to retrieve the debugger settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
906
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
907 @param key the key of the value to get
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
908 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
909 @return the requested debugger setting
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
910 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
911 if key in ["RemoteDbgEnabled", "PassiveDbgEnabled",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
912 "CustomPython3Interpreter",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
913 "AutomaticReset", "DebugEnvironmentReplace",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
914 "PythonRedirect", "PythonNoEncoding",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
915 "Python3Redirect", "Python3NoEncoding",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
916 "RubyRedirect",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
917 "ConsoleDbgEnabled", "PathTranslation",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
918 "Autosave", "ThreeStateBreakPoints",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
919 "SuppressClientExit", "BreakAlways",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
920 ]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
921 return toBool(prefClass.settings.value("Debugger/" + key,
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
922 prefClass.debuggerDefaults[key]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
923 elif key in ["PassiveDbgPort"]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
924 return int(
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
925 prefClass.settings.value("Debugger/" + key, prefClass.debuggerDefaults[key]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
926 elif key in ["AllowedHosts"]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
927 return toList(
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
928 prefClass.settings.value("Debugger/" + key, prefClass.debuggerDefaults[key]))
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
929 else:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
930 return \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
931 prefClass.settings.value("Debugger/" + key, prefClass.debuggerDefaults[key])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
932
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
933 def setDebugger(key, value, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
934 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
935 Module function to store the debugger settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
936
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
937 @param key the key of the setting to be set
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
938 @param value the value to be set
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
939 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
940 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
941 prefClass.settings.setValue("Debugger/" + key, value)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
942
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
943 def getPython(key, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
944 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
945 Module function to retrieve the Python settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
946
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
947 @param key the key of the value to get
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
948 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
949 @return the requested debugger setting
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
950 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
951 if key in ["PythonExtensions", "Python3Extensions"]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
952 exts = []
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
953 for ext in getDebugger(key, prefClass).split():
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
954 if ext.startswith("."):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
955 exts.append(ext)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
956 else:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
957 exts.append(".%s" % ext)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
958 return exts
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
959
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
960 def setPython(key, value, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
961 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
962 Module function to store the Python settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
963
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
964 @param key the key of the setting to be set
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
965 @param value the value to be set
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
966 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
967 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
968 if key in ["PythonExtensions", "Python3Extensions"]:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
969 setDebugger(key, value, prefClass)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
970
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
971 def getUILanguage(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
972 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
973 Module function to retrieve the language for the user interface.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
974
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
975 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
976 @return the language for the UI
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
977 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
978 lang = \
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
979 prefClass.settings.value("UI/Language", prefClass.uiDefaults["Language"])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
980 if lang == "None" or lang == "" or lang is None:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
981 return None
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
982 else:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
983 return lang
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
984
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
985 def setUILanguage(lang, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
986 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
987 Module function to store the language for the user interface.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
988
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
989 @param lang the language
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
990 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
991 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
992 if lang is None:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
993 prefClass.settings.setValue("UI/Language", "None")
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
994 else:
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
995 prefClass.settings.setValue("UI/Language", lang)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
996
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
997 def getUILayout(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
998 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
999 Module function to retrieve the layout for the user interface.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1000
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1001 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1002 @return the UI layout as a tuple of main layout, flag for
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1003 an embedded shell and a value for an embedded file browser
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1004 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1005 layout = (\
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1006 prefClass.settings.value("UI/LayoutType",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1007 prefClass.uiDefaults["LayoutType"]),
886
bb59d644fca6 Fixed an issue reading the correct values for the layout parameters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 792
diff changeset
1008 int(prefClass.settings.value("UI/LayoutShellEmbedded",
434
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1009 prefClass.uiDefaults["LayoutShellEmbedded"])),
886
bb59d644fca6 Fixed an issue reading the correct values for the layout parameters.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 792
diff changeset
1010 int(prefClass.settings.value("UI/LayoutFileBrowserEmbedded",
434
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1011 prefClass.uiDefaults["LayoutFileBrowserEmbedded"])),
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1012 )
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1013 return layout
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1014
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1015 def setUILayout(layout, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1016 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1017 Module function to store the layout for the user interface.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1018
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1019 @param layout the layout type
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1020 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1021 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1022 prefClass.settings.setValue("UI/LayoutType", layout[0])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1023 prefClass.settings.setValue("UI/LayoutShellEmbedded", layout[1])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1024 prefClass.settings.setValue("UI/LayoutFileBrowserEmbedded", layout[2])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1025
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1026 def getViewManager(prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1027 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1028 Module function to retrieve the selected viewmanager type.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1029
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1030 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1031 @return the viewmanager type
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1032 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1033 return prefClass.settings.value("UI/ViewManager",
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1034 prefClass.uiDefaults["ViewManager"])
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1035
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1036 def setViewManager(vm, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1037 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1038 Module function to store the selected viewmanager type.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1039
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1040 @param vm the viewmanager type
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1041 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1042 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1043 prefClass.settings.setValue("UI/ViewManager", vm)
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1044
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1045 def getUI(key, prefClass = Prefs):
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1046 """
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1047 Module function to retrieve the various UI settings.
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1048
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1049 @param key the key of the value to get
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1050 @param prefClass preferences class used as the storage area
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff changeset
1051 @return the requested UI setting
3a2b62a5db7a Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 285
diff