author | Claus Gittinger <cg@exept.de> |
Thu, 13 Aug 1998 20:34:18 +0200 | |
changeset 952 | c6408190dc6d |
parent 950 | 3e227dc788be |
child 964 | 476235fbb312 |
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' |
787 | 696 |
#layout: #(#LayoutFrame 218 0 175 0 737 0 676 0) |
724 | 697 |
#label: 'GUI Painter' |
765 | 698 |
#min: #(#Point 560 460) |
743 | 699 |
#max: #(#Point 1160 870) |
787 | 700 |
#bounds: #(#Rectangle 218 175 738 677) |
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' |
|
710 |
#layout: #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0) |
|
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 |
692 | 876 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
934 | 877 |
#activeHelpKey: #about |
692 | 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 |
692 | 883 |
#enabled: #enableChannel |
934 | 884 |
#activeHelpKey: #file |
692 | 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 |
692 | 979 |
#submenuChannel: #menuEdit |
934 | 980 |
#activeHelpKey: #edit |
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 |
692 | 985 |
#submenuChannel: #menuAlign |
934 | 986 |
#activeHelpKey: #align |
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 |
|
1004 |
#label: '-' |
|
1005 |
) |
|
1006 |
#(#MenuItem |
|
1007 |
#label: 'Hook Methods' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1008 |
#translateLabel: true |
743 | 1009 |
#value: #doGenerateHookMethods |
713 | 1010 |
#activeHelpKey: #generateHookMethods |
1011 |
#enabled: #hasSpecClass |
|
1012 |
) |
|
1013 |
) nil |
|
1014 |
nil |
|
1015 |
) |
|
1016 |
) |
|
1017 |
#(#MenuItem |
|
692 | 1018 |
#label: 'Test' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1019 |
#translateLabel: true |
934 | 1020 |
#activeHelpKey: #test |
692 | 1021 |
#submenu: |
446 | 1022 |
#(#Menu |
1023 |
||
1024 |
#( |
|
1025 |
#(#MenuItem |
|
692 | 1026 |
#label: 'Start Application' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1027 |
#translateLabel: true |
692 | 1028 |
#value: #doStartApplication |
1029 |
#activeHelpKey: #testStartApplication |
|
466 | 1030 |
) |
1031 |
#(#MenuItem |
|
692 | 1032 |
#label: '-' |
466 | 1033 |
) |
1034 |
#(#MenuItem |
|
692 | 1035 |
#label: 'Geometry Test Mode' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1036 |
#translateLabel: true |
713 | 1037 |
#activeHelpKey: #testGeometryTestMode |
692 | 1038 |
#indication: #testMode: |
446 | 1039 |
) |
1040 |
) nil |
|
1041 |
nil |
|
1042 |
) |
|
1043 |
) |
|
1044 |
#(#MenuItem |
|
692 | 1045 |
#label: 'Settings' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1046 |
#translateLabel: true |
934 | 1047 |
#activeHelpKey: #settings |
692 | 1048 |
#submenu: |
446 | 1049 |
#(#Menu |
1050 |
||
1051 |
#( |
|
1052 |
#(#MenuItem |
|
713 | 1053 |
#label: 'Canvas' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1054 |
#translateLabel: true |
713 | 1055 |
#activeHelpKey: #settingsCanvas |
1056 |
#indication: #painterShown |
|
1057 |
) |
|
1058 |
#(#MenuItem |
|
1059 |
#label: 'Gallery' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1060 |
#translateLabel: true |
713 | 1061 |
#activeHelpKey: #settingsGallery |
1062 |
#indication: #galleryShown |
|
446 | 1063 |
) |
1064 |
#(#MenuItem |
|
692 | 1065 |
#label: '-' |
446 | 1066 |
) |
1067 |
#(#MenuItem |
|
743 | 1068 |
#label: 'Redefine Aspect Methods' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1069 |
#translateLabel: true |
743 | 1070 |
#activeHelpKey: #settingsRedefineAspectMethods |
1071 |
#enabled: #hasSpecClass |
|
1072 |
#indication: #redefineAspectMethods: |
|
1073 |
) |
|
1074 |
#(#MenuItem |
|
924 | 1075 |
#label: 'Aspects As Instances' |
1076 |
#translateLabel: true |
|
1077 |
#activeHelpKey: #settingsAspectsAsInstances |
|
1078 |
#enabled: #hasSpecClass |
|
1079 |
#indication: #generateAspectsAsInstanceVariables: |
|
1080 |
) |
|
1081 |
#(#MenuItem |
|
743 | 1082 |
#label: '-' |
1083 |
) |
|
1084 |
#(#MenuItem |
|
1085 |
#label: 'Fonts' |
|
1086 |
#submenuChannel: #menuFont |
|
1087 |
) |
|
1088 |
#(#MenuItem |
|
1089 |
#label: '-' |
|
1090 |
) |
|
1091 |
#(#MenuItem |
|
713 | 1092 |
#label: 'Undo Manager...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1093 |
#translateLabel: true |
713 | 1094 |
#value: #openUndoMenu |
1095 |
#activeHelpKey: #settingsUndoManager |
|
755 | 1096 |
#enabled: #hasUndoHistory |
713 | 1097 |
) |
1098 |
#(#MenuItem |
|
692 | 1099 |
#label: 'Grid Manager...' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1100 |
#translateLabel: true |
755 | 1101 |
#value: #doDefineGrid |
713 | 1102 |
#activeHelpKey: #settingsGridManager |
1103 |
) |
|
446 | 1104 |
) nil |
1105 |
nil |
|
1106 |
) |
|
1107 |
) |
|
1108 |
#(#MenuItem |
|
692 | 1109 |
#label: 'History' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1110 |
#translateLabel: true |
934 | 1111 |
#activeHelpKey: #history |
692 | 1112 |
#submenuChannel: #menuHistory |
446 | 1113 |
) |
1114 |
#(#MenuItem |
|
692 | 1115 |
#label: 'Help' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1116 |
#translateLabel: true |
692 | 1117 |
#startGroup: #right |
934 | 1118 |
#activeHelpKey: #help |
713 | 1119 |
#submenu: |
564 | 1120 |
#(#Menu |
1121 |
||
1122 |
#( |
|
1123 |
#(#MenuItem |
|
724 | 1124 |
#label: 'Tutorial' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1125 |
#translateLabel: true |
724 | 1126 |
#value: #openHTMLDocument: |
713 | 1127 |
#activeHelpKey: #helpTutorial |
724 | 1128 |
#argument: 'tools/uipainter/TOP.html' |
1129 |
) |
|
1130 |
#(#MenuItem |
|
1131 |
#label: '-' |
|
1132 |
) |
|
1133 |
#(#MenuItem |
|
1134 |
#label: 'Functions' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1135 |
#translateLabel: true |
724 | 1136 |
#value: #openHTMLDocument: |
755 | 1137 |
#activeHelpKey: #helpFunctions |
724 | 1138 |
#argument: 'tools/uipainter/Functions.html' |
564 | 1139 |
) |
1140 |
#(#MenuItem |
|
713 | 1141 |
#label: 'Examples' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1142 |
#translateLabel: true |
724 | 1143 |
#value: #openHTMLDocument: |
755 | 1144 |
#activeHelpKey: #helpExamples |
724 | 1145 |
#argument: 'tools/uipainter/Examples.html' |
564 | 1146 |
) |
1147 |
#(#MenuItem |
|
713 | 1148 |
#label: '-' |
564 | 1149 |
) |
1150 |
#(#MenuItem |
|
755 | 1151 |
#label: 'Help Tool' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1152 |
#translateLabel: true |
755 | 1153 |
#value: #openHTMLDocument: |
1154 |
#activeHelpKey: #helpHelpTool |
|
1155 |
#argument: 'tools/uipainter/HelpTool.html' |
|
1156 |
) |
|
1157 |
#(#MenuItem |
|
1158 |
#label: 'Layout Tool' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1159 |
#translateLabel: true |
755 | 1160 |
#value: #openHTMLDocument: |
1161 |
#activeHelpKey: #helpLayoutTool |
|
785 | 1162 |
#argument: 'tools/uipainter/LayoutTool.html' |
755 | 1163 |
) |
1164 |
#(#MenuItem |
|
1165 |
#label: '-' |
|
1166 |
) |
|
1167 |
#(#MenuItem |
|
1168 |
#label: 'Selected Widget' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1169 |
#translateLabel: true |
785 | 1170 |
#value: #doOpenWidgetDocumentation |
755 | 1171 |
#activeHelpKey: #helpSelectedWidget |
1172 |
) |
|
1173 |
#(#MenuItem |
|
1174 |
#label: '-' |
|
1175 |
) |
|
1176 |
#(#MenuItem |
|
713 | 1177 |
#label: 'Show Help Texts' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1178 |
#translateLabel: true |
713 | 1179 |
#activeHelpKey: #helpShowHelp |
934 | 1180 |
#indication: #showingHelp: |
564 | 1181 |
) |
1182 |
) nil |
|
1183 |
nil |
|
1184 |
) |
|
1185 |
) |
|
1186 |
) nil |
|
1187 |
nil |
|
1188 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1189 |
|
934 | 1190 |
"Modified: / 31.7.1998 / 19:23:26 / cg" |
564 | 1191 |
! |
1192 |
||
446 | 1193 |
menuAlign |
743 | 1194 |
"This resource specification was automatically generated |
1195 |
by the MenuEditor of ST/X." |
|
1196 |
||
778 | 1197 |
"Do not manually edit this!! If it is corrupted, |
743 | 1198 |
the MenuEditor may not be able to read the specification." |
446 | 1199 |
|
1200 |
" |
|
1201 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
1202 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 1203 |
" |
1204 |
||
1205 |
<resource: #menu> |
|
1206 |
||
1207 |
^ |
|
1208 |
||
1209 |
#(#Menu |
|
1210 |
||
1211 |
#( |
|
1212 |
#(#MenuItem |
|
713 | 1213 |
#label: 'Left' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1214 |
#translateLabel: true |
713 | 1215 |
#value: #alignSelectionLeft |
1216 |
#activeHelpKey: #alignSelectionLeft |
|
1217 |
#enabled: #canMoveOrAlignSelection |
|
1218 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignL 'Left') |
|
446 | 1219 |
) |
1220 |
#(#MenuItem |
|
713 | 1221 |
#label: 'Right' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1222 |
#translateLabel: true |
713 | 1223 |
#value: #alignSelectionRight |
1224 |
#activeHelpKey: #alignSelectionRight |
|
1225 |
#enabled: #canMoveOrAlignSelection |
|
1226 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignR 'Right') |
|
446 | 1227 |
) |
1228 |
#(#MenuItem |
|
713 | 1229 |
#label: 'Left & Right' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1230 |
#translateLabel: true |
713 | 1231 |
#value: #alignSelectionLeftAndRight |
1232 |
#activeHelpKey: #alignSelectionLeftAndRight |
|
1233 |
#enabled: #canMoveOrAlignSelection |
|
1234 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignLR 'Left & Right') |
|
446 | 1235 |
) |
1236 |
#(#MenuItem |
|
713 | 1237 |
#label: 'Top' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1238 |
#translateLabel: true |
713 | 1239 |
#value: #alignSelectionTop |
1240 |
#activeHelpKey: #alignSelectionTop |
|
1241 |
#enabled: #canMoveOrAlignSelection |
|
1242 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignT 'Top') |
|
446 | 1243 |
) |
1244 |
#(#MenuItem |
|
713 | 1245 |
#label: 'Bottom' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1246 |
#translateLabel: true |
713 | 1247 |
#value: #alignSelectionBottom |
1248 |
#activeHelpKey: #alignSelectionBottom |
|
1249 |
#enabled: #canMoveOrAlignSelection |
|
1250 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignB 'Bottom') |
|
446 | 1251 |
) |
1252 |
#(#MenuItem |
|
713 | 1253 |
#label: 'Top & Bottom' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1254 |
#translateLabel: true |
713 | 1255 |
#value: #alignSelectionTopAndBottom |
1256 |
#activeHelpKey: #alignSelectionTopAndBottom |
|
1257 |
#enabled: #canMoveOrAlignSelection |
|
1258 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignTB 'Top & Bottom') |
|
446 | 1259 |
) |
1260 |
#(#MenuItem |
|
713 | 1261 |
#label: '-' |
446 | 1262 |
) |
1263 |
#(#MenuItem |
|
713 | 1264 |
#label: 'Centered Horizontal' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1265 |
#translateLabel: true |
713 | 1266 |
#value: #alignSelectionCenterHor |
1267 |
#activeHelpKey: #alignSelectionCenterHor |
|
1268 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1269 |
) |
1270 |
#(#MenuItem |
|
713 | 1271 |
#label: 'Centered Vertical' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1272 |
#translateLabel: true |
713 | 1273 |
#value: #alignSelectionCenterVer |
1274 |
#activeHelpKey: #alignSelectionCenterVer |
|
1275 |
#enabled: #canMoveOrAlignSelection |
|
1276 |
) |
|
1277 |
#(#MenuItem |
|
1278 |
#label: '-' |
|
446 | 1279 |
) |
1280 |
#(#MenuItem |
|
713 | 1281 |
#label: 'Center Horizontal In Frame' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1282 |
#translateLabel: true |
713 | 1283 |
#value: #centerSelectionHor |
1284 |
#activeHelpKey: #centerSelectionHor |
|
1285 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1286 |
) |
1287 |
#(#MenuItem |
|
713 | 1288 |
#label: 'Center Vertical In Frame' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1289 |
#translateLabel: true |
713 | 1290 |
#value: #centerSelectionVer |
1291 |
#activeHelpKey: #centerSelectionVer |
|
1292 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1293 |
) |
1294 |
#(#MenuItem |
|
713 | 1295 |
#label: '-' |
446 | 1296 |
) |
1297 |
#(#MenuItem |
|
713 | 1298 |
#label: 'Spread Horizontal' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1299 |
#translateLabel: true |
713 | 1300 |
#value: #spreadSelectionHor |
1301 |
#activeHelpKey: #spreadSelectionHor |
|
1302 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1303 |
) |
1304 |
#(#MenuItem |
|
713 | 1305 |
#label: 'Spread Vertical' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1306 |
#translateLabel: true |
713 | 1307 |
#value: #spreadSelectionVer |
1308 |
#activeHelpKey: #spreadSelectionVer |
|
1309 |
#enabled: #canMoveOrAlignSelection |
|
446 | 1310 |
) |
1311 |
) nil |
|
1312 |
nil |
|
1313 |
) |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1314 |
|
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1315 |
"Modified: / 20.5.1998 / 01:42:57 / cg" |
446 | 1316 |
! |
1317 |
||
1318 |
menuEdit |
|
743 | 1319 |
"This resource specification was automatically generated |
1320 |
by the MenuEditor of ST/X." |
|
1321 |
||
755 | 1322 |
"Do not manually edit this!! If it is corrupted, |
743 | 1323 |
the MenuEditor may not be able to read the specification." |
446 | 1324 |
|
1325 |
" |
|
1326 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
1327 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
1328 |
" |
|
1329 |
||
1330 |
<resource: #menu> |
|
1331 |
||
1332 |
^ |
|
1333 |
||
1334 |
#(#Menu |
|
1335 |
||
1336 |
#( |
|
1337 |
#(#MenuItem |
|
713 | 1338 |
#label: 'Undo' |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1339 |
#translateLabel: true |
713 | 1340 |
#nameKey: #undo |
1341 |
#value: #undoLast |
|
1342 |
#activeHelpKey: #editUndo |
|
1343 |
#enabled: #hasUndoHistory |
|
1344 |
#shortcutKeyCharacter: #Cmdu |
|
1345 |
) |
|
1346 |
#(#MenuItem |
|
1347 |
#label: '-' |
|
1348 |
) |
|
1349 |
#(#MenuItem |
|
1350 |
#label: 'Cut' |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1351 |
#translateLabel: true |
724 | 1352 |
#value: #deleteSelection |
713 | 1353 |
#activeHelpKey: #editCut |
1354 |
#enabled: #valueOfCanCut |
|
1355 |
#shortcutKeyCharacter: #Cut |
|