author | Claus Gittinger <cg@exept.de> |
Mon, 11 Sep 2017 09:08:06 +0200 | |
changeset 17686 | c6fc2da19287 |
parent 16566 | 6d47bd4bc7c8 |
child 16573 | 2f5cd8950dcf |
child 17879 | 8732898d963e |
permissions | -rw-r--r-- |
10398 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
10337 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
AbstractSettingsApplication subclass:#CodeView2SettingsAppl |
|
10398 | 17 |
instanceVariableNames:'useCodeView2InTools useCodeView2InDebugger useCodeView2InBrowser |
10524 | 18 |
useCodeView2InToolEnabled useCodeView2InWorkspace |
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
19 |
codeView2AutoPrettyPrint codeView2ShowAcceptCancel |
13807 | 20 |
codeView2QuickSendersAndImplementorsOnControl |
21 |
showAcceptCancelBarInBrowser' |
|
10337 | 22 |
classVariableNames:'' |
23 |
poolDictionaries:'' |
|
24 |
category:'Interface-CodeView' |
|
25 |
! |
|
26 |
||
10398 | 27 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
28 |
||
29 |
copyright |
|
30 |
" |
|
31 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
32 |
All Rights Reserved |
|
33 |
||
34 |
This software is furnished under a license and may be used |
|
35 |
only in accordance with the terms of that license and with the |
|
36 |
inclusion of the above copyright notice. This software may not |
|
37 |
be provided or otherwise made available to, or used by, any |
|
38 |
other person. No title to or ownership of the software is |
|
39 |
hereby transferred. |
|
40 |
" |
|
41 |
! ! |
|
10337 | 42 |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
43 |
!CodeView2SettingsAppl class methodsFor:'help specs'! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
44 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
45 |
flyByHelpSpec |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
46 |
"This resource specification was automatically generated |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
47 |
by the UIHelpTool of ST/X." |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
48 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
49 |
"Do not manually edit this!! If it is corrupted, |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
50 |
the UIHelpTool may not be able to read the specification." |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
51 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
52 |
" |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
53 |
UIHelpTool openOnClass:Tools::CodeView2SettingsAppl |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
54 |
" |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
55 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
56 |
<resource: #help> |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
57 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
58 |
^ super flyByHelpSpec addPairsFrom:#( |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
59 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
60 |
#showAcceptCancelBarInGutter |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
61 |
'Show the Gutterview''s own Accept/Cancel Bar (disabled if outer Accept/Cancel bar is enabled)' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
62 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
63 |
#useCodeView2InBrowser |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
64 |
'Use the new editor in SystemBrowsers (disabled if the global use of CodeEditor2 is disabled in the tools settings)' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
65 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
66 |
#useCodeView2InWorkspace |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
67 |
'Use the new editor in Workspaces (disabled if the global use of Code Editor2 is disabled in the tools settings)' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
68 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
69 |
#useCodeView2InDebugger |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
70 |
'Use the new editor in the Debugger (disabled if the global use of Code Editor2 is disabled in the tools settings)' |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
71 |
|
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
72 |
#codeView2QuickSendersAndImplementorsOnControl |
13417
c69a48a87756
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12786
diff
changeset
|
73 |
'If on, the CTRL (Control) key is used to get the quick implementors/senders menus via left/right mouse click.\If off, the ALT key is used.\Check this, if your window manager eats ALT-key events for breakfast.' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
74 |
|
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
75 |
#codeView2AutoPrettyPrint |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
76 |
'Automatically indent (prettyprint) code. This is experimental and not yet enabled by default, |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
77 |
as it uses the refactory browser''s prettyprint function, which is known to loose comments and generate |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
78 |
ugly layout occasionally. For now, it is recommended to manually prettyprint code (using the format button), |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
79 |
and check if it looks good enough to be accepted.' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
80 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
81 |
) |
13807 | 82 |
! |
83 |
||
84 |
helpSpec |
|
85 |
"This resource specification was automatically generated |
|
86 |
by the UIHelpTool of ST/X." |
|
87 |
||
88 |
"Do not manually edit this!! If it is corrupted, |
|
89 |
the UIHelpTool may not be able to read the specification." |
|
90 |
||
91 |
" |
|
92 |
UIHelpTool openOnClass:Tools::CodeView2SettingsAppl |
|
93 |
" |
|
94 |
||
95 |
<resource: #help> |
|
96 |
||
97 |
^ super helpSpec addPairsFrom:#( |
|
98 |
||
99 |
#showAcceptCancelBarInGutter |
|
100 |
'When selected, use CodeView''s internal Accept/Cancel bar shown in gutter.' |
|
101 |
||
102 |
) |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
103 |
! ! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
104 |
|
10902 | 105 |
!CodeView2SettingsAppl class methodsFor:'image specs'! |
106 |
||
107 |
defaultIcon |
|
14418
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
108 |
<resource: #image> |
10902 | 109 |
"This resource specification was automatically generated |
110 |
by the ImageEditor of ST/X." |
|
111 |
"Do not manually edit this!! If it is corrupted, |
|
112 |
the ImageEditor may not be able to read the specification." |
|
113 |
" |
|
114 |
self defaultIcon inspect |
|
115 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
14418
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
116 |
Icon flushCachedIcons" |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
117 |
|
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
118 |
^ Icon constantNamed:'Tools::CodeView2SettingsAppl class defaultIcon' |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
119 |
ifAbsentPut:[ |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
120 |
(Depth4Image new) |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
121 |
width:22; |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
122 |
height:22; |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
123 |
photometric:(#palette); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
124 |
bitsPerSample:(#[ 4 ]); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
125 |
samplesPerPixel:(1); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
126 |
bits:(ByteArray |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
127 |
fromPackedString:' |
10902 | 128 |
*****************+.************(.8"H"H"H"J(@**";UUU%UUUU@@^+.;.;-VUUUU@@]:.;.;.5YUUUT@A7**";Y&Y&Y&X@]7^**K-UUVUU@@]7\Z*( |
129 |
.5UUYU@@]7\R**"EUUU%T@A7]1J**HY&Y&XC]7\Q&**(!!UUU(3M7\Y&***"EUUU#L3L2QJ***HY&Z#L3L6)D***(!!&Y*L3L6Z$R***"EUUP3M&ZEQJ***HUU |
|
14418
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
130 |
RRY(UUUD***("*)J*****$R***"J)J******QJ***HUUUZUUUUUD***TQDQDQDQDQDR***************(b'); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
131 |
colorMapFromArray:#[ 240 160 80 192 80 0 64 0 0 240 208 160 0 0 0 240 240 240 192 192 192 240 128 0 208 208 208 48 48 48 160 160 160 255 0 0 ]; |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
132 |
mask:((ImageMask new) |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
133 |
width:22; |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
134 |
height:22; |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
135 |
bits:(ByteArray |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
136 |
fromPackedString:'@@@@C@@@G??LG??<_??<_??<G??<G??<G??<G??<G??8G??0G??0G??0G??0G??0G??0G??0G??0G??0O??0@@@@'); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
137 |
yourself); |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
138 |
yourself |
807eaf175885
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
14235
diff
changeset
|
139 |
] |
10902 | 140 |
! ! |
141 |
||
10337 | 142 |
!CodeView2SettingsAppl class methodsFor:'interface specs'! |
143 |
||
144 |
windowSpec |
|
145 |
"This resource specification was automatically generated |
|
146 |
by the UIPainter of ST/X." |
|
147 |
||
148 |
"Do not manually edit this!! If it is corrupted, |
|
149 |
the UIPainter may not be able to read the specification." |
|
150 |
||
151 |
" |
|
152 |
UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec |
|
153 |
Tools::CodeView2SettingsAppl new openInterface:#windowSpec |
|
154 |
Tools::CodeView2SettingsAppl open |
|
155 |
" |
|
156 |
||
157 |
<resource: #canvas> |
|
158 |
||
159 |
^ |
|
13807 | 160 |
#(FullSpec |
161 |
name: windowSpec |
|
162 |
window: |
|
163 |
(WindowSpec |
|
164 |
label: 'Code Editor Settings' |
|
165 |
name: 'Code Editor Settings' |
|
166 |
min: (Point 10 10) |
|
14235
77dd9199be5b
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13807
diff
changeset
|
167 |
bounds: (Rectangle 0 0 589 346) |
13807 | 168 |
) |
169 |
component: |
|
170 |
(SpecCollection |
|
171 |
collection: ( |
|
172 |
(VerticalPanelViewSpec |
|
173 |
name: 'VBox' |
|
174 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
175 |
horizontalLayout: fit |
|
176 |
verticalLayout: top |
|
177 |
horizontalSpace: 3 |
|
178 |
verticalSpace: 3 |
|
179 |
component: |
|
180 |
(SpecCollection |
|
181 |
collection: ( |
|
182 |
(FramedBoxSpec |
|
183 |
label: 'Individual Tool Support' |
|
184 |
name: 'ToolSupport' |
|
185 |
visibilityChannel: false |
|
186 |
labelPosition: topLeft |
|
187 |
translateLabel: true |
|
188 |
component: |
|
189 |
(SpecCollection |
|
190 |
collection: ( |
|
191 |
(VerticalPanelViewSpec |
|
192 |
name: 'ToolSupportCheckBox' |
|
14235
77dd9199be5b
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
13807
diff
changeset
|
193 |
layout: (LayoutFrame 0 0 0 0 0 1 96 0) |
13807 | 194 |
horizontalLayout: fit |
195 |
verticalLayout: top |
|
196 |
horizontalSpace: 3 |
|
197 |
verticalSpace: 3 |
|
198 |
component: |
|
199 |
(SpecCollection |
|
200 |
collection: ( |
|
201 |
(CheckBoxSpec |
|
202 |
label: 'Use Advanced Code Editor in Class Browser' |
|
203 |
name: 'CheckBox2' |
|
204 |
activeHelpKey: useCodeView2InBrowser |
|
205 |
enableChannel: useCodeView2InToolEnabled |
|
206 |
model: useCodeView2InBrowser |
|
207 |
translateLabel: true |
|
16314 | 208 |
extent: (Point 543 30) |
10902 | 209 |
) |
13807 | 210 |
(CheckBoxSpec |
211 |
label: 'Use Advanced Code Editor in Debugger (experimental)' |
|
212 |
name: 'CheckBox3' |
|
213 |
activeHelpKey: useCodeView2InDebugger |
|
214 |
enableChannel: useCodeView2InToolEnabled |
|
215 |
model: useCodeView2InDebugger |
|
216 |
translateLabel: true |
|
16314 | 217 |
extent: (Point 543 30) |
13807 | 218 |
) |
219 |
(CheckBoxSpec |
|
220 |
label: 'Use Advanced Code Editor in Workspace' |
|
221 |
name: 'CheckBox4' |
|
222 |
activeHelpKey: useCodeView2InWorkspace |
|
223 |
enableChannel: useCodeView2InToolEnabled |
|
224 |
model: useCodeView2InWorkspace |
|
225 |
translateLabel: true |
|
16314 | 226 |
extent: (Point 543 30) |
13807 | 227 |
) |
228 |
) |
|
229 |
||
230 |
) |
|
16314 | 231 |
useDynamicPreferredHeight: true |
13807 | 232 |
usePreferredHeight: true |
10902 | 233 |
) |
13807 | 234 |
) |
235 |
||
236 |
) |
|
16314 | 237 |
extent: (Point 589 130) |
13807 | 238 |
) |
239 |
(FramedBoxSpec |
|
240 |
label: 'Edit Support' |
|
241 |
name: 'EditSupport' |
|
242 |
labelPosition: topLeft |
|
243 |
translateLabel: true |
|
244 |
component: |
|
245 |
(SpecCollection |
|
246 |
collection: ( |
|
247 |
(VerticalPanelViewSpec |
|
248 |
name: 'VerticalPanel1' |
|
249 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
250 |
horizontalLayout: fit |
|
251 |
verticalLayout: top |
|
252 |
horizontalSpace: 3 |
|
253 |
verticalSpace: 3 |
|
254 |
component: |
|
255 |
(SpecCollection |
|
256 |
collection: ( |
|
257 |
(CheckBoxSpec |
|
258 |
label: 'Show Accept/Cancel Bar in Editor' |
|
259 |
name: 'ShowAcceptCancelBarInBrowser' |
|
260 |
activeHelpKey: showAcceptCancelBar |
|
261 |
model: showAcceptCancelBarInBrowser |
|
16314 | 262 |
translateLabel: true |
263 |
extent: (Point 543 30) |
|
10524 | 264 |
) |
13807 | 265 |
(ViewSpec |
266 |
name: 'Box1' |
|
267 |
component: |
|
268 |
(SpecCollection |
|
269 |
collection: ( |
|
270 |
(CheckBoxSpec |
|
271 |
label: 'Use Internal Accept/Cancel Bar Shown in Editor''s Gutter' |
|
272 |
name: 'CheckBox6' |
|
273 |
layout: (LayoutFrame 25 0 0 0 0 1 0 1) |
|
274 |
activeHelpKey: showAcceptCancelBarInGutter |
|
275 |
enableChannel: showAcceptCancelBarInBrowser |
|
276 |
model: codeView2ShowAcceptCancel |
|
277 |
translateLabel: true |
|
278 |
) |
|
279 |
) |
|
280 |
||
281 |
) |
|
16314 | 282 |
extent: (Point 543 30) |
13807 | 283 |
) |
284 |
(CheckBoxSpec |
|
285 |
label: 'Auto Pretty Print (experimental, not yet recommended)' |
|
286 |
name: 'CheckBox5' |
|
287 |
activeHelpKey: codeView2AutoPrettyPrint |
|
288 |
visibilityChannel: false |
|
289 |
enableChannel: false |
|
290 |
model: codeView2AutoPrettyPrint |
|
291 |
translateLabel: true |
|
16314 | 292 |
extent: (Point 543 30) |
13807 | 293 |
) |
294 |
) |
|
295 |
||
296 |
) |
|
10524 | 297 |
) |
13807 | 298 |
) |
299 |
||
300 |
) |
|
16314 | 301 |
extent: (Point 589 136) |
13807 | 302 |
) |
303 |
(FramedBoxSpec |
|
304 |
label: 'Keyboard Shortcuts' |
|
305 |
name: 'FramedBox1' |
|
306 |
labelPosition: topLeft |
|
307 |
translateLabel: true |
|
308 |
component: |
|
309 |
(SpecCollection |
|
310 |
collection: ( |
|
311 |
(VerticalPanelViewSpec |
|
312 |
name: 'VerticalPanel2' |
|
313 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
314 |
horizontalLayout: fit |
|
315 |
verticalLayout: top |
|
316 |
horizontalSpace: 3 |
|
317 |
verticalSpace: 3 |
|
318 |
component: |
|
319 |
(SpecCollection |
|
320 |
collection: ( |
|
321 |
(CheckBoxSpec |
|
322 |
label: 'Quick Senders/Implementors Menu with CTRL key (as opposed to ALT key)' |
|
323 |
name: 'CheckBox7' |
|
324 |
activeHelpKey: codeView2QuickSendersAndImplementorsOnControl |
|
325 |
model: codeView2QuickSendersAndImplementorsOnControl |
|
326 |
translateLabel: true |
|
16314 | 327 |
extent: (Point 543 30) |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
328 |
) |
13807 | 329 |
) |
330 |
||
331 |
) |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
332 |
) |
13807 | 333 |
) |
334 |
||
335 |
) |
|
16319 | 336 |
extent: (Point 589 76) |
10337 | 337 |
) |
13807 | 338 |
) |
339 |
||
340 |
) |
|
10337 | 341 |
) |
13807 | 342 |
) |
343 |
||
344 |
) |
|
345 |
) |
|
10337 | 346 |
! ! |
347 |
||
348 |
!CodeView2SettingsAppl methodsFor:'aspects'! |
|
349 |
||
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
350 |
acceptCancelInGutterEnabledHolder |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
351 |
^ [UserPreferences current showAcceptCancelBar not] |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
352 |
! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
353 |
|
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
354 |
codeView2AutoPrettyPrint |
10524 | 355 |
|
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
356 |
codeView2AutoPrettyPrint isNil ifTrue:[ |
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
357 |
codeView2AutoPrettyPrint := ValueHolder new. |
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
358 |
codeView2AutoPrettyPrint onChangeSend:#updateModifiedChannel to:self |
10524 | 359 |
]. |
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
360 |
^ codeView2AutoPrettyPrint |
10524 | 361 |
|
362 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
363 |
"Created: / 07-08-2011 / 12:52:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
364 |
! |
|
365 |
||
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
366 |
codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
367 |
codeView2QuickSendersAndImplementorsOnControl isNil ifTrue:[ |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
368 |
codeView2QuickSendersAndImplementorsOnControl := ValueHolder new. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
369 |
codeView2QuickSendersAndImplementorsOnControl onChangeSend:#updateModifiedChannel to:self |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
370 |
]. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
371 |
^ codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
372 |
|
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
373 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
374 |
! |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
375 |
|
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
376 |
codeView2ShowAcceptCancel |
16566 | 377 |
"this is a little confusing: the codeview2 has its own accept/cancel bar |
378 |
(why reinvent the wheel?). |
|
379 |
So if this is enabled, the outer accept/cancel bar will be suppressed, |
|
380 |
if this is on" |
|
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
381 |
|
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
382 |
codeView2ShowAcceptCancel isNil ifTrue:[ |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
383 |
codeView2ShowAcceptCancel := ValueHolder new. |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
384 |
codeView2ShowAcceptCancel onChangeSend:#updateModifiedChannel to:self |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
385 |
]. |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
386 |
^ codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
387 |
|
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
388 |
"Modified: / 10-10-2011 / 16:43:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
389 |
! |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
390 |
|
13807 | 391 |
showAcceptCancelBarInBrowser |
16566 | 392 |
"this is a little confusing: the codeview2 has its own accept/cancel bar |
393 |
(why reinvent the wheel?). |
|
394 |
So if this is enabled, the outer accept/cancel bar will be suppressed, |
|
395 |
if this is on" |
|
396 |
||
13807 | 397 |
showAcceptCancelBarInBrowser isNil ifTrue:[ |
398 |
showAcceptCancelBarInBrowser := false asValue. |
|
399 |
showAcceptCancelBarInBrowser onChangeSend:#updateModifiedChannel to:self |
|
400 |
]. |
|
401 |
^ showAcceptCancelBarInBrowser. |
|
402 |
||
403 |
"Created: / 06-12-2013 / 17:39:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
404 |
! |
|
405 |
||
10398 | 406 |
useCodeView2InBrowser |
407 |
||
408 |
useCodeView2InBrowser isNil ifTrue:[ |
|
409 |
useCodeView2InBrowser := ValueHolder new. |
|
410 |
useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self |
|
411 |
]. |
|
412 |
^ useCodeView2InBrowser |
|
413 |
||
414 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
415 |
"Created: / 26-07-2011 / 10:30:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
416 |
! |
|
417 |
||
418 |
useCodeView2InDebugger |
|
419 |
||
420 |
useCodeView2InDebugger isNil ifTrue:[ |
|
421 |
useCodeView2InDebugger := ValueHolder new. |
|
422 |
useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self |
|
423 |
]. |
|
424 |
^ useCodeView2InDebugger |
|
425 |
||
426 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
427 |
"Created: / 26-07-2011 / 10:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
428 |
! |
|
429 |
||
10337 | 430 |
useCodeView2InTools |
431 |
||
432 |
useCodeView2InTools isNil ifTrue:[ |
|
433 |
useCodeView2InTools := ValueHolder new. |
|
434 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self |
|
435 |
]. |
|
436 |
^ useCodeView2InTools |
|
437 |
||
438 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10398 | 439 |
! |
440 |
||
441 |
useCodeView2InWorkspace |
|
442 |
||
443 |
useCodeView2InWorkspace isNil ifTrue:[ |
|
444 |
useCodeView2InWorkspace := ValueHolder new. |
|
445 |
useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self |
|
446 |
]. |
|
447 |
^ useCodeView2InWorkspace |
|
448 |
||
449 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
450 |
"Created: / 26-07-2011 / 10:31:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
451 |
! ! |
|
452 |
||
453 |
!CodeView2SettingsAppl methodsFor:'aspects-enablement'! |
|
454 |
||
455 |
useCodeView2InToolEnabled |
|
456 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
457 |
||
458 |
useCodeView2InToolEnabled isNil ifTrue:[ |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
459 |
useCodeView2InToolEnabled := UserPreferences current useCodeView2InTools asValue. |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
460 |
"/ (AspectAdaptor forAspect: #not) |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
461 |
"/ subjectChannel: self useCodeView2InTools |
10398 | 462 |
]. |
463 |
^ useCodeView2InToolEnabled |
|
464 |
||
465 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
466 |
"Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 467 |
"Modified (format): / 25-11-2011 / 15:11:55 / cg" |
10337 | 468 |
! ! |
469 |
||
470 |
!CodeView2SettingsAppl methodsFor:'protocol'! |
|
471 |
||
472 |
basicAspects |
|
10398 | 473 |
^#( |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
474 |
"/#useCodeView2InTools |
10398 | 475 |
#useCodeView2InBrowser |
476 |
#useCodeView2InDebugger |
|
477 |
#useCodeView2InWorkspace |
|
10524 | 478 |
"/Editing support |
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
479 |
#codeView2AutoPrettyPrint |
13807 | 480 |
#showAcceptCancelBarInBrowser |
481 |
#codeView2ShowAcceptCancel |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
482 |
#codeView2QuickSendersAndImplementorsOnControl |
10398 | 483 |
) |
484 |
||
13807 | 485 |
"Modified: / 06-12-2013 / 17:39:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 486 |
! |
487 |
||
488 |
basicReadSettings |
|
489 |
self readAspects:self basicAspects from:currentUserPrefs. |
|
490 |
||
491 |
"Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
492 |
! |
|
493 |
||
494 |
basicSaveSettings |
|
495 |
||
496 |
self writeAspects:self basicAspects to:currentUserPrefs. |
|
497 |
||
10398 | 498 |
"Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 499 |
! |
500 |
||
501 |
helpFilename |
|
502 |
"subclasses must return the relative name of a helpFile |
|
503 |
in the doc/online/<language>/help directory. |
|
504 |
Or nil, if no help is available." |
|
505 |
||
506 |
^ nil"for now" |
|
507 |
||
508 |
"Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
509 |
! ! |
|
510 |
||
511 |
!CodeView2SettingsAppl methodsFor:'queries'! |
|
512 |
||
513 |
hasUnsavedChanges |
|
10902 | 514 |
^ self |
10337 | 515 |
hasChangedAspectIn: self basicAspects |
10902 | 516 |
asComparedTo:currentUserPrefs |
10337 | 517 |
|
518 |
"Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 519 |
"Modified (format): / 25-11-2011 / 15:25:16 / cg" |
10337 | 520 |
! ! |
521 |
||
522 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
|
523 |
||
524 |
version |
|
16314 | 525 |
^ '$Header$' |
10337 | 526 |
! |
527 |
||
528 |
version_CVS |
|
16314 | 529 |
^ '$Header$' |
10398 | 530 |
! |
531 |
||
532 |
version_SVN |
|
16314 | 533 |
^ '$Id$' |
10337 | 534 |
! ! |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
535 |