author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 30 Jan 2013 11:15:09 +0000 | |
branch | jv |
changeset 12401 | 4714b9640528 |
parent 12308 | 5d9291c0fc27 |
parent 11984 | c1a35991c494 |
child 12406 | 1fbd331e4489 |
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 |
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
19 |
codeView2AutoIndent codeView2ShowAcceptCancel' |
10337 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
22 |
category:'Interface-CodeView' |
|
23 |
! |
|
24 |
||
10398 | 25 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! ! |
|
10337 | 40 |
|
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
41 |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
42 |
!CodeView2SettingsAppl class methodsFor:'help specs'! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
43 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
44 |
flyByHelpSpec |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
45 |
"This resource specification was automatically generated |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
46 |
by the UIHelpTool of ST/X." |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
47 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
48 |
"Do not manually edit this!! If it is corrupted, |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
49 |
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
|
50 |
|
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 |
UIHelpTool openOnClass:Tools::CodeView2SettingsAppl |
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 |
<resource: #help> |
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 |
^ super flyByHelpSpec addPairsFrom:#( |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
58 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
59 |
#showAcceptCancelBarInGutter |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
60 |
'Show the Gutterview''s own Accept/Cancel Bar (disabled if outer Accept/Cancel Bar is enabled)' |
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 |
#useCodeView2InBrowser |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
63 |
'Use the new Editor in SystemBrowsers (disabled if the global use of Code Editor 2 is disabled in the tools settings)' |
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 |
#useCodeView2InWorkspace |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
66 |
'Use the new Editor in Workspaces (disabled if the global use of Code Editor 2 is disabled in the tools settings)' |
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 |
#useCodeView2InDebugger |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
69 |
'Use the new Editor in the Debugger (disabled if the global use of Code Editor 2 is disabled in the tools settings)' |
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 |
|
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
72 |
) |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
73 |
! ! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
74 |
|
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
75 |
|
10902 | 76 |
!CodeView2SettingsAppl class methodsFor:'image specs'! |
77 |
||
78 |
defaultIcon |
|
79 |
"This resource specification was automatically generated |
|
80 |
by the ImageEditor of ST/X." |
|
81 |
||
82 |
"Do not manually edit this!! If it is corrupted, |
|
83 |
the ImageEditor may not be able to read the specification." |
|
84 |
||
85 |
" |
|
86 |
self defaultIcon inspect |
|
87 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
88 |
Icon flushCachedIcons |
|
89 |
" |
|
90 |
||
91 |
<resource: #image> |
|
92 |
||
93 |
^Icon |
|
94 |
constantNamed:'Tools::CodeView2SettingsAppl class defaultIcon' |
|
95 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
96 |
*****************+.************(.8"H"H"H"J(@**";UUU%UUUU@@^+.;.;-VUUUU@@]:.;.;.5YUUUT@A7**";Y&Y&Y&X@]7^**K-UUVUU@@]7\Z*( |
|
97 |
.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 |
|
98 |
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] |
|
99 |
! ! |
|
100 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
101 |
|
10337 | 102 |
!CodeView2SettingsAppl class methodsFor:'interface specs'! |
103 |
||
104 |
windowSpec |
|
105 |
"This resource specification was automatically generated |
|
106 |
by the UIPainter of ST/X." |
|
107 |
||
108 |
"Do not manually edit this!! If it is corrupted, |
|
109 |
the UIPainter may not be able to read the specification." |
|
110 |
||
111 |
" |
|
112 |
UIPainter new openOnClass:Tools::CodeView2SettingsAppl andSelector:#windowSpec |
|
113 |
Tools::CodeView2SettingsAppl new openInterface:#windowSpec |
|
114 |
Tools::CodeView2SettingsAppl open |
|
115 |
" |
|
116 |
||
117 |
<resource: #canvas> |
|
118 |
||
119 |
^ |
|
120 |
#(FullSpec |
|
121 |
name: windowSpec |
|
122 |
window: |
|
123 |
(WindowSpec |
|
124 |
label: 'Code Editor Settings' |
|
125 |
name: 'Code Editor Settings' |
|
126 |
min: (Point 10 10) |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
127 |
bounds: (Rectangle 0 0 585 289) |
10337 | 128 |
) |
129 |
component: |
|
130 |
(SpecCollection |
|
131 |
collection: ( |
|
132 |
(VerticalPanelViewSpec |
|
133 |
name: 'VBox' |
|
134 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
135 |
horizontalLayout: fit |
|
136 |
verticalLayout: top |
|
137 |
horizontalSpace: 3 |
|
138 |
verticalSpace: 3 |
|
139 |
component: |
|
140 |
(SpecCollection |
|
141 |
collection: ( |
|
142 |
(FramedBoxSpec |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
143 |
label: 'Individual Tool Support' |
10902 | 144 |
name: 'ToolSupport' |
145 |
labelPosition: topLeft |
|
146 |
translateLabel: true |
|
147 |
component: |
|
148 |
(SpecCollection |
|
149 |
collection: ( |
|
150 |
(VerticalPanelViewSpec |
|
151 |
name: 'ToolSupportCheckBox' |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
152 |
layout: (LayoutFrame 0 0 0 0 0 1 81 0) |
10902 | 153 |
horizontalLayout: fit |
154 |
verticalLayout: top |
|
155 |
horizontalSpace: 3 |
|
156 |
verticalSpace: 3 |
|
157 |
component: |
|
158 |
(SpecCollection |
|
159 |
collection: ( |
|
160 |
(CheckBoxSpec |
|
161 |
label: 'Use Advanced Code Editor in Class Browser' |
|
162 |
name: 'CheckBox2' |
|
163 |
enableChannel: useCodeView2InToolEnabled |
|
164 |
model: useCodeView2InBrowser |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
165 |
activeHelpKey: useCodeView2InBrowser |
10902 | 166 |
translateLabel: true |
167 |
extent: (Point 551 25) |
|
168 |
) |
|
169 |
(CheckBoxSpec |
|
170 |
label: 'Use Advanced Code Editor in Debugger (experimental)' |
|
171 |
name: 'CheckBox3' |
|
172 |
enableChannel: useCodeView2InToolEnabled |
|
173 |
model: useCodeView2InDebugger |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
174 |
activeHelpKey: useCodeView2InDebugger |
10902 | 175 |
translateLabel: true |
176 |
extent: (Point 551 25) |
|
177 |
) |
|
178 |
(CheckBoxSpec |
|
179 |
label: 'Use Advanced Code Editor in Workspace' |
|
180 |
name: 'CheckBox4' |
|
181 |
enableChannel: useCodeView2InToolEnabled |
|
182 |
model: useCodeView2InWorkspace |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
183 |
activeHelpKey: useCodeView2InWorkspace |
10902 | 184 |
translateLabel: true |
185 |
extent: (Point 551 25) |
|
186 |
) |
|
187 |
) |
|
188 |
||
189 |
) |
|
190 |
useDynamicPreferredHeight: true |
|
191 |
usePreferredHeight: true |
|
192 |
) |
|
193 |
) |
|
194 |
||
195 |
) |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
196 |
extent: (Point 585 109) |
10902 | 197 |
) |
198 |
(FramedBoxSpec |
|
10524 | 199 |
label: 'Edit Support' |
200 |
name: 'EditSupport' |
|
201 |
labelPosition: topLeft |
|
202 |
translateLabel: true |
|
203 |
component: |
|
204 |
(SpecCollection |
|
205 |
collection: ( |
|
206 |
(VerticalPanelViewSpec |
|
207 |
name: 'VerticalPanel1' |
|
208 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
209 |
horizontalLayout: fit |
|
210 |
verticalLayout: top |
|
211 |
horizontalSpace: 3 |
|
212 |
verticalSpace: 3 |
|
213 |
component: |
|
214 |
(SpecCollection |
|
215 |
collection: ( |
|
216 |
(CheckBoxSpec |
|
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
217 |
label: 'Show Accept/Cancel Buttons in Gutter' |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
218 |
name: 'CheckBox6' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
219 |
activeHelpKey: showAcceptCancelBarInGutter |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
220 |
enableChannel: acceptCancelInGutterEnabledHolder |
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
221 |
model: codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
222 |
translateLabel: true |
10902 | 223 |
extent: (Point 551 25) |
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
224 |
) |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
225 |
(CheckBoxSpec |
10902 | 226 |
label: 'Auto Indent (experimental, not yet recommended)' |
10524 | 227 |
name: 'CheckBox5' |
228 |
model: codeView2AutoIndent |
|
229 |
translateLabel: true |
|
10902 | 230 |
extent: (Point 551 25) |
10524 | 231 |
) |
232 |
) |
|
233 |
||
234 |
) |
|
235 |
) |
|
236 |
) |
|
237 |
||
238 |
) |
|
10902 | 239 |
extent: (Point 585 77) |
10337 | 240 |
) |
241 |
) |
|
242 |
||
243 |
) |
|
244 |
) |
|
245 |
) |
|
246 |
||
247 |
) |
|
248 |
) |
|
249 |
! ! |
|
250 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
251 |
|
10337 | 252 |
!CodeView2SettingsAppl methodsFor:'aspects'! |
253 |
||
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
254 |
acceptCancelInGutterEnabledHolder |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
255 |
^ [UserPreferences current showAcceptCancelBar not] |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
256 |
! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
257 |
|
10524 | 258 |
codeView2AutoIndent |
259 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
260 |
||
261 |
codeView2AutoIndent isNil ifTrue:[ |
|
262 |
codeView2AutoIndent := ValueHolder new. |
|
263 |
codeView2AutoIndent onChangeSend:#updateModifiedChannel to:self |
|
264 |
||
265 |
]. |
|
266 |
^ codeView2AutoIndent |
|
267 |
||
268 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
269 |
"Created: / 07-08-2011 / 12:52:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
270 |
! |
|
271 |
||
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
272 |
codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
273 |
"return/create the 'codeView2ShowAcceptCancel' value holder (automatically generated)" |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
274 |
|
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
275 |
codeView2ShowAcceptCancel isNil ifTrue:[ |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
276 |
codeView2ShowAcceptCancel := ValueHolder new. |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
277 |
codeView2ShowAcceptCancel onChangeSend:#updateModifiedChannel to:self |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
278 |
]. |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
279 |
^ codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
280 |
|
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
281 |
"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
|
282 |
! |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
283 |
|
10398 | 284 |
useCodeView2InBrowser |
285 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
286 |
||
287 |
useCodeView2InBrowser isNil ifTrue:[ |
|
288 |
useCodeView2InBrowser := ValueHolder new. |
|
289 |
useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self |
|
290 |
||
291 |
]. |
|
292 |
^ useCodeView2InBrowser |
|
293 |
||
294 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
295 |
"Created: / 26-07-2011 / 10:30:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
296 |
! |
|
297 |
||
298 |
useCodeView2InDebugger |
|
299 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
300 |
||
301 |
useCodeView2InDebugger isNil ifTrue:[ |
|
302 |
useCodeView2InDebugger := ValueHolder new. |
|
303 |
useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self |
|
304 |
||
305 |
]. |
|
306 |
^ useCodeView2InDebugger |
|
307 |
||
308 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
309 |
"Created: / 26-07-2011 / 10:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
310 |
! |
|
311 |
||
10337 | 312 |
useCodeView2InTools |
313 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
314 |
||
315 |
useCodeView2InTools isNil ifTrue:[ |
|
316 |
useCodeView2InTools := ValueHolder new. |
|
317 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self |
|
318 |
||
319 |
]. |
|
320 |
^ useCodeView2InTools |
|
321 |
||
322 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10398 | 323 |
! |
324 |
||
325 |
useCodeView2InWorkspace |
|
326 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
327 |
||
328 |
useCodeView2InWorkspace isNil ifTrue:[ |
|
329 |
useCodeView2InWorkspace := ValueHolder new. |
|
330 |
useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self |
|
331 |
||
332 |
]. |
|
333 |
^ useCodeView2InWorkspace |
|
334 |
||
335 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
336 |
"Created: / 26-07-2011 / 10:31:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
337 |
! ! |
|
338 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
339 |
|
10398 | 340 |
!CodeView2SettingsAppl methodsFor:'aspects-enablement'! |
341 |
||
342 |
useCodeView2InToolEnabled |
|
343 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
344 |
||
345 |
useCodeView2InToolEnabled isNil ifTrue:[ |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
346 |
useCodeView2InToolEnabled := UserPreferences current useCodeView2InTools asValue. |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
347 |
"/ (AspectAdaptor forAspect: #not) |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
348 |
"/ subjectChannel: self useCodeView2InTools |
10398 | 349 |
]. |
350 |
^ useCodeView2InToolEnabled |
|
351 |
||
352 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
353 |
"Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 354 |
"Modified (format): / 25-11-2011 / 15:11:55 / cg" |
10337 | 355 |
! ! |
356 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
357 |
|
10337 | 358 |
!CodeView2SettingsAppl methodsFor:'protocol'! |
359 |
||
360 |
basicAspects |
|
10398 | 361 |
^#( |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
362 |
"/#useCodeView2InTools |
10398 | 363 |
#useCodeView2InBrowser |
364 |
#useCodeView2InDebugger |
|
365 |
#useCodeView2InWorkspace |
|
10524 | 366 |
"/Editing support |
367 |
#codeView2AutoIndent |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
368 |
"/ #codeView2ShowAcceptCancel |
10398 | 369 |
) |
370 |
||
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
371 |
"Modified: / 10-10-2011 / 16:43:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 372 |
! |
373 |
||
374 |
basicReadSettings |
|
375 |
self readAspects:self basicAspects from:currentUserPrefs. |
|
376 |
||
377 |
"Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
378 |
! |
|
379 |
||
380 |
basicSaveSettings |
|
381 |
||
382 |
self writeAspects:self basicAspects to:currentUserPrefs. |
|
383 |
||
10398 | 384 |
"Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 385 |
! |
386 |
||
387 |
helpFilename |
|
388 |
"subclasses must return the relative name of a helpFile |
|
389 |
in the doc/online/<language>/help directory. |
|
390 |
Or nil, if no help is available." |
|
391 |
||
392 |
^ nil"for now" |
|
393 |
||
394 |
"Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
395 |
! ! |
|
396 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
397 |
|
10337 | 398 |
!CodeView2SettingsAppl methodsFor:'queries'! |
399 |
||
400 |
hasUnsavedChanges |
|
10902 | 401 |
^ self |
10337 | 402 |
hasChangedAspectIn: self basicAspects |
10902 | 403 |
asComparedTo:currentUserPrefs |
10337 | 404 |
|
405 |
"Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 406 |
"Modified (format): / 25-11-2011 / 15:25:16 / cg" |
10337 | 407 |
! ! |
408 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
409 |
|
10337 | 410 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
411 |
||
412 |
version |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
413 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.6 2012-11-01 13:55:42 cg Exp $' |
10337 | 414 |
! |
415 |
||
416 |
version_CVS |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
417 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.6 2012-11-01 13:55:42 cg Exp $' |
10398 | 418 |
! |
419 |
||
420 |
version_SVN |
|
421 |
^ '§Id§' |
|
10337 | 422 |
! ! |
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
423 |