author | Claus Gittinger <cg@exept.de> |
Fri, 04 Sep 1998 14:05:02 +0200 | |
changeset 982 | 2dda94c7ff25 |
parent 973 | 59d86476798a |
child 984 | f1b6d6b68510 |
permissions | -rw-r--r-- |
156 | 1 |
" |
765 | 2 |
COPYRIGHT (c) 1995-1998 by eXept Software AG |
156 | 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 |
765 | 15 |
instanceVariableNames:'specClass specSelector specSuperclass aspects treeView specCanvas |
16 |
selectionPanel tabSelection layoutCanvas helpCanvas modified' |
|
446 | 17 |
classVariableNames:'' |
60 | 18 |
poolDictionaries:'' |
19 |
category:'Interface-UIPainter' |
|
20 |
! |
|
21 |
||
222 | 22 |
SelectionInTreeView subclass:#TreeView |
491
c3af7854dbe8
image instance variables removed + release all widget icons while snap shoting
tz
parents:
490
diff
changeset
|
23 |
instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec' |
564 | 24 |
classVariableNames:'' |
222 | 25 |
poolDictionaries:'' |
26 |
privateIn:UIPainter |
|
27 |
! |
|
28 |
||
60 | 29 |
!UIPainter class methodsFor:'documentation'! |
30 |
||
156 | 31 |
copyright |
32 |
" |
|
765 | 33 |
COPYRIGHT (c) 1995-1998 by eXept Software AG |
156 | 34 |
All Rights Reserved |
35 |
||
36 |
This software is furnished under a license and may be used |
|
37 |
only in accordance with the terms of that license and with the |
|
38 |
inclusion of the above copyright notice. This software may not |
|
39 |
be provided or otherwise made available to, or used by, any |
|
40 |
other person. No title to or ownership of the software is |
|
41 |
hereby transferred. |
|
42 |
" |
|
43 |
||
44 |
! |
|
45 |
||
60 | 46 |
documentation |
47 |
" |
|
765 | 48 |
The GUI Painter provides the user with a graphical user interface for building own |
49 |
interfaces by interactively assembling widgets and defining the behavior of the widgets. |
|
50 |
The resulting interface specifications can be saved as methods on the application |
|
51 |
classes, typically subclasses of the class ApplicationModel. These specifications |
|
52 |
are used by the UIBuilder to generate the application window and its widgets when |
|
53 |
opening the application. |
|
60 | 54 |
|
55 |
[start with:] |
|
56 |
UIPainter open |
|
127 | 57 |
|
156 | 58 |
[author:] |
542 | 59 |
Claus Gittinger, eXept Software AG |
60 |
Claus Atzkern, eXept Software AG |
|
765 | 61 |
Thomas Zwick, eXept Software AG |
156 | 62 |
|
127 | 63 |
[see also:] |
64 |
UIBuilder |
|
65 |
ApplicationModel |
|
66 |
UISpecification |
|
60 | 67 |
" |
109 | 68 |
|
69 |
! ! |
|
70 |
||
71 |
!UIPainter class methodsFor:'instance creation'! |
|
72 |
||
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
73 |
openOnClass:aClass andSelector:aSelector |
743 | 74 |
"open a GUI Painter on aClass and (windowSpec) aSelector |
282 | 75 |
" |
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
76 |
^ self new openOnClass:aClass andSelector:aSelector |
60 | 77 |
! ! |
78 |
||
87 | 79 |
!UIPainter class methodsFor:'ST-80 queries'! |
80 |
||
81 |
preferenceFor:aSymbol |
|
282 | 82 |
"ST-80 compatible; always returns false |
83 |
" |
|
87 | 84 |
^ false |
109 | 85 |
|
86 |
||
87 |
! ! |
|
88 |
||
765 | 89 |
!UIPainter class methodsFor:'accessing'! |
713 | 90 |
|
91 |
defaultNameOfCanvas |
|
765 | 92 |
"returns the default name of the application" |
93 |
||
713 | 94 |
^'NewApplication' |
95 |
||
96 |
! ! |
|
97 |
||
193 | 98 |
!UIPainter class methodsFor:'help specs'! |
99 |
||
100 |
helpSpec |
|
743 | 101 |
"This resource specification was automatically generated |
102 |
by the UIHelpTool of ST/X." |
|
103 |
||
104 |
"Do not manually edit this!! If it is corrupted, |
|
105 |
the UIHelpTool may not be able to read the specification." |
|
295 | 106 |
|
193 | 107 |
" |
743 | 108 |
UIHelpTool openOnClass:UIPainter |
295 | 109 |
" |
110 |
||
743 | 111 |
<resource: #help> |
112 |
||
113 |
^super helpSpec addPairsFrom:#( |
|
193 | 114 |
|
934 | 115 |
#align |
116 |
'Widget alignment functions.' |
|
117 |
||
466 | 118 |
#alignSelectionBottom |
924 | 119 |
'Aligns the selected widgets bottom edges with the bottom of the dominant widget.' |
466 | 120 |
|
121 |
#alignSelectionCenterHor |
|
924 | 122 |
'Aligns the selected widgets centers vertically with the center of the dominant widget.' |
466 | 123 |
|
124 |
#alignSelectionCenterVer |
|
924 | 125 |
'Aligns the selected widgets centers horizontally with the center of the dominant widget.' |
466 | 126 |
|
127 |
#alignSelectionLeft |
|
924 | 128 |
'Aligns the selected widgets left edges with the left edge of the dominant widget.' |
466 | 129 |
|
130 |
#alignSelectionLeftAndRight |
|
924 | 131 |
'Aligns the selected widgets left & right edges with the dominant widget.' |
466 | 132 |
|
133 |
#alignSelectionRight |
|
924 | 134 |
'Aligns the selected widgets right edges with the right edge of the dominant widget.' |
466 | 135 |
|
136 |
#alignSelectionTop |
|
934 | 137 |
'Aligns the selected widgets top edgegs with the top edge of the dominant widget.' |
466 | 138 |
|
139 |
#alignSelectionTopAndBottom |
|
924 | 140 |
'Aligns the selected widgets top and bottom edges with the dominant widget.' |
466 | 141 |
|
142 |
#centerSelectionHor |
|
924 | 143 |
'Centers the selected widgets horizontally within their containing widget.' |
466 | 144 |
|
145 |
#centerSelectionVer |
|
924 | 146 |
'Centers the selected widgets vertically within their containing widget.' |
713 | 147 |
|
148 |
#changePositionDown |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
149 |
'Moves the selected widget(s) towards the bottom.' |
713 | 150 |
|
151 |
#changePositionLeft |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
152 |
'Moves the selected widget(s) towards the left.' |
713 | 153 |
|
154 |
#changePositionRight |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
155 |
'Moves the selected widget(s) towards the right.' |
713 | 156 |
|
157 |
#changePositionUp |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
158 |
'Moves the selected widget(s) towards the top.' |
713 | 159 |
|
160 |
#editDimensionCopyExtent |
|
924 | 161 |
'Copies the extent of the selected widget.' |
713 | 162 |
|
163 |
#editDimensionCopyLayout |
|
924 | 164 |
'Copies the layout of the selected widget.' |
713 | 165 |
|
166 |
#editDimensionDefaultExtent |
|
924 | 167 |
'Sets the selected widget(s) extent to their default.' |
713 | 168 |
|
169 |
#editDimensionDefaultHeight |
|
924 | 170 |
'Sets the selected widget(s) height to their default.' |
713 | 171 |
|
172 |
#editDimensionDefaultWidth |
|
924 | 173 |
'Sets the selected widget(s) width to their default.' |
713 | 174 |
|
175 |
#editDimensionPasteExtent |
|
924 | 176 |
'Sets the extent of the selected widget(s) to the last copied extent.' |
713 | 177 |
|
178 |
#editDimensionPasteHeight |
|
924 | 179 |
'Sets the height of the selected widget(s) to the height of the last copied layout/extent.' |
713 | 180 |
|
181 |
#editDimensionPasteLayout |
|
924 | 182 |
'Sets the layout of the selected widget(s) to the last copied layout.' |
713 | 183 |
|
184 |
#editDimensionPasteWidth |
|
924 | 185 |
'Sets the width of the selected widget(s) to the width of the last copied layout/extent.' |
713 | 186 |
|
724 | 187 |
#editInspectSpec |
188 |
'Opens an inspector on the spec of the selected widget.' |
|
189 |
||
755 | 190 |
#editInspectView |
191 |
'Opens an inspector on the view of the selected widget.' |
|
192 |
||
743 | 193 |
#editOpenSpecDocumentation |
194 |
'Opens the documentation of the selected widget.' |
|
195 |
||
713 | 196 |
#fileBrowseAspectMethods |
934 | 197 |
'Opens a System Browser on the aspect methods.' |
498 | 198 |
|
199 |
#fileLoad |
|
924 | 200 |
'Opens a dialog to load a window specification from a classes windowSpec method.' |
498 | 201 |
|
533 | 202 |
#fileLoadSubspec |
924 | 203 |
'Opens a dialog to load a sub specification from a classes windowSpec method.' |
533 | 204 |
|
498 | 205 |
#fileNew |
713 | 206 |
'Creates a new window spec.' |
498 | 207 |
|
208 |
#filePickAnInterface |
|
924 | 209 |
'Select a view on the screen, generate a window spec for it and edit this spec.' |
498 | 210 |
|
211 |
#fileSave |
|
924 | 212 |
'Saves the window spec in the current class (as spec method).' |
713 | 213 |
|
214 |
#fileSaveAs |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
215 |
'Opens a dialog to select class and selector for saving the window spec.' |
713 | 216 |
|
217 |
#fileShowWindowSpec |
|
218 |
'Opens a Workspace showing the current window spec.' |
|
219 |
||
220 |
#generateAspectMethods |
|
221 |
'Generates aspect methods for defined aspect selectors of the widgets.' |
|
222 |
||
223 |
#generateHookMethods |
|
224 |
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)' |
|
225 |
||
755 | 226 |
#helpExamples |
935 | 227 |
'Show some examples uses of the GUI Painter.' |
755 | 228 |
|
229 |
#helpFunctions |
|
935 | 230 |
'Show the documentation on the GUI Painters menu and button functions.' |
755 | 231 |
|
232 |
#helpLayoutTool |
|
935 | 233 |
'Show the Layout Tools documentation.' |
755 | 234 |
|
235 |
#helpSelectedWidget |
|
935 | 236 |
'Show the documentation of the selected widget.' |
237 |
||
238 |
#helpTutorial |
|
239 |
'Show the GUI Painters documentation.' |
|
755 | 240 |
|
924 | 241 |
#historyMenuItem |
242 |
'Edit this windowSpec.' |
|
243 |
||
713 | 244 |
#moveWidgetDown |
245 |
'Moves the selected widget one step down.' |
|
246 |
||
247 |
#moveWidgetInto |
|
248 |
'Moves the selected widget into next widget as child widget.' |
|
249 |
||
250 |
#moveWidgetOut |
|
251 |
'Moves the selected widget out of its parent widget.' |
|
252 |
||
253 |
#moveWidgetUp |
|
254 |
'Moves the selected widget one step up.' |
|
287 | 255 |
|
466 | 256 |
#pasteBuffer |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
257 |
'Pastes the widgets of the clipboard at the current mouse position.' |
466 | 258 |
|
259 |
#pasteWithLayout |
|
713 | 260 |
'Pastes the widgets of the clipboard without a changing of their layouts.' |
261 |
||
262 |
#settingsCanvas |
|
263 |
'Shows or hides the canvas window.' |
|
264 |
||
265 |
#settingsGallery |
|
266 |
'Shows or hides the gallery window.' |
|
267 |
||
268 |
#settingsGridManager |
|
269 |
'Opens a dialog to show/hide the grid points or to change the distances between them.' |
|
270 |
||
271 |
#settingsRedefineAspectMethods |
|
924 | 272 |
'Toggles the permission to overwrite existing aspect methods.' |
273 |
||
274 |
#settingsAspectsAsInstances |
|
275 |
'Genrate aspects as instance variables (or bindings, if off).' |
|
713 | 276 |
|
743 | 277 |
#settingsTranscriptHelp |
924 | 278 |
'Toggles display of help texts (after opening a new GUI Painter).' |
743 | 279 |
|
713 | 280 |
#settingsUndoManager |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
281 |
'Opens a dialog to undo modifications.' |
287 | 282 |
|
283 |
#spreadSelectionHor |
|
713 | 284 |
'Sets the horizontal spaces between the selected widgets as the same.' |
287 | 285 |
|
466 | 286 |
#spreadSelectionVer |
713 | 287 |
'Sets the vertical spaces between the selected widgets as the same.' |
288 |
||
289 |
#testGeometryTestMode |
|
924 | 290 |
'Toggles geometry test mode (to define ratios of variable panels and top-window dimension).' |
498 | 291 |
|
292 |
#testStartApplication |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
293 |
'Starts the application with the current window spec.' |
194 | 294 |
|
193 | 295 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
296 |
|
935 | 297 |
"Modified: / 31.7.1998 / 19:29:53 / cg" |
193 | 298 |
! ! |
299 |
||
297 | 300 |
!UIPainter class methodsFor:'helpers'! |
301 |
||
368 | 302 |
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed |
297 | 303 |
"converts a string to a string collection with maximum characters |
304 |
per line |
|
305 |
" |
|
306 |
|stream |
|
307 |
max "{ Class:SmallInteger }" |
|
308 |
size "{ Class:SmallInteger }" |
|
309 |
start "{ Class:SmallInteger }" |
|
310 |
stop "{ Class:SmallInteger }" |
|
311 |
cpySz "{ Class:SmallInteger }" |
|
542 | 312 |
lnSz "{ Class:SmallInteger }" |
313 |
atBeginOfLine| |
|
297 | 314 |
|
315 |
maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1] |
|
316 |
ifTrue:[max := 20]. |
|
317 |
||
318 |
(size := aString size) <= max ifTrue:[ |
|
319 |
^ aString |
|
320 |
]. |
|
321 |
start := 1. |
|
322 |
lnSz := 0. |
|
323 |
stream := (String new:size) writeStream. |
|
324 |
||
542 | 325 |
atBeginOfLine := true. |
326 |
||
297 | 327 |
[start <= size] whileTrue:[ |
328 |
(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[ |
|
329 |
^ stream contents |
|
330 |
]. |
|
368 | 331 |
(aString at:start) == $\ ifTrue:[ |
332 |
skipLineFeed ifFalse:[ |
|
333 |
stream nextPut:$\ |
|
334 |
]. |
|
335 |
start := start + 1. |
|
336 |
stream cr. |
|
337 |
start := start + 1. |
|
338 |
lnSz := 0. |
|
339 |
] ifFalse:[ |
|
340 |
(stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[ |
|
542 | 341 |
stop := size + 1 |
368 | 342 |
]. |
343 |
(aString at:(stop - 1)) == $\ ifTrue:[ |
|
344 |
stop := stop - 1 |
|
345 |
]. |
|
346 |
cpySz := stop - start. |
|
347 |
||
348 |
lnSz == 0 ifFalse:[ |
|
542 | 349 |
(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr. lnSz := cpySz. atBeginOfLine := true. ] |
368 | 350 |
ifFalse:[stream space. lnSz := lnSz + 1] |
351 |
] ifTrue:[ |
|
352 |
lnSz := cpySz |
|
353 |
]. |
|
354 |
stream nextPutAll:aString startingAt:start to:(stop - 1). |
|
355 |
start := stop. |
|
356 |
] |
|
297 | 357 |
]. |
358 |
^ stream contents |
|
542 | 359 |
|
360 |
"Modified: / 1.2.1998 / 14:42:56 / cg" |
|
297 | 361 |
! ! |
362 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
363 |
!UIPainter class methodsFor:'image specs'! |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
364 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
365 |
iconAlignB |
743 | 366 |
"This resource specification was automatically generated |
367 |
by the ImageEditor of ST/X." |
|
368 |
||
778 | 369 |
"Do not manually edit this!! If it is corrupted, |
743 | 370 |
the ImageEditor may not be able to read the specification." |
371 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
372 |
" |
743 | 373 |
ImageEditor openOnClass:self andSelector:#iconAlignB |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
374 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
375 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
376 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
377 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
378 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
379 |
constantNamed:#'UIPainter iconAlignB' |
778 | 380 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@') ; yourself); yourself] |
381 |
! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
382 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
383 |
iconAlignL |
743 | 384 |
"This resource specification was automatically generated |
385 |
by the ImageEditor of ST/X." |
|
386 |
||
778 | 387 |
"Do not manually edit this!! If it is corrupted, |
743 | 388 |
the ImageEditor may not be able to read the specification." |
389 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
390 |
" |
743 | 391 |
ImageEditor openOnClass:self andSelector:#iconAlignL |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
392 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
393 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
394 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
395 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
396 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
397 |
constantNamed:#'UIPainter iconAlignL' |
778 | 398 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@') ; yourself); yourself] |
399 |
! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
400 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
401 |
iconAlignLR |
743 | 402 |
"This resource specification was automatically generated |
403 |
by the ImageEditor of ST/X." |
|
404 |
||
785 | 405 |
"Do not manually edit this!! If it is corrupted, |
743 | 406 |
the ImageEditor may not be able to read the specification." |
407 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
408 |
" |
743 | 409 |
ImageEditor openOnClass:self andSelector:#iconAlignLR |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
410 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
411 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
412 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
413 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
414 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
415 |
constantNamed:#'UIPainter iconAlignLR' |
785 | 416 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@') ; yourself); yourself] |
417 |
! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
418 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
419 |
iconAlignR |
743 | 420 |
"This resource specification was automatically generated |
421 |
by the ImageEditor of ST/X." |
|
422 |
||
778 | 423 |
"Do not manually edit this!! If it is corrupted, |
743 | 424 |
the ImageEditor may not be able to read the specification." |
425 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
426 |
" |
743 | 427 |
ImageEditor openOnClass:self andSelector:#iconAlignR |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
428 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
429 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
430 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
431 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
432 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
433 |
constantNamed:#'UIPainter iconAlignR' |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
434 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@') ; yourself); yourself]! |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
435 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
436 |
iconAlignT |
743 | 437 |
"This resource specification was automatically generated |
438 |
by the ImageEditor of ST/X." |
|
439 |
||
778 | 440 |
"Do not manually edit this!! If it is corrupted, |
743 | 441 |
the ImageEditor may not be able to read the specification." |
442 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
443 |
" |
743 | 444 |
ImageEditor openOnClass:self andSelector:#iconAlignT |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
445 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
446 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
447 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
448 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
449 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
450 |
constantNamed:#'UIPainter iconAlignT' |
778 | 451 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@') ; yourself); yourself] |
452 |
! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
453 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
454 |
iconAlignTB |
743 | 455 |
"This resource specification was automatically generated |
456 |
by the ImageEditor of ST/X." |
|
457 |
||
778 | 458 |
"Do not manually edit this!! If it is corrupted, |
743 | 459 |
the ImageEditor may not be able to read the specification." |
460 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
461 |
" |
743 | 462 |
ImageEditor openOnClass:self andSelector:#iconAlignTB |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
463 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
464 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
465 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
466 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
467 |
^Icon |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
468 |
constantNamed:#'UIPainter iconAlignTB' |
778 | 469 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself] |
470 |
! ! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
471 |
|
60 | 472 |
!UIPainter class methodsFor:'interface specs'! |
473 |
||
743 | 474 |
dialogSpecForDefiningClassAndSelector |
475 |
"This resource specification was automatically generated |
|
476 |
by the UIPainter of ST/X." |
|
477 |
||
765 | 478 |
"Do not manually edit this!! If it is corrupted, |
743 | 479 |
the UIPainter may not be able to read the specification." |
366 | 480 |
|
481 |
" |
|
743 | 482 |
UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector |
483 |
UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector |
|
366 | 484 |
" |
485 |
||
486 |
<resource: #canvas> |
|
487 |
||
488 |
^ |
|
446 | 489 |
|
366 | 490 |
#(#FullSpec |
713 | 491 |
#window: |
366 | 492 |
#(#WindowSpec |
713 | 493 |
#name: 'GUI Painter' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
494 |
#layout: #(#LayoutFrame 291 0 130 0 637 0 289 0) |
743 | 495 |
#label: 'GUI Painter' |
765 | 496 |
#min: #(#Point 350 160) |
497 |
#max: #(#Point 500 160) |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
498 |
#bounds: #(#Rectangle 291 130 638 290) |
743 | 499 |
#usePreferredExtent: false |
500 |
) |
|
501 |
#component: |
|
502 |
#(#SpecCollection |
|
503 |
#collection: |
|
504 |
#( |
|
505 |
#(#FramedBoxSpec |
|
506 |
#name: 'FramedBox' |
|
507 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
508 |
#component: |
|
509 |
#(#SpecCollection |
|
510 |
#collection: |
|
511 |
#( |
|
512 |
#(#LabelSpec |
|
513 |
#name: 'selectorLabel' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
514 |
#layout: #(#AlignmentOrigin 67 0.11 29 0 1 0.5) |
743 | 515 |
#label: 'Selector:' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
516 |
#translateLabel: true |
743 | 517 |
#adjust: #right |
518 |
#resizeForLabel: true |
|
519 |
) |
|
520 |
#(#InputFieldSpec |
|
521 |
#name: 'methodNameField' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
522 |
#layout: #(#LayoutFrame 70 0.11 18 0 4 1.0 40 0) |
743 | 523 |
#tabable: true |
524 |
#model: #methodNameChannel |
|
939 | 525 |
#group: #inputGroup |
743 | 526 |
) |
527 |
#(#LabelSpec |
|
528 |
#name: 'classLabel' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
529 |
#layout: #(#AlignmentOrigin 67 0.11 54 0 1 0.5) |
743 | 530 |
#label: 'Class:' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
531 |
#translateLabel: true |
743 | 532 |
#adjust: #right |
533 |
#resizeForLabel: true |
|
534 |
) |
|
535 |
#(#InputFieldSpec |
|
536 |
#name: 'classNameField' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
537 |
#layout: #(#LayoutFrame 70 0.11 43 0 4 1.0 65 0) |
743 | 538 |
#tabable: true |
539 |
#model: #classNameChannel |
|
939 | 540 |
#group: #inputGroup |
743 | 541 |
) |
542 |
#(#LabelSpec |
|
543 |
#name: 'superClassLabel' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
544 |
#layout: #(#AlignmentOrigin 67 0.11 79 0 1 0.5) |
743 | 545 |
#label: 'Superclass:' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
546 |
#translateLabel: true |
743 | 547 |
#adjust: #right |
548 |
#resizeForLabel: true |
|
549 |
) |
|
550 |
#(#ComboBoxSpec |
|
551 |
#name: 'superclassNameComboBox' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
552 |
#layout: #(#LayoutFrame 70 0.11 68 0 4 1.0 90 0) |
743 | 553 |
#tabable: true |
554 |
#model: #superclassNameChannel |
|
555 |
#comboList: #superclassNameDefaults |
|
556 |
) |
|
557 |
) |
|
558 |
) |
|
559 |
#label: 'Define Class And Selector' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
560 |
#labelPosition: #topLeft |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
561 |
#translateLabel: true |
743 | 562 |
) |
563 |
#(#UISubSpecification |
|
564 |
#name: 'subSpec' |
|
565 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
|
566 |
#majorKey: #ToolApplicationModel |
|
567 |
#minorKey: #windowSpecForCommitWithoutChannels |
|
568 |
) |
|
569 |
) |
|
570 |
) |
|
571 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
572 |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
573 |
"Modified: / 13.8.1998 / 19:59:44 / cg" |
743 | 574 |
! |
575 |
||
576 |
dialogSpecForDefiningGridParameters |
|
577 |
"This resource specification was automatically generated |
|
578 |
by the UIPainter of ST/X." |
|
579 |
||
765 | 580 |
"Do not manually edit this!! If it is corrupted, |
743 | 581 |
the UIPainter may not be able to read the specification." |
582 |
||
583 |
" |
|
584 |
UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters |
|
585 |
UIPainter new openInterface:#dialogSpecForDefiningGridParameters |
|
586 |
" |
|
587 |
||
588 |
<resource: #canvas> |
|
589 |
||
590 |
^ |
|
591 |
||
592 |
#(#FullSpec |
|
593 |
#window: |
|
594 |
#(#WindowSpec |
|
595 |
#name: 'GUI Painter' |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
596 |
#layout: #(#LayoutFrame 291 0 130 0 572 0 327 0) |
713 | 597 |
#label: 'GUI Painter' |
765 | 598 |
#min: #(#Point 300 200) |
599 |
#max: #(#Point 300 200) |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
600 |
#bounds: #(#Rectangle 291 130 573 328) |
713 | 601 |
#usePreferredExtent: false |
366 | 602 |
) |
713 | 603 |
#component: |
366 | 604 |
#(#SpecCollection |
713 | 605 |
#collection: |
366 | 606 |
#( |
527 | 607 |
#(#FramedBoxSpec |
713 | 608 |
#name: 'FramedBox' |
609 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
|
610 |
#component: |
|
527 | 611 |
#(#SpecCollection |
713 | 612 |
#collection: |
527 | 613 |
#( |
614 |
#(#CheckBoxSpec |
|
713 | 615 |
#name: 'ShowGridCheckBox' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
616 |
#layout: #(#Point 13 14) |
713 | 617 |
#model: #showGrid |
618 |
#label: 'Show Grid' |
|
527 | 619 |
) |
620 |
#(#CheckBoxSpec |
|
713 | 621 |
#name: 'AlignCheckBox' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
622 |
#layout: #(#Point 13 42) |
713 | 623 |
#model: #alignToGrid |
755 | 624 |
#label: 'Align To Grid' |
527 | 625 |
) |
626 |
#(#LabelSpec |
|
713 | 627 |
#name: 'HorizontalPixelsLabel' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
628 |
#layout: #(#AlignmentOrigin 138 0 89 0 1 0.5) |
713 | 629 |
#label: 'Horizontal Pixels:' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
630 |
#translateLabel: true |
713 | 631 |
#adjust: #right |
632 |
#resizeForLabel: true |
|
527 | 633 |
) |
634 |
#(#InputFieldSpec |
|
713 | 635 |
#name: 'HorizontalPixelsField' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
636 |
#layout: #(#LayoutFrame 144 0 77 0 197 0 99 0) |
713 | 637 |
#model: #hspace |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
638 |
#group: #inputGroup |
713 | 639 |
#type: #numberOrNil |
527 | 640 |
) |
641 |
#(#LabelSpec |
|
713 | 642 |
#name: 'VerticalPixelsLabel' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
643 |
#layout: #(#AlignmentOrigin 139 0 114 0 1 0.5) |
713 | 644 |
#label: 'Vertical Pixels:' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
645 |
#translateLabel: true |
713 | 646 |
#adjust: #right |
647 |
#resizeForLabel: true |
|
527 | 648 |
) |
649 |
#(#InputFieldSpec |
|
713 | 650 |
#name: 'VerticalPixelsField' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
651 |
#layout: #(#LayoutFrame 144 0 102 0 197 0 124 0) |
713 | 652 |
#model: #vspace |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
653 |
#group: #inputGroup |
713 | 654 |
#type: #numberOrNil |
527 | 655 |
) |
656 |
) |
|
657 |
) |
|
713 | 658 |
#label: 'Grid Parameter' |
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
659 |
#labelPosition: #topLeft |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
660 |
#translateLabel: true |
366 | 661 |
) |
446 | 662 |
#(#UISubSpecification |
743 | 663 |
#name: 'subSpec' |
713 | 664 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
665 |
#majorKey: #ToolApplicationModel |
|
666 |
#minorKey: #windowSpecForCommitWithoutChannels |
|
366 | 667 |
) |
668 |
) |
|
669 |
) |
|
670 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
671 |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
672 |
"Modified: / 13.8.1998 / 20:00:00 / cg" |
366 | 673 |
! |
674 |
||
743 | 675 |
windowSpec |
676 |
"This resource specification was automatically generated |
|
677 |
by the UIPainter of ST/X." |
|
678 |
||
679 |
"Do not manually edit this!! If it is corrupted, |
|
680 |
the UIPainter may not be able to read the specification." |
|
222 | 681 |
|
682 |
" |
|
743 | 683 |
UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
684 |
UIPainter new openInterface:#windowSpec |
|
685 |
UIPainter open |
|
222 | 686 |
" |
687 |
||
688 |
<resource: #canvas> |
|
689 |
||
690 |
^ |
|
724 | 691 |
|
222 | 692 |
#(#FullSpec |
724 | 693 |
#window: |
222 | 694 |
#(#WindowSpec |
724 | 695 |
#name: 'GUI Painter' |
973 | 696 |
#layout: #(#LayoutFrame 42 0 188 0 561 0 689 0) |
724 | 697 |
#label: 'GUI Painter' |
765 | 698 |
#min: #(#Point 560 460) |
743 | 699 |
#max: #(#Point 1160 870) |
973 | 700 |
#bounds: #(#Rectangle 42 188 562 690) |
743 | 701 |
#menu: #menu |
724 | 702 |
#usePreferredExtent: false |
222 | 703 |
) |
724 | 704 |
#component: |
222 | 705 |
#(#SpecCollection |
724 | 706 |
#collection: |
222 | 707 |
#( |
743 | 708 |
#(#MenuPanelSpec |
709 |
#name: 'menuToolbarView' |
|
973 | 710 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
743 | 711 |
#tabable: true |
712 |
#menu: #menuToolbar |
|
713 |
) |
|
714 |
#(#VariableHorizontalPanelSpec |
|
715 |
#name: 'hpanel' |
|
716 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
724 | 717 |
#component: |
527 | 718 |
#(#SpecCollection |
724 | 719 |
#collection: |
527 | 720 |
#( |
743 | 721 |
#(#ArbitraryComponentSpec |
722 |
#name: 'treeView' |
|
724 | 723 |
#tabable: true |
743 | 724 |
#menu: #menuEdit |
725 |
#hasHorizontalScrollBar: true |
|
726 |
#hasVerticalScrollBar: true |
|
727 |
#miniScrollerHorizontal: true |
|
728 |
#miniScrollerVertical: true |
|
729 |
#component: #treeView |
|
730 |
#hasBorder: false |
|
527 | 731 |
) |
743 | 732 |
#(#ViewSpec |
733 |
#name: 'specHolderView' |
|
734 |
#component: |
|
735 |
#(#SpecCollection |
|
736 |
#collection: |
|
737 |
#( |
|
738 |
#(#MenuPanelSpec |
|
739 |
#name: 'menuToolbar2View' |
|
740 |
#layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0) |
|
741 |
#enableChannel: #canMoveOrAlignSelection |
|
742 |
#tabable: true |
|
743 |
#menu: #menuToolbar2 |
|
744 |
) |
|
745 |
#(#NoteBookViewSpec |
|
746 |
#name: 'noteBook' |
|
747 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0) |
|
748 |
#enableChannel: #enableChannel |
|
749 |
#tabable: true |
|
750 |
#model: #tabModel |
|
751 |
#menu: #tabList |
|
752 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
753 |
#canvas: #noteBookView |
|
754 |
) |
|
755 |
#(#HorizontalPanelViewSpec |
|
756 |
#name: 'horizontalPanelView1' |
|
757 |
#layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 31 0) |
|
758 |
#component: |
|
759 |
#(#SpecCollection |
|
760 |
#collection: |
|
761 |
#( |
|
762 |
#(#ArrowButtonSpec |
|
763 |
#name: 'MoveLeftButton' |
|
764 |
#activeHelpKey: #changePositionLeft |
|
765 |
#tabable: true |
|
766 |
#model: #moveSelectionLeft |
|
767 |
#enableChannel: #canMoveOrAlignSelection |
|
768 |
#isTriggerOnDown: true |
|
769 |
#direction: #left |
|
770 |
#extent: #(#Point 32 32) |
|
771 |
) |
|
772 |
#(#ArrowButtonSpec |
|
773 |
#name: 'MoveRightButton' |
|
774 |
#activeHelpKey: #changePositionRight |
|
775 |
#model: #moveSelectionRight |
|
776 |
#enableChannel: #canMoveOrAlignSelection |
|
777 |
#isTriggerOnDown: true |
|
778 |
#direction: #right |
|
779 |
#extent: #(#Point 32 32) |
|
780 |
) |
|
781 |
#(#ArrowButtonSpec |
|
782 |
#name: 'MoveDownButton' |
|
783 |
#activeHelpKey: #changePositionDown |
|
784 |
#model: #moveSelectionDown |
|
785 |
#enableChannel: #canMoveOrAlignSelection |
|
786 |
#isTriggerOnDown: true |
|
787 |
#direction: #down |
|
788 |
#extent: #(#Point 32 32) |
|
789 |
) |
|
790 |
#(#ArrowButtonSpec |
|
791 |
#name: 'MoveUpButton' |
|
792 |
#activeHelpKey: #changePositionUp |
|
793 |
#model: #moveSelectionUp |
|
794 |
#enableChannel: #canMoveOrAlignSelection |
|
795 |
#isTriggerOnDown: true |
|
796 |
#direction: #up |
|
797 |
#extent: #(#Point 32 32) |
|
798 |
) |
|
799 |
) |
|
800 |
) |
|
801 |
#horizontalLayout: #fit |
|
802 |
#verticalLayout: #fit |
|
803 |
#horizontalSpace: 0 |
|
804 |
#verticalSpace: 0 |
|
805 |
) |
|
806 |
#(#ActionButtonSpec |
|
755 | 807 |
#name: 'openWidgetDocumentationButton' |
743 | 808 |
#layout: #(#LayoutFrame -32 1 -1 0 0 1 31 0) |
809 |
#activeHelpKey: #editOpenSpecDocumentation |
|
810 |
#hasCharacterOrientedLabel: false |
|
811 |
#label: 'helpIcon' |
|
765 | 812 |
#model: #doOpenWidgetDocumentation |
743 | 813 |
) |
814 |
#(#ActionButtonSpec |
|
815 |
#name: 'cancelButton' |
|
816 |
#layout: #(#LayoutFrame 2 0 -26 1 -1 0.5 -2 1) |
|
755 | 817 |
#activeHelpKey: #commitCancel |
743 | 818 |
#label: 'Cancel' |
819 |
#tabable: true |
|
820 |
#model: #cancel |
|
821 |
#enableChannel: #modifiedChannel |
|
822 |
) |
|
823 |
#(#ActionButtonSpec |
|
824 |
#name: 'acceptButton' |
|
825 |
#layout: #(#LayoutFrame 1 0.5 -26 1 -2 1 -2 1) |
|
755 | 826 |
#activeHelpKey: #commitOK |
743 | 827 |
#label: 'OK' |
828 |
#tabable: true |
|
829 |
#model: #accept |
|
830 |
#enableChannel: #modifiedChannel |
|
831 |
) |
|
832 |
) |
|
833 |
) |
|
834 |
#borderWidth: 1 |
|
527 | 835 |
) |
836 |
) |
|
837 |
) |
|
743 | 838 |
#level: 1 |
839 |
#handles: #(#Any 0.318868 1.0) |
|
222 | 840 |
) |
446 | 841 |
#(#UISubSpecification |
743 | 842 |
#name: 'infoBarSubSpec' |
843 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
724 | 844 |
#majorKey: #ToolApplicationModel |
743 | 845 |
#minorKey: #windowSpecForInfoBar |
222 | 846 |
) |
847 |
) |
|
848 |
) |
|
849 |
) |
|
850 |
! ! |
|
851 |
||
852 |
!UIPainter class methodsFor:'menu specs'! |
|
853 |
||
446 | 854 |
menu |
743 | 855 |
"This resource specification was automatically generated |
856 |
by the MenuEditor of ST/X." |
|
857 |
||
858 |
"Do not manually edit this!! If it is corrupted, |
|
859 |
the MenuEditor may not be able to read the specification." |
|
217 | 860 |
|
861 |
" |
|
446 | 862 |
MenuEditor new openOnClass:UIPainter andSelector:#menu |
863 |
(Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp |
|
864 |
" |
|
865 |
||
866 |
<resource: #menu> |
|
867 |
||
868 |
^ |
|
869 |
||
870 |
#(#Menu |
|
871 |
||
872 |
#( |
|
873 |
#(#MenuItem |
|
692 | 874 |
#label: 'About' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
875 |
#translateLabel: true |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
876 |
#activeHelpKey: #about |
692 | 877 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
878 |
#submenuChannel: #menuAbout |
|
446 | 879 |
) |
880 |
#(#MenuItem |
|
692 | 881 |
#label: 'File' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
882 |
#translateLabel: true |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
883 |
#activeHelpKey: #file |
692 | 884 |
#enabled: #enableChannel |
885 |
#submenu: |
|
446 | 886 |
#(#Menu |
887 |
||
888 |
#( |
|
889 |
#(#MenuItem |
|
692 | 890 |
#label: 'New' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
891 |
#translateLabel: true |
692 | 892 |
#value: #doNew |
893 |
#activeHelpKey: #fileNew |
|
446 | 894 |
) |
895 |
#(#MenuItem |
|
692 | 896 |
#label: '-' |
446 | 897 |
) |
898 |
#(#MenuItem |
|
692 | 899 |
#label: 'Load...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
900 |
#translateLabel: true |
713 | 901 |
#value: #doLoad |
692 | 902 |
#activeHelpKey: #fileLoad |
446 | 903 |
) |
904 |
#(#MenuItem |
|
692 | 905 |
#label: 'Load Subspec...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
906 |
#translateLabel: true |
713 | 907 |
#value: #doLoadSubspec |
692 | 908 |
#activeHelpKey: #fileLoadSubspec |
533 | 909 |
) |
910 |
#(#MenuItem |
|
692 | 911 |
#label: '-' |
446 | 912 |
) |
913 |
#(#MenuItem |
|
692 | 914 |
#label: 'Save' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
915 |
#translateLabel: true |
713 | 916 |
#value: #doSave |
692 | 917 |
#activeHelpKey: #fileSave |
446 | 918 |
) |
919 |
#(#MenuItem |
|
713 | 920 |
#label: 'Save As...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
921 |
#translateLabel: true |
713 | 922 |
#value: #doSaveAs |
923 |
#activeHelpKey: #fileSaveAs |
|
446 | 924 |
) |
925 |
#(#MenuItem |
|
692 | 926 |
#label: 'Define Class And Selector...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
927 |
#translateLabel: true |
755 | 928 |
#value: #doDefineClassAndSelector |
713 | 929 |
#activeHelpKey: #fileSaveAs |
446 | 930 |
) |
931 |
#(#MenuItem |
|
692 | 932 |
#label: '-' |
446 | 933 |
) |
934 |
#(#MenuItem |
|
713 | 935 |
#label: 'Pick A Window Spec...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
936 |
#translateLabel: true |
692 | 937 |
#value: #doPickAView |
938 |
#activeHelpKey: #filePickAnInterface |
|
498 | 939 |
) |
940 |
#(#MenuItem |
|
692 | 941 |
#label: '-' |
498 | 942 |
) |
943 |
#(#MenuItem |
|
713 | 944 |
#label: 'Show Window Spec' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
945 |
#translateLabel: true |
692 | 946 |
#value: #doWindowSpec |
713 | 947 |
#activeHelpKey: #fileShowWindowSpec |
446 | 948 |
) |
949 |
#(#MenuItem |
|
713 | 950 |
#label: 'Browse Class' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
951 |
#translateLabel: true |
713 | 952 |
#value: #doBrowseClass |
953 |
#activeHelpKey: #fileBrowseClass |
|
692 | 954 |
#enabled: #hasSpecClass |
446 | 955 |
) |
956 |
#(#MenuItem |
|
692 | 957 |
#label: 'Browse Aspect Methods' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
958 |
#translateLabel: true |
692 | 959 |
#value: #doBrowseAspectMethods |
713 | 960 |
#activeHelpKey: #fileBrowseAspectMethods |
692 | 961 |
#enabled: #hasSpecClass |
446 | 962 |
) |
963 |
#(#MenuItem |
|
692 | 964 |
#label: '-' |
446 | 965 |
) |
966 |
#(#MenuItem |
|
692 | 967 |
#label: 'Exit' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
968 |
#translateLabel: true |
692 | 969 |
#value: #closeRequest |
970 |
#activeHelpKey: #fileExit |
|
446 | 971 |
) |
972 |
) nil |
|
973 |
nil |
|
974 |
) |
|
975 |
) |
|
976 |
#(#MenuItem |
|
692 | 977 |
#label: 'Edit' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
978 |
#translateLabel: true |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
979 |
#activeHelpKey: #edit |
692 | 980 |
#submenuChannel: #menuEdit |
446 | 981 |
) |
982 |
#(#MenuItem |
|
692 | 983 |
#label: 'Align' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
984 |
#translateLabel: true |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
985 |
#activeHelpKey: #align |
692 | 986 |
#submenuChannel: #menuAlign |
564 | 987 |
) |
988 |
#(#MenuItem |
|
713 | 989 |
#label: 'Generate' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
990 |
#translateLabel: true |
934 | 991 |
#activeHelpKey: #generate |
713 | 992 |
#submenu: |
993 |
#(#Menu |
|
994 |
||
995 |
#( |
|
996 |
#(#MenuItem |
|
997 |
#label: 'Aspect Methods' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
998 |
#translateLabel: true |
743 | 999 |
#value: #doGenerateAspectMethods |
713 | 1000 |
#activeHelpKey: #generateAspectMethods |
1001 |
#enabled: #hasSpecClass |
|
1002 |
) |
|
1003 |
#(#MenuItem |
|
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1004 |
#label: 'Menu Stub Methods' |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1005 |
#translateLabel: true |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1006 |
#value: #doGenerateMenuMethods |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1007 |
) |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1008 |
#(#MenuItem |
713 | 1009 |
#label: '-' |
1010 |
) |
|
1011 |
#(#MenuItem |
|
1012 |
#label: 'Hook Methods' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1013 |
#translateLabel: true |
743 | 1014 |
#value: #doGenerateHookMethods |
713 | 1015 |
#activeHelpKey: #generateHookMethods |
1016 |
#enabled: #hasSpecClass |
|
1017 |
) |
|
1018 |
) nil |
|
1019 |
nil |
|
1020 |
) |
|
1021 |
) |
|
1022 |
#(#MenuItem |
|
692 | 1023 |
#label: 'Test' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1024 |
#translateLabel: true |
934 | 1025 |
#activeHelpKey: #test |
692 | 1026 |
#submenu: |
446 | 1027 |
#(#Menu |
1028 |
||
1029 |
#( |
|
1030 |
#(#MenuItem |
|
692 | 1031 |
#label: 'Start Application' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1032 |
#translateLabel: true |
692 | 1033 |
#value: #doStartApplication |
1034 |
#activeHelpKey: #testStartApplication |
|
466 | 1035 |
) |
1036 |
#(#MenuItem |
|
692 | 1037 |
#label: '-' |
466 | 1038 |
) |
1039 |
#(#MenuItem |
|
692 | 1040 |
#label: 'Geometry Test Mode' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1041 |
#translateLabel: true |
713 | 1042 |
#activeHelpKey: #testGeometryTestMode |
692 | 1043 |
#indication: #testMode: |
446 | 1044 |
) |
1045 |
) nil |
|
1046 |
nil |
|
1047 |
) |
|
1048 |
) |
|
1049 |
#(#MenuItem |
|
692 | 1050 |
#label: 'Settings' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1051 |
#translateLabel: true |
934 | 1052 |
#activeHelpKey: #settings |
692 | 1053 |
#submenu: |
446 | 1054 |
#(#Menu |
1055 |
||
1056 |
#( |
|
1057 |
#(#MenuItem |
|
713 | 1058 |
#label: 'Canvas' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1059 |
#translateLabel: true |
713 | 1060 |
#activeHelpKey: #settingsCanvas |
1061 |
#indication: #painterShown |
|
1062 |
) |
|
1063 |
#(#MenuItem |
|
1064 |
#label: 'Gallery' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1065 |
#translateLabel: true |
713 | 1066 |
#activeHelpKey: #settingsGallery |
1067 |
#indication: #galleryShown |
|
446 | 1068 |
) |
1069 |
#(#MenuItem |
|
692 | 1070 |
#label: '-' |
446 | 1071 |
) |
1072 |
#(#MenuItem |
|
743 | 1073 |
#label: 'Redefine Aspect Methods' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1074 |
#translateLabel: true |
743 | 1075 |
#activeHelpKey: #settingsRedefineAspectMethods |
1076 |
#enabled: #hasSpecClass |
|
1077 |
#indication: #redefineAspectMethods: |
|
1078 |
) |
|
1079 |
#(#MenuItem |
|
924 | 1080 |
#label: 'Aspects As Instances' |
1081 |
#translateLabel: true |
|
1082 |
#activeHelpKey: #settingsAspectsAsInstances |
|
1083 |
#enabled: #hasSpecClass |
|
1084 |
#indication: #generateAspectsAsInstanceVariables: |
|
1085 |
) |
|
1086 |
#(#MenuItem |
|
743 | 1087 |
#label: '-' |
1088 |
) |
|
1089 |
#(#MenuItem |
|
1090 |
#label: 'Fonts' |
|
1091 |
#submenuChannel: #menuFont |
|
1092 |
) |
|
1093 |
#(#MenuItem |
|
1094 |
#label: '-' |
|
1095 |
) |
|
1096 |
#(#MenuItem |
|
713 | 1097 |
#label: 'Undo Manager...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1098 |
#translateLabel: true |
713 | 1099 |
#value: #openUndoMenu |
1100 |
#activeHelpKey: #settingsUndoManager |
|
755 | 1101 |
#enabled: #hasUndoHistory |
713 | 1102 |
) |
1103 |
#(#MenuItem |
|
692 | 1104 |
#label: 'Grid Manager...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1105 |
#translateLabel: true |
755 | 1106 |
#value: #doDefineGrid |
713 | 1107 |
#activeHelpKey: #settingsGridManager |
1108 |
) |
|
446 | 1109 |
) nil |
1110 |
nil |
|
1111 |
) |
|
1112 |
) |
|
1113 |
#(#MenuItem |
|
692 | 1114 |
#label: 'History' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1115 |
#translateLabel: true |
934 | 1116 |
#activeHelpKey: #history |
692 | 1117 |
#submenuChannel: #menuHistory |
446 | 1118 |
) |
1119 |
#(#MenuItem |
|
692 | 1120 |
#label: 'Help' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1121 |
#translateLabel: true |
692 | 1122 |
#startGroup: #right |
934 | 1123 |
#activeHelpKey: #help |
713 | 1124 |
#submenu: |
564 | 1125 |
#(#Menu |
1126 |
||
1127 |
#( |
|
1128 |
#(#MenuItem |
|
724 | 1129 |
#label: 'Tutorial' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1130 |
#translateLabel: true |
724 | 1131 |
#value: #openHTMLDocument: |
713 | 1132 |
#activeHelpKey: #helpTutorial |
724 | 1133 |
#argument: 'tools/uipainter/TOP.html' |
1134 |
) |
|
1135 |
#(#MenuItem |
|
1136 |
#label: '-' |
|
1137 |
) |
|
1138 |
#(#MenuItem |
|
1139 |
#label: 'Functions' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1140 |
#translateLabel: true |
724 | 1141 |
#value: #openHTMLDocument: |
755 | 1142 |
#activeHelpKey: #helpFunctions |
724 | 1143 |
#argument: 'tools/uipainter/Functions.html' |
564 | 1144 |
) |
1145 |
#(#MenuItem |
|
713 | 1146 |
#label: 'Examples' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1147 |
#translateLabel: true |
724 | 1148 |
#value: #openHTMLDocument: |
755 | 1149 |
#activeHelpKey: #helpExamples |
724 | 1150 |
#argument: 'tools/uipainter/Examples.html' |
564 | 1151 |
) |
1152 |
#(#MenuItem |
|
713 | 1153 |
#label: '-' |
564 | 1154 |
) |
1155 |
#(#MenuItem |
|
755 | 1156 |
#label: 'Help Tool' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1157 |
#translateLabel: true |
755 | 1158 |
#value: #openHTMLDocument: |
1159 |
#activeHelpKey: #helpHelpTool |
|
1160 |
#argument: 'tools/uipainter/HelpTool.html' |
|
1161 |
) |
|
1162 |
#(#MenuItem |
|
1163 |
#label: 'Layout Tool' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1164 |
#translateLabel: true |
755 | 1165 |
#value: #openHTMLDocument: |
1166 |
#activeHelpKey: #helpLayoutTool |
|
785 | 1167 |
#argument: 'tools/uipainter/LayoutTool.html' |
755 | 1168 |
) |
1169 |
#(#MenuItem |
|
1170 |
#label: '-' |
|
1171 |
) |
|
1172 |
#(#MenuItem |
|
1173 |
#label: 'Selected Widget' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1174 |
#translateLabel: true |
785 | 1175 |
#value: #doOpenWidgetDocumentation |
755 | 1176 |
#activeHelpKey: #helpSelectedWidget |
1177 |
) |
|
1178 |
#(#MenuItem |
|
1179 |
#label: '-' |
|
1180 |
) |
|
1181 |
#(#MenuItem |
|
713 | 1182 |
#label: 'Show Help Texts' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1183 |
#translateLabel: true |
713 | 1184 |
#activeHelpKey: #helpShowHelp |
934 | 1185 |
#indication: #showingHelp: |
564 | 1186 |
) |
1187 |
) nil |
|
1188 |
nil |
|
1189 |
) |
|
1190 |
) |
|
1191 |
) nil |
|
1192 |
nil |
|
1193 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1194 |
|
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1195 |
"Modified: / 23.8.1998 / 16:09:22 / cg" |
564 | 1196 |
! |
1197 |
||
446 | 1198 |
menuAlign |
743 | 1199 |
"This resource specification was automatically generated |
1200 |
by the MenuEditor of ST/X." |
|
1201 |
||
778 | 1202 |
"Do not manually edit this!! If it is corrupted, |
743 | 1203 |
the MenuEditor may not be able to read the specification." |
446 | 1204 |
|
1205 |
" |
|
1206 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
1207 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 1208 |
" |
1209 |
||
1210 |
<resource: #menu> |
|
1211 |
||
1212 |
^ |
|
1213 |
||
1214 |
#(#Menu |
|
1215 |
||
1216 |
#( |
|
1217 |
#(#MenuItem |
|
713 | 1218 |
#label: 'Left' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1219 |
#translateLabel: true |
713 | 1220 |
#value: #alignSelectionLeft |
1221 |
#activeHelpKey: #alignSelectionLeft |
|
1222 |
#enabled: #canMoveOrAlignSelection |
|
1223 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignL 'Left') |
|
446 | 1224 |
) |
1225 |
#(#MenuItem |
|
713 | 1226 |
#label: 'Right' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1227 |
#translateLabel: true |
713 | 1228 |
#value: #alignSelectionRight |
1229 |
#activeHelpKey: #alignSelectionRight |
|
1230 |
#enabled: #canMoveOrAlignSelection |
|
1231 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignR 'Right') |
|
446 | 1232 |
) |
1233 |
#(#MenuItem |
|
713 | 1234 |
#label: 'Left & Right' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1235 |
#translateLabel: true |
713 | 1236 |
#value: #alignSelectionLeftAndRight |
1237 |
#activeHelpKey: #alignSelectionLeftAndRight |
|
1238 |
#enabled: #canMoveOrAlignSelection |
|
1239 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignLR 'Left & Right') |
|
446 | 1240 |
) |
1241 |
#(#MenuItem |
|
713 | 1242 |
#label: 'Top' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1243 |
#translateLabel: true |
713 | 1244 |
#value: #alignSelectionTop |
1245 |
#activeHelpKey: #alignSelectionTop |
|
1246 |
#enabled: #canMoveOrAlignSelection |
|
1247 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignT 'Top') |
|
446 | 1248 |
) |
1249 |
#(#MenuItem |
|
713 | 1250 |
#label: 'Bottom' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1251 |
#translateLabel: true |
713 | 1252 |
#value: #alignSelectionBottom |
1253 |
#activeHelpKey: #alignSelectionBottom |
|
1254 |
#enabled: #canMoveOrAlignSelection |
|
1255 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignB 'Bottom') |
|
446 | 1256 |
) |
1257 |
#(#MenuItem |
|
713 | 1258 |
#label: 'Top & Bottom' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1259 |
#translateLabel: true |
713 | 1260 |
#value: #alignSelectionTopAndBottom |
1261 |
#activeHelpKey: #alignSelectionTopAndBottom |
|
1262 |
#enabled: #canMoveOrAlignSelection |
|
1263 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignTB 'Top & Bottom') |
|
446 | 1264 |
) |
1265 |
#(#MenuItem |
|
713 | 1266 |
#label: '-' |
446 | 1267 |
) |
1268 |
#(#MenuItem |
|
713 | 1269 |
#label: 'Centered Horizontal' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1270 |
#translateLabel: true |
713 | 1271 |
#value: #alignSelectionCenterHor |
1272 |
#activeHelpKey: #alignSelectionCenterHor |
|
1273 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1274 |
) |
1275 |
#(#MenuItem |
|
713 | 1276 |
#label: 'Centered Vertical' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1277 |
#translateLabel: true |
713 | 1278 |
#value: #alignSelectionCenterVer |
1279 |
#activeHelpKey: #alignSelectionCenterVer |
|
1280 |
#enabled: #canMoveOrAlignSelection |
|
1281 |
) |
|
1282 |
#(#MenuItem |
|
1283 |
#label: '-' |
|
446 | 1284 |
) |
1285 |
#(#MenuItem |
|
713 | 1286 |
#label: 'Center Horizontal In Frame' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1287 |
#translateLabel: true |
713 | 1288 |
#value: #centerSelectionHor |
1289 |
#activeHelpKey: #centerSelectionHor |
|
1290 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1291 |
) |
1292 |
#(#MenuItem |
|
713 | 1293 |
#label: 'Center Vertical In Frame' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1294 |
#translateLabel: true |
713 | 1295 |
#value: #centerSelectionVer |
1296 |
#activeHelpKey: #centerSelectionVer |
|
1297 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1298 |
) |
1299 |
#(#MenuItem |
|
713 | 1300 |
#label: '-' |
446 | 1301 |
) |
1302 |
#(#MenuItem |
|
713 | 1303 |
#label: 'Spread Horizontal' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1304 |
#translateLabel: true |
713 | 1305 |
#value: #spreadSelectionHor |
1306 |
#activeHelpKey: #spreadSelectionHor |
|
1307 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1308 |
) |
1309 |
#(#MenuItem |
|
713 | 1310 |
#label: 'Spread Vertical' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1311 |
#translateLabel: true |
713 | 1312 |
#value: #spreadSelectionVer |
1313 |
#activeHelpKey: #spreadSelectionVer |
|
1314 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1315 |
) |
1316 |
) nil |
|
1317 |
nil |
|
1318 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1319 |
|
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1320 |
"Modified: / 20.5.1998 / 01:42:57 / cg" |
446 | 1321 |
! |
1322 |
||
1323 |
menuEdit |
|
743 | 1324 |
"This resource specification was automatically generated |
1325 |
by the MenuEditor of ST/X." |
|
1326 |
||
755 | 1327 |
"Do not manually edit this!! If it is corrupted, |
743 | 1328 |
the MenuEditor may not be able to read the specification." |
446 | 1329 |
|
1330 |
" |
|
1331 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
1332 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
1333 |
" |
|
1334 |
||
1335 |
<resource: #menu> |
|
1336 |
||
1337 |
^ |
|
1338 |
||
1339 |
#(#Menu |
|
1340 |
||
1341 |
#( |
|
1342 |
#(#MenuItem |
|
713 | 1343 |
#label: 'Undo' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1344 |
#translateLabel: true |
713 | 1345 |
#nameKey: #undo |
1346 |
#value: #undoLast |
|
1347 |
#activeHelpKey: #editUndo |
|
1348 |
#enabled: #hasUndoHistory |
|
1349 |
#shortcutKeyCharacter: #Cmdu |
|
1350 |
) |
|
1351 |
#(#MenuItem |
|
1352 |
#label: '-' |
|
1353 |
) |
|
1354 |
#(#MenuItem |
|