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