author | Claus Gittinger <cg@exept.de> |
Tue, 27 Jan 1998 21:29:56 +0100 | |
changeset 495 | f356a6636eef |
parent 491 | c3af7854dbe8 |
child 496 | a76cca0bceb4 |
permissions | -rw-r--r-- |
156 | 1 |
" |
2 |
COPYRIGHT (c) 1995 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 |
" |
|
12 |
||
368 | 13 |
|
446 | 14 |
ToolApplicationModel subclass:#UIPainter |
287 | 15 |
instanceVariableNames:'treeView selectionPanel tabSelection specClass specSelector |
297 | 16 |
specSuperclass aspects layoutCanvas helpCanvas specCanvas |
17 |
transcript' |
|
446 | 18 |
classVariableNames:'' |
60 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-UIPainter' |
|
21 |
! |
|
22 |
||
222 | 23 |
SelectionInTreeView subclass:#TreeView |
491
c3af7854dbe8
image instance variables removed + release all widget icons while snap shoting
tz
parents:
490
diff
changeset
|
24 |
instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec' |
440 | 25 |
classVariableNames:'Images' |
222 | 26 |
poolDictionaries:'' |
27 |
privateIn:UIPainter |
|
28 |
! |
|
29 |
||
60 | 30 |
!UIPainter class methodsFor:'documentation'! |
31 |
||
156 | 32 |
copyright |
33 |
" |
|
34 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
35 |
All Rights Reserved |
|
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
44 |
||
45 |
! |
|
46 |
||
60 | 47 |
documentation |
48 |
" |
|
127 | 49 |
GUI-Builder: |
50 |
this class allows the user to build its own applications providing a graphical |
|
51 |
user interface to buildin components and to define the behavior of the components |
|
52 |
during runtime. The resulting specifications can be installed as methods on |
|
53 |
classes, typically subclasses of an ApplicationModel. These specifications |
|
54 |
are used by the UIBuilder to generate the application window and its component |
|
55 |
structues when open the application. |
|
60 | 56 |
|
57 |
[start with:] |
|
58 |
UIPainter open |
|
127 | 59 |
|
156 | 60 |
[author:] |
183 | 61 |
Claus Gittinger |
156 | 62 |
Claus Atzkern |
63 |
||
127 | 64 |
[see also:] |
65 |
UIBuilder |
|
66 |
ApplicationModel |
|
67 |
UISpecification |
|
60 | 68 |
" |
109 | 69 |
|
70 |
! ! |
|
71 |
||
72 |
!UIPainter class methodsFor:'instance creation'! |
|
73 |
||
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
74 |
openOnClass:aClass andSelector:aSelector |
282 | 75 |
"open up an interface builder, fetching a spec from aClass |
76 |
via some selector |
|
77 |
" |
|
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
78 |
^ self new openOnClass:aClass andSelector:aSelector |
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
79 |
! |
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
80 |
|
109 | 81 |
painter:aBuilderView |
282 | 82 |
"set the painter |
83 |
" |
|
109 | 84 |
|application| |
85 |
||
86 |
application := self new. |
|
87 |
application painter:aBuilderView. |
|
88 |
^ application open |
|
60 | 89 |
! ! |
90 |
||
87 | 91 |
!UIPainter class methodsFor:'ST-80 queries'! |
92 |
||
93 |
preferenceFor:aSymbol |
|
282 | 94 |
"ST-80 compatible; always returns false |
95 |
" |
|
87 | 96 |
^ false |
109 | 97 |
|
98 |
||
99 |
! ! |
|
100 |
||
446 | 101 |
!UIPainter class methodsFor:'accessing'! |
102 |
||
103 |
label |
|
104 |
||
105 |
^'GUI Builder' |
|
106 |
! ! |
|
107 |
||
193 | 108 |
!UIPainter class methodsFor:'help specs'! |
109 |
||
110 |
helpSpec |
|
111 |
"return a dictionary filled with helpKey -> helptext associations. |
|
295 | 112 |
These are used by the activeHelp tool." |
113 |
||
193 | 114 |
" |
295 | 115 |
UIHelpTool openOnClass:UIPainter |
116 |
" |
|
117 |
||
193 | 118 |
^ super helpSpec addPairsFrom:#( |
119 |
||
466 | 120 |
#accept |
121 |
'write back changes' |
|
122 |
||
123 |
#alignSelectionBottom |
|
124 |
'align selected widgets to the bottom edge of the dominant widget' |
|
125 |
||
126 |
#alignSelectionCenterHor |
|
127 |
'align selected widgets vertical to the center of the dominant widget' |
|
128 |
||
129 |
#alignSelectionCenterVer |
|
130 |
'align selected widgets horizontal to the center of the dominant widget' |
|
131 |
||
132 |
#alignSelectionLeft |
|
133 |
'align selected widgets to the left edge of the dominant widget' |
|
134 |
||
135 |
#alignSelectionLeftAndRight |
|
136 |
'align selected widgets to the right and left edge of the dominant widget' |
|
137 |
||
138 |
#alignSelectionRight |
|
139 |
'align selected widgets to the right edge of the dominant widget' |
|
140 |
||
141 |
#alignSelectionTop |
|
142 |
'align selected widgets to the top edge of the dominant widget' |
|
143 |
||
144 |
#alignSelectionTopAndBottom |
|
145 |
'align selected widgets to the top and bottom edge of the dominant widget' |
|
146 |
||
147 |
#cancel |
|
148 |
'reread specification and layout' |
|
149 |
||
150 |
#centerSelectionHor |
|
151 |
'center widgets horizontal to their top widget' |
|
152 |
||
153 |
#centerSelectionVer |
|
154 |
'center vertical horizontal in contained view' |
|
155 |
||
156 |
#copyExtent |
|
157 |
'copy extent of the selected widget' |
|
158 |
||
159 |
#copyLayout |
|
160 |
'copy layout of the selected widget' |
|
295 | 161 |
|
282 | 162 |
#galleryShown |
163 |
'show or hide gallery view' |
|
164 |
||
466 | 165 |
#menuAlignment |
166 |
'provides a set of alignment operation on the current selected widgets' |
|
287 | 167 |
|
282 | 168 |
#menuChangeHierarchy |
169 |
'change hierarchy of the selected widget' |
|
170 |
||
466 | 171 |
#moveSelectionDown |
172 |
'move selected widgets down while pressing the button' |
|
173 |
||
174 |
#moveSelectionLeft |
|
175 |
'move selected widgets left while pressing the button' |
|
287 | 176 |
|
177 |
#moveSelectionRight |
|
178 |
'move selected widgets right while pressing the button' |
|
179 |
||
466 | 180 |
#moveSelectionUp |
181 |
'move selected widgets up while pressing the button' |
|
287 | 182 |
|
183 |
#painterShown |
|
184 |
'show or hide painter view' |
|
185 |
||
466 | 186 |
#pasteBuffer |
187 |
'paste widgets at current mouse position' |
|
188 |
||
287 | 189 |
#pasteExtent |
190 |
'change extent of all selected widgets to the last copied extent' |
|
191 |
||
192 |
#pasteHeight |
|
193 |
'change height of all selected widgets to the last copied extent height' |
|
194 |
||
195 |
#pasteLayout |
|
196 |
'change layout of all selected widgets to the last copied layout' |
|
197 |
||
466 | 198 |
#pasteWidth |
199 |
'change width of all selected widgets to the last copied extent width' |
|
200 |
||
201 |
#pasteWithLayout |
|
202 |
'paste widgets without changing their layouts' |
|
203 |
||
204 |
#setToDefaultExtent |
|
205 |
'set selected widgets to their default extent' |
|
206 |
||
207 |
#setToDefaultHeight |
|
208 |
'set selected widgets to their default height' |
|
209 |
||
210 |
#setToDefaultWidth |
|
211 |
'set selected widgets to their default width' |
|
287 | 212 |
|
213 |
#spreadSelectionHor |
|
214 |
'horizontal spacing between selected widgets is made the same' |
|
215 |
||
466 | 216 |
#spreadSelectionVer |
217 |
'vertical spacing between selected widgets is made the same' |
|
194 | 218 |
|
193 | 219 |
) |
220 |
! ! |
|
221 |
||
297 | 222 |
!UIPainter class methodsFor:'helpers'! |
223 |
||
368 | 224 |
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed |
297 | 225 |
"converts a string to a string collection with maximum characters |
226 |
per line |
|
227 |
" |
|
228 |
|stream |
|
229 |
max "{ Class:SmallInteger }" |
|
230 |
size "{ Class:SmallInteger }" |
|
231 |
start "{ Class:SmallInteger }" |
|
232 |
stop "{ Class:SmallInteger }" |
|
233 |
cpySz "{ Class:SmallInteger }" |
|
234 |
lnSz "{ Class:SmallInteger }"| |
|
235 |
||
236 |
maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1] |
|
237 |
ifTrue:[max := 20]. |
|
238 |
||
239 |
(size := aString size) <= max ifTrue:[ |
|
240 |
^ aString |
|
241 |
]. |
|
242 |
start := 1. |
|
243 |
lnSz := 0. |
|
244 |
stream := (String new:size) writeStream. |
|
245 |
||
246 |
[start <= size] whileTrue:[ |
|
247 |
(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[ |
|
248 |
^ stream contents |
|
249 |
]. |
|
368 | 250 |
(aString at:start) == $\ ifTrue:[ |
251 |
skipLineFeed ifFalse:[ |
|
252 |
stream nextPut:$\ |
|
253 |
]. |
|
254 |
start := start + 1. |
|
255 |
stream cr. |
|
256 |
start := start + 1. |
|
257 |
lnSz := 0. |
|
258 |
] ifFalse:[ |
|
259 |
(stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[ |
|
260 |
stop := size + 1 |
|
261 |
]. |
|
262 |
(aString at:(stop - 1)) == $\ ifTrue:[ |
|
263 |
stop := stop - 1 |
|
264 |
]. |
|
265 |
cpySz := stop - start. |
|
266 |
||
267 |
lnSz == 0 ifFalse:[ |
|
268 |
(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr. lnSz := cpySz ] |
|
269 |
ifFalse:[stream space. lnSz := lnSz + 1] |
|
270 |
] ifTrue:[ |
|
271 |
lnSz := cpySz |
|
272 |
]. |
|
273 |
stream nextPutAll:aString startingAt:start to:(stop - 1). |
|
274 |
start := stop. |
|
275 |
] |
|
297 | 276 |
]. |
277 |
^ stream contents |
|
278 |
! ! |
|
279 |
||
60 | 280 |
!UIPainter class methodsFor:'interface specs'! |
281 |
||
366 | 282 |
gridParametersSpec |
283 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
284 |
||
285 |
"do not manually edit this - the painter/builder may not be able to |
|
286 |
handle the specification if its corrupted." |
|
287 |
||
288 |
" |
|
289 |
UIPainter new openOnClass:UIPainter andSelector:#gridParametersSpec |
|
290 |
UIPainter new openInterface:#gridParametersSpec |
|
291 |
" |
|
292 |
||
293 |
<resource: #canvas> |
|
294 |
||
295 |
^ |
|
446 | 296 |
|
366 | 297 |
#(#FullSpec |
298 |
#'window:' |
|
299 |
#(#WindowSpec |
|
300 |
#'name:' 'Grid Parameters:' |
|
446 | 301 |
#'layout:' #(#LayoutFrame 229 0 394 0 494 0 543 0) |
366 | 302 |
#'label:' 'Grid Parameters:' |
303 |
#'min:' #(#Point 10 10) |
|
304 |
#'max:' #(#Point 1280 1024) |
|
446 | 305 |
#'bounds:' #(#Rectangle 229 394 495 544) |
306 |
#'usePreferredExtent:' false |
|
366 | 307 |
) |
308 |
#'component:' |
|
309 |
#(#SpecCollection |
|
310 |
#'collection:' |
|
311 |
#( |
|
312 |
#(#CheckBoxSpec |
|
313 |
#'name:' 'show' |
|
446 | 314 |
#'layout:' #(#Point 13 14) |
366 | 315 |
#'model:' #showGrid |
446 | 316 |
#'label:' 'Show grid' |
366 | 317 |
) |
318 |
#(#CheckBoxSpec |
|
319 |
#'name:' 'align' |
|
446 | 320 |
#'layout:' #(#Point 117 14) |
366 | 321 |
#'model:' #alignToGrid |
446 | 322 |
#'label:' 'Align to Grid' |
366 | 323 |
) |
324 |
#(#LabelSpec |
|
325 |
#'name:' 'hrzLabel' |
|
446 | 326 |
#'layout:' #(#AlignmentOrigin 136 0 62 0 1 0.5) |
327 |
#'label:' 'Horizontal Pixels:' |
|
328 |
#'adjust:' #right |
|
366 | 329 |
#'resizeForLabel:' true |
330 |
) |
|
331 |
#(#InputFieldSpec |
|
332 |
#'name:' 'hrzField' |
|
446 | 333 |
#'layout:' #(#LayoutFrame 141 0 51 0 194 0 73 0) |
366 | 334 |
#'model:' #hspace |
335 |
#'type:' #numberOrNil |
|
336 |
) |
|
337 |
#(#LabelSpec |
|
338 |
#'name:' 'vrtLabel' |
|
446 | 339 |
#'layout:' #(#AlignmentOrigin 137 0 85 0 1 0.5) |
340 |
#'label:' 'Vertical Pixels:' |
|
341 |
#'adjust:' #right |
|
366 | 342 |
#'resizeForLabel:' true |
343 |
) |
|
344 |
#(#InputFieldSpec |
|
345 |
#'name:' 'vrtField' |
|
446 | 346 |
#'layout:' #(#LayoutFrame 141 0 74 0 194 0 96 0) |
366 | 347 |
#'model:' #vspace |
348 |
#'type:' #numberOrNil |
|
349 |
) |
|
446 | 350 |
#(#UISubSpecification |
351 |
#'name:' 'uISubSpecifica1' |
|
352 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
353 |
#'majorKey:' #ToolApplicationModel |
|
354 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
366 | 355 |
) |
356 |
) |
|
357 |
) |
|
358 |
) |
|
359 |
! |
|
360 |
||
222 | 361 |
nameAndSelectorSpec |
362 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
363 |
||
364 |
"do not manually edit this - the painter/builder may not be able to |
|
365 |
handle the specification if its corrupted." |
|
366 |
||
367 |
" |
|
368 |
UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec |
|
369 |
UIPainter new openInterface:#nameAndSelectorSpec |
|
370 |
" |
|
371 |
||
372 |
<resource: #canvas> |
|
373 |
||
374 |
^ |
|
375 |
||
376 |
#(#FullSpec |
|
377 |
#'window:' |
|
378 |
#(#WindowSpec |
|
446 | 379 |
#'name:' 'Painter' |
380 |
#'layout:' #(#LayoutFrame 101 0 328 0 491 0 497 0) |
|
222 | 381 |
#'label:' 'Painter' |
446 | 382 |
#'min:' #(#Point 10 10) |
383 |
#'max:' #(#Point 1152 900) |
|
384 |
#'bounds:' #(#Rectangle 101 328 492 498) |
|
385 |
#'usePreferredExtent:' false |
|
222 | 386 |
) |
387 |
#'component:' |
|
388 |
#(#SpecCollection |
|
389 |
#'collection:' |
|
390 |
#( |
|
391 |
#(#LabelSpec |
|
392 |
#'name:' 'classLabel' |
|
265 | 393 |
#'layout:' #(#AlignmentOrigin 50 0.11 51 0 1 0.5) |
446 | 394 |
#'label:' 'Class:' |
222 | 395 |
#'adjust:' #right |
396 |
#'resizeForLabel:' true |
|
397 |
) |
|
398 |
#(#LabelSpec |
|
399 |
#'name:' 'superClassLabel' |
|
265 | 400 |
#'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5) |
446 | 401 |
#'label:' 'Superclass:' |
222 | 402 |
#'adjust:' #right |
403 |
#'resizeForLabel:' true |
|
404 |
) |
|
405 |
#(#LabelSpec |
|
406 |
#'name:' 'selectorLabel' |
|
265 | 407 |
#'layout:' #(#AlignmentOrigin 50 0.11 105 0 1 0.5) |
446 | 408 |
#'label:' 'Selector:' |
222 | 409 |
#'adjust:' #right |
410 |
#'resizeForLabel:' true |
|
411 |
) |
|
412 |
#(#InputFieldSpec |
|
413 |
#'name:' 'methodNameField' |
|
265 | 414 |
#'layout:' #(#LayoutFrame 51 0.11 95 0 -2 1.0 117 0) |
222 | 415 |
#'tabable:' true |
416 |
#'model:' #methodNameChannel |
|
417 |
) |
|
418 |
#(#LabelSpec |
|
419 |
#'name:' 'boxLabel' |
|
265 | 420 |
#'layout:' #(#Point 2 10) |
446 | 421 |
#'label:' 'Class and selector for interface:' |
222 | 422 |
#'adjust:' #left |
423 |
#'resizeForLabel:' true |
|
424 |
) |
|
425 |
#(#InputFieldSpec |
|
426 |
#'name:' 'classNameField' |
|
265 | 427 |
#'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 0) |
222 | 428 |
#'tabable:' true |
429 |
#'model:' #classNameChannel |
|
430 |
) |
|
431 |
#(#ComboBoxSpec |
|
432 |
#'name:' 'comboBox1' |
|
265 | 433 |
#'layout:' #(#LayoutFrame 51 0.11 67 0 0 1.0 89 0) |
222 | 434 |
#'tabable:' true |
435 |
#'model:' #superclassNameChannel |
|
436 |
#'comboList:' #superclassNameDefaults |
|
437 |
) |
|
446 | 438 |
#(#UISubSpecification |
439 |
#'name:' 'uISubSpecifica1' |
|
440 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
441 |
#'majorKey:' #ToolApplicationModel |
|
442 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
222 | 443 |
) |
444 |
) |
|
445 |
) |
|
446 |
) |
|
447 |
! |
|
448 |
||
449 |
windowSpec |
|
450 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
451 |
||
452 |
"do not manually edit this - the painter/builder may not be able to |
|
453 |
handle the specification if its corrupted." |
|
454 |
||
455 |
" |
|
456 |
UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
|
457 |
UIPainter new openInterface:#windowSpec |
|
458 |
" |
|
459 |
"UIPainter open" |
|
460 |
||
461 |
<resource: #canvas> |
|
462 |
||
463 |
^ |
|
464 |
||
465 |
#(#FullSpec |
|
466 |
#'window:' |
|
467 |
#(#WindowSpec |
|
282 | 468 |
#'name:' 'Tree-View' |
486 | 469 |
#'layout:' #(#LayoutFrame 166 0 328 0 718 0 788 0) |
222 | 470 |
#'label:' 'Tree-View' |
282 | 471 |
#'min:' #(#Point 10 10) |
472 |
#'max:' #(#Point 1160 870) |
|
486 | 473 |
#'bounds:' #(#Rectangle 166 328 719 789) |
446 | 474 |
#'menu:' #menu |
375 | 475 |
#'usePreferredExtent:' false |
222 | 476 |
) |
477 |
#'component:' |
|
478 |
#(#SpecCollection |
|
479 |
#'collection:' |
|
480 |
#( |
|
481 |
#(#MenuPanelSpec |
|
446 | 482 |
#'name:' 'menuToolbarView' |
483 |
#'layout:' #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0) |
|
484 |
#'activeHelpKey:' #menuChangeHierarchy |
|
222 | 485 |
#'tabable:' true |
446 | 486 |
#'menu:' #menuToolbar |
487 |
#'showSeparatingLines:' true |
|
222 | 488 |
) |
297 | 489 |
#(#VariableVerticalPanelSpec |
490 |
#'name:' 'vpanel' |
|
448 | 491 |
#'layout:' #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -22 1.0) |
297 | 492 |
#'component:' |
493 |
#(#SpecCollection |
|
494 |
#'collection:' |
|
495 |
#( |
|
496 |
#(#VariableHorizontalPanelSpec |
|
497 |
#'name:' 'hpanel' |
|
498 |
#'component:' |
|
499 |
#(#SpecCollection |
|
500 |
#'collection:' |
|
501 |
#( |
|
502 |
#(#ArbitraryComponentSpec |
|
503 |
#'name:' 'treeView' |
|
375 | 504 |
#'tabable:' true |
446 | 505 |
#'menu:' #menuEdit |
297 | 506 |
#'hasHorizontalScrollBar:' true |
507 |
#'hasVerticalScrollBar:' true |
|
508 |
#'miniScrollerHorizontal:' true |
|
509 |
#'miniScrollerVertical:' true |
|
510 |
#'component:' #treeView |
|
511 |
#'hasBorder:' false |
|
512 |
) |
|
513 |
#(#ViewSpec |
|
514 |
#'name:' 'specHolderView' |
|
515 |
#'component:' |
|
516 |
#(#SpecCollection |
|
517 |
#'collection:' |
|
518 |
#( |
|
519 |
#(#NoteBookViewSpec |
|
520 |
#'name:' 'noteBook' |
|
446 | 521 |
#'layout:' #(#LayoutFrame 0 0.0 26 0.0 0 1.0 -30 1.0) |
297 | 522 |
#'enableChannel:' #enableChannel |
523 |
#'tabable:' true |
|
345 | 524 |
#'model:' #tabModel |
297 | 525 |
#'menu:' #tabList |
345 | 526 |
#'style:' #(#FontDescription #helvetica #medium #roman 10) |
297 | 527 |
#'canvas:' #noteBookView |
528 |
) |
|
529 |
#(#HorizontalPanelViewSpec |
|
530 |
#'name:' 'modifyPanel' |
|
531 |
#'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0) |
|
532 |
#'component:' |
|
533 |
#(#SpecCollection |
|
534 |
#'collection:' |
|
535 |
#( |
|
536 |
#(#ActionButtonSpec |
|
537 |
#'name:' 'cancelButton' |
|
538 |
#'activeHelpKey:' #cancel |
|
446 | 539 |
#'label:' 'Cancel' |
297 | 540 |
#'tabable:' true |
541 |
#'model:' #cancel |
|
542 |
#'enableChannel:' #modifiedChannel |
|
446 | 543 |
#'extent:' #(#Point 179 24) |
297 | 544 |
) |
545 |
#(#ActionButtonSpec |
|
546 |
#'name:' 'acceptButton' |
|
547 |
#'activeHelpKey:' #accept |
|
446 | 548 |
#'label:' 'OK' |
297 | 549 |
#'tabable:' true |
550 |
#'model:' #accept |
|
551 |
#'enableChannel:' #modifiedChannel |
|
446 | 552 |
#'extent:' #(#Point 180 24) |
297 | 553 |
) |
554 |
) |
|
555 |
) |
|
556 |
#'horizontalLayout:' #fitSpace |
|
557 |
#'verticalLayout:' #fitSpace |
|
558 |
#'horizontalSpace:' 3 |
|
559 |
#'verticalSpace:' 3 |
|
560 |
) |
|
446 | 561 |
#(#HorizontalPanelViewSpec |
562 |
#'name:' 'panelViewButtons' |
|
563 |
#'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 24 0) |
|
564 |
#'component:' |
|
565 |
#(#SpecCollection |
|
566 |
#'collection:' |
|
567 |
#( |
|
568 |
#(#ArrowButtonSpec |
|
569 |
#'name:' 'moveLeft' |
|
570 |
#'activeHelpKey:' #moveSelectionLeft |
|
571 |
#'tabable:' true |
|
572 |
#'model:' #moveSelectionLeft |
|
573 |
#'enableChannel:' #canMoveOrAlignSelection |
|
574 |
#'isTriggerOnDown:' true |
|
575 |
#'direction:' #left |
|
576 |
#'extent:' #(#Point 22 22) |
|
577 |
) |
|
578 |
#(#ArrowButtonSpec |
|
579 |
#'name:' 'moveRight' |
|
580 |
#'activeHelpKey:' #moveSelectionRight |
|
581 |
#'model:' #moveSelectionRight |
|
582 |
#'enableChannel:' #canMoveOrAlignSelection |
|
583 |
#'isTriggerOnDown:' true |
|
584 |
#'direction:' #right |
|
585 |
#'extent:' #(#Point 22 22) |
|
586 |
) |
|
587 |
#(#ArrowButtonSpec |
|
588 |
#'name:' 'moveDown' |
|
589 |
#'activeHelpKey:' #moveSelectionDown |
|
590 |
#'model:' #moveSelectionDown |
|
591 |
#'enableChannel:' #canMoveOrAlignSelection |
|
592 |
#'isTriggerOnDown:' true |
|
593 |
#'direction:' #down |
|
594 |
#'extent:' #(#Point 22 22) |
|
595 |
) |
|
596 |
#(#ArrowButtonSpec |
|
597 |
#'name:' 'moveUp' |
|
598 |
#'activeHelpKey:' #moveSelectionUp |
|
599 |
#'model:' #moveSelectionUp |
|
600 |
#'enableChannel:' #canMoveOrAlignSelection |
|
601 |
#'isTriggerOnDown:' true |
|
602 |
#'direction:' #up |
|
603 |
#'extent:' #(#Point 22 22) |
|
604 |
) |
|
605 |
) |
|
606 |
) |
|
607 |
#'level:' 1 |
|
608 |
#'horizontalLayout:' #left |
|
609 |
#'verticalLayout:' #fit |
|
610 |
#'horizontalSpace:' 4 |
|
611 |
#'verticalSpace:' 4 |
|
612 |
) |
|
297 | 613 |
) |
614 |
) |
|
615 |
#'borderWidth:' 1 |
|
616 |
) |
|
617 |
) |
|
618 |
) |
|
619 |
#'level:' 1 |
|
620 |
#'handles:' #(#Any 0.329435 1.0) |
|
621 |
) |
|
622 |
#(#TextEditorSpec |
|
623 |
#'name:' 'Transcript' |
|
624 |
#'hasHorizontalScrollBar:' true |
|
625 |
#'hasVerticalScrollBar:' true |
|
626 |
#'miniScrollerHorizontal:' true |
|
627 |
#'miniScrollerVertical:' true |
|
628 |
) |
|
629 |
) |
|
630 |
) |
|
631 |
#'handles:' #(#Any 0.880597 1.0) |
|
632 |
) |
|
486 | 633 |
#(#UISubSpecification |
634 |
#'name:' 'infoBarSubSpec' |
|
635 |
#'layout:' #(#LayoutFrame 0 0.0 -22 1 0 1.0 0 1.0) |
|
636 |
#'majorKey:' #ToolApplicationModel |
|
637 |
#'minorKey:' #windowSpecForInfoBar |
|
448 | 638 |
) |
222 | 639 |
) |
640 |
) |
|
641 |
) |
|
642 |
! ! |
|
643 |
||
644 |
!UIPainter class methodsFor:'menu specs'! |
|
645 |
||
446 | 646 |
menu |
217 | 647 |
"this window spec was automatically generated by the ST/X MenuEditor" |
648 |
||
649 |
"do not manually edit this - the builder may not be able to |
|
650 |
handle the specification if its corrupted." |
|
651 |
||
652 |
" |
|
446 | 653 |
MenuEditor new openOnClass:UIPainter andSelector:#menu |
654 |
(Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp |
|
655 |
" |
|
656 |
||
657 |
<resource: #menu> |
|
658 |
||
659 |
^ |
|
660 |
||
661 |
#(#Menu |
|
662 |
||
663 |
#( |
|
664 |
#(#MenuItem |
|
665 |
#'label:' 'About' |
|
666 |
#'labelImage:' #(#ResourceRetriever nil #icon) |
|
667 |
#'submenuChannel:' #menuAbout |
|
668 |
) |
|
669 |
#(#MenuItem |
|
670 |
#'label:' 'File' |
|
671 |
#'value:' #file |
|
672 |
#'enabled:' #enableChannel |
|
673 |
#'submenu:' |
|
674 |
#(#Menu |
|
675 |
||
676 |
#( |
|
677 |
#(#MenuItem |
|
678 |
#'label:' 'New' |
|
679 |
#'value:' #doNew |
|
680 |
) |
|
681 |
#(#MenuItem |
|
682 |
#'label:' '-' |
|
683 |
) |
|
684 |
#(#MenuItem |
|
685 |
#'label:' 'Load From Class...' |
|
686 |
#'value:' #doFromClass |
|
687 |
) |
|
688 |
#(#MenuItem |
|
689 |
#'label:' 'Load From Class With Superclass...' |
|
690 |
#'value:' #loadFromClassWithSuperclass |
|
691 |
) |
|
692 |
#(#MenuItem |
|
693 |
#'label:' '-' |
|
694 |
) |
|
695 |
#(#MenuItem |
|
466 | 696 |
#'label:' 'Save' |
697 |
#'value:' #doInstallSpec |
|
446 | 698 |
) |
699 |
#(#MenuItem |
|
700 |
#'label:' '-' |
|
701 |
) |
|
702 |
#(#MenuItem |
|
466 | 703 |
#'label:' 'Define Class And Selector...' |
704 |
#'value:' #defineClassAndSelector |
|
446 | 705 |
) |
706 |
#(#MenuItem |
|
707 |
#'label:' '-' |
|
708 |
) |
|
709 |
#(#MenuItem |
|
710 |
#'label:' 'Create Aspect Methods' |
|
711 |
#'value:' #doInstallAspects |
|
712 |
#'enabled:' #hasSpecClass |
|
713 |
) |
|
714 |
#(#MenuItem |
|
715 |
#'label:' 'Create Hook Methods' |
|
716 |
#'value:' #doInstallHooks |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
717 |
#'enabled:' #hasSpecClass |
446 | 718 |
) |
719 |
#(#MenuItem |
|
720 |
#'label:' '-' |
|
721 |
) |
|
722 |
#(#MenuItem |
|
723 |
#'label:' 'Show Window Spec' |
|
724 |
#'value:' #doWindowSpec |
|
725 |
) |
|
726 |
#(#MenuItem |
|
727 |
#'label:' 'Browse Application' |
|
728 |
#'value:' #doBrowseAppClass |
|
729 |
#'enabled:' #hasSpecClass |
|
730 |
) |
|
731 |
#(#MenuItem |
|
732 |
#'label:' 'Browse Aspect Methods' |
|
733 |
#'value:' #doBrowseAspectMethods |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
734 |
#'enabled:' #hasSpecClass |
446 | 735 |
) |
736 |
#(#MenuItem |
|
737 |
#'label:' '-' |
|
738 |
) |
|
739 |
#(#MenuItem |
|
740 |
#'label:' 'Pick a View ' |
|
741 |
#'value:' #doPickAView |
|
742 |
) |
|
743 |
#(#MenuItem |
|
744 |
#'label:' '-' |
|
745 |
) |
|
746 |
#(#MenuItem |
|
747 |
#'label:' 'Exit' |
|
748 |
#'value:' #closeRequest |
|
749 |
) |
|
750 |
) nil |
|
751 |
nil |
|
752 |
) |
|
753 |
) |
|
754 |
#(#MenuItem |
|
755 |
#'label:' 'Edit' |
|
756 |
#'submenuChannel:' #menuEdit |
|
757 |
) |
|
758 |
#(#MenuItem |
|
759 |
#'label:' 'Align' |
|
760 |
#'submenuChannel:' #menuAlign |
|
761 |
) |
|
762 |
#(#MenuItem |
|
763 |
#'label:' 'Test' |
|
764 |
#'submenu:' |
|
765 |
#(#Menu |
|
766 |
||
767 |
#( |
|
768 |
#(#MenuItem |
|
466 | 769 |
#'label:' 'Start Application' |
770 |
#'value:' #doStartApplication |
|
771 |
) |
|
772 |
#(#MenuItem |
|
773 |
#'label:' '-' |
|
774 |
) |
|
775 |
#(#MenuItem |
|
446 | 776 |
#'label:' 'Geometry Test Mode' |
777 |
#'indication:' #'testMode:' |
|
778 |
) |
|
779 |
) nil |
|
780 |
nil |
|
781 |
) |
|
782 |
) |
|
783 |
#(#MenuItem |
|
784 |
#'label:' 'Settings' |
|
785 |
#'submenu:' |
|
786 |
#(#Menu |
|
787 |
||
788 |
#( |
|
789 |
#(#MenuItem |
|
790 |
#'label:' 'Undo Manager' |
|
791 |
#'value:' #openUndoMenu |
|
792 |
) |
|
793 |
#(#MenuItem |
|
794 |
#'label:' '-' |
|
795 |
) |
|
796 |
#(#MenuItem |
|
797 |
#'label:' 'Grid Manager' |
|
798 |
#'value:' #gridMenu |
|
799 |
) |
|
800 |
) nil |
|
801 |
nil |
|
802 |
) |
|
803 |
) |
|
804 |
#(#MenuItem |
|
805 |
#'label:' 'History' |
|
806 |
#'submenuChannel:' #menuHistory |
|
807 |
) |
|
808 |
#(#MenuItem |
|
809 |
#'label:' '' |
|
810 |
) |
|
811 |
#(#MenuItem |
|
812 |
#'label:' 'Gallery' |
|
813 |
#'indication:' #galleryShown |
|
814 |
) |
|
815 |
#(#MenuItem |
|
816 |
#'label:' 'Canvas' |
|
817 |
#'indication:' #painterShown |
|
818 |
) |
|
819 |
) nil |
|
820 |
nil |
|
821 |
) |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
822 |
|
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
823 |
"Modified: / 27.1.1998 / 21:25:27 / cg" |
446 | 824 |
! |
825 |
||
826 |
menuAlign |
|
827 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
828 |
||
829 |
"do not manually edit this - the builder may not be able to |
|
830 |
handle the specification if its corrupted." |
|
831 |
||
832 |
" |
|
833 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
834 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 835 |
" |
836 |
||
837 |
<resource: #menu> |
|
838 |
||
839 |
^ |
|
840 |
||
841 |
#(#Menu |
|
842 |
||
843 |
#( |
|
844 |
#(#MenuItem |
|
446 | 845 |
#'label:' 'Align Left' |
846 |
#'value:' #alignSelectionLeft |
|
847 |
#'activeHelpKey:' #alignSelectionLeft |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
848 |
#'enabled:' #hasSelection |
446 | 849 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignL 'Align Left') |
850 |
) |
|
851 |
#(#MenuItem |
|
852 |
#'label:' 'Align Right' |
|
853 |
#'value:' #alignSelectionRight |
|
854 |
#'activeHelpKey:' #alignSelectionRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
855 |
#'enabled:' #hasSelection |
446 | 856 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignR 'Align Right') |
857 |
) |
|
858 |
#(#MenuItem |
|
859 |
#'label:' 'Align Left & Right' |
|
860 |
#'value:' #alignSelectionLeftAndRight |
|
861 |
#'activeHelpKey:' #alignSelectionLeftAndRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
862 |
#'enabled:' #hasSelection |
446 | 863 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignLR 'Align Left & Right') |
864 |
) |
|
865 |
#(#MenuItem |
|
866 |
#'label:' 'Align top' |
|
867 |
#'value:' #alignSelectionTop |
|
868 |
#'activeHelpKey:' #alignSelectionTop |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
869 |
#'enabled:' #hasSelection |
446 | 870 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignT 'Align top') |
871 |
) |
|
872 |
#(#MenuItem |
|
873 |
#'label:' 'Align Bottom' |
|
874 |
#'value:' #alignSelectionBottom |
|
875 |
#'activeHelpKey:' #alignSelectionBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
876 |
#'enabled:' #hasSelection |
446 | 877 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignB 'Align Bottom') |
878 |
) |
|
879 |
#(#MenuItem |
|
880 |
#'label:' 'Align Top & Bottom' |
|
881 |
#'value:' #alignSelectionTopAndBottom |
|
882 |
#'activeHelpKey:' #alignSelectionTopAndBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
883 |
#'enabled:' #hasSelection |
446 | 884 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignTB 'Align Top & Bottom') |
885 |
) |
|
886 |
#(#MenuItem |
|
887 |
#'label:' 'Align Centered Horizontal' |
|
888 |
#'value:' #alignSelectionCenterHor |
|
889 |
#'activeHelpKey:' #alignSelectionCenterHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
890 |
#'enabled:' #hasSelection |
446 | 891 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterH 'Align Centered Horizontal') |
892 |
) |
|
893 |
#(#MenuItem |
|
894 |
#'label:' 'Align Centered Vertical' |
|
895 |
#'value:' #alignSelectionCenterVer |
|
896 |
#'activeHelpKey:' #alignSelectionCenterVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
897 |
#'enabled:' #hasSelection |
446 | 898 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterV 'Align Centered Vertical') |
899 |
) |
|
900 |
#(#MenuItem |
|
901 |
#'label:' '-' |
|
902 |
) |
|
903 |
#(#MenuItem |
|
904 |
#'label:' 'Spread Horizontal' |
|
905 |
#'value:' #spreadSelectionHor |
|
906 |
#'activeHelpKey:' #spreadSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
907 |
#'enabled:' #hasSelection |
446 | 908 |
) |
909 |
#(#MenuItem |
|
910 |
#'label:' 'Spread Vertical' |
|
911 |
#'value:' #spreadSelectionVer |
|
912 |
#'activeHelpKey:' #spreadSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
913 |
#'enabled:' #hasSelection |
446 | 914 |
) |
915 |
#(#MenuItem |
|
916 |
#'label:' '-' |
|
917 |
) |
|
918 |
#(#MenuItem |
|
919 |
#'label:' 'Center Horizontal In Frame' |
|
920 |
#'value:' #centerSelectionHor |
|
921 |
#'activeHelpKey:' #centerSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
922 |
#'enabled:' #hasSelection |
446 | 923 |
) |
924 |
#(#MenuItem |
|
925 |
#'label:' 'Center Vertical In Frame' |
|
926 |
#'value:' #centerSelectionVer |
|
927 |
#'activeHelpKey:' #centerSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
928 |
#'enabled:' #hasSelection |
446 | 929 |
) |
930 |
) nil |
|
931 |
nil |
|
932 |
) |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
933 |
|
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
934 |
"Modified: / 27.1.1998 / 21:27:33 / cg" |
446 | 935 |
! |
936 |
||
937 |
menuEdit |
|
938 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
939 |
||
940 |
"do not manually edit this - the builder may not be able to |
|
941 |
handle the specification if its corrupted." |
|
942 |
||
943 |
" |
|
944 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
945 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
946 |
" |
|
947 |
||
948 |
<resource: #menu> |
|
949 |
||
950 |
^ |
|
951 |
||
952 |
#(#Menu |
|
953 |
||
954 |
#( |
|
955 |
#(#MenuItem |
|
956 |
#'label:' 'Cut' |
|
957 |
#'value:' #deleteSelection |
|
958 |
#'enabled:' #hasSelection |
|
959 |
#'shortcutKeyCharacter:' #Cut |
|
960 |
) |
|
961 |
#(#MenuItem |
|
962 |
#'label:' 'Copy' |
|
963 |
#'value:' #copySelection |
|
964 |
#'enabled:' #hasSelection |
|
965 |
#'shortcutKeyCharacter:' #Copy |
|
966 |
) |
|
967 |
#(#MenuItem |
|
968 |
#'label:' 'Paste' |
|
969 |
#'nameKey:' #paste |
|
970 |
#'value:' #paste |
|
971 |
#'enabled:' #canPaste |
|
972 |
#'submenu:' |
|
973 |
#(#Menu |
|
974 |
||
975 |
#( |
|
976 |
#(#MenuItem |
|
977 |
#'label:' 'Paste' |
|
978 |
#'value:' #pasteBuffer |
|
979 |
#'activeHelpKey:' #pasteBuffer |
|
980 |
#'shortcutKeyCharacter:' #Paste |
|
981 |
) |
|
982 |
#(#MenuItem |
|
983 |
#'label:' 'Keep Layout' |
|
984 |
#'value:' #pasteWithLayout |
|
985 |
#'activeHelpKey:' #pasteWithLayout |
|
986 |
#'enabled:' #canKeepLayoutInSelection |
|
987 |
) |
|
988 |
) nil |
|
989 |
nil |
|
990 |
) |
|
991 |
) |
|
992 |
#(#MenuItem |
|
993 |
#'label:' '-' |
|
994 |
) |
|
995 |
#(#MenuItem |
|
996 |
#'label:' 'Undo' |
|
997 |
#'nameKey:' #undo |
|
998 |
#'value:' #undoLast |
|
999 |
#'enabled:' #hasUndoHistory |
|
1000 |
#'shortcutKeyCharacter:' #Cmdu |
|
1001 |
) |
|
1002 |
#(#MenuItem |
|
1003 |
#'label:' '-' |
|
1004 |
) |
|
1005 |
#(#MenuItem |
|
1006 |
#'label:' 'Dimension' |
|
1007 |
#'value:' #dimension |
|
1008 |
#'enabled:' #hasSelection |
|
1009 |
#'submenu:' |
|
1010 |
#(#Menu |
|
1011 |
||
1012 |
#( |
|
1013 |
#(#MenuItem |
|
1014 |
#'label:' 'Default Extent' |
|
1015 |
#'value:' #setToDefaultExtent |
|
1016 |
#'activeHelpKey:' #setToDefaultExtent |
|
1017 |
#'enabled:' #canMoveOrAlignSelection |
|
1018 |
) |
|
1019 |
#(#MenuItem |
|
1020 |
#'label:' 'Default Width' |
|
1021 |
#'value:' #setToDefaultWidth |
|
1022 |
#'activeHelpKey:' #setToDefaultWidth |
|
1023 |
#'enabled:' #canMoveOrAlignSelection |
|
1024 |
) |
|
1025 |
#(#MenuItem |
|
1026 |
#'label:' 'Default Height' |
|
1027 |
#'value:' #setToDefaultHeight |
|
1028 |
#'activeHelpKey:' #setToDefaultHeight |
|
1029 |
#'enabled:' #canMoveOrAlignSelection |
|
1030 |
) |
|
1031 |
#(#MenuItem |
|
1032 |
#'label:' '-' |
|
1033 |
) |
|
1034 |
#(#MenuItem |
|
1035 |
#'label:' 'Copy Extent' |
|
1036 |
#'value:' #copyExtent |
|
1037 |
#'activeHelpKey:' #copyExtent |
|
1038 |
#'enabled:' #hasSingleSelection |
|
1039 |
) |
|
1040 |
#(#MenuItem |
|
1041 |
#'label:' '-' |
|
1042 |
) |
|
1043 |
#(#MenuItem |
|
1044 |
#'label:' 'Paste Extent' |
|
1045 |
#'value:' #pasteExtent |
|
1046 |
#'activeHelpKey:' #pasteExtent |
|
1047 |
#'enabled:' #canMoveOrAlignSelection |
|
1048 |
) |
|
1049 |
#(#MenuItem |
|
1050 |
#'label:' 'Paste Width' |
|
1051 |
#'value:' #pasteWidth |
|
1052 |
#'activeHelpKey:' #pasteWidth |
|
1053 |
#'enabled:' #canMoveOrAlignSelection |
|
1054 |
) |
|
1055 |
#(#MenuItem |
|
1056 |
#'label:' 'Paste Height' |
|
1057 |
#'value:' #pasteHeight |
|
1058 |
#'activeHelpKey:' #pasteHeight |
|
1059 |
#'enabled:' #canMoveOrAlignSelection |
|
1060 |
) |
|
1061 |
#(#MenuItem |
|
1062 |
#'label:' '-' |
|
1063 |
) |
|
1064 |
#(#MenuItem |
|
1065 |
#'label:' 'Copy Layout' |
|
1066 |
#'value:' #copyLayout |
|
1067 |
#'activeHelpKey:' #copyLayout |
|
1068 |
#'enabled:' #hasSingleSelection |
|
1069 |
) |
|
1070 |
#(#MenuItem |
|
1071 |
#'label:' 'Paste Layout' |
|
1072 |
#'value:' #pasteLayout |
|
1073 |
#'activeHelpKey:' #pasteLayout |
|
1074 |
#'enabled:' #canMoveOrAlignSelection |
|
1075 |
) |
|
1076 |
) nil |
|
1077 |
nil |
|
1078 |
) |
|
1079 |
) |
|
1080 |
#(#MenuItem |
|
1081 |
#'label:' 'Align' |
|
1082 |
#'submenuChannel:' #menuAlign |
|
1083 |
) |
|
1084 |
) nil |
|
1085 |
nil |
|
1086 |
) |
|
1087 |
! |
|
1088 |
||
1089 |
menuToolbar |
|
1090 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1091 |
||
1092 |
"do not manually edit this - the builder may not be able to |
|
1093 |
handle the specification if its corrupted." |
|
1094 |
||
1095 |
" |
|
1096 |
MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar |
|
1097 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp |
|
1098 |
" |
|
1099 |
||
1100 |
<resource: #menu> |
|
1101 |
||
1102 |
^ |
|
1103 |
||
1104 |
#(#Menu |
|
1105 |
||
1106 |
#( |
|
1107 |
#(#MenuItem |
|
1108 |
#'label:' 'Run' |
|
1109 |
#'isButton:' true |
|
1110 |
#'value:' #doStartApplication |
|
1111 |
#'labelImage:' #(#ResourceRetriever nil #runIcon) |
|
1112 |
) |
|
1113 |
#(#MenuItem |
|
1114 |
#'label:' '-' |
|
1115 |
) |
|
1116 |
#(#MenuItem |
|
1117 |
#'label:' 'New' |
|
1118 |
#'isButton:' true |
|
1119 |
#'value:' #doNew |
|
1120 |
#'labelImage:' #(#ResourceRetriever nil #newIcon) |
|
1121 |
) |
|
1122 |
#(#MenuItem |
|
1123 |
#'label:' 'Load' |
|
1124 |
#'isButton:' true |
|
1125 |
#'value:' #doFromClass |
|
1126 |
#'labelImage:' #(#ResourceRetriever nil #loadIcon) |
|
1127 |
) |
|
1128 |
#(#MenuItem |
|
1129 |
#'label:' 'Save' |
|
1130 |
#'isButton:' true |
|
1131 |
#'value:' #doInstallSpec |
|
1132 |
#'labelImage:' #(#ResourceRetriever nil #saveIcon) |
|
1133 |
) |
|
1134 |
#(#MenuItem |
|
1135 |
#'label:' '-' |
|
1136 |
) |
|
1137 |
#(#MenuItem |
|
1138 |
#'label:' 'stepUp' |
|
1139 |
#'isButton:' true |
|
1140 |
#'value:' #doStepUp |
|
1141 |
#'enabled:' #enabledStepOver |
|
1142 |
#'labelImage:' #(#ResourceRetriever nil #upIcon) |
|
1143 |
) |
|
1144 |
#(#MenuItem |
|
1145 |
#'label:' 'stepDown' |
|
1146 |
#'isButton:' true |
|
1147 |
#'value:' #doStepDown |
|
1148 |
#'enabled:' #enabledStepOver |
|
1149 |
#'labelImage:' #(#ResourceRetriever nil #downIcon) |
|
1150 |
) |
|
1151 |
#(#MenuItem |
|
1152 |
#'label:' 'stepIn' |
|
1153 |
#'isButton:' true |
|
1154 |
#'value:' #doStepIn |
|
1155 |
#'enabled:' #enabledStepIn |
|
1156 |
#'labelImage:' #(#ResourceRetriever nil #downRightIcon) |
|
1157 |
) |
|
1158 |
#(#MenuItem |
|
1159 |
#'label:' 'stepOut' |
|
1160 |
#'isButton:' true |
|
1161 |
#'value:' #doStepOut |
|
1162 |
#'enabled:' #enabledStepOut |
|
1163 |
#'labelImage:' #(#ResourceRetriever nil #leftDownIcon) |
|
1164 |
) |
|
1165 |
#(#MenuItem |
|
1166 |
#'label:' '-' |
|
1167 |
) |
|
1168 |
#(#MenuItem |
|
217 | 1169 |
#'label:' 'align left' |
437 | 1170 |
#'isButton:' true |
217 | 1171 |
#'value:' #alignSelectionLeft |
287 | 1172 |
#'activeHelpKey:' #alignSelectionLeft |
437 | 1173 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignL) |
217 | 1174 |
) |
1175 |
#(#MenuItem |
|
1176 |
#'label:' 'align right' |
|
437 | 1177 |
#'isButton:' true |
217 | 1178 |
#'value:' #alignSelectionRight |
1179 |
#'activeHelpKey:' #alignSelectionRight |
|
437 | 1180 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignR) |
217 | 1181 |
) |
1182 |
#(#MenuItem |
|
1183 |
#'label:' 'align left & right' |
|
437 | 1184 |
#'isButton:' true |
217 | 1185 |
#'value:' #alignSelectionLeftAndRight |
1186 |
#'activeHelpKey:' #alignSelectionLeftAndRight |
|
437 | 1187 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignLR) |
1188 |
) |
|
1189 |
#(#MenuItem |
|
217 | 1190 |
#'label:' 'align top' |
437 | 1191 |
#'isButton:' true |
217 | 1192 |
#'value:' #alignSelectionTop |
1193 |
#'activeHelpKey:' #alignSelectionTop |
|
437 | 1194 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignT) |
217 | 1195 |
) |
1196 |
#(#MenuItem |
|
1197 |
#'label:' 'align bottom' |
|
437 | 1198 |
#'isButton:' true |
217 | 1199 |
#'value:' #alignSelectionBottom |
1200 |
#'activeHelpKey:' #alignSelectionBottom |
|
437 | 1201 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignB) |
217 | 1202 |
) |
1203 |
#(#MenuItem |
|
1204 |
#'label:' 'align top & bottom' |
|
437 | 1205 |
#'isButton:' true |
217 | 1206 |
#'value:' #alignSelectionTopAndBottom |
1207 |
#'activeHelpKey:' #alignSelectionTopAndBottom |
|
437 | 1208 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignTB) |
1209 |
) |
|
1210 |
#(#MenuItem |
|
1211 |
#'label:' '-' |
|
217 | 1212 |
) |
1213 |
#(#MenuItem |
|
1214 |
#'label:' 'align centered horizontal' |
|
437 | 1215 |
#'isButton:' true |
217 | 1216 |
#'value:' #alignSelectionCenterHor |
1217 |
#'activeHelpKey:' #alignSelectionCenterHor |
|
437 | 1218 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignCenterH) |
217 | 1219 |
) |
1220 |
#(#MenuItem |
|
1221 |
#'label:' 'align centered vertical' |
|
437 | 1222 |
#'isButton:' true |
217 | 1223 |
#'value:' #alignSelectionCenterVer |
1224 |
#'activeHelpKey:' #alignSelectionCenterVer |
|
437 | 1225 |
#'labelImage:' #(#ResourceRetriever nil #iconAlignCenterV) |
217 | 1226 |
) |
437 | 1227 |
) nil |
217 | 1228 |
nil |
1229 |
) |
|
446 | 1230 |
! ! |
1231 |
||
1232 |
!UIPainter class methodsFor:'resources'! |
|
1233 |
||
1234 |
iconAlignB |
|
490 | 1235 |
"Generated by the Image Editor" |
1236 |
" |
|
1237 |
ImageEditor openOnClass:self andSelector:#iconAlignB |
|
1238 |
" |
|
446 | 1239 |
|
1240 |
<resource: #image> |
|
490 | 1241 |
|
1242 |
^Icon |
|
1243 |
constantNamed:#'UIPainter iconAlignB' |
|
1244 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@'); yourself); yourself]! |
|
446 | 1245 |
|
1246 |
iconAlignCenterH |
|
490 | 1247 |
"Generated by the Image Editor" |
1248 |
" |
|
1249 |
ImageEditor openOnClass:self andSelector:#iconAlignCenterH |
|
1250 |
" |
|
446 | 1251 |
|
1252 |
<resource: #image> |
|
490 | 1253 |
|
1254 |
^Icon |
|
1255 |
constantNamed:#'UIPainter iconAlignCenterH' |
|
1256 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUUUUUUPV*****)PV*****)PUUUMUUUPUUT?UUUPUUS?5UU\UUO?=UUWUT???UUPUTUUUUUPUUUUUUUPV*****)PV*****)PUUUMUUUPUUT?UUUPUUS?5UUPUUO?=UUPUT???UUWUTUUUUUPUUUUUUUPUUUUUUUP'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:49.9962)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BO??0O??0@G@@@O @@_0@@?8@A?<@A?<@@@@@O??0O??3@G@@@O @@_0@@?8@A?<@A?<@@@@@@@@@'); yourself); yourself]! |
|
446 | 1257 |
|
1258 |
iconAlignCenterV |
|
490 | 1259 |
"Generated by the Image Editor" |
1260 |
" |
|
1261 |
ImageEditor openOnClass:self andSelector:#iconAlignCenterV |
|
1262 |
" |
|
446 | 1263 |
|
1264 |
<resource: #image> |
|
490 | 1265 |
|
1266 |
^Icon |
|
1267 |
constantNamed:#'UIPainter iconAlignCenterV' |
|
1268 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUPUUUUUUUPUUV%UV%PUUV%UV%PUUV%UV%PTEV$EV%PT=V$=V%PT?V$?V%PT?6$?6%WT?>$?>%PT?>$?>%_T?6$?6%PT?V$?V%PT=V$=V%PT5V$5V%WUUV%UV%PUUV%UV%PUUV%UV%_UUV%UV%WUUV%UV%PUUUUUUUPUUUUUUUQ'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:49.9962)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@LA!!@LA @LA LM!! NM1 OM9 O-= O=? O=? O=? O-= OM9 NM1 DL!!#@LA @LA @LA @LA @@@C@@@@'); yourself); yourself]! |
|
446 | 1269 |
|
1270 |
iconAlignL |
|
490 | 1271 |
"Generated by the Image Editor" |
1272 |
" |
|
1273 |
ImageEditor openOnClass:self andSelector:#iconAlignL |
|
1274 |
" |
|
446 | 1275 |
|
1276 |
<resource: #image> |
|
490 | 1277 |
|
1278 |
^Icon |
|
1279 |
constantNamed:#'UIPainter iconAlignL' |
|
1280 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@'); yourself); yourself]! |
|
446 | 1281 |
|
1282 |
iconAlignLR |
|
490 | 1283 |
"Generated by the Image Editor" |
1284 |
" |
|
1285 |
ImageEditor openOnClass:self andSelector:#iconAlignLR |
|
1286 |
" |
|
446 | 1287 |
|
1288 |
<resource: #image> |
|
490 | 1289 |
|
1290 |
^Icon |
|
1291 |
constantNamed:#'UIPainter iconAlignLR' |
|
1292 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@'); yourself); yourself]! |
|
446 | 1293 |
|
1294 |
iconAlignR |
|
490 | 1295 |
"Generated by the Image Editor" |
1296 |
" |
|
1297 |
ImageEditor openOnClass:self andSelector:#iconAlignR |
|
1298 |
" |
|
446 | 1299 |
|
1300 |
<resource: #image> |
|
490 | 1301 |
|
1302 |
^Icon |
|
1303 |
constantNamed:#'UIPainter iconAlignR' |
|
1304 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@'); yourself); yourself]! |
|
446 | 1305 |
|
1306 |
iconAlignT |
|
490 | 1307 |
"Generated by the Image Editor" |
1308 |
" |
|
1309 |
ImageEditor openOnClass:self andSelector:#iconAlignT |
|
1310 |
" |
|
446 | 1311 |
|
1312 |
<resource: #image> |
|
490 | 1313 |
|
1314 |
^Icon |
|
1315 |
constantNamed:#'UIPainter iconAlignT' |
|
1316 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@'); yourself); yourself]! |
|
446 | 1317 |
|
1318 |
iconAlignTB |
|
490 | 1319 |
"Generated by the Image Editor" |
1320 |
" |
|
1321 |
ImageEditor openOnClass:self andSelector:#iconAlignTB |
|
1322 |
" |
|
446 | 1323 |
|
1324 |
<resource: #image> |
|
490 | 1325 |
|
1326 |
^Icon |
|
1327 |
constantNamed:#'UIPainter iconAlignTB' |
|
1328 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color red:0.0 green:0.0 blue:49.9962)); at:4 put:((Color grey:66.9978)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@'); yourself); yourself]! ! |
|
222 | 1329 |
|
109 | 1330 |
!UIPainter methodsFor:'actions'! |
60 | 1331 |
|
109 | 1332 |
accept |
282 | 1333 |
"accept changes done to the specification. The component assigned to the |
1334 |
specification will change immediately dependant on the attributes derived |
|
1335 |
from the specification. |
|
1336 |
" |
|
287 | 1337 |
|layout spec prop key layoutTool| |
60 | 1338 |
|
166 | 1339 |
self isLayoutToolSelected ifTrue:[ |
287 | 1340 |
layoutTool := self layoutTool. |
1341 |
||
144 | 1342 |
(layout := layoutTool layout) notNil ifTrue:[ |
1343 |
layoutTool layoutType == #Extent ifTrue:[ |
|
282 | 1344 |
layoutTool layoutView == self painter topView ifTrue:[ |
1345 |
layoutTool layoutView extent:layout |
|
1346 |
] ifFalse:[ |
|
1347 |
self painter setExtent:layout |
|
1348 |
] |
|
144 | 1349 |
] ifFalse:[ |
149 | 1350 |
self painter setLayout:layout |
109 | 1351 |
] |
144 | 1352 |
] |
1353 |
] ifFalse:[ |
|
287 | 1354 |
spec := self specTool specification. |
1355 |
||
166 | 1356 |
self isHelpToolSelected ifTrue:[ |
287 | 1357 |
self helpTool accept. |
1358 |
key := self helpTool helpKey. |
|
1359 |
prop := treeView propertySelected. |
|
1360 |
||
1361 |
prop notNil ifTrue:[ |
|
1362 |
prop spec activeHelpKey:key |
|
1363 |
]. |
|
1364 |
spec activeHelpKey:key. |
|
1365 |
] ifFalse:[ |
|
1366 |
self painter updateFromSpec:spec. |
|
1367 |
] |
|
144 | 1368 |
]. |
166 | 1369 |
self modifiedChannel value:false. |
109 | 1370 |
! |
1371 |
||
1372 |
cancel |
|
282 | 1373 |
"cancel all changes done to the specification; reread attributes from the |
1374 |
assigned component |
|
109 | 1375 |
" |
328 | 1376 |
|spec key view| |
287 | 1377 |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
1378 |
self isModified ifTrue:[ |
287 | 1379 |
(spec := self painter specForSelection) notNil ifTrue:[ |
1380 |
key := spec activeHelpKey. |
|
1381 |
]. |
|
1382 |
self helpTool helpKey:key. |
|
1383 |
self specTool specification:spec. |
|
328 | 1384 |
view := self layoutTool layoutView. |
1385 |
||
1386 |
self setViewInLayoutTool:view. |
|
1387 |
spec class == DataSetSpec ifTrue:[ |
|
1388 |
view columnDescriptors:(spec columns) |
|
1389 |
]. |
|
166 | 1390 |
self modifiedChannel value:false. |
1391 |
] |
|
137 | 1392 |
! |
1393 |
||
282 | 1394 |
moveSelectionDown |
1395 |
"move selected components down |
|
1396 |
" |
|
1397 |
self painter moveSelectionDown |
|
1398 |
! |
|
1399 |
||
1400 |
moveSelectionLeft |
|
1401 |
"move selected components left |
|
1402 |
" |
|
1403 |
self painter moveSelectionLeft |
|
1404 |
||
1405 |
! |
|
1406 |
||
1407 |
moveSelectionRight |
|
1408 |
"move selected components right |
|
1409 |
" |
|
1410 |
self painter moveSelectionRight |
|
1411 |
||
1412 |
! |
|
1413 |
||
1414 |
moveSelectionUp |
|
1415 |
"move selected components up |
|
1416 |
" |
|
1417 |
self painter moveSelectionUp |
|
1418 |
||
1419 |
! |
|
1420 |
||
328 | 1421 |
openDataSetColumnEditor |
1422 |
"opens a column editor |