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