author | Claus Gittinger <cg@exept.de> |
Fri, 01 Feb 2013 15:49:02 +0100 | |
changeset 12360 | 0a236a23ceb5 |
parent 11984 | c1a35991c494 |
child 12405 | 76f9a872362b |
child 12417 | fa128a6a49d7 |
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 |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
19 |
codeView2AutoIndent codeView2ShowAcceptCancel |
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 |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
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.' |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
73 |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
74 |
#codeView2AutoIndent |
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 |
|
174 |
extent: (Point 551 25) |
|
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 |
|
183 |
extent: (Point 551 25) |
|
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 |
|
192 |
extent: (Point 551 25) |
|
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 |
) |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
203 |
extent: (Point 585 109) |
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 |
10902 | 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 |
10902 | 233 |
label: 'Auto Indent (experimental, not yet recommended)' |
10524 | 234 |
name: 'CheckBox5' |
235 |
model: codeView2AutoIndent |
|
236 |
translateLabel: true |
|
10902 | 237 |
extent: (Point 551 25) |
10524 | 238 |
) |
239 |
) |
|
240 |
||
241 |
) |
|
242 |
) |
|
243 |
) |
|
244 |
||
245 |
) |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
246 |
extent: (Point 585 82) |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
247 |
) |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
248 |
(FramedBoxSpec |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
249 |
label: 'Keyboard Shortcuts' |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
250 |
name: 'FramedBox1' |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
251 |
labelPosition: topLeft |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
252 |
translateLabel: true |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
253 |
component: |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
254 |
(SpecCollection |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
255 |
collection: ( |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
256 |
(VerticalPanelViewSpec |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
257 |
name: 'VerticalPanel2' |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
258 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
259 |
horizontalLayout: fit |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
260 |
verticalLayout: top |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
261 |
horizontalSpace: 3 |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
262 |
verticalSpace: 3 |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
263 |
component: |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
264 |
(SpecCollection |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
265 |
collection: ( |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
266 |
(CheckBoxSpec |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
267 |
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
|
268 |
name: 'CheckBox7' |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
269 |
activeHelpKey: codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
270 |
model: codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
271 |
translateLabel: true |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
272 |
extent: (Point 551 25) |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
273 |
) |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
274 |
) |
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 |
extent: (Point 585 55) |
10337 | 282 |
) |
283 |
) |
|
284 |
||
285 |
) |
|
286 |
) |
|
287 |
) |
|
288 |
||
289 |
) |
|
290 |
) |
|
291 |
! ! |
|
292 |
||
293 |
!CodeView2SettingsAppl methodsFor:'aspects'! |
|
294 |
||
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
295 |
acceptCancelInGutterEnabledHolder |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
296 |
^ [UserPreferences current showAcceptCancelBar not] |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
297 |
! |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
298 |
|
10524 | 299 |
codeView2AutoIndent |
300 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
301 |
||
302 |
codeView2AutoIndent isNil ifTrue:[ |
|
303 |
codeView2AutoIndent := ValueHolder new. |
|
304 |
codeView2AutoIndent onChangeSend:#updateModifiedChannel to:self |
|
305 |
]. |
|
306 |
^ codeView2AutoIndent |
|
307 |
||
308 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
309 |
"Created: / 07-08-2011 / 12:52:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
310 |
! |
|
311 |
||
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
312 |
codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
313 |
codeView2QuickSendersAndImplementorsOnControl isNil ifTrue:[ |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
314 |
codeView2QuickSendersAndImplementorsOnControl := ValueHolder new. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
315 |
codeView2QuickSendersAndImplementorsOnControl onChangeSend:#updateModifiedChannel to:self |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
316 |
]. |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
317 |
^ codeView2QuickSendersAndImplementorsOnControl |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
318 |
|
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
319 |
"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
|
320 |
! |
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
321 |
|
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
322 |
codeView2ShowAcceptCancel |
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
323 |
"return/create the 'codeView2ShowAcceptCancel' value holder (automatically generated)" |
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 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
336 |
||
337 |
useCodeView2InBrowser isNil ifTrue:[ |
|
338 |
useCodeView2InBrowser := ValueHolder new. |
|
339 |
useCodeView2InBrowser onChangeSend:#updateModifiedChannel to:self |
|
340 |
]. |
|
341 |
^ useCodeView2InBrowser |
|
342 |
||
343 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
344 |
"Created: / 26-07-2011 / 10:30:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
345 |
! |
|
346 |
||
347 |
useCodeView2InDebugger |
|
348 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
349 |
||
350 |
useCodeView2InDebugger isNil ifTrue:[ |
|
351 |
useCodeView2InDebugger := ValueHolder new. |
|
352 |
useCodeView2InDebugger onChangeSend:#updateModifiedChannel to:self |
|
353 |
]. |
|
354 |
^ useCodeView2InDebugger |
|
355 |
||
356 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
357 |
"Created: / 26-07-2011 / 10:30:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
358 |
! |
|
359 |
||
10337 | 360 |
useCodeView2InTools |
361 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
362 |
||
363 |
useCodeView2InTools isNil ifTrue:[ |
|
364 |
useCodeView2InTools := ValueHolder new. |
|
365 |
useCodeView2InTools onChangeSend:#updateModifiedChannel to:self |
|
366 |
]. |
|
367 |
^ useCodeView2InTools |
|
368 |
||
369 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10398 | 370 |
! |
371 |
||
372 |
useCodeView2InWorkspace |
|
373 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
374 |
||
375 |
useCodeView2InWorkspace isNil ifTrue:[ |
|
376 |
useCodeView2InWorkspace := ValueHolder new. |
|
377 |
useCodeView2InWorkspace onChangeSend:#updateModifiedChannel to:self |
|
378 |
]. |
|
379 |
^ useCodeView2InWorkspace |
|
380 |
||
381 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
382 |
"Created: / 26-07-2011 / 10:31:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
383 |
! ! |
|
384 |
||
385 |
!CodeView2SettingsAppl methodsFor:'aspects-enablement'! |
|
386 |
||
387 |
useCodeView2InToolEnabled |
|
388 |
"return/create the 'useCodeView2InTools' value holder (automatically generated)" |
|
389 |
||
390 |
useCodeView2InToolEnabled isNil ifTrue:[ |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
391 |
useCodeView2InToolEnabled := UserPreferences current useCodeView2InTools asValue. |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
392 |
"/ (AspectAdaptor forAspect: #not) |
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
393 |
"/ subjectChannel: self useCodeView2InTools |
10398 | 394 |
]. |
395 |
^ useCodeView2InToolEnabled |
|
396 |
||
397 |
"Modified: / 11-03-2010 / 10:09:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
398 |
"Created: / 26-07-2011 / 10:39:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 399 |
"Modified (format): / 25-11-2011 / 15:11:55 / cg" |
10337 | 400 |
! ! |
401 |
||
402 |
!CodeView2SettingsAppl methodsFor:'protocol'! |
|
403 |
||
404 |
basicAspects |
|
10398 | 405 |
^#( |
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
406 |
"/#useCodeView2InTools |
10398 | 407 |
#useCodeView2InBrowser |
408 |
#useCodeView2InDebugger |
|
409 |
#useCodeView2InWorkspace |
|
10524 | 410 |
"/Editing support |
411 |
#codeView2AutoIndent |
|
11984
c1a35991c494
layout and settings location cleanup
Claus Gittinger <cg@exept.de>
parents:
10902
diff
changeset
|
412 |
"/ #codeView2ShowAcceptCancel |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
413 |
#codeView2QuickSendersAndImplementorsOnControl |
10398 | 414 |
) |
415 |
||
10794
854c6d72f257
Added checkbox to control default accept/cancel bar visibility
vrany
parents:
10524
diff
changeset
|
416 |
"Modified: / 10-10-2011 / 16:43:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 417 |
! |
418 |
||
419 |
basicReadSettings |
|
420 |
self readAspects:self basicAspects from:currentUserPrefs. |
|
421 |
||
422 |
"Modified: / 19-07-2011 / 17:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
423 |
! |
|
424 |
||
425 |
basicSaveSettings |
|
426 |
||
427 |
self writeAspects:self basicAspects to:currentUserPrefs. |
|
428 |
||
10398 | 429 |
"Modified: / 26-07-2011 / 10:43:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10337 | 430 |
! |
431 |
||
432 |
helpFilename |
|
433 |
"subclasses must return the relative name of a helpFile |
|
434 |
in the doc/online/<language>/help directory. |
|
435 |
Or nil, if no help is available." |
|
436 |
||
437 |
^ nil"for now" |
|
438 |
||
439 |
"Modified: / 19-07-2011 / 16:55:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
440 |
! ! |
|
441 |
||
442 |
!CodeView2SettingsAppl methodsFor:'queries'! |
|
443 |
||
444 |
hasUnsavedChanges |
|
10902 | 445 |
^ self |
10337 | 446 |
hasChangedAspectIn: self basicAspects |
10902 | 447 |
asComparedTo:currentUserPrefs |
10337 | 448 |
|
449 |
"Modified: / 19-07-2011 / 17:12:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
10902 | 450 |
"Modified (format): / 25-11-2011 / 15:25:16 / cg" |
10337 | 451 |
! ! |
452 |
||
453 |
!CodeView2SettingsAppl class methodsFor:'documentation'! |
|
454 |
||
455 |
version |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
456 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.7 2013-02-01 14:49:02 cg Exp $' |
10337 | 457 |
! |
458 |
||
459 |
version_CVS |
|
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
460 |
^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2SettingsAppl.st,v 1.7 2013-02-01 14:49:02 cg Exp $' |
10398 | 461 |
! |
462 |
||
463 |
version_SVN |
|
464 |
^ '§Id§' |
|
10337 | 465 |
! ! |
12360
0a236a23ceb5
class: Tools::CodeView2SettingsAppl
Claus Gittinger <cg@exept.de>
parents:
11984
diff
changeset
|
466 |