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