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