author | Claus Gittinger <cg@exept.de> |
Wed, 05 Feb 2014 19:56:19 +0100 | |
changeset 13807 | 74118f93a30b |
parent 13417 | c69a48a87756 |
child 14235 | 77dd9199be5b |
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 |
|
108 |
"This resource specification was automatically generated |
|
109 |
by the ImageEditor of ST/X." |
|
110 |
||
111 |
"Do not manually edit this!! If it is corrupted, |
|
112 |
the ImageEditor may not be able to read the specification." |
|
113 |
||
114 |
" |
|
115 |
self defaultIcon inspect |
|
116 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
117 |
Icon flushCachedIcons |
|
118 |
" |
|
119 |
||
120 |
<resource: #image> |
|
121 |
||
122 |
^Icon |
|
123 |
constantNamed:'Tools::CodeView2SettingsAppl class defaultIcon' |
|
124 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
125 |
*****************+.************(.8"H"H"H"J(@**";UUU%UUUU@@^+.;.;-VUUUU@@]:.;.;.5YUUUT@A7**";Y&Y&Y&X@]7^**K-UUVUU@@]7\Z*( |
|
126 |
.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 |
|
127 |
RRY(UUUD***("*)J*****$R***"J)J******QJ***HUUUZUUUUUD***TQDQDQDQDQDR***************(b') ; 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]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@C@@@G??LG??<_??<_??<G??<G??<G??<G??<G??8G??0G??0G??0G??0G??0G??0G??0G??0G??0O??0@@@@') ; yourself); yourself] |
|
128 |
! ! |
|
129 |
||
10337 | 130 |
!CodeView2SettingsAppl class methodsFor:'interface specs'! |
131 |
||
132 |
windowSpec |
|
133 |
"This resource specification was automatically generated |
|
134 |
by the UIPainter of ST/X." |
|
135 |
||
136 |
"Do not manually edit this!! If it is corrupted, |
|
137 |
the UIPainter may not be able to read the specification." |
|
138 |
||
139 |
" |
|
140 |
UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec |
|
141 |
Tools::CodeView2SettingsAppl new openInterface:#windowSpec |
|
142 |
Tools::CodeView2SettingsAppl open |
|
143 |
" |
|
144 |
||
145 |
<resource: #canvas> |
|
146 |
||
147 |
^ |
|
13807 | 148 |
#(FullSpec |
149 |
name: windowSpec |
|
150 |
window: |
|
151 |
(WindowSpec |
|
152 |
label: 'Code Editor Settings' |
|
153 |
name: 'Code Editor Settings' |
|
154 |
min: (Point 10 10) |
|
155 |
bounds: (Rectangle 0 0 585 333) |
|
156 |
) |
|
157 |
component: |
|
158 |
(SpecCollection |
|
159 |
collection: ( |
|
160 |
(VerticalPanelViewSpec |
|
161 |
name: 'VBox' |
|
162 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
163 |
horizontalLayout: fit |
|
164 |
verticalLayout: top |
|
165 |
horizontalSpace: 3 |
|
166 |
verticalSpace: 3 |
|
167 |
component: |
|
168 |
(SpecCollection |
|
169 |
collection: ( |
|
170 |
(FramedBoxSpec |
|
171 |
label: 'Individual Tool Support' |
|
172 |
name: 'ToolSupport' |
|
173 |
visibilityChannel: false |
|
174 |
labelPosition: topLeft |
|
175 |
translateLabel: true |
|
176 |
component: |
|
177 |
(SpecCollection |
|
178 |
collection: ( |
|
179 |
(VerticalPanelViewSpec |
|
180 |
name: 'ToolSupportCheckBox' |
|
181 |
layout: (LayoutFrame 0 0 0 0 0 1 81 0) |
|
182 |
horizontalLayout: fit |
|
183 |
verticalLayout: top |
|
184 |
horizontalSpace: 3 |
|
185 |
verticalSpace: 3 |
|
186 |
component: |
|
187 |
(SpecCollection |
|
188 |
collection: ( |
|
189 |
(CheckBoxSpec |
|
190 |
label: 'Use Advanced Code Editor in Class Browser' |
|
191 |
name: 'CheckBox2' |
|
192 |
activeHelpKey: useCodeView2InBrowser |
|
193 |
enableChannel: useCodeView2InToolEnabled |
|
194 |
model: useCodeView2InBrowser |
|
195 |
translateLabel: true |
|
196 |
extent: (Point 549 25) |
|
10902 | 197 |
) |
13807 | 198 |
(CheckBoxSpec |
199 |
label: 'Use Advanced Code Editor in Debugger (experimental)' |
|
200 |
name: 'CheckBox3' |
|
201 |
activeHelpKey: useCodeView2InDebugger |
|
202 |
enableChannel: useCodeView2InToolEnabled |
|
203 |
model: useCodeView2InDebugger |
|
204 |
translateLabel: true |
|
205 |
extent: (Point 549 25) |
|
206 |
) |
|
207 |
(CheckBoxSpec |
|
208 |
label: 'Use Advanced Code Editor in Workspace' |
|
209 |
name: 'CheckBox4' |
|
210 |
activeHelpKey: useCodeView2InWorkspace |
|
211 |
enableChannel: useCodeView2InToolEnabled |
|
212 |
model: useCodeView2InWorkspace |
|
213 |
translateLabel: true |
|
214 |
extent: (Point 549 25) |
|
215 |
) |
|
216 |
) |
|
217 |
||
218 |
) |
|
219 |
usePreferredHeight: true |
|
220 |
useDynamicPreferredHeight: true |
|
10902 | 221 |
) |
13807 | 222 |
) |
223 |
||
224 |
) |
|
225 |
extent: (Point 585 117) |
|
226 |
) |
|
227 |
(FramedBoxSpec |
|
228 |
label: 'Edit Support' |
|
229 |
name: 'EditSupport' |
|
230 |
labelPosition: topLeft |
|
231 |
translateLabel: true |
|
232 |
component: |
|
233 |
(SpecCollection |
|
234 |
collection: ( |
|
235 |
(VerticalPanelViewSpec |
|
236 |
name: 'VerticalPanel1' |
|
237 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
238 |
horizontalLayout: fit |
|
239 |
verticalLayout: top |
|
240 |
horizontalSpace: 3 |
|
241 |
verticalSpace: 3 |
|
242 |
component: |
|
243 |
(SpecCollection |
|
244 |
collection: ( |
|
245 |
(CheckBoxSpec |
|
246 |
label: 'Show Accept/Cancel Bar in Editor' |
|
247 |
name: 'ShowAcceptCancelBarInBrowser' |
|
248 |
activeHelpKey: showAcceptCancelBar |
|
249 |
model: showAcceptCancelBarInBrowser |
|
250 |
extent: (Point 549 25) |
|
10524 | 251 |
) |
13807 | 252 |
(ViewSpec |
253 |
name: 'Box1' |
|
254 |
component: |
|
255 |
(SpecCollection |
|
256 |
collection: ( |
|
257 |
(CheckBoxSpec |
|
258 |
label: 'Use Internal Accept/Cancel Bar Shown in Editor''s Gutter' |
|
259 |
name: 'CheckBox6' |
|
260 |
layout: (LayoutFrame 25 0 0 0 0 1 0 1) |
|
261 |
activeHelpKey: showAcceptCancelBarInGutter |
|
262 |
enableChannel: showAcceptCancelBarInBrowser |
|
263 |
model: codeView2ShowAcceptCancel |
|
264 |
translateLabel: true |
|
265 |
) |
|
266 |
) |
|
267 |
||
268 |
) |
|
269 |
extent: (Point 549 25) |
|
270 |
) |
|
271 |
(CheckBoxSpec |
|
272 |
label: 'Auto Pretty Print (experimental, not yet recommended)' |
|
273 |
name: 'CheckBox5' |
|
274 |
activeHelpKey: codeView2AutoPrettyPrint |
|
275 |
visibilityChannel: false |
|
276 |
enableChannel: false |
|
277 |
model: codeView2AutoPrettyPrint |
|
278 |
translateLabel: true |
|
279 |
extent: (Point 549 25) |
|
280 |
) |
|
281 |
) |
|
282 |
||
283 |
) |
|
10524 | 284 |
) |
13807 | 285 |
) |
286 |
||
287 |
) |
|
288 |
extent: (Point 585 115) |
|
289 |
) |
|
290 |
(FramedBoxSpec |
|
291 |
label: 'Keyboard Shortcuts' |
|
292 |
name: 'FramedBox1' |
|
293 |
labelPosition: topLeft |
|
294 |
translateLabel: true |
|
295 |
component: |
|
296 |
(SpecCollection |
|
297 |
collection: ( |
|
298 |
(VerticalPanelViewSpec |
|
299 |
name: 'VerticalPanel2' |
|
300 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
301 |
horizontalLayout: fit |
|
302 |
verticalLayout: top |
|
303 |
horizontalSpace: 3 |
|
304 |
verticalSpace: 3 |
|
305 |
component: |
|
306 |
(SpecCollection |
|
307 |
collection: ( |
|
308 |
(CheckBoxSpec |
|
309 |
label: 'Quick Senders/Implementors Menu with CTRL key (as opposed to ALT key)' |
|
310 |
name: 'CheckBox7' |
|
311 |
activeHelpKey: codeView2QuickSendersAndImplementorsOnControl |
|
312 |
model: codeView2QuickSendersAndImplementorsOnControl |
|
313 |
translateLabel: true |
|
314 |
extent: (Point 549 25) |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
315 |
) |
13807 | 316 |
) |
317 |
||
318 |
) |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
319 |
) |
13807 | 320 |
) |
321 |
||
322 |
) |
|
323 |
extent: (Point 585 65) |
|
10337 | 324 |
) |
13807 | 325 |
) |
326 |
||
327 |
) |
|
10337 | 328 |
) |
13807 | 329 |
) |
330 |
||
331 |
) |
|
332 |
) |
|
333 |
||
334 |
"Modified (format): / 06-12-2013 / 17:43:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10337 | 335 |
! ! |
336 |
||
337 |
!CodeView2SettingsAppl methodsFor:'aspects'! |
|
338 |
||
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
339 |
acceptCancelInGutterEnabledHolder |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
340 |
^ [UserPreferences current showAcceptCancelBar not] |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
341 |
! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
342 |
|
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
343 |
codeView2AutoPrettyPrint |
10524 | 344 |
|
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
345 |
codeView2AutoPrettyPrint isNil ifTrue:[ |
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
346 |
codeView2AutoPrettyPrint := ValueHolder new. |
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
347 |
codeView2AutoPrettyPrint onChangeSend:#updateModifiedChannel to:self |
10524 | 348 |
]. |
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
349 |
^ codeView2AutoPrettyPrint |
10524 | 350 |
|
351 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
352 |
"Created: / 07-08-2011 / 12:52:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
353 |
! |
|
354 |
||
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
355 |
codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
356 |
codeView2QuickSendersAndImplementorsOnControl isNil ifTrue:[ |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
357 |
codeView2QuickSendersAndImplementorsOnControl := ValueHolder new. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
358 |
codeView2QuickSendersAndImplementorsOnControl onChangeSend:#updateModifiedChannel to:self |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
359 |
]. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
360 |
^ codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
361 |
|
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
362 |
"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
|
363 |
! |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
364 |
|
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
365 |
codeView2ShowAcceptCancel |
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 isNil ifTrue:[ |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
368 |
codeView2ShowAcceptCancel := ValueHolder new. |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
369 |
codeView2ShowAcceptCancel onChangeSend:#updateModifiedChannel to:self |
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 |
^ codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
372 |
|
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
373 |
"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
|
374 |
! |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
375 |
|
13807 | 376 |
showAcceptCancelBarInBrowser |
377 |
showAcceptCancelBarInBrowser isNil ifTrue:[ |
|
378 |
showAcceptCancelBarInBrowser := false asValue. |
|
379 |
showAcceptCancelBarInBrowser onChangeSend:#updateModifiedChannel to:self |
|
380 |
]. |
|
381 |
^ showAcceptCancelBarInBrowser. |
|
382 |
||
383 |
"Created: / 06-12-2013 / 17:39:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
384 |
! |
|
385 |
||
10398 | 386 |
useCodeView2InBrowser |
387 |
||
388 |
useCodeView2InBrowser isNil ifTrue:[ |
|
389 |
useCodeView2InBrowser := ValueHolder new. |
|
390 |
useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self |
|
391 |
]. |
|
392 |
^ useCodeView2InBrowser |
|
393 |
||
394 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
395 |
"Created: / 26-07-2011 / 10:30:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
396 |
! |
|
397 |
||
398 |
useCodeView2InDebugger |
|
399 |
||
400 |
useCodeView2InDebugger isNil ifTrue:[ |
|
401 |
useCodeView2InDebugger := ValueHolder new. |
|
402 |
useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self |
|
403 |
]. |
|
404 |
^ useCodeView2InDebugger |
|
405 |
||
406 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
407 |
"Created: / 26-07-2011 / 10:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
408 |
! |
|
409 |
||
10337 | 410 |
useCodeView2InTools |
411 |
||
412 |
useCodeView2InTools isNil ifTrue:[ |
|
413 |
useCodeView2InTools := ValueHolder new. |
|
414 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self |
|
415 |
]. |
|
416 |
^ useCodeView2InTools |
|
417 |
||
418 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10398 | 419 |
! |
420 |
||
421 |
useCodeView2InWorkspace |
|
422 |
||
423 |
useCodeView2InWorkspace isNil ifTrue:[ |
|
424 |
useCodeView2InWorkspace := ValueHolder new. |
|
425 |
useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self |
|
426 |
]. |
|
427 |
^ useCodeView2InWorkspace |
|
428 |
||
429 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
430 |
"Created: / 26-07-2011 / 10:31:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
431 |
! ! |
|
432 |
||
433 |
!CodeView2SettingsAppl methodsFor:'aspects-enablement'! |
|
434 |
||
435 |
useCodeView2InToolEnabled |
|
436 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
437 |
||
438 |
useCodeView2InToolEnabled isNil ifTrue:[ |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
439 |
useCodeView2InToolEnabled := UserPreferences current useCodeView2InTools asValue. |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
440 |
"/ (AspectAdaptor forAspect: #not) |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
441 |
"/ subjectChannel: self useCodeView2InTools |
10398 | 442 |
]. |
443 |
^ useCodeView2InToolEnabled |
|
444 |
||
445 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
446 |
"Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 447 |
"Modified (format): / 25-11-2011 / 15:11:55 / cg" |
10337 | 448 |
! ! |
449 |
||
450 |
!CodeView2SettingsAppl methodsFor:'protocol'! |
|
451 |
||
452 |
basicAspects |
|
10398 | 453 |
^#( |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
454 |
"/#useCodeView2InTools |
10398 | 455 |
#useCodeView2InBrowser |
456 |
#useCodeView2InDebugger |
|
457 |
#useCodeView2InWorkspace |
|
10524 | 458 |
"/Editing support |
12786
10f14c5dbec0
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
12417
diff
changeset
|
459 |
#codeView2AutoPrettyPrint |
13807 | 460 |
#showAcceptCancelBarInBrowser |
461 |
#codeView2ShowAcceptCancel |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
462 |
#codeView2QuickSendersAndImplementorsOnControl |
10398 | 463 |
) |
464 |
||
13807 | 465 |
"Modified: / 06-12-2013 / 17:39:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 466 |
! |
467 |
||
468 |
basicReadSettings |
|
469 |
self readAspects:self basicAspects from:currentUserPrefs. |
|
470 |
||
471 |
"Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
472 |
! |
|
473 |
||
474 |
basicSaveSettings |
|
475 |
||
476 |
self writeAspects:self basicAspects to:currentUserPrefs. |
|
477 |
||
10398 | 478 |
"Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 479 |
! |
480 |
||
481 |
helpFilename |
|
482 |
"subclasses must return the relative name of a helpFile |
|
483 |
in the doc/online/<language>/help directory. |
|
484 |
Or nil, if no help is available." |
|
485 |
||
486 |
^ nil"for now" |
|
487 |
||
488 |
"Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
489 |
! ! |
|
490 |
||
491 |
!CodeView2SettingsAppl methodsFor:'queries'! |
|
492 |
||
493 |
hasUnsavedChanges |
|
10902 | 494 |
^ self |
10337 | 495 |
hasChangedAspectIn: self basicAspects |
10902 | 496 |
asComparedTo:currentUserPrefs |
10337 | 497 |
|
498 |
"Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 499 |
"Modified (format): / 25-11-2011 / 15:25:16 / cg" |
10337 | 500 |
! ! |
501 |
||
502 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
|
503 |
||
504 |
version |
|
13807 | 505 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.11 2014-02-05 18:56:19 cg Exp $' |
10337 | 506 |
! |
507 |
||
508 |
version_CVS |
|
13807 | 509 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.11 2014-02-05 18:56:19 cg Exp $' |
10398 | 510 |
! |
511 |
||
512 |
version_SVN |
|
13807 | 513 |
^ '$Id: Tools__CodeView2SettingsAppl.st,v 1.11 2014-02-05 18:56:19 cg Exp $' |
10337 | 514 |
! ! |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
515 |