author | tz |
Wed, 25 Feb 1998 23:26:47 +0100 | |
changeset 680 | 49c81e9cc6f7 |
parent 657 | 34728d455e7b |
child 685 | f8114ec98a82 |
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' |
564 | 25 |
classVariableNames:'' |
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:] |
542 | 61 |
Claus Gittinger, eXept Software AG |
62 |
Claus Atzkern, eXept Software AG |
|
156 | 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 |
498 | 121 |
'Writes back changes.' |
466 | 122 |
|
123 |
#alignSelectionBottom |
|
498 | 124 |
'Aligns selected widgets to the bottom edge of the dominant widget.' |
466 | 125 |
|
126 |
#alignSelectionCenterHor |
|
498 | 127 |
'Aligns selected widgets vertical to the center of the dominant widget.' |
466 | 128 |
|
129 |
#alignSelectionCenterVer |
|
498 | 130 |
'Aligns selected widgets horizontal to the center of the dominant widget.' |
466 | 131 |
|
132 |
#alignSelectionLeft |
|
498 | 133 |
'Aligns selected widgets to the left edge of the dominant widget.' |
466 | 134 |
|
135 |
#alignSelectionLeftAndRight |
|
498 | 136 |
'Aligns selected widgets to the right and left edge of the dominant widget.' |
466 | 137 |
|
138 |
#alignSelectionRight |
|
498 | 139 |
'Aligns selected widgets to the right edge of the dominant widget.' |
466 | 140 |
|
141 |
#alignSelectionTop |
|
498 | 142 |
'Aligns selected widgets to the top edge of the dominant widget.' |
466 | 143 |
|
144 |
#alignSelectionTopAndBottom |
|
498 | 145 |
'Aligns selected widgets to the top and bottom edge of the dominant widget.' |
466 | 146 |
|
147 |
#cancel |
|
498 | 148 |
'Rereads specification and layout.' |
466 | 149 |
|
150 |
#centerSelectionHor |
|
498 | 151 |
'Centers widgets horizontal to their top widget.' |
466 | 152 |
|
153 |
#centerSelectionVer |
|
498 | 154 |
'Centers vertical horizontal in contained view.' |
466 | 155 |
|
156 |
#copyExtent |
|
498 | 157 |
'Copies extent of the selected widget.' |
466 | 158 |
|
159 |
#copyLayout |
|
498 | 160 |
'Copies layout of the selected widget.' |
161 |
||
162 |
#fileLoad |
|
163 |
'Opens dialog to load an interface from a class.' |
|
164 |
||
533 | 165 |
#fileLoadSubspec |
166 |
'Opens dialog to load an subspec interface from a class.' |
|
167 |
||
498 | 168 |
#fileNew |
169 |
'Creates new interface.' |
|
170 |
||
171 |
#filePickAnInterface |
|
172 |
'Changes the cursor for moving it over another view to load its interface.' |
|
173 |
||
174 |
#fileSave |
|
175 |
'Saves current interface.' |
|
295 | 176 |
|
282 | 177 |
#galleryShown |
498 | 178 |
'Shows or hide gallery view.' |
282 | 179 |
|
466 | 180 |
#menuAlignment |
498 | 181 |
'Provides a set of alignment operation on the current selected widgets.' |
282 | 182 |
|
466 | 183 |
#moveSelectionDown |
498 | 184 |
'Moves selected widgets down.' |
466 | 185 |
|
186 |
#moveSelectionLeft |
|
498 | 187 |
'Moves selected widgets out of parent widget.' |
287 | 188 |
|
189 |
#moveSelectionRight |
|
498 | 190 |
'Moves selected widgets into next widget as child.' |
287 | 191 |
|
466 | 192 |
#moveSelectionUp |
498 | 193 |
'Moves selected widgets up.' |
287 | 194 |
|
195 |
#painterShown |
|
498 | 196 |
'Shows or hide painter view.' |
287 | 197 |
|
466 | 198 |
#pasteBuffer |
498 | 199 |
'Pastes widgets at current mouse position.' |
466 | 200 |
|
287 | 201 |
#pasteExtent |
498 | 202 |
'Changes extent of all selected widgets to the last copied extent.' |
287 | 203 |
|
204 |
#pasteHeight |
|
498 | 205 |
'Changes height of all selected widgets to the last copied extent height.' |
287 | 206 |
|
207 |
#pasteLayout |
|
498 | 208 |
'Changes layout of all selected widgets to the last copied layout.' |
287 | 209 |
|
466 | 210 |
#pasteWidth |
498 | 211 |
'Changes width of all selected widgets to the last copied extent width.' |
466 | 212 |
|
213 |
#pasteWithLayout |
|
498 | 214 |
'Pastes widgets without changing their layouts.' |
466 | 215 |
|
216 |
#setToDefaultExtent |
|
498 | 217 |
'Sets selected widgets to their default extent.' |
466 | 218 |
|
219 |
#setToDefaultHeight |
|
498 | 220 |
'Sets selected widgets to their default height.' |
466 | 221 |
|
222 |
#setToDefaultWidth |
|
498 | 223 |
'Sets selected widgets to their default width.' |
287 | 224 |
|
225 |
#spreadSelectionHor |
|
498 | 226 |
'Sets horizontal spaces between selected widgets as the same.' |
287 | 227 |
|
466 | 228 |
#spreadSelectionVer |
498 | 229 |
'Sets vertical spaces between selected widgets as the same.' |
230 |
||
231 |
#testStartApplication |
|
232 |
'Starts current application on loaded interface.' |
|
194 | 233 |
|
193 | 234 |
) |
235 |
! ! |
|
236 |
||
297 | 237 |
!UIPainter class methodsFor:'helpers'! |
238 |
||
368 | 239 |
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed |
297 | 240 |
"converts a string to a string collection with maximum characters |
241 |
per line |
|
242 |
" |
|
243 |
|stream |
|
244 |
max "{ Class:SmallInteger }" |
|
245 |
size "{ Class:SmallInteger }" |
|
246 |
start "{ Class:SmallInteger }" |
|
247 |
stop "{ Class:SmallInteger }" |
|
248 |
cpySz "{ Class:SmallInteger }" |
|
542 | 249 |
lnSz "{ Class:SmallInteger }" |
250 |
atBeginOfLine| |
|
297 | 251 |
|
252 |
maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1] |
|
253 |
ifTrue:[max := 20]. |
|
254 |
||
255 |
(size := aString size) <= max ifTrue:[ |
|
256 |
^ aString |
|
257 |
]. |
|
258 |
start := 1. |
|
259 |
lnSz := 0. |
|
260 |
stream := (String new:size) writeStream. |
|
261 |
||
542 | 262 |
atBeginOfLine := true. |
263 |
||
297 | 264 |
[start <= size] whileTrue:[ |
265 |
(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[ |
|
266 |
^ stream contents |
|
267 |
]. |
|
368 | 268 |
(aString at:start) == $\ ifTrue:[ |
269 |
skipLineFeed ifFalse:[ |
|
270 |
stream nextPut:$\ |
|
271 |
]. |
|
272 |
start := start + 1. |
|
273 |
stream cr. |
|
274 |
start := start + 1. |
|
275 |
lnSz := 0. |
|
276 |
] ifFalse:[ |
|
277 |
(stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[ |
|
542 | 278 |
stop := size + 1 |
368 | 279 |
]. |
280 |
(aString at:(stop - 1)) == $\ ifTrue:[ |
|
281 |
stop := stop - 1 |
|
282 |
]. |
|
283 |
cpySz := stop - start. |
|
284 |
||
285 |
lnSz == 0 ifFalse:[ |
|
542 | 286 |
(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr. lnSz := cpySz. atBeginOfLine := true. ] |
368 | 287 |
ifFalse:[stream space. lnSz := lnSz + 1] |
288 |
] ifTrue:[ |
|
289 |
lnSz := cpySz |
|
290 |
]. |
|
291 |
stream nextPutAll:aString startingAt:start to:(stop - 1). |
|
292 |
start := stop. |
|
293 |
] |
|
297 | 294 |
]. |
295 |
^ stream contents |
|
542 | 296 |
|
297 |
"Modified: / 1.2.1998 / 14:42:56 / cg" |
|
297 | 298 |
! ! |
299 |
||
60 | 300 |
!UIPainter class methodsFor:'interface specs'! |
301 |
||
366 | 302 |
gridParametersSpec |
303 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
304 |
||
305 |
"do not manually edit this - the painter/builder may not be able to |
|
306 |
handle the specification if its corrupted." |
|
307 |
||
308 |
" |
|
309 |
UIPainter new openOnClass:UIPainter andSelector:#gridParametersSpec |
|
310 |
UIPainter new openInterface:#gridParametersSpec |
|
311 |
" |
|
312 |
||
313 |
<resource: #canvas> |
|
314 |
||
315 |
^ |
|
446 | 316 |
|
366 | 317 |
#(#FullSpec |
318 |
#'window:' |
|
319 |
#(#WindowSpec |
|
527 | 320 |
#'name:' 'GUI Builder' |
321 |
#'layout:' #(#LayoutFrame 44 0 416 0 325 0 613 0) |
|
322 |
#'label:' 'GUI Builder' |
|
366 | 323 |
#'min:' #(#Point 10 10) |
324 |
#'max:' #(#Point 1280 1024) |
|
527 | 325 |
#'bounds:' #(#Rectangle 44 416 326 614) |
446 | 326 |
#'usePreferredExtent:' false |
366 | 327 |
) |
328 |
#'component:' |
|
329 |
#(#SpecCollection |
|
330 |
#'collection:' |
|
331 |
#( |
|
527 | 332 |
#(#FramedBoxSpec |
333 |
#'name:' 'framedBox' |
|
334 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
335 |
#'component:' |
|
336 |
#(#SpecCollection |
|
337 |
#'collection:' |
|
338 |
#( |
|
339 |
#(#CheckBoxSpec |
|
340 |
#'name:' 'show' |
|
341 |
#'layout:' #(#Point 23 24) |
|
342 |
#'model:' #showGrid |
|
343 |
#'label:' 'Show grid' |
|
344 |
) |
|
345 |
#(#CheckBoxSpec |
|
346 |
#'name:' 'align' |
|
347 |
#'layout:' #(#Point 23 52) |
|
348 |
#'model:' #alignToGrid |
|
349 |
#'label:' 'Align to Grid' |
|
350 |
) |
|
351 |
#(#LabelSpec |
|
352 |
#'name:' 'hrzLabel' |
|
353 |
#'layout:' #(#AlignmentOrigin 148 0 99 0 1 0.5) |
|
354 |
#'label:' 'Horizontal Pixels:' |
|
355 |
#'adjust:' #right |
|
356 |
#'resizeForLabel:' true |
|
357 |
) |
|
358 |
#(#InputFieldSpec |
|
359 |
#'name:' 'hrzField' |
|
360 |
#'layout:' #(#LayoutFrame 154 0 87 0 207 0 109 0) |
|
361 |
#'model:' #hspace |
|
362 |
#'type:' #numberOrNil |
|
363 |
) |
|
364 |
#(#LabelSpec |
|
365 |
#'name:' 'vrtLabel' |
|
366 |
#'layout:' #(#AlignmentOrigin 149 0 124 0 1 0.5) |
|
367 |
#'label:' 'Vertical Pixels:' |
|
368 |
#'adjust:' #right |
|
369 |
#'resizeForLabel:' true |
|
370 |
) |
|
371 |
#(#InputFieldSpec |
|
372 |
#'name:' 'vrtField' |
|
373 |
#'layout:' #(#LayoutFrame 154 0 112 0 207 0 134 0) |
|
374 |
#'model:' #vspace |
|
375 |
#'type:' #numberOrNil |
|
376 |
) |
|
377 |
) |
|
378 |
) |
|
379 |
#'label:' 'Grid Parameter' |
|
380 |
#'labelPosition:' #topLeft |
|
366 | 381 |
) |
446 | 382 |
#(#UISubSpecification |
383 |
#'name:' 'uISubSpecifica1' |
|
384 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
385 |
#'majorKey:' #ToolApplicationModel |
|
386 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
366 | 387 |
) |
388 |
) |
|
389 |
) |
|
390 |
) |
|
391 |
! |
|
392 |
||
222 | 393 |
nameAndSelectorSpec |
394 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
395 |
||
396 |
"do not manually edit this - the painter/builder may not be able to |
|
397 |
handle the specification if its corrupted." |
|
398 |
||
399 |
" |
|
400 |
UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec |
|
401 |
UIPainter new openInterface:#nameAndSelectorSpec |
|
402 |
" |
|
403 |
||
404 |
<resource: #canvas> |
|
405 |
||
406 |
^ |
|
407 |
||
408 |
#(#FullSpec |
|
409 |
#'window:' |
|
410 |
#(#WindowSpec |
|
527 | 411 |
#'name:' 'GUI Builder' |
538 | 412 |
#'layout:' #(#LayoutFrame 238 0 270 0 584 0 429 0) |
527 | 413 |
#'label:' 'GUI Builder' |
446 | 414 |
#'min:' #(#Point 10 10) |
415 |
#'max:' #(#Point 1152 900) |
|
538 | 416 |
#'bounds:' #(#Rectangle 238 270 585 430) |
446 | 417 |
#'usePreferredExtent:' false |
222 | 418 |
) |
419 |
#'component:' |
|
420 |
#(#SpecCollection |
|
421 |
#'collection:' |
|
422 |
#( |
|
527 | 423 |
#(#FramedBoxSpec |
424 |
#'name:' 'framedBox1' |
|
425 |
#'layout:' #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
426 |
#'component:' |
|
427 |
#(#SpecCollection |
|
428 |
#'collection:' |
|
429 |
#( |
|
430 |
#(#LabelSpec |
|
431 |
#'name:' 'selectorLabel' |
|
538 | 432 |
#'layout:' #(#AlignmentOrigin 77 0.11 39 0 1 0.5) |
527 | 433 |
#'label:' 'Selector:' |
434 |
#'adjust:' #right |
|
435 |
#'resizeForLabel:' true |
|
436 |
) |
|
437 |
#(#InputFieldSpec |
|
438 |
#'name:' 'methodNameField' |
|
538 | 439 |
#'layout:' #(#LayoutFrame 80 0.11 28 0 14 1.0 50 0) |
527 | 440 |
#'tabable:' true |
441 |
#'model:' #methodNameChannel |
|
442 |
) |
|
443 |
#(#LabelSpec |
|
444 |
#'name:' 'classLabel' |
|
538 | 445 |
#'layout:' #(#AlignmentOrigin 77 0.11 64 0 1 0.5) |
527 | 446 |
#'label:' 'Class:' |
447 |
#'adjust:' #right |
|
448 |
#'resizeForLabel:' true |
|
449 |
) |
|
450 |
#(#InputFieldSpec |
|
451 |
#'name:' 'classNameField' |
|
538 | 452 |
#'layout:' #(#LayoutFrame 80 0.11 53 0 14 1.0 75 0) |
527 | 453 |
#'tabable:' true |
454 |
#'model:' #classNameChannel |
|
455 |
) |
|
456 |
#(#LabelSpec |
|
457 |
#'name:' 'superClassLabel' |
|
538 | 458 |
#'layout:' #(#AlignmentOrigin 77 0.11 89 0 1 0.5) |
527 | 459 |
#'label:' 'Superclass:' |
460 |
#'adjust:' #right |
|
461 |
#'resizeForLabel:' true |
|
462 |
) |
|
463 |
#(#ComboBoxSpec |
|
464 |
#'name:' 'superclassNameComboBox' |
|
538 | 465 |
#'layout:' #(#LayoutFrame 80 0.11 78 0 14 1.0 100 0) |
527 | 466 |
#'tabable:' true |
467 |
#'model:' #superclassNameChannel |
|
468 |
#'comboList:' #superclassNameDefaults |
|
469 |
) |
|
470 |
) |
|
471 |
) |
|
472 |
#'label:' 'Class and selector for interface' |
|
473 |
#'labelPosition:' #topLeft |
|
222 | 474 |
) |
446 | 475 |
#(#UISubSpecification |
476 |
#'name:' 'uISubSpecifica1' |
|
477 |
#'layout:' #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
478 |
#'majorKey:' #ToolApplicationModel |
|
479 |
#'minorKey:' #windowSpecForCommitWithoutChannels |
|
222 | 480 |
) |
481 |
) |
|
482 |
) |
|
483 |
) |
|
484 |
! |
|
485 |
||
486 |
windowSpec |
|
487 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
488 |
||
489 |
"do not manually edit this - the painter/builder may not be able to |
|
490 |
handle the specification if its corrupted." |
|
491 |
||
492 |
" |
|
493 |
UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
|
494 |
UIPainter new openInterface:#windowSpec |
|
495 |
" |
|
496 |
"UIPainter open" |
|
497 |
||
498 |
<resource: #canvas> |
|
499 |
||
500 |
^ |
|
501 |
||
502 |
#(#FullSpec |
|
503 |
#'window:' |
|
504 |
#(#WindowSpec |
|
282 | 505 |
#'name:' 'Tree-View' |
572 | 506 |
#'layout:' #(#LayoutFrame 340 0 328 0 892 0 853 0) |
222 | 507 |
#'label:' 'Tree-View' |
282 | 508 |
#'min:' #(#Point 10 10) |
509 |
#'max:' #(#Point 1160 870) |
|
572 | 510 |
#'bounds:' #(#Rectangle 340 328 893 854) |
446 | 511 |
#'menu:' #menu |
375 | 512 |
#'usePreferredExtent:' false |
222 | 513 |
) |
514 |
#'component:' |
|
515 |
#(#SpecCollection |
|
516 |
#'collection:' |
|
517 |
#( |
|
518 |
#(#MenuPanelSpec |
|
446 | 519 |
#'name:' 'menuToolbarView' |
520 |
#'layout:' #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0) |
|
222 | 521 |
#'tabable:' true |
446 | 522 |
#'menu:' #menuToolbar |
523 |
#'showSeparatingLines:' true |
|
222 | 524 |
) |
297 | 525 |
#(#VariableVerticalPanelSpec |
526 |
#'name:' 'vpanel' |
|
572 | 527 |
#'layout:' #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
297 | 528 |
#'component:' |
529 |
#(#SpecCollection |
|
530 |
#'collection:' |
|
531 |
#( |
|
532 |
#(#VariableHorizontalPanelSpec |
|
533 |
#'name:' 'hpanel' |
|
534 |
#'component:' |
|
535 |
#(#SpecCollection |
|
536 |
#'collection:' |
|
537 |
#( |
|
538 |
#(#ArbitraryComponentSpec |
|
539 |
#'name:' 'treeView' |
|
375 | 540 |
#'tabable:' true |
446 | 541 |
#'menu:' #menuEdit |
297 | 542 |
#'hasHorizontalScrollBar:' true |
543 |
#'hasVerticalScrollBar:' true |
|
544 |
#'miniScrollerHorizontal:' true |
|
545 |
#'miniScrollerVertical:' true |
|
546 |
#'component:' #treeView |
|
547 |
#'hasBorder:' false |
|
548 |
) |
|
549 |
#(#ViewSpec |
|
550 |
#'name:' 'specHolderView' |
|
551 |
#'component:' |
|
552 |
#(#SpecCollection |
|
553 |
#'collection:' |
|
554 |
#( |
|
564 | 555 |
#(#ViewSpec |
556 |
#'name:' 'View' |
|
557 |
#'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 28 0) |
|
446 | 558 |
#'component:' |
559 |
#(#SpecCollection |
|
560 |
#'collection:' |
|
561 |
#( |
|
564 | 562 |
#(#HorizontalPanelViewSpec |
563 |
#'name:' 'panelViewButtons' |
|
564 |
#'layout:' #(#LayoutFrame 0 0.0 2 0 0 0.5 26 0) |
|
565 |
#'component:' |
|
566 |
#(#SpecCollection |
|
567 |
#'collection:' |
|
568 |
#( |
|
569 |
#(#CheckBoxSpec |
|
570 |
#'name:' 'checkBox1' |
|
571 |
#'model:' #galleryShown |
|
572 |
#'label:' 'Gallery' |
|
573 |
#'extent:' #(#Point 82 22) |
|
574 |
) |
|
575 |
#(#CheckBoxSpec |
|
576 |
#'name:' 'checkBox2' |
|
577 |
#'model:' #painterShown |
|
578 |
#'label:' 'Canvas' |
|
579 |
#'extent:' #(#Point 119 22) |
|
580 |
) |
|
581 |
) |
|
582 |
) |
|
583 |
#'horizontalLayout:' #left |
|
584 |
#'verticalLayout:' #top |
|
585 |
#'horizontalSpace:' 4 |
|
586 |
#'verticalSpace:' 4 |
|
446 | 587 |
) |
564 | 588 |
#(#HorizontalPanelViewSpec |
589 |
#'name:' 'horizontalPanelView1' |
|
590 |
#'layout:' #(#LayoutFrame 0 0.5 2 0 0 1.0 26 0) |
|
591 |
#'component:' |
|
592 |
#(#SpecCollection |
|
593 |
#'collection:' |
|
594 |
#( |
|
595 |
#(#ArrowButtonSpec |
|
596 |
#'name:' 'arrowButton1' |
|
597 |
#'activeHelpKey:' #moveSelectionLeft |
|
598 |
#'tabable:' true |
|
599 |
#'model:' #moveSelectionLeft |
|
600 |
#'enableChannel:' #canMoveOrAlignSelection |
|
601 |
#'isTriggerOnDown:' true |
|
602 |
#'direction:' #left |
|
603 |
#'extent:' #(#Point 22 22) |
|
604 |
) |
|
605 |
#(#ArrowButtonSpec |
|
606 |
#'name:' 'arrowButton2' |
|
607 |
#'activeHelpKey:' #moveSelectionRight |
|
608 |
#'model:' #moveSelectionRight |
|
609 |
#'enableChannel:' #canMoveOrAlignSelection |
|
610 |
#'isTriggerOnDown:' true |
|
611 |
#'direction:' #right |
|
612 |
#'extent:' #(#Point 22 22) |
|
613 |
) |
|
614 |
#(#ArrowButtonSpec |
|
615 |
#'name:' 'arrowButton3' |
|
616 |
#'activeHelpKey:' #moveSelectionDown |
|
617 |
#'model:' #moveSelectionDown |
|
618 |
#'enableChannel:' #canMoveOrAlignSelection |
|
619 |
#'isTriggerOnDown:' true |
|
620 |
#'direction:' #down |
|
621 |
#'extent:' #(#Point 22 22) |
|
622 |
) |
|
623 |
#(#ArrowButtonSpec |
|
624 |
#'name:' 'arrowButton4' |
|
625 |
#'activeHelpKey:' #moveSelectionUp |
|
626 |
#'model:' #moveSelectionUp |
|
627 |
#'enableChannel:' #canMoveOrAlignSelection |
|
628 |
#'isTriggerOnDown:' true |
|
629 |
#'direction:' #up |
|
630 |
#'extent:' #(#Point 22 22) |
|
631 |
) |
|
632 |
) |
|
633 |
) |
|
634 |
#'horizontalLayout:' #right |
|
635 |
#'verticalLayout:' #top |
|
636 |
#'horizontalSpace:' 4 |
|
637 |
#'verticalSpace:' 4 |
|
547 | 638 |
) |
446 | 639 |
) |
640 |
) |
|
641 |
#'level:' 1 |
|
642 |
) |
|
547 | 643 |
#(#NoteBookViewSpec |
644 |
#'name:' 'noteBook' |
|
564 | 645 |
#'layout:' #(#LayoutFrame 0 0.0 29 0.0 0 1.0 -30 1.0) |
547 | 646 |
#'enableChannel:' #enableChannel |
647 |
#'tabable:' true |
|
648 |
#'model:' #tabModel |
|
649 |
#'menu:' #tabList |
|
650 |
#'style:' #(#FontDescription #helvetica #medium #roman 10) |
|
651 |
#'canvas:' #noteBookView |
|
652 |
) |
|
653 |
#(#HorizontalPanelViewSpec |
|
654 |
#'name:' 'modifyPanel' |
|
655 |
#'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0) |
|
656 |
#'component:' |
|
657 |
#(#SpecCollection |
|
658 |
#'collection:' |
|
659 |
#( |
|
660 |
#(#ActionButtonSpec |
|
661 |
#'name:' 'cancelButton' |
|
662 |
#'activeHelpKey:' #cancel |
|
663 |
#'label:' 'Cancel' |
|
664 |
#'tabable:' true |
|
665 |
#'model:' #cancel |
|
666 |
#'enableChannel:' #modifiedChannel |
|
572 | 667 |
#'extent:' #(#Point 179 24) |
547 | 668 |
) |
669 |
#(#ActionButtonSpec |
|
670 |
#'name:' 'acceptButton' |
|
671 |
#'activeHelpKey:' #accept |
|
672 |
#'label:' 'OK' |
|
673 |
#'tabable:' true |
|
674 |
#'model:' #accept |
|
675 |
#'enableChannel:' #modifiedChannel |
|
676 |
#'extent:' #(#Point 180 24) |
|
677 |
) |
|
678 |
) |
|
679 |
) |
|
680 |
#'horizontalLayout:' #fitSpace |
|
681 |
#'verticalLayout:' #fitSpace |
|
682 |
#'horizontalSpace:' 3 |
|
683 |
#'verticalSpace:' 3 |
|
684 |
) |
|
297 | 685 |
) |
686 |
) |
|
687 |
#'borderWidth:' 1 |
|
688 |
) |
|
689 |
) |
|
690 |
) |
|
691 |
#'level:' 1 |
|
692 |
#'handles:' #(#Any 0.329435 1.0) |
|
693 |
) |
|
694 |
#(#TextEditorSpec |
|
695 |
#'name:' 'Transcript' |
|
696 |
#'hasHorizontalScrollBar:' true |
|
697 |
#'hasVerticalScrollBar:' true |
|
698 |
#'miniScrollerHorizontal:' true |
|
699 |
#'miniScrollerVertical:' true |
|
700 |
) |
|
701 |
) |
|
702 |
) |
|
703 |
#'handles:' #(#Any 0.880597 1.0) |
|
704 |
) |
|
486 | 705 |
#(#UISubSpecification |
706 |
#'name:' 'infoBarSubSpec' |
|
572 | 707 |
#'layout:' #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
486 | 708 |
#'majorKey:' #ToolApplicationModel |
533 | 709 |
#'minorKey:' #windowSpecForInfoBarWithClock |
448 | 710 |
) |
222 | 711 |
) |
712 |
) |
|
713 |
) |
|
714 |
! ! |
|
715 |
||
716 |
!UIPainter class methodsFor:'menu specs'! |
|
717 |
||
446 | 718 |
menu |
217 | 719 |
"this window spec was automatically generated by the ST/X MenuEditor" |
720 |
||
721 |
"do not manually edit this - the builder may not be able to |
|
722 |
handle the specification if its corrupted." |
|
723 |
||
724 |
" |
|
446 | 725 |
MenuEditor new openOnClass:UIPainter andSelector:#menu |
726 |
(Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp |
|
727 |
" |
|
728 |
||
729 |
<resource: #menu> |
|
730 |
||
731 |
^ |
|
732 |
||
733 |
#(#Menu |
|
734 |
||
735 |
#( |
|
736 |
#(#MenuItem |
|
737 |
#'label:' 'About' |
|
547 | 738 |
#'labelImage:' #(#ResourceRetriever nil #menuIcon) |
446 | 739 |
#'submenuChannel:' #menuAbout |
740 |
) |
|
741 |
#(#MenuItem |
|
742 |
#'label:' 'File' |
|
743 |
#'value:' #file |
|
744 |
#'enabled:' #enableChannel |
|
745 |
#'submenu:' |
|
746 |
#(#Menu |
|
747 |
||
748 |
#( |
|
749 |
#(#MenuItem |
|
750 |
#'label:' 'New' |
|
751 |
#'value:' #doNew |
|
498 | 752 |
#'activeHelpKey:' #fileNew |
446 | 753 |
) |
754 |
#(#MenuItem |
|
755 |
#'label:' '-' |
|
756 |
) |
|
757 |
#(#MenuItem |
|
498 | 758 |
#'label:' 'Load...' |
446 | 759 |
#'value:' #doFromClass |
498 | 760 |
#'activeHelpKey:' #fileLoad |
446 | 761 |
) |
762 |
#(#MenuItem |
|
533 | 763 |
#'label:' 'Load Subspec...' |
764 |
#'value:' #loadSubspec |
|
765 |
#'activeHelpKey:' #fileLoadSubspec |
|
766 |
) |
|
767 |
#(#MenuItem |
|
446 | 768 |
#'label:' '-' |
769 |
) |
|
770 |
#(#MenuItem |
|
466 | 771 |
#'label:' 'Save' |
772 |
#'value:' #doInstallSpec |
|
498 | 773 |
#'activeHelpKey:' #fileSave |
446 | 774 |
) |
775 |
#(#MenuItem |
|
776 |
#'label:' '-' |
|
777 |
) |
|
778 |
#(#MenuItem |
|
466 | 779 |
#'label:' 'Define Class And Selector...' |
780 |
#'value:' #defineClassAndSelector |
|
446 | 781 |
) |
782 |
#(#MenuItem |
|
783 |
#'label:' '-' |
|
784 |
) |
|
785 |
#(#MenuItem |
|
786 |
#'label:' 'Create Aspect Methods' |
|
787 |
#'value:' #doInstallAspects |
|
788 |
#'enabled:' #hasSpecClass |
|
789 |
) |
|
790 |
#(#MenuItem |
|
791 |
#'label:' 'Create Hook Methods' |
|
792 |
#'value:' #doInstallHooks |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
793 |
#'enabled:' #hasSpecClass |
446 | 794 |
) |
795 |
#(#MenuItem |
|
796 |
#'label:' '-' |
|
797 |
) |
|
798 |
#(#MenuItem |
|
498 | 799 |
#'label:' 'Pick An Interface' |
800 |
#'value:' #doPickAView |
|
801 |
#'activeHelpKey:' #filePickAnInterface |
|
802 |
) |
|
803 |
#(#MenuItem |
|
804 |
#'label:' '-' |
|
805 |
) |
|
806 |
#(#MenuItem |
|
807 |
#'label:' 'Show Interface Spec' |
|
446 | 808 |
#'value:' #doWindowSpec |
809 |
) |
|
810 |
#(#MenuItem |
|
498 | 811 |
#'label:' 'Browse Interface Class' |
446 | 812 |
#'value:' #doBrowseAppClass |
813 |
#'enabled:' #hasSpecClass |
|
814 |
) |
|
815 |
#(#MenuItem |
|
816 |
#'label:' 'Browse Aspect Methods' |
|
817 |
#'value:' #doBrowseAspectMethods |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
818 |
#'enabled:' #hasSpecClass |
446 | 819 |
) |
820 |
#(#MenuItem |
|
821 |
#'label:' '-' |
|
822 |
) |
|
823 |
#(#MenuItem |
|
824 |
#'label:' 'Exit' |
|
825 |
#'value:' #closeRequest |
|
498 | 826 |
#'activeHelpKey:' #fileExit |
446 | 827 |
) |
828 |
) nil |
|
829 |
nil |
|
830 |
) |
|
831 |
) |
|
832 |
#(#MenuItem |
|
833 |
#'label:' 'Edit' |
|
834 |
#'submenuChannel:' #menuEdit |
|
835 |
) |
|
836 |
#(#MenuItem |
|
564 | 837 |
#'label:' 'Add' |
838 |
#'submenuChannel:' #menuAdd |
|
839 |
) |
|
840 |
#(#MenuItem |
|
446 | 841 |
#'label:' 'Align' |
842 |
#'submenuChannel:' #menuAlign |
|
843 |
) |
|
844 |
#(#MenuItem |
|
845 |
#'label:' 'Test' |
|
846 |
#'submenu:' |
|
847 |
#(#Menu |
|
848 |
||
849 |
#( |
|
850 |
#(#MenuItem |
|
466 | 851 |
#'label:' 'Start Application' |
852 |
#'value:' #doStartApplication |
|
498 | 853 |
#'activeHelpKey:' #testStartApplication |
466 | 854 |
) |
855 |
#(#MenuItem |
|
856 |
#'label:' '-' |
|
857 |
) |
|
858 |
#(#MenuItem |
|
446 | 859 |
#'label:' 'Geometry Test Mode' |
860 |
#'indication:' #'testMode:' |
|
861 |
) |
|
862 |
) nil |
|
863 |
nil |
|
864 |
) |
|
865 |
) |
|
866 |
#(#MenuItem |
|
867 |
#'label:' 'Settings' |
|
868 |
#'submenu:' |
|
869 |
#(#Menu |
|
870 |
||
871 |
#( |
|
872 |
#(#MenuItem |
|
625
8448535a3334
menu label change (grid & undo)
Claus Gittinger <cg@exept.de>
parents:
609
diff
changeset
|
873 |
#'label:' 'Undo Manager...' |
446 | 874 |
#'value:' #openUndoMenu |
875 |
) |
|
876 |
#(#MenuItem |
|
877 |
#'label:' '-' |
|
878 |
) |
|
879 |
#(#MenuItem |
|
625
8448535a3334
menu label change (grid & undo)
Claus Gittinger <cg@exept.de>
parents:
609
diff
changeset
|
880 |
#'label:' 'Grid Manager...' |
446 | 881 |
#'value:' #gridMenu |
882 |
) |
|
883 |
) nil |
|
884 |
nil |
|
885 |
) |
|
886 |
) |
|
887 |
#(#MenuItem |
|
888 |
#'label:' 'History' |
|
889 |
#'submenuChannel:' #menuHistory |
|
890 |
) |
|
891 |
#(#MenuItem |
|
498 | 892 |
#'label:' 'Help' |
547 | 893 |
#'startGroup:' #right |
498 | 894 |
#'submenuChannel:' #menuHelp |
895 |
) |
|
446 | 896 |
) nil |
897 |
nil |
|
898 |
) |
|
899 |
! |
|
900 |
||
564 | 901 |
menuAdd |
902 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
903 |
||
904 |
"do not manually edit this - the builder may not be able to |
|
905 |
handle the specification if its corrupted." |
|
906 |
||
907 |
" |
|
908 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAdd |
|
909 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAdd)) startUp |
|
910 |
" |
|
911 |
||
912 |
<resource: #menu> |
|
913 |
||
914 |
^ |
|
915 |
||
916 |
#(#Menu |
|
917 |
||
918 |
#( |
|
919 |
#(#MenuItem |
|
920 |
#'label:' 'Buttons' |
|
921 |
#'submenu:' |
|
922 |
#(#Menu |
|
923 |
||
924 |
#( |
|
925 |
#(#MenuItem |
|
926 |
#'label:' 'Action Button' |
|
927 |
#'value:' #'addWidget:' |
|
928 |
#'argument:' #ActionButtonSpec |
|
929 |
#'labelImage:' #(#ResourceRetriever #ActionButtonSpec #icon 'Action Button') |
|
930 |
) |
|
931 |
#(#MenuItem |
|
932 |
#'label:' 'Arrow Button' |
|
933 |
#'value:' #'addWidget:' |
|
934 |
#'argument:' #ArrowButtonSpec |
|
935 |
#'labelImage:' #(#ResourceRetriever #ArrowButtonSpec #icon 'Arrow Button') |
|
936 |
) |
|
937 |
#(#MenuItem |
|
938 |
#'label:' '-' |
|
939 |
) |
|
940 |
#(#MenuItem |
|
941 |
#'label:' 'Toggle' |
|
942 |
#'value:' #'addWidget:' |
|
943 |
#'argument:' #ToggleSpec |
|
944 |
#'labelImage:' #(#ResourceRetriever #ToggleSpec #icon 'Toggle') |
|
945 |
) |
|
946 |
#(#MenuItem |
|
947 |
#'label:' 'Radio Button' |
|
948 |
#'value:' #'addWidget:' |
|
949 |
#'argument:' #RadioButtonSpec |
|
950 |
#'labelImage:' #(#ResourceRetriever #RadioButtonSpec #icon 'Radio Button') |
|
951 |
) |
|
952 |
#(#MenuItem |
|
953 |
#'label:' '-' |
|
954 |
) |
|
955 |
#(#MenuItem |
|
956 |
#'label:' 'Check Box' |
|
957 |
#'value:' #'addWidget:' |
|
958 |
#'argument:' #CheckBoxSpec |
|
959 |
#'labelImage:' #(#ResourceRetriever #CheckBoxSpec #icon 'Check Box') |
|
960 |
) |
|
961 |
#(#MenuItem |
|
962 |
#'label:' '-' |
|
963 |
) |
|
964 |
#(#MenuItem |
|
965 |
#'label:' 'Up Down Button' |
|
966 |
#'value:' #'addWidget:' |
|
967 |
#'argument:' #UpDownButtonSpec |
|
968 |
#'labelImage:' #(#ResourceRetriever #UpDownButtonSpec #icon 'Up Down Button') |
|
969 |
) |
|
970 |
#(#MenuItem |
|
971 |
#'label:' '-' |
|
972 |
) |
|
973 |
#(#MenuItem |
|
974 |
#'label:' 'Slider' |
|
975 |
#'value:' #'addWidget:' |
|
976 |
#'argument:' #SliderSpec |
|
977 |
#'labelImage:' #(#ResourceRetriever #SliderSpec #icon 'Slider') |
|
978 |
) |
|
979 |
#(#MenuItem |
|
980 |
#'label:' 'Thumb Wheel' |
|
981 |
#'value:' #'addWidget:' |
|
982 |
#'argument:' #ThumbWheelSpec |
|
983 |
#'labelImage:' #(#ResourceRetriever #ThumbWheelSpec #icon 'Thumb Wheel') |
|
984 |
) |
|
985 |
) nil |
|
986 |
nil |
|
987 |
) |
|
988 |
) |
|
989 |
#(#MenuItem |
|
990 |
#'label:' 'Menus' |
|
991 |
#'submenu:' |
|
992 |
#(#Menu |
|
993 |
||
994 |
#( |
|
995 |
#(#MenuItem |
|
996 |
#'label:' 'Combo Box' |
|
997 |
#'value:' #'addWidget:' |
|
998 |
#'argument:' #ComboBoxSpec |
|
999 |
#'labelImage:' #(#ResourceRetriever #ComboBoxSpec #icon 'Combo Box') |
|
1000 |
) |
|
1001 |
#(#MenuItem |
|
1002 |
#'label:' 'Combo List' |
|
1003 |
#'value:' #'addWidget:' |
|
1004 |
#'argument:' #ComboListSpec |
|
1005 |
#'labelImage:' #(#ResourceRetriever #ComboListSpec #icon 'Combo List') |
|
1006 |
) |
|
1007 |
#(#MenuItem |
|
1008 |
#'label:' 'PopUp List' |
|
1009 |
#'value:' #'addWidget:' |
|
1010 |
#'argument:' #PopUpListSpec |
|
1011 |
#'labelImage:' #(#ResourceRetriever #ComboListSpec #icon 'PopUp List') |
|
1012 |
) |
|
1013 |
#(#MenuItem |
|
1014 |
#'label:' '-' |
|
1015 |
) |
|
1016 |
#(#MenuItem |
|
1017 |
#'label:' 'Tab' |
|
1018 |
#'value:' #'addWidget:' |
|
1019 |
#'argument:' #TabViewSpec |
|
1020 |
#'labelImage:' #(#ResourceRetriever #TabViewSpec #icon 'Tab') |
|
1021 |
) |
|
1022 |
#(#MenuItem |
|
1023 |
#'label:' 'Note Book' |
|
1024 |
#'value:' #'addWidget:' |
|
1025 |
#'argument:' #NoteBookViewSpec |
|
1026 |
#'labelImage:' #(#ResourceRetriever #NoteBookViewSpec #icon 'Note Book') |
|
1027 |
) |
|
1028 |
#(#MenuItem |
|
1029 |
#'label:' 'Gallery' |
|
1030 |
#'value:' #'addWidget:' |
|
1031 |
#'argument:' #UIGalleryViewSpec |
|
1032 |
#'labelImage:' #(#ResourceRetriever #UIGalleryViewSpec #icon 'Gallery') |
|
1033 |
) |
|
1034 |
#(#MenuItem |
|
1035 |
#'label:' '-' |
|
1036 |
) |
|
1037 |
#(#MenuItem |
|
1038 |
#'label:' 'Menu Panel' |
|
1039 |
#'value:' #'addWidget:' |
|
1040 |
#'argument:' #MenuPanelSpec |
|
1041 |
#'labelImage:' #(#ResourceRetriever #MenuPanelSpec #icon 'Menu Panel') |
|
1042 |
) |
|
1043 |
) nil |
|
1044 |
nil |
|
1045 |
) |
|
1046 |
) |
|
1047 |
#(#MenuItem |
|
1048 |
#'label:' 'Text Views' |
|
1049 |
#'submenu:' |
|
1050 |
#(#Menu |
|
1051 |
||
1052 |
#( |
|
1053 |
#(#MenuItem |
|
1054 |
#'label:' 'Text Editor' |
|
1055 |
#'value:' #'addWidget:' |
|
1056 |
#'argument:' #TextEditorSpec |
|
1057 |
#'labelImage:' #(#ResourceRetriever #TextEditorSpec #icon 'Text Editor') |
|
1058 |
) |
|
1059 |
#(#MenuItem |
|
1060 |
#'label:' 'Input Field' |
|
1061 |
#'value:' #'addWidget:' |
|
1062 |
#'argument:' #InputFieldSpec |
|
1063 |
#'labelImage:' #(#ResourceRetriever #InputFieldSpec #icon 'Input Field') |
|
1064 |
) |
|
1065 |
#(#MenuItem |
|
1066 |
#'label:' '-' |
|
1067 |
) |
|
1068 |
#(#MenuItem |
|
1069 |
#'label:' 'Label' |
|
1070 |
#'value:' #'addWidget:' |
|
1071 |
#'argument:' #LabelSpec |
|
1072 |
#'labelImage:' #(#ResourceRetriever #LabelSpec #icon 'Label') |
|
1073 |
) |
|
1074 |
#(#MenuItem |
|
1075 |
#'label:' '-' |
|
1076 |
) |
|
1077 |
#(#MenuItem |
|
1078 |
#'label:' 'HTML View' |
|
1079 |
#'value:' #'addWidget:' |
|
1080 |
#'argument:' #HTMLViewSpec |
|
1081 |
#'labelImage:' #(#ResourceRetriever #HTMLViewSpec #icon 'HTML View') |
|
1082 |
) |
|
1083 |
) nil |
|
1084 |
nil |
|
1085 |
) |
|
1086 |
) |
|
1087 |
#(#MenuItem |
|
1088 |
#'label:' 'Lists' |
|
1089 |
#'submenu:' |
|
1090 |
#(#Menu |
|
1091 |
||
1092 |
#( |
|
1093 |
#(#MenuItem |
|
1094 |
#'label:' 'List' |
|
1095 |
#'value:' #'addWidget:' |
|
1096 |
#'argument:' #SequenceViewSpec |
|
1097 |
#'labelImage:' #(#ResourceRetriever #SequenceViewSpec #icon 'List') |
|
1098 |
) |
|
1099 |
#(#MenuItem |
|
1100 |
#'label:' 'Data Set List' |
|
1101 |
#'value:' #'addWidget:' |
|
1102 |
#'argument:' #DataSetSpec |
|
1103 |
#'labelImage:' #(#ResourceRetriever #DataSetSpec #icon 'Data Set List') |
|
1104 |
) |
|
1105 |
#(#MenuItem |
|
1106 |
#'label:' '-' |
|
1107 |
) |
|
1108 |
#(#MenuItem |
|
1109 |
#'label:' 'Tree List' |
|
1110 |
#'value:' #'addWidget:' |
|
1111 |
#'argument:' #SelectionInTreeViewSpec |
|
1112 |
#'labelImage:' #(#ResourceRetriever #SelectionInTreeViewSpec #icon 'Tree List') |
|
1113 |
) |
|
1114 |
#(#MenuItem |
|
1115 |
#'label:' 'File Tree List' |
|
1116 |
#'value:' #'addWidget:' |
|
1117 |
#'argument:' #FileSelectionTreeSpec |
|
1118 |
#'labelImage:' #(#ResourceRetriever #FileSelectionTreeSpec #icon 'File Tree List') |
|
1119 |
) |
|
1120 |
) nil |
|
1121 |
nil |
|
1122 |
) |
|
1123 |
) |
|
1124 |
#(#MenuItem |
|
1125 |
#'label:' 'Boxes' |
|
1126 |
#'submenu:' |
|
1127 |
#(#Menu |
|
1128 |
||
1129 |
#( |
|
1130 |
#(#MenuItem |
|
1131 |
#'label:' 'Box' |
|
1132 |
#'value:' #'addWidget:' |
|
1133 |
#'argument:' #ViewSpec |
|
1134 |
#'labelImage:' #(#ResourceRetriever #ViewSpec #icon 'Box') |
|
1135 |
) |
|
1136 |
#(#MenuItem |
|
1137 |
#'label:' 'Framed Box' |
|
1138 |
#'value:' #'addWidget:' |
|
1139 |
#'argument:' #FramedBoxSpec |
|
1140 |
#'labelImage:' #(#ResourceRetriever #FramedBoxSpec #icon 'Framed Box') |
|
1141 |
) |
|
1142 |
#(#MenuItem |
|
1143 |
#'label:' '-' |
|
1144 |
) |
|
1145 |
#(#MenuItem |
|
1146 |
#'label:' 'Horizontal Panel' |
|
1147 |
#'value:' #'addWidget:' |
|
1148 |
#'argument:' #HorizontalPanelViewSpec |
|
1149 |
#'labelImage:' #(#ResourceRetriever #HorizontalPanelViewSpec #icon 'Horizontal Panel') |
|
1150 |
) |
|
1151 |
#(#MenuItem |
|
1152 |
#'label:' 'Vertical Panel' |
|
1153 |
#'value:' #'addWidget:' |
|
1154 |
#'argument:' #VerticalPanelViewSpec |
|
1155 |
#'labelImage:' #(#ResourceRetriever #VerticalPanelViewSpec #icon 'Vertical Panel') |
|
1156 |
) |
|
1157 |
#(#MenuItem |
|
1158 |
#'label:' '-' |
|
1159 |
) |
|
1160 |
#(#MenuItem |
|
1161 |
#'label:' 'Area Panel' |
|
1162 |
#'value:' #'addWidget:' |
|
1163 |
#'argument:' #PanelViewSpec |
|
1164 |
#'labelImage:' #(#ResourceRetriever #PanelViewSpec #icon 'Area Panel') |
|
1165 |
) |
|
1166 |
#(#MenuItem |
|
1167 |
#'label:' '-' |
|
1168 |
) |
|
1169 |
#(#MenuItem |
|
1170 |
#'label:' 'Variable Horizontal Panel' |
|
1171 |
#'value:' #'addWidget:' |
|
1172 |
#'argument:' #VariableHorizontalPanelSpec |
|
1173 |
#'labelImage:' #(#ResourceRetriever #VariableHorizontalPanelSpec #icon 'Variable Horizontal Panel') |
|
1174 |
) |
|
1175 |
#(#MenuItem |
|
1176 |
#'label:' 'Variable Vertical Panel' |
|
1177 |
#'value:' #'addWidget:' |
|
1178 |
#'argument:' #VariableVerticalPanelSpec |
|
1179 |
#'labelImage:' #(#ResourceRetriever #VariableVerticalPanelSpec #icon 'Variable Vertical Panel') |
|
1180 |
) |
|
1181 |
) nil |
|
1182 |
nil |
|
1183 |
) |
|
1184 |
) |
|
1185 |
#(#MenuItem |
|
1186 |
#'label:' 'Misc' |
|
1187 |
#'submenu:' |
|
1188 |
#(#Menu |
|
1189 |
||
1190 |
#( |
|
1191 |
#(#MenuItem |
|
1192 |
#'label:' 'Arbitrary Component' |
|
1193 |
#'value:' #'addWidget:' |
|
1194 |
#'argument:' #ArbitraryComponentSpec |
|
1195 |
#'labelImage:' #(#ResourceRetriever #ArbitraryComponentSpec #icon 'Arbitrary Component') |
|
1196 |
) |
|
1197 |
#(#MenuItem |
|
1198 |
#'label:' '-' |
|
1199 |
) |
|
1200 |
#(#MenuItem |
|
1201 |
#'label:' 'Sub Specification' |
|
1202 |
#'value:' #'addWidget:' |
|
1203 |
#'argument:' #UISubSpecification |
|
1204 |
#'labelImage:' #(#ResourceRetriever #ArbitraryComponentSpec #icon 'Sub Specification') |
|
1205 |
) |
|
1206 |
#(#MenuItem |
|
1207 |
#'label:' 'Sub Canvas' |
|
1208 |
#'value:' #'addWidget:' |
|
1209 |
#'argument:' #SubCanvasSpec |
|
1210 |
#'labelImage:' #(#ResourceRetriever #SubCanvasSpec #icon 'Sub Canvas') |
|
1211 |
) |
|
1212 |
#(#MenuItem |
|
1213 |
#'label:' '-' |
|
1214 |
) |
|
1215 |
#(#MenuItem |
|
1216 |
#'label:' 'Progress Indicator' |
|
1217 |
#'value:' #'addWidget:' |
|
1218 |
#'argument:' #ProgressIndicatorSpec |
|
1219 |
#'labelImage:' #(#ResourceRetriever #ProgressIndicatorSpec #icon 'Progress Indicator') |
|
1220 |
) |
|
1221 |
#(#MenuItem |
|
1222 |
#'label:' '-' |
|
1223 |
) |
|
1224 |
#(#MenuItem |
|
1225 |
#'label:' 'Divider' |
|
1226 |
#'value:' #'addWidget:' |
|
1227 |
#'argument:' #DividerSpec |
|
1228 |
#'labelImage:' #(#ResourceRetriever #DividerSpec #icon 'Divider') |
|
1229 |
) |
|
1230 |
#(#MenuItem |
|
1231 |
#'label:' 'Region' |
|
1232 |
#'value:' #'addWidget:' |
|
1233 |
#'argument:' #RegionSpec |
|
1234 |
#'labelImage:' #(#ResourceRetriever #RegionSpec #icon 'Region') |
|
1235 |
) |
|
1236 |
) nil |
|
1237 |
nil |
|
1238 |
) |
|
1239 |
) |
|
1240 |
) nil |
|
1241 |
nil |
|
1242 |
) |
|
1243 |
! |
|
1244 |
||
446 | 1245 |
menuAlign |
1246 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1247 |
||
1248 |
"do not manually edit this - the builder may not be able to |
|
1249 |
handle the specification if its corrupted." |
|
1250 |
||
1251 |
" |
|
1252 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
1253 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 1254 |
" |
1255 |
||
1256 |
<resource: #menu> |
|
1257 |
||
1258 |
^ |
|
1259 |
||
1260 |
#(#Menu |
|
1261 |
||
1262 |
#( |
|
1263 |
#(#MenuItem |
|
446 | 1264 |
#'label:' 'Align Left' |
1265 |
#'value:' #alignSelectionLeft |
|
1266 |
#'activeHelpKey:' #alignSelectionLeft |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1267 |
#'enabled:' #hasSelection |
446 | 1268 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignL 'Align Left') |
1269 |
) |
|
1270 |
#(#MenuItem |
|
1271 |
#'label:' 'Align Right' |
|
1272 |
#'value:' #alignSelectionRight |
|
1273 |
#'activeHelpKey:' #alignSelectionRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1274 |
#'enabled:' #hasSelection |
446 | 1275 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignR 'Align Right') |
1276 |
) |
|
1277 |
#(#MenuItem |
|
1278 |
#'label:' 'Align Left & Right' |
|
1279 |
#'value:' #alignSelectionLeftAndRight |
|
1280 |
#'activeHelpKey:' #alignSelectionLeftAndRight |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1281 |
#'enabled:' #hasSelection |
446 | 1282 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignLR 'Align Left & Right') |
1283 |
) |
|
1284 |
#(#MenuItem |
|
1285 |
#'label:' 'Align top' |
|
1286 |
#'value:' #alignSelectionTop |
|
1287 |
#'activeHelpKey:' #alignSelectionTop |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1288 |
#'enabled:' #hasSelection |
446 | 1289 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignT 'Align top') |
1290 |
) |
|
1291 |
#(#MenuItem |
|
1292 |
#'label:' 'Align Bottom' |
|
1293 |
#'value:' #alignSelectionBottom |
|
1294 |
#'activeHelpKey:' #alignSelectionBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1295 |
#'enabled:' #hasSelection |
446 | 1296 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignB 'Align Bottom') |
1297 |
) |
|
1298 |
#(#MenuItem |
|
1299 |
#'label:' 'Align Top & Bottom' |
|
1300 |
#'value:' #alignSelectionTopAndBottom |
|
1301 |
#'activeHelpKey:' #alignSelectionTopAndBottom |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1302 |
#'enabled:' #hasSelection |
446 | 1303 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignTB 'Align Top & Bottom') |
1304 |
) |
|
1305 |
#(#MenuItem |
|
1306 |
#'label:' 'Align Centered Horizontal' |
|
1307 |
#'value:' #alignSelectionCenterHor |
|
1308 |
#'activeHelpKey:' #alignSelectionCenterHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1309 |
#'enabled:' #hasSelection |
446 | 1310 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterH 'Align Centered Horizontal') |
1311 |
) |
|
1312 |
#(#MenuItem |
|
1313 |
#'label:' 'Align Centered Vertical' |
|
1314 |
#'value:' #alignSelectionCenterVer |
|
1315 |
#'activeHelpKey:' #alignSelectionCenterVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1316 |
#'enabled:' #hasSelection |
446 | 1317 |
#'labelImage:' #(#ResourceRetriever #UIPainter #iconAlignCenterV 'Align Centered Vertical') |
1318 |
) |
|
1319 |
#(#MenuItem |
|
1320 |
#'label:' '-' |
|
1321 |
) |
|
1322 |
#(#MenuItem |
|
1323 |
#'label:' 'Spread Horizontal' |
|
1324 |
#'value:' #spreadSelectionHor |
|
1325 |
#'activeHelpKey:' #spreadSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1326 |
#'enabled:' #hasSelection |
446 | 1327 |
) |
1328 |
#(#MenuItem |
|
1329 |
#'label:' 'Spread Vertical' |
|
1330 |
#'value:' #spreadSelectionVer |
|
1331 |
#'activeHelpKey:' #spreadSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1332 |
#'enabled:' #hasSelection |
446 | 1333 |
) |
1334 |
#(#MenuItem |
|
1335 |
#'label:' '-' |
|
1336 |
) |
|
1337 |
#(#MenuItem |
|
1338 |
#'label:' 'Center Horizontal In Frame' |
|
1339 |
#'value:' #centerSelectionHor |
|
1340 |
#'activeHelpKey:' #centerSelectionHor |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1341 |
#'enabled:' #hasSelection |
446 | 1342 |
) |
1343 |
#(#MenuItem |
|
1344 |
#'label:' 'Center Vertical In Frame' |
|
1345 |
#'value:' #centerSelectionVer |
|
1346 |
#'activeHelpKey:' #centerSelectionVer |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1347 |
#'enabled:' #hasSelection |
446 | 1348 |
) |
1349 |
) nil |
|
1350 |
nil |
|
1351 |
) |
|
495
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1352 |
|
f356a6636eef
disable hook & browse menu items, if there is no class yet.
Claus Gittinger <cg@exept.de>
parents:
491
diff
changeset
|
1353 |
"Modified: / 27.1.1998 / 21:27:33 / cg" |
446 | 1354 |
! |
1355 |
||
1356 |
menuEdit |
|
1357 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1358 |
||
1359 |
"do not manually edit this - the builder may not be able to |
|
1360 |
handle the specification if its corrupted." |
|
1361 |
||
1362 |
" |
|
1363 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
1364 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
1365 |
" |
|
1366 |
||
1367 |
<resource: #menu> |
|
1368 |
||
1369 |
^ |
|
1370 |
||
1371 |
#(#Menu |
|
1372 |
||
1373 |
#( |
|
1374 |
#(#MenuItem |
|
1375 |
#'label:' 'Cut' |
|
1376 |
#'value:' #deleteSelection |
|
498 | 1377 |
#'activeHelpKey:' #editCut |
446 | 1378 |
#'enabled:' #hasSelection |
1379 |
#'shortcutKeyCharacter:' #Cut |
|
1380 |
) |
|
1381 |
#(#MenuItem |
|
1382 |
#'label:' 'Copy' |
|
1383 |
#'value:' #copySelection |
|
498 | 1384 |
#'activeHelpKey:' #editCopy |
446 | 1385 |
#'enabled:' #hasSelection |
1386 |
#'shortcutKeyCharacter:' #Copy |
|
1387 |
) |
|
1388 |
#(#MenuItem |
|
1389 |
#'label:' 'Paste' |
|
1390 |
#'nameKey:' #paste |
|
1391 |
#'value:' #paste |
|
498 | 1392 |
#'activeHelpKey:' #editPaste |
446 | 1393 |
#'enabled:' #canPaste |
1394 |
#'submenu:' |
|
1395 |
#(#Menu |
|
1396 |
||
1397 |
#( |
|
1398 |
#(#MenuItem |
|
1399 |
#'label:' 'Paste' |
|
1400 |
#'value:' #pasteBuffer |
|
1401 |
#'activeHelpKey:' #pasteBuffer |
|
1402 |
#'shortcutKeyCharacter:' #Paste |
|
1403 |
) |
|
1404 |
#(#MenuItem |
|
1405 |
#'label:' 'Keep Layout' |
|
1406 |
#'value:' #pasteWithLayout |
|
1407 |
#'activeHelpKey:' #pasteWithLayout |
|
1408 |
#'enabled:' #canKeepLayoutInSelection |
|
1409 |
) |
|
1410 |
) nil |
|
1411 |
nil |
|
1412 |
) |
|
1413 |
) |
|
1414 |
#(#MenuItem |
|
1415 |
#'label:' '-' |
|
1416 |
) |
|
1417 |
#(#MenuItem |
|
1418 |
#'label:' 'Undo' |
|
1419 |
#'nameKey:' #undo |
|
1420 |
#'value:' #undoLast |
|
498 | 1421 |
#'activeHelpKey:' #editUndo |
446 | 1422 |
#'enabled:' #hasUndoHistory |
1423 |
#'shortcutKeyCharacter:' #Cmdu |
|
1424 |
) |
|
1425 |
#(#MenuItem |
|
1426 |
#'label:' '-' |
|
1427 |
) |
|
1428 |
#(#MenuItem |
|
498 | 1429 |
#'label:' 'Align' |
1430 |
#'submenuChannel:' #menuAlign |
|
1431 |
) |
|
1432 |
#(#MenuItem |
|
1433 |
#'label:' 'Move' |
|
1434 |
#'submenuChannel:' #menuMove |
|
1435 |
) |
|
1436 |
#(#MenuItem |
|
446 | 1437 |
#'label:' 'Dimension' |
1438 |
#'value:' #dimension |
|
1439 |
#'enabled:' #hasSelection |
|