-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuseroptions.tcl
157 lines (147 loc) · 4 KB
/
useroptions.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# the main window size
set ::UserOptions(MainGeometry) "800x500+10+10"
# the default theme
if {$tcl_platform(platform) == "windows"} {
set ::UserOptions(Theme) "xpnative"
set ::UserOptions(FileFont) {FixedSys 14}
set ::UserOptions(ConsoleFont) {FixedSys 14}
# syntax colors for Tcl files
set ::UserOptions(TclSyntax) { \
Keywords {darkred normal} \
Braces {orange normal} \
Brackets {red normal} \
Parens {maroon4 normal} \
Options {goldenrod normal} \
Digits {darkviolet normal} \
Strings {magenta normal} \
Vars {green4 normal} \
Comments {blue normal}
}
set ::UserOptions(HtmlSyntax) { \
Tags {maroon4 normal} \
TagOptions {goldenrod normal} \
HtmlComment {blue normal}
}
} else {
set ::UserOptions(Theme) "clam"
set ::UserOptions(FileFont) {{Lucida Sans Typewriter} 13}
set ::UserOptions(ConsoleFont) {{Lucida Sans Typewriter} 13}
# syntax colors for Tcl files
set ::UserOptions(TclSyntax) { \
Keywords {darkred bold} \
Braces {orange bold} \
Brackets {red bold} \
Parens {maroon4 bold} \
Options {gold normal} \
Digits {darkviolet normal} \
Strings {magenta normal} \
Vars {green4 normal} \
Comments {blue normal}
}
set ::UserOptions(HtmlSyntax) { \
Tags {maroon4 bold} \
TagOptions {gold normal} \
HtmlComment {blue normal}
}
}
set ::UserOptions(ConsoleWrap) word
# the time that a selected code fragment flashes
set ::UserOptions(FlashTime) 1000
# file options
set ::UserOptions(FileExpandTabs) 1
set ::UserOptions(FileNTabs) 4
set ::UserOptions(File,InsertCodeTemplates) 1
set ::UserOptions(File,MatchParens) 1
set ::UserOptions(File,MatchBrackets) 1
set ::UserOptions(File,MatchBraces) 1
set ::UserOptions(File,MatchQuotes) 1
set ::UserOptions(File,Backup) 1
set ::UserOptions(File,SaveLineEndings) auto
# browser options
set ::UserOptions(CodeBrowser,SortSeq) {
package
macro
variable
class
itk_components
public_component
private_component
snit_options
snit_option
snit_delegates
snit_delegate
public_common
protected_common
private_common
public_variable
protected_variable
private_variable
constructor
destructor
public_method
protected_method
private_method
proc
namespace
test
}
set ::UserOptions(KitBrowser,SortSeq) {
directory
tclfile
testfile
file
package
macro
variable
class
itk_components
public_component
private_component
snit_options
snit_option
snit_delegates
snit_delegate
public_common
protected_common
private_common
public_variable
protected_variable
private_variable
constructor
destructor
public_method
protected_method
private_method
proc
namespace
test
}
set ::UserOptions(CodeBrowser,SortAlpha) 1
set ::UserOptions(KitBrowser,SortAlpha) 1
# key bindings
set ::UserOptions(Key,Open) "<Control-o>"
set ::UserOptions(Key,Close) "<Control-w>"
set ::UserOptions(Key,Copy) "<Control-c>"
set ::UserOptions(Key,Cut) "<Control-x>"
set ::UserOptions(Key,Paste) "<Control-v>"
set ::UserOptions(Key,NewFile) "<Control-n>"
set ::UserOptions(Key,Save) "<Control-s>"
# view options
set ::UserOptions(View,browser) 1
set ::UserOptions(View,browserSash) -1
set ::UserOptions(View,outline) 1
set ::UserOptions(View,outlineSash) -1
set ::UserOptions(View,textnb) 1
set ::UserOptions(View,console) 1
set ::UserOptions(View,editor) 1
set ::UserOptions(View,consoleSash) -1
set ::UserOptions(View,outline) 1
set ::UserOptions(View,consoleOnly) 0
set ::UserOptions(View,navigateSash) -1
# last open documents
set ::UserOptions(LastOpenDocuments) {}
# kit projects (starkits)
set ::UserOptions(KitProjects) {}
# Path to SDX for wrapping files
set ::UserOptions(PathToSDX) ""
set ::UserOptions(DefaultModifier) "Control"