author | Claus Gittinger <cg@exept.de> |
Wed, 07 May 2003 17:18:38 +0200 | |
changeset 1721 | 9c2fba503547 |
parent 1716 | 5ae373f6fef0 |
child 1727 | 8c626d784494 |
permissions | -rw-r--r-- |
400 | 1 |
" |
767 | 2 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 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 |
|
405 | 7 |
inclusion of the above copyright notice. This software may not |
400 | 8 |
be provided or otherwise made available to, or used by, any |
405 | 9 |
other person. No title to or ownership of the software is |
400 | 10 |
hereby transferred. |
11 |
" |
|
12 |
||
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
13 |
"{ Package: 'stx:libtool2' }" |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
14 |
|
400 | 15 |
ToolApplicationModel subclass:#ImageEditor |
975 | 16 |
instanceVariableNames:'imageEditView colorMapMode editMode mouseKeyColorMode |
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
17 |
selectedColorIndex postOpenAction imageSeqNr drawingColormap' |
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
18 |
classVariableNames:'LastDirectory LastSizeString MaskClipboard LastColormapMode |
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
19 |
DefaultRelativeSizes' |
929 | 20 |
poolDictionaries:'' |
21 |
category:'Interface-UIPainter' |
|
400 | 22 |
! |
23 |
||
24 |
!ImageEditor class methodsFor:'documentation'! |
|
25 |
||
26 |
copyright |
|
27 |
" |
|
767 | 28 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 29 |
All Rights Reserved |
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
405 | 33 |
inclusion of the above copyright notice. This software may not |
400 | 34 |
be provided or otherwise made available to, or used by, any |
405 | 35 |
other person. No title to or ownership of the software is |
400 | 36 |
hereby transferred. |
37 |
" |
|
38 |
! |
|
39 |
||
40 |
documentation |
|
41 |
" |
|
737 | 42 |
Image Editor allows you to create, design, modify or just inspect images. |
400 | 43 |
|
44 |
[start with:] |
|
45 |
ImageEditor open |
|
941 | 46 |
ImageEditor openOnClass:Icon andSelector:#startIcon |
400 | 47 |
|
48 |
[see also:] |
|
49 |
ImageEditView Image |
|
50 |
||
51 |
[author:] |
|
544 | 52 |
Thomas Zwick, eXept Software AG |
400 | 53 |
" |
54 |
! ! |
|
55 |
||
56 |
!ImageEditor class methodsFor:'instance creation'! |
|
57 |
||
58 |
openModalOnClass: aClass andSelector: aSelector |
|
900 | 59 |
"opens modal a Image Editor on aClass and aSelector" |
767 | 60 |
" |
61 |
self openModalOnClass: self andSelector: #leftMouseKeyIcon |
|
62 |
" |
|
400 | 63 |
|
767 | 64 |
|imageEditor imageEditView className resourceClassName resourceSelector| |
65 |
||
400 | 66 |
imageEditor := self new. |
767 | 67 |
|
900 | 68 |
aClass isClass ifTrue: [className := aClass name]. |
69 |
aClass isString ifTrue: [className := aClass]. |
|
903 | 70 |
aClass isNil ifTrue: [className := '']. |
400 | 71 |
|
688 | 72 |
imageEditor postOpenAction: [imageEditView := imageEditor imageEditView. imageEditor loadFromOrPrepareForMessage: className, ' ', aSelector]. |
400 | 73 |
imageEditor openModal. |
74 |
||
688 | 75 |
resourceClassName := imageEditView resourceClass. |
767 | 76 |
resourceSelector := imageEditView resourceSelector. |
415 | 77 |
|
815 | 78 |
((className asString ~= resourceClassName) |
79 |
or:[aSelector asString ~= resourceSelector]) |
|
415 | 80 |
ifTrue: [^resourceClassName, ' ', resourceSelector] |
81 |
ifFalse:[^nil] |
|
400 | 82 |
! |
83 |
||
84 |
openOnClass: aClass andSelector: aSelector |
|
900 | 85 |
"opens a Image Editor on aClass and aSelector" |
767 | 86 |
" |
87 |
self openOnClass: self andSelector: #leftMouseKeyIcon |
|
88 |
" |
|
400 | 89 |
|
1057 | 90 |
|editor| |
91 |
||
92 |
editor := self new. |
|
93 |
editor allButOpen. |
|
1381 | 94 |
aSelector notNil ifTrue:[ |
95 |
editor loadFromMessage: aClass name, ' ', aSelector. |
|
96 |
] ifFalse:[ |
|
97 |
editor resourceClass:aClass |
|
98 |
]. |
|
1057 | 99 |
editor openWindow |
100 |
||
101 |
"Modified: / 16.3.1999 / 21:33:49 / cg" |
|
400 | 102 |
! |
103 |
||
767 | 104 |
openOnFile: aFileName |
900 | 105 |
"opens a Image Editor on aFileName" |
767 | 106 |
" |
107 |
self openOnFile: 'bitmaps/SmalltalkX.xbm' |
|
108 |
" |
|
400 | 109 |
|
1057 | 110 |
|editor| |
111 |
||
112 |
editor := self new. |
|
113 |
editor allButOpen. |
|
114 |
editor loadFromFile: aFileName. |
|
115 |
editor openWindow |
|
116 |
||
117 |
"Modified: / 16.3.1999 / 21:33:25 / cg" |
|
400 | 118 |
! |
119 |
||
767 | 120 |
openOnImage: anImage |
900 | 121 |
"opens a Image Editor on anImage" |
767 | 122 |
" |
895 | 123 |
self openOnImage: Icon startIcon |
767 | 124 |
" |
400 | 125 |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
126 |
|editor| |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
127 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
128 |
editor := self new. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
129 |
editor allButOpen. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
130 |
editor loadFromImage: anImage. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
131 |
editor openWindow |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
132 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
133 |
"Modified: / 11.3.1999 / 16:18:33 / cg" |
400 | 134 |
! ! |
135 |
||
136 |
!ImageEditor class methodsFor:'accessing'! |
|
137 |
||
138 |
listOfColorMaps |
|
767 | 139 |
"returns the list of default color maps for a new image" |
400 | 140 |
|
141 |
|colorMap| |
|
898 | 142 |
|
400 | 143 |
(colorMap := OrderedCollection new) |
144 |
add: Color black; |
|
145 |
add: Color white; |
|
146 |
add: Color red; |
|
147 |
add: Color green; |
|
148 |
add: Color blue; |
|
149 |
add: Color cyan; |
|
150 |
add: Color yellow; |
|
151 |
add: Color magenta; |
|
898 | 152 |
add: (Color redByte: 127 greenByte: 0 blueByte: 0); |
153 |
add: (Color redByte: 0 greenByte: 127 blueByte: 0); |
|
154 |
add: (Color redByte: 0 greenByte: 0 blueByte: 127); |
|
155 |
add: (Color redByte: 0 greenByte: 127 blueByte: 127); |
|
156 |
add: (Color redByte: 127 greenByte: 127 blueByte: 0); |
|
157 |
add: (Color redByte: 127 greenByte: 0 blueByte: 127); |
|
158 |
add: (Color redByte: 127 greenByte: 127 blueByte: 127); |
|
159 |
add: (Color redByte: 170 greenByte: 170 blueByte: 170). |
|
160 |
||
400 | 161 |
0 to: 5 do: |
162 |
[:r| |
|
163 |
0 to: 5 do: |
|
164 |
[:g| |
|
165 |
0 to: 5 do: |
|
166 |
[:b| |
|
898 | 167 |
colorMap add: (Color redByte: (r*255//5) ceiling greenByte: (g*255//5) ceiling blueByte: (b*255//5) ceiling) |
400 | 168 |
] |
169 |
] |
|
170 |
]. |
|
171 |
||
172 |
1 to: 25 do: |
|
173 |
[:g| |
|
898 | 174 |
colorMap add: (Color redByte: (g*255//26) ceiling greenByte: (g*255//26) ceiling blueByte: (g*255//26) ceiling) |
400 | 175 |
]. |
176 |
||
177 |
^Dictionary new |
|
178 |
at: '8-plane' put: colorMap; |
|
179 |
at: '8-plane + mask' put: colorMap; |
|
180 |
at: '4-plane' put: (colorMap copyFrom: 1 to: 16); |
|
181 |
at: '4-plane + mask' put: (colorMap copyFrom: 1 to: 16); |
|
182 |
at: '2-plane' put: (colorMap copyFrom: 1 to: 4); |
|
183 |
at: '2-plane + mask' put: (colorMap copyFrom: 1 to: 4); |
|
184 |
at: '1-plane' put: (colorMap copyFrom: 1 to: 2); |
|
185 |
at: '1-plane + mask' put: (colorMap copyFrom: 1 to: 2); |
|
186 |
yourself |
|
187 |
! |
|
188 |
||
189 |
listOfDefaultSizes |
|
767 | 190 |
"returns the list of default sizes for a new image" |
400 | 191 |
|
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
192 |
^#('8x8' '16x16' '22x22' '32x32' '48x48' '64x64') |
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
193 |
|
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
194 |
"Modified: / 31.7.1998 / 01:57:34 / cg" |
400 | 195 |
! ! |
196 |
||
460 | 197 |
!ImageEditor class methodsFor:'help specs'! |
198 |
||
1545 | 199 |
flyByHelpSpec |
200 |
<resource: #help> |
|
201 |
||
202 |
^super flyByHelpSpec addPairsFrom:#( |
|
203 |
||
204 |
#drawModeBox |
|
205 |
'Rectangle' |
|
206 |
||
207 |
#drawModeCopy |
|
208 |
'Copy' |
|
209 |
||
210 |
#drawModeFill |
|
1637 | 211 |
'Flood-Fill' |
1545 | 212 |
|
213 |
#drawModeFilledBox |
|
1637 | 214 |
'Filled Rectangle' |
1545 | 215 |
|
216 |
#drawModePaste |
|
217 |
'Paste' |
|
218 |
||
219 |
#drawModePasteUnder |
|
1637 | 220 |
'Paste Under' |
221 |
||
222 |
#drawModePasteWithMask |
|
1656 | 223 |
'Paste with Mask' |
1545 | 224 |
|
225 |
#drawModePoint |
|
226 |
'Point' |
|
227 |
||
1639 | 228 |
#drawModeSpecial |
229 |
'Special Operations' |
|
230 |
||
1545 | 231 |
#fileGrabImage |
1637 | 232 |
'Pick from Screen.' |
1545 | 233 |
|
234 |
#fileLoadFromClass |
|
235 |
'Load from Method' |
|
236 |
||
237 |
#fileLoadFromFile |
|
238 |
'Load from File.' |
|
239 |
||
240 |
#fileNewImage |
|
1637 | 241 |
'New Image' |
1545 | 242 |
|
243 |
#filePrint |
|
244 |
'Print' |
|
245 |
||
246 |
#fileSaveAs |
|
1637 | 247 |
'Save to File.' |
1545 | 248 |
|
249 |
#fileSaveMaskAs |
|
1637 | 250 |
'Save to File.' |
1545 | 251 |
|
252 |
#fileSaveMethod |
|
1637 | 253 |
'Save as Method' |
1545 | 254 |
|
255 |
#fileSaveMethodAs |
|
1637 | 256 |
'Save as Method' |
1545 | 257 |
|
258 |
) |
|
259 |
! |
|
260 |
||
460 | 261 |
helpSpec |
737 | 262 |
"This resource specification was automatically generated |
263 |
by the UIHelpTool of ST/X." |
|
264 |
||
265 |
"Do not manually edit this!! If it is corrupted, |
|
266 |
the UIHelpTool may not be able to read the specification." |
|
460 | 267 |
|
268 |
" |
|
737 | 269 |
UIHelpTool openOnClass:ImageEditor |
460 | 270 |
" |
271 |
||
737 | 272 |
<resource: #help> |
273 |
||
274 |
^super helpSpec addPairsFrom:#( |
|
460 | 275 |
|
276 |
#colorMap |
|
929 | 277 |
'ColorMap functions.' |
278 |
||
279 |
#colorMap1 |
|
280 |
'Convert to depth-1 image.' |
|
281 |
||
986 | 282 |
#colorMap1M |
283 |
'Convert to depth-1 image plus mask.' |
|
284 |
||
929 | 285 |
#colorMap2 |
286 |
'Convert to depth-2 image.' |
|
287 |
||
986 | 288 |
#colorMap2M |
289 |
'Convert to depth-2 image plus mask.' |
|
290 |
||
929 | 291 |
#colorMap4 |
292 |
'Convert to depth-4 image.' |
|
293 |
||
986 | 294 |
#colorMap4M |
295 |
'Convert to depth-4 image plus mask.' |
|
296 |
||
929 | 297 |
#colorMap8 |
298 |
'Convert to depth-8 image.' |
|
299 |
||
300 |
#colorMap8M |
|
301 |
'Convert to depth-8 image plus mask.' |
|
302 |
||
986 | 303 |
#colorMapTable |
304 |
'Shows a list of used colors of the image.' |
|
305 |
||
929 | 306 |
#compressColormap |
307 |
'Remove unneeded entries from the colorMap.' |
|
460 | 308 |
|
1045 | 309 |
#cropAll |
986 | 310 |
'Find and remove all borders.' |
311 |
||
1045 | 312 |
#cropBottom |
986 | 313 |
'Find and remove bottom border.' |
314 |
||
1045 | 315 |
#cropLeft |
986 | 316 |
'Find and remove left border.' |
317 |
||
1045 | 318 |
#cropManual |
986 | 319 |
'Specify border(s) to remove.' |
320 |
||
1045 | 321 |
#cropRight |
986 | 322 |
'Find and remove right border.' |
323 |
||
1045 | 324 |
#cropTop |
986 | 325 |
'Find and remove top border.' |
487 | 326 |
|
460 | 327 |
#drawModeBox |
1637 | 328 |
'Rectangle Drawing Mode.' |
460 | 329 |
|
330 |
#drawModeCopy |
|
1637 | 331 |
'Area Copy Mode.' |
460 | 332 |
|
333 |
#drawModeFill |
|
1637 | 334 |
'Flood Fill Mode.' |
460 | 335 |
|
336 |
#drawModeFilledBox |
|
1637 | 337 |
'Filled Rectangle Drawing Mode.' |
460 | 338 |
|
339 |
#drawModePaste |
|
1637 | 340 |
'Paste Mode.' |
914 | 341 |
|
342 |
#drawModePasteUnder |
|
1637 | 343 |
'Paste-Under Mode.' |
344 |
||
345 |
#drawModePasteWithMask |
|
346 |
'Paste-with-Mask Mode.' |
|
460 | 347 |
|
348 |
#drawModePoint |
|
1637 | 349 |
'Point Drawing Mode.' |
460 | 350 |
|
1639 | 351 |
#drawModeSpecial |
352 |
'Special Operations' |
|
353 |
||
460 | 354 |
#editFlipHorizontal |
1637 | 355 |
'Flip the image horizontally.' |
460 | 356 |
|
357 |
#editFlipVertical |
|
1637 | 358 |
'Flip the image vertically.' |
460 | 359 |
|
360 |
#editMagnifyImage |
|
914 | 361 |
'Magnify the image.' |
460 | 362 |
|
363 |
#editNegate |
|
914 | 364 |
'Invert the images colors.' |
460 | 365 |
|
366 |
#editResize |
|
914 | 367 |
'Resize the image (preserving the old image).' |
460 | 368 |
|
369 |
#editRotate |
|
914 | 370 |
'Rotate the image.' |
460 | 371 |
|
929 | 372 |
#fileGrabImage |
373 |
'Pick an image from the screen.' |
|
374 |
||
460 | 375 |
#fileLoadFromClass |
929 | 376 |
'Select and load an image from a resource method.' |
460 | 377 |
|
378 |
#fileLoadFromFile |
|
929 | 379 |
'Select and load an image from a file.' |
460 | 380 |
|
381 |
#fileNewImage |
|
914 | 382 |
'Create a new image' |
460 | 383 |
|
384 |
#filePrint |
|
385 |
'Print the image on a postscript printer.' |
|
386 |
||
387 |
#fileSaveAs |
|
914 | 388 |
'Save the image to a file.' |
460 | 389 |
|
390 |
#fileSaveMaskAs |
|
914 | 391 |
'Save the mask of the image to a file.' |
460 | 392 |
|
1613 | 393 |
#fileSaveButtonImageAs |
394 |
'Save an image of a button with the image to a file (for html use).' |
|
395 |
||
460 | 396 |
#fileSaveMethod |
914 | 397 |
'Save the image as resource method in the current class and selector.' |
460 | 398 |
|
399 |
#fileSaveMethodAs |
|
914 | 400 |
'Save the image as resource method in a class.' |
460 | 401 |
|
487 | 402 |
#magnificationNumber |
914 | 403 |
'Shows the current magnification.' |
487 | 404 |
|
405 |
#magnifyImageDown |
|
914 | 406 |
'Decrease magnification.' |
487 | 407 |
|
408 |
#magnifyImageUp |
|
914 | 409 |
'Increase magnification.' |
487 | 410 |
|
411 |
#mouseKeyColorMode |
|
1637 | 412 |
'Toggle between left and right mouse button color.' |
487 | 413 |
|
414 |
#previewView |
|
914 | 415 |
'Shows a preview of the image.' |
487 | 416 |
|
905 | 417 |
#settingsGridMagnification |
914 | 418 |
'Change the grid magnification of the edit view.' |
905 | 419 |
|
460 | 420 |
) |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
421 |
|
986 | 422 |
"Modified: / 7.9.1998 / 18:20:26 / cg" |
460 | 423 |
! ! |
424 |
||
737 | 425 |
!ImageEditor class methodsFor:'image specs'! |
426 |
||
1637 | 427 |
copyIcon |
428 |
"This resource specification was automatically generated |
|
429 |
by the ImageEditor of ST/X." |
|
430 |
||
431 |
"Do not manually edit this!! If it is corrupted, |
|
432 |
the ImageEditor may not be able to read the specification." |
|
433 |
||
434 |
" |
|
435 |
self copyIcon inspect |
|
436 |
ImageEditor openOnClass:self andSelector:#copyIcon |
|
437 |
Icon flushCachedIcons |
|
438 |
" |
|
439 |
||
440 |
<resource: #image> |
|
441 |
||
442 |
^Icon |
|
443 |
constantNamed:#'ImageEditor class copyIcon' |
|
444 |
ifAbsentPut:[(Depth2Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@** @@J)UUTB*Z*)@*&**PJ)**$B*Z*)@*&**PJ)**$@@Z*)@@F**P@AUUT@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@C? O>@??3??O?<??3??O?<??3??@_<A?0@@@@a') ; yourself); yourself] |
|
445 |
! |
|
446 |
||
447 |
fillIcon |
|
448 |
"This resource specification was automatically generated |
|
449 |
by the ImageEditor of ST/X." |
|
450 |
||
451 |
"Do not manually edit this!! If it is corrupted, |
|
452 |
the ImageEditor may not be able to read the specification." |
|
453 |
||
454 |
" |
|
455 |
self fillIcon inspect |
|
456 |
ImageEditor openOnClass:self andSelector:#fillIcon |
|
457 |
Icon flushCachedIcons |
|
458 |
" |
|
459 |
||
460 |
<resource: #image> |
|
461 |
||
462 |
^Icon |
|
463 |
constantNamed:#'ImageEditor class fillIcon' |
|
464 |
ifAbsentPut:[(Depth2Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@ @@@@*H@@D*(@@DUUP@EAUU@AAEU@@@@U@@DDA@@@@@@@@PP@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C @Q@BN@I<@?8C?0[?!!G<@O P\@@ D@@@@@@@@@a') ; yourself); yourself] |
|
465 |
! |
|
466 |
||
467 |
fillRectIcon |
|
468 |
"This resource specification was automatically generated |
|
469 |
by the ImageEditor of ST/X." |
|
470 |
||
471 |
"Do not manually edit this!! If it is corrupted, |
|
472 |
the ImageEditor may not be able to read the specification." |
|
473 |
||
474 |
" |
|
475 |
self fillRectIcon inspect |
|
476 |
ImageEditor openOnClass:self andSelector:#fillRectIcon |
|
477 |
Icon flushCachedIcons |
|
478 |
" |
|
479 |
||
480 |
<resource: #image> |
|
481 |
||
482 |
^Icon |
|
483 |
constantNamed:#'ImageEditor class fillRectIcon' |
|
484 |
ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a') ; yourself); yourself] |
|
485 |
! |
|
486 |
||
737 | 487 |
leftMouseKeyIcon |
488 |
"This resource specification was automatically generated |
|
489 |
by the ImageEditor of ST/X." |
|
490 |
||
491 |
"Do not manually edit this!! If it is corrupted, |
|
492 |
the ImageEditor may not be able to read the specification." |
|
493 |
||
494 |
" |
|
1405 | 495 |
self leftMouseKeyIcon inspect |
737 | 496 |
ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
497 |
" |
|
498 |
||
499 |
<resource: #image> |
|
500 |
||
501 |
^Icon |
|
502 |
constantNamed:#'ImageEditor leftMouseKeyIcon' |
|
1433 | 503 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself] |
504 |
! |
|
737 | 505 |
|
1637 | 506 |
pasteIcon |
507 |
"This resource specification was automatically generated |
|
508 |
by the ImageEditor of ST/X." |
|
509 |
||
510 |
"Do not manually edit this!! If it is corrupted, |
|
511 |
the ImageEditor may not be able to read the specification." |
|
512 |
||
513 |
" |
|
514 |
self pasteIcon inspect |
|
515 |
ImageEditor openOnClass:self andSelector:#pasteIcon |
|
516 |
Icon flushCachedIcons |
|
517 |
" |
|
518 |
||
519 |
<resource: #image> |
|
520 |
||
521 |
^Icon |
|
522 |
constantNamed:#'ImageEditor class pasteIcon' |
|
523 |
ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3@3M&X@@SL0L0A&@@D3LC@@A @AL3@3@FX@@QDPY&Y& |
|
524 |
@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a') ; yourself); yourself] |
|
525 |
! |
|
526 |
||
527 |
pasteUnderIcon |
|
528 |
"This resource specification was automatically generated |
|
529 |
by the ImageEditor of ST/X." |
|
530 |
||
531 |
"Do not manually edit this!! If it is corrupted, |
|
532 |
the ImageEditor may not be able to read the specification." |
|
533 |
||
534 |
" |
|
535 |
self pasteUnderIcon inspect |
|
536 |
ImageEditor openOnClass:self andSelector:#pasteUnderIcon |
|
537 |
Icon flushCachedIcons |
|
538 |
" |
|
539 |
||
540 |
<resource: #image> |
|
541 |
||
542 |
^Icon |
|
543 |
constantNamed:#'ImageEditor class pasteUnderIcon' |
|
544 |
ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3@3M&X@@SL0L0A&@@D3LC@@A @AL3@3@FX@@QDPY&Y& |
|
545 |
@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a') ; yourself); yourself] |
|
546 |
! |
|
547 |
||
548 |
pasteWithMaskIcon |
|
549 |
"This resource specification was automatically generated |
|
550 |
by the ImageEditor of ST/X." |
|
551 |
||
552 |
"Do not manually edit this!! If it is corrupted, |
|
553 |
the ImageEditor may not be able to read the specification." |
|
554 |
||
555 |
" |
|
556 |
self pasteWithMaskIcon inspect |
|
557 |
ImageEditor openOnClass:self andSelector:#pasteWithMaskIcon |
|
558 |
Icon flushCachedIcons |
|
559 |
" |
|
560 |
||
561 |
<resource: #image> |
|
562 |
||
563 |
^Icon |
|
564 |
constantNamed:#'ImageEditor class pasteWithMaskIcon' |
|
565 |
ifAbsentPut:[(Depth4Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3@3M&X@@SL0L3A&@@D3LCL0A @AL3@3LFX@@QDPY&Y& |
|
566 |
@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a') ; yourself); yourself] |
|
567 |
! |
|
568 |
||
569 |
pointIcon |
|
570 |
"This resource specification was automatically generated |
|
571 |
by the ImageEditor of ST/X." |
|
572 |
||
573 |
"Do not manually edit this!! If it is corrupted, |
|
574 |
the ImageEditor may not be able to read the specification." |
|
575 |
||
576 |
" |
|
577 |
self pointIcon inspect |
|
578 |
ImageEditor openOnClass:self andSelector:#pointIcon |
|
579 |
Icon flushCachedIcons |
|
580 |
" |
|
581 |
||
582 |
<resource: #image> |
|
583 |
||
584 |
^Icon |
|
585 |
constantNamed:#'ImageEditor class pointIcon' |
|
586 |
ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@C@@@@@B@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@0@G@@8@G@@8@G@@8@G@@X@B@@@@@@@@@a') ; yourself); yourself] |
|
587 |
! |
|
588 |
||
589 |
rectIcon |
|
590 |
"This resource specification was automatically generated |
|
591 |
by the ImageEditor of ST/X." |
|
592 |
||
593 |
"Do not manually edit this!! If it is corrupted, |
|
594 |
the ImageEditor may not be able to read the specification." |
|
595 |
||
596 |
" |
|
597 |
self rectIcon inspect |
|
598 |
ImageEditor openOnClass:self andSelector:#rectIcon |
|
599 |
Icon flushCachedIcons |
|
600 |
" |
|
601 |
||
602 |
<resource: #image> |
|
603 |
||
604 |
^Icon |
|
605 |
constantNamed:#'ImageEditor class rectIcon' |
|
606 |
ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?0HA@ DB@PHA@ DB@PHA@ DC?0@@@@@@@a') ; yourself); yourself] |
|
607 |
! |
|
608 |
||
737 | 609 |
rightMouseKeyIcon |
610 |
"This resource specification was automatically generated |
|
611 |
by the ImageEditor of ST/X." |
|
612 |
||
613 |
"Do not manually edit this!! If it is corrupted, |
|
614 |
the ImageEditor may not be able to read the specification." |
|
615 |
||
616 |
" |
|
1405 | 617 |
self rightMouseKeyIcon inspect |
737 | 618 |
ImageEditor openOnClass:self andSelector:#rightMouseKeyIcon |
619 |
" |
|
620 |
||
621 |
<resource: #image> |
|
622 |
||
623 |
^Icon |
|
624 |
constantNamed:#'ImageEditor rightMouseKeyIcon' |
|
1433 | 625 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@JJE@@B"!!P@@((T@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b') ; yourself); yourself] |
1637 | 626 |
! |
627 |
||
628 |
specialIcon |
|
629 |
"This resource specification was automatically generated |
|
630 |
by the ImageEditor of ST/X." |
|
631 |
||
632 |
"Do not manually edit this!! If it is corrupted, |
|
633 |
the ImageEditor may not be able to read the specification." |
|
634 |
||
635 |
" |
|
636 |
self specialIcon inspect |
|
637 |
ImageEditor openOnClass:self andSelector:#specialIcon |
|
638 |
Icon flushCachedIcons |
|
639 |
" |
|
640 |
||
641 |
<resource: #image> |
|
642 |
||
643 |
^Icon |
|
644 |
constantNamed:#'ImageEditor class specialIcon' |
|
645 |
ifAbsentPut:[(Depth1Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@L@@@@B@@@@@0@@@@@@@@@@@@@@@P@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 0 0]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@L@@0@G @^@A8@G @L@@0@@@@L@@0@@@@@a') ; yourself); yourself] |
|
1433 | 646 |
! ! |
737 | 647 |
|
400 | 648 |
!ImageEditor class methodsFor:'interface specs'! |
649 |
||
1650 | 650 |
changeHLSDialogSpec |
651 |
"This resource specification was automatically generated |
|
652 |
by the UIPainter of ST/X." |
|
653 |
||
654 |
"Do not manually edit this!! If it is corrupted, |
|
655 |
the UIPainter may not be able to read the specification." |
|
656 |
||
657 |
" |
|
658 |
UIPainter new openOnClass:ImageEditor andSelector:#changeHLSDialogSpec |
|
659 |
ImageEditor new openInterface:#changeHLSDialogSpec |
|
660 |
" |
|
661 |
||
662 |
<resource: #canvas> |
|
663 |
||
664 |
^ |
|
665 |
#(#FullSpec |
|
666 |
#name: #changeHLSDialogSpec |
|
667 |
#window: |
|
668 |
#(#WindowSpec |
|
1651 | 669 |
#label: 'HLS Edit Dialog' |
670 |
#name: 'HLS Edit Dialog' |
|
1650 | 671 |
#min: #(#Point 10 10) |
672 |
#max: #(#Point 800 478) |
|
673 |
#bounds: #(#Rectangle 16 46 328 229) |
|
674 |
) |
|
675 |
#component: |
|
676 |
#(#SpecCollection |
|
677 |
#collection: #( |
|
678 |
#(#LabelSpec |
|
679 |
#label: 'Hue-Shift:' |
|
680 |
#name: 'HueLabel' |
|
1651 | 681 |
#layout: #(#LayoutFrame 20 0 21 0 120 0 43 0) |
1650 | 682 |
#translateLabel: true |
683 |
#adjust: #right |
|
684 |
) |
|
685 |
#(#InputFieldSpec |
|
686 |
#name: 'HueShiftEntryField' |
|
1651 | 687 |
#layout: #(#LayoutFrame 123 0 21 0 166 0 43 0) |
1650 | 688 |
#tabable: true |
689 |
#model: #hueShiftAmount |
|
690 |
#type: #numberInRange |
|
691 |
#minValue: 0 |
|
692 |
#maxValue: 360 |
|
693 |
#acceptChannel: #acceptChannel |
|
694 |
#acceptOnPointerLeave: false |
|
695 |
) |
|
696 |
#(#ThumbWheelSpec |
|
697 |
#name: 'HueWheel' |
|
1651 | 698 |
#layout: #(#LayoutFrame 180 0 22 0 297 0 42 0) |
1650 | 699 |
#model: #hueShiftAmount |
700 |
#orientation: #horizontal |
|
701 |
#step: 1 |
|
702 |
#endlessRotation: true |
|
703 |
) |
|
704 |
#(#LabelSpec |
|
1651 | 705 |
#label: 'Light Factor:' |
1650 | 706 |
#name: 'LightLabel' |
1651 | 707 |
#layout: #(#LayoutFrame 18 0 50 0 120 0 72 0) |
1650 | 708 |
#translateLabel: true |
709 |
#adjust: #right |
|
710 |
) |
|
711 |
#(#InputFieldSpec |
|
712 |
#name: 'LightEntryField' |
|
1651 | 713 |
#layout: #(#LayoutFrame 123 0 50 0 166 0 72 0) |
1650 | 714 |
#tabable: true |
715 |
#model: #lightAmount |
|
716 |
#type: #numberInRange |
|
717 |
#minValue: 0 |
|
718 |
#maxValue: 1000 |
|
719 |
#acceptChannel: #acceptChannel |
|
720 |
#acceptOnPointerLeave: false |
|
721 |
) |
|
722 |
#(#ThumbWheelSpec |
|
723 |
#name: 'LightWheel' |
|
1651 | 724 |
#layout: #(#LayoutFrame 180 0 51 0 297 0 71 0) |
1650 | 725 |
#model: #lightAmount |
726 |
#orientation: #horizontal |
|
727 |
#stop: 1000 |
|
728 |
#step: 1 |
|
729 |
) |
|
730 |
#(#LabelSpec |
|
1651 | 731 |
#label: 'Saturation Factor:' |
1650 | 732 |
#name: 'SaturationLabel' |
1651 | 733 |
#layout: #(#LayoutFrame 9 0 79 0 120 0 101 0) |
1650 | 734 |
#translateLabel: true |
735 |
#adjust: #right |
|
736 |
) |
|
737 |
#(#InputFieldSpec |
|
738 |
#name: 'SaturationEntryField' |
|
1651 | 739 |
#layout: #(#LayoutFrame 123 0 79 0 166 0 101 0) |
1650 | 740 |
#tabable: true |
741 |
#model: #saturationAmount |
|
742 |
#type: #numberInRange |
|
743 |
#minValue: 0 |
|
744 |
#maxValue: 1000 |
|
745 |
#acceptChannel: #acceptChannel |
|
746 |
#acceptOnPointerLeave: false |
|
747 |
) |
|
748 |
#(#ThumbWheelSpec |
|
749 |
#name: 'SaturationWheel' |
|
1651 | 750 |
#layout: #(#LayoutFrame 180 0 80 0 297 0 100 0) |
1650 | 751 |
#model: #saturationAmount |
752 |
#orientation: #horizontal |
|
753 |
#stop: 1000 |
|
754 |
#step: 1 |
|
755 |
) |
|
756 |
#(#LabelSpec |
|
757 |
#name: 'HueColorLabel' |
|
758 |
#layout: #(#LayoutFrame 10 0.0 109 0 -10 1.0 148 0) |
|
759 |
#translateLabel: true |
|
1651 | 760 |
#backgroundChannel: #hlsColor |
1650 | 761 |
) |
762 |
#(#HorizontalPanelViewSpec |
|
763 |
#name: 'HorizontalPanel1' |
|
764 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
|
765 |
#horizontalLayout: #fitSpace |
|
766 |
#verticalLayout: #center |
|
767 |
#horizontalSpace: 3 |
|
768 |
#verticalSpace: 3 |
|
769 |
#reverseOrderIfOKAtLeft: true |
|
770 |
#component: |
|
771 |
#(#SpecCollection |
|
772 |
#collection: #( |
|
773 |
#(#ActionButtonSpec |
|
774 |
#label: 'Cancel' |
|
775 |
#name: 'Button1' |
|
776 |
#translateLabel: true |
|
777 |
#tabable: true |
|
778 |
#model: #cancel |
|
779 |
#extent: #(#Point 151 22) |
|
780 |
) |
|
781 |
#(#ActionButtonSpec |
|
782 |
#label: 'OK' |
|
783 |
#name: 'Button2' |
|
784 |
#translateLabel: true |
|
785 |
#tabable: true |
|
786 |
#model: #accept |
|
787 |
#extent: #(#Point 152 22) |
|
788 |
) |
|
789 |
) |
|
790 |
||
791 |
) |
|
792 |
) |
|
793 |
) |
|
794 |
||
795 |
) |
|
796 |
) |
|
797 |
! |
|
798 |
||
767 | 799 |
dialogSpecForNewImage |
737 | 800 |
"This resource specification was automatically generated |
801 |
by the UIPainter of ST/X." |
|
519 | 802 |
|
737 | 803 |
"Do not manually edit this!! If it is corrupted, |
804 |
the UIPainter may not be able to read the specification." |
|
519 | 805 |
|
806 |
" |
|
767 | 807 |
UIPainter new openOnClass:ImageEditor andSelector:#dialogSpecForNewImage |
808 |
ImageEditor new openInterface:#dialogSpecForNewImage |
|
519 | 809 |
" |
810 |
||
811 |
<resource: #canvas> |
|
812 |
||
813 |
^ |
|
814 |
||
815 |
#(#FullSpec |
|
672 | 816 |
#window: |
519 | 817 |
#(#WindowSpec |
672 | 818 |
#name: 'New Image' |
975 | 819 |
#layout: #(#LayoutFrame 81 0 288 0 381 0 406 0) |
672 | 820 |
#label: 'New Image' |
821 |
#min: #(#Point 10 10) |
|
822 |
#max: #(#Point 1152 900) |
|
975 | 823 |
#bounds: #(#Rectangle 81 288 382 407) |
672 | 824 |
#usePreferredExtent: false |
519 | 825 |
) |
672 | 826 |
#component: |
519 | 827 |
#(#SpecCollection |
672 | 828 |
#collection: |
519 | 829 |
#( |
830 |
#(#ViewSpec |
|
672 | 831 |
#name: 'View' |
737 | 832 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -35 1.0) |
672 | 833 |
#component: |
519 | 834 |
#(#SpecCollection |
672 | 835 |
#collection: |
519 | 836 |
#( |
837 |
#(#FramedBoxSpec |
|
672 | 838 |
#name: 'framedBox1' |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
839 |
#layout: #(#LayoutFrame 1 0.0 7 0.0 0 0.4 76 0) |
672 | 840 |
#component: |
519 | 841 |
#(#SpecCollection |
672 | 842 |
#collection: |
519 | 843 |
#( |
844 |
#(#ComboBoxSpec |
|
672 | 845 |
#name: 'defaultSizesComboBox' |
975 | 846 |
#layout: #(#LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
672 | 847 |
#model: #selectionOfSize |
848 |
#type: #string |
|
849 |
#comboList: #listOfDefaultSizes |
|
519 | 850 |
) |
851 |
) |
|
852 |
) |
|
672 | 853 |
#label: 'Size' |
854 |
#labelPosition: #topLeft |
|
855 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
519 | 856 |
) |
857 |
#(#FramedBoxSpec |
|
672 | 858 |
#name: 'framedBox2' |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
859 |
#layout: #(#LayoutFrame 0 0.4 7 0.0 -1 1.0 76 0) |
672 | 860 |
#component: |
519 | 861 |
#(#SpecCollection |
672 | 862 |
#collection: |
519 | 863 |
#( |
864 |
#(#ComboListSpec |
|
672 | 865 |
#name: 'colorMapComboBox' |
975 | 866 |
#layout: #(#LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
672 | 867 |
#model: #selectionOfColorMap |
868 |
#comboList: #listOfColorMaps |
|
869 |
#useIndex: false |
|
519 | 870 |
) |
871 |
) |
|
872 |
) |
|
672 | 873 |
#label: 'Color Map' |
874 |
#labelPosition: #topLeft |
|
875 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
519 | 876 |
) |
877 |
) |
|
878 |
) |
|
672 | 879 |
#level: 1 |
519 | 880 |
) |
672 | 881 |
#(#UISubSpecification |
975 | 882 |
#name: 'windowSpecForCommitWithoutChannels' |
737 | 883 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
672 | 884 |
#minorKey: #windowSpecForCommitWithoutChannels |
519 | 885 |
) |
886 |
) |
|
887 |
) |
|
888 |
) |
|
767 | 889 |
! |
890 |
||
1045 | 891 |
gropDialogSpec |
986 | 892 |
"This resource specification was automatically generated |
893 |
by the UIPainter of ST/X." |
|
894 |
||
895 |
"Do not manually edit this!! If it is corrupted, |
|
896 |
the UIPainter may not be able to read the specification." |
|
897 |
||
898 |
" |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
899 |
UIPainter new openOnClass:ImageEditor andSelector:#gropDialogSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
900 |
ImageEditor new openInterface:#gropDialogSpec |
986 | 901 |
" |
902 |
||
903 |
<resource: #canvas> |
|
904 |
||
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
905 |
^ |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
906 |
#(#FullSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
907 |
#name: #gropDialogSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
908 |
#window: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
909 |
#(#WindowSpec |
1480 | 910 |
#label: 'Crop Border(s)' |
1490 | 911 |
#name: 'Crop Border(s)' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
912 |
#min: #(#Point 10 10) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
913 |
#max: #(#Point 800 478) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
914 |
#bounds: #(#Rectangle 16 46 261 229) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
915 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
916 |
#component: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
917 |
#(#SpecCollection |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
918 |
#collection: #( |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
919 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
920 |
#label: 'Left:' |
1502 | 921 |
#name: 'GropLeftLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
922 |
#layout: #(#LayoutFrame 14 0 21 0 90 0 43 0) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
923 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
924 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
925 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
926 |
#(#InputFieldSpec |
1502 | 927 |
#name: 'GropLeftEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
928 |
#layout: #(#LayoutFrame 95 0 21 0 132 0 43 0) |
1507 | 929 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
930 |
#model: #left |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
931 |
#type: #number |
1502 | 932 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
933 |
#acceptOnPointerLeave: false |
1502 | 934 |
) |
935 |
#(#ActionButtonSpec |
|
936 |
#label: 'Now' |
|
937 |
#name: 'GropLeftNowButton' |
|
938 |
#layout: #(#LayoutFrame 148 0 21 0 221 0 43 0) |
|
939 |
#translateLabel: true |
|
1507 | 940 |
#tabable: true |
1502 | 941 |
#model: #gropLeftNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
942 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
943 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
944 |
#label: 'Right:' |
1502 | 945 |
#name: 'GropRightLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
946 |
#layout: #(#LayoutFrame 14 0 51 0 90 0 73 0) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
947 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
948 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
949 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
950 |
#(#InputFieldSpec |
1502 | 951 |
#name: 'GropRightEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
952 |
#layout: #(#LayoutFrame 95 0 51 0 132 0 73 0) |
1507 | 953 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
954 |
#model: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
955 |
#type: #number |
1502 | 956 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
957 |
#acceptOnPointerLeave: false |
1502 | 958 |
) |
959 |
#(#ActionButtonSpec |
|
960 |
#label: 'Now' |
|
961 |
#name: 'GropRightButton' |
|
962 |
#layout: #(#LayoutFrame 148 0 51 0 221 0 73 0) |
|
963 |
#translateLabel: true |
|
1507 | 964 |
#tabable: true |
1502 | 965 |
#model: #gropRightNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
966 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
967 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
968 |
#label: 'Top:' |
1502 | 969 |
#name: 'GropTopLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
970 |
#layout: #(#LayoutFrame 14 0 81 0 90 0 103 0) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
971 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
972 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
973 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
974 |
#(#InputFieldSpec |
1502 | 975 |
#name: 'GropTopEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
976 |
#layout: #(#LayoutFrame 95 0 81 0 132 0 103 0) |
1507 | 977 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
978 |
#model: #top |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
979 |
#type: #number |
1502 | 980 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
981 |
#acceptOnPointerLeave: false |
1502 | 982 |
) |
983 |
#(#ActionButtonSpec |
|
984 |
#label: 'Now' |
|
985 |
#name: 'GropTopButton' |
|
986 |
#layout: #(#LayoutFrame 148 0 81 0 221 0 103 0) |
|
987 |
#translateLabel: true |
|
1507 | 988 |
#tabable: true |
1502 | 989 |
#model: #gropTopNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
990 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
991 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
992 |
#label: 'Bottom:' |
1502 | 993 |
#name: 'GropBottomLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
994 |
#layout: #(#LayoutFrame 14 0 111 0 90 0 133 0) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
995 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
996 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
997 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
998 |
#(#InputFieldSpec |
1502 | 999 |
#name: 'GropBottomEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1000 |
#layout: #(#LayoutFrame 95 0 111 0 132 0 133 0) |
1507 | 1001 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1002 |
#model: #bottom |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1003 |
#type: #number |
1502 | 1004 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1005 |
#acceptOnPointerLeave: false |
1502 | 1006 |
) |
1007 |
#(#ActionButtonSpec |
|
1008 |
#label: 'Now' |
|
1009 |
#name: 'GropBottomButton' |
|
1010 |
#layout: #(#LayoutFrame 148 0 111 0 221 0 133 0) |
|
1011 |
#translateLabel: true |
|
1507 | 1012 |
#tabable: true |
1502 | 1013 |
#model: #gropBottomNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1014 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1015 |
#(#HorizontalPanelViewSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1016 |
#name: 'HorizontalPanel1' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1017 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1018 |
#horizontalLayout: #fitSpace |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1019 |
#verticalLayout: #center |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1020 |
#horizontalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1021 |
#verticalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1022 |
#reverseOrderIfOKAtLeft: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1023 |
#component: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1024 |
#(#SpecCollection |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1025 |
#collection: #( |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1026 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1027 |
#label: 'Cancel' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1028 |
#name: 'Button1' |
986 | 1029 |
#translateLabel: true |
1507 | 1030 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1031 |
#model: #cancel |
1490 | 1032 |
#extent: #(#Point 77 22) |
1033 |
) |
|
1034 |
#(#ActionButtonSpec |
|
1035 |
#label: 'Apply' |
|
1036 |
#name: 'Button3' |
|
1037 |
#translateLabel: true |
|
1507 | 1038 |
#tabable: true |
1490 | 1039 |
#model: #applyAction |
1040 |
#extent: #(#Point 78 22) |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1041 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1042 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1043 |
#label: 'OK' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1044 |
#name: 'Button2' |
986 | 1045 |
#translateLabel: true |
1507 | 1046 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1047 |
#model: #accept |
1490 | 1048 |
#extent: #(#Point 78 22) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1049 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1050 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1051 |
|
986 | 1052 |
) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1053 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1054 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1055 |
|
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1056 |
) |
986 | 1057 |
) |
1058 |
! |
|
1059 |
||
1557 | 1060 |
shiftDialogSpec |
1061 |
"This resource specification was automatically generated |
|
1062 |
by the UIPainter of ST/X." |
|
1063 |
||
1064 |
"Do not manually edit this!! If it is corrupted, |
|
1065 |
the UIPainter may not be able to read the specification." |
|
1066 |
||
1067 |
" |
|
1068 |
UIPainter new openOnClass:ImageEditor andSelector:#shiftDialogSpec |
|
1069 |
ImageEditor new openInterface:#shiftDialogSpec |
|
1070 |
" |
|
1071 |
||
1072 |
<resource: #canvas> |
|
1073 |
||
1074 |
^ |
|
1075 |
#(#FullSpec |
|
1076 |
#name: #shiftDialogSpec |
|
1077 |
#window: |
|
1078 |
#(#WindowSpec |
|
1079 |
#label: 'Shift' |
|
1080 |
#name: 'Shift' |
|
1081 |
#min: #(#Point 10 10) |
|
1082 |
#max: #(#Point 800 478) |
|
1083 |
#bounds: #(#Rectangle 16 46 261 229) |
|
1084 |
) |
|
1085 |
#component: |
|
1086 |
#(#SpecCollection |
|
1087 |
#collection: #( |
|
1088 |
#(#LabelSpec |
|
1089 |
#label: 'Amount:' |
|
1090 |
#name: 'AmountLabel' |
|
1091 |
#layout: #(#LayoutFrame 14 0 21 0 90 0 43 0) |
|
1092 |
#translateLabel: true |
|
1093 |
#adjust: #right |
|
1094 |
) |
|
1095 |
#(#InputFieldSpec |
|
1096 |
#name: 'AmountEntryField' |
|
1713 | 1097 |
#layout: #(#LayoutFrame 95 0 21 0 139 0 43 0) |
1557 | 1098 |
#tabable: true |
1099 |
#model: #shiftAmount |
|
1100 |
#type: #number |
|
1101 |
#acceptChannel: #acceptChannel |
|
1102 |
#acceptOnPointerLeave: false |
|
1103 |
) |
|
1104 |
#(#HorizontalPanelViewSpec |
|
1105 |
#name: 'HorizontalPanel1' |
|
1106 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
|
1107 |
#horizontalLayout: #fitSpace |
|
1108 |
#verticalLayout: #center |
|
1109 |
#horizontalSpace: 3 |
|
1110 |
#verticalSpace: 3 |
|
1111 |
#reverseOrderIfOKAtLeft: true |
|
1112 |
#component: |
|
1113 |
#(#SpecCollection |
|
1114 |
#collection: #( |
|
1115 |
#(#ActionButtonSpec |
|
1116 |
#label: 'Cancel' |
|
1117 |
#name: 'Button1' |
|
1118 |
#translateLabel: true |
|
1119 |
#tabable: true |
|
1120 |
#model: #cancel |
|
1121 |
#extent: #(#Point 118 22) |
|
1122 |
) |
|
1123 |
#(#ActionButtonSpec |
|
1124 |
#label: 'OK' |
|
1125 |
#name: 'Button2' |
|
1126 |
#translateLabel: true |
|
1127 |
#tabable: true |
|
1128 |
#model: #accept |
|
1129 |
#extent: #(#Point 118 22) |
|
1130 |
) |
|
1131 |
) |
|
1132 |
||
1133 |
) |
|
1134 |
) |
|
1135 |
#(#ArrowButtonSpec |
|
1708 | 1136 |
#name: 'upArrowButton' |
1649 | 1137 |
#layout: #(#LayoutFrame 105 0 63 0 127 0 85 0) |
1557 | 1138 |
#model: #shiftUpNow |
1139 |
#isTriggerOnDown: true |
|
1713 | 1140 |
#autoRepeat: true |
1557 | 1141 |
#actionValue: '' |
1142 |
#direction: #up |
|
1143 |
) |
|
1144 |
#(#ArrowButtonSpec |
|
1708 | 1145 |
#name: 'leftArrowButton' |
1649 | 1146 |
#layout: #(#LayoutFrame 84 0 86 0 106 0 108 0) |
1557 | 1147 |
#model: #shiftLeftNow |
1148 |
#isTriggerOnDown: true |
|
1713 | 1149 |
#autoRepeat: true |
1557 | 1150 |
#actionValue: '' |
1151 |
#direction: #left |
|
1152 |
) |
|
1153 |
#(#ArrowButtonSpec |
|
1708 | 1154 |
#name: 'rightArrowButton' |
1649 | 1155 |
#layout: #(#LayoutFrame 126 0 86 0 148 0 108 0) |
1557 | 1156 |
#model: #shiftRightNow |
1157 |
#isTriggerOnDown: true |
|
1713 | 1158 |
#autoRepeat: true |
1557 | 1159 |
#actionValue: '' |
1160 |
#direction: #right |
|
1161 |
) |
|
1162 |
#(#ArrowButtonSpec |
|
1708 | 1163 |
#name: 'downArrowButton' |
1649 | 1164 |
#layout: #(#LayoutFrame 105 0 107 0 127 0 129 0) |
1557 | 1165 |
#model: #shiftDownNow |
1166 |
#isTriggerOnDown: true |
|
1713 | 1167 |
#autoRepeat: true |
1557 | 1168 |
#actionValue: '' |
1169 |
#direction: #down |
|
1170 |
) |
|
1713 | 1171 |
#(#CheckBoxSpec |
1172 |
#label: 'Wrap' |
|
1173 |
#name: 'CheckBox1' |
|
1174 |
#layout: #(#LayoutFrame 153 0 22 0 289 0 44 0) |
|
1175 |
#model: #wrap |
|
1176 |
#translateLabel: true |
|
1177 |
) |
|
1557 | 1178 |
) |
1179 |
||
1180 |
) |
|
1181 |
) |
|
1182 |
! |
|
1183 |
||
1480 | 1184 |
ungropDialogSpec |
1185 |
"This resource specification was automatically generated |
|
1186 |
by the UIPainter of ST/X." |
|
1187 |
||
1188 |
"Do not manually edit this!! If it is corrupted, |
|
1189 |
the UIPainter may not be able to read the specification." |
|
1190 |
||
1191 |
" |
|
1192 |
UIPainter new openOnClass:ImageEditor andSelector:#ungropDialogSpec |
|
1193 |
ImageEditor new openInterface:#ungropDialogSpec |
|
1194 |
" |
|
1195 |
||
1196 |
<resource: #canvas> |
|
1197 |
||
1198 |
^ |
|
1199 |
#(#FullSpec |
|
1200 |
#name: #ungropDialogSpec |
|
1201 |
#window: |
|
1202 |
#(#WindowSpec |
|
1203 |
#label: 'Add Border(s)' |
|
1204 |
#name: 'Add Borders' |
|
1205 |
#min: #(#Point 10 10) |
|
1206 |
#max: #(#Point 800 478) |
|
1207 |
#bounds: #(#Rectangle 16 46 261 229) |
|
1208 |
) |
|
1209 |
#component: |
|
1210 |
#(#SpecCollection |
|
1211 |
#collection: #( |
|
1212 |
#(#LabelSpec |
|
1213 |
#label: 'Left:' |
|
1214 |
#name: 'Label1' |
|
1215 |
#layout: #(#LayoutFrame 14 0 21 0 90 0 43 0) |
|
1216 |
#translateLabel: true |
|
1217 |
#adjust: #right |
|
1218 |
) |
|
1219 |
#(#InputFieldSpec |
|
1220 |
#name: 'EntryField1' |
|
1221 |
#layout: #(#LayoutFrame 95 0 21 0 132 0 43 0) |
|
1222 |
#model: #left |
|
1223 |
#type: #number |
|
1224 |
#acceptOnPointerLeave: false |
|
1225 |
) |
|
1226 |
#(#LabelSpec |
|
1227 |
#label: 'Right:' |
|
1228 |
#name: 'Label2' |
|
1229 |
#layout: #(#LayoutFrame 14 0 51 0 90 0 73 0) |
|
1230 |
#translateLabel: true |
|
1231 |
#adjust: #right |
|
1232 |
) |
|
1233 |
#(#InputFieldSpec |
|
1234 |
#name: 'EntryField2' |
|
1235 |
#layout: #(#LayoutFrame 95 0 51 0 132 0 73 0) |
|
1236 |
#model: #right |
|
1237 |
#type: #number |
|
1238 |
#acceptOnPointerLeave: false |
|
1239 |
) |
|
1240 |
#(#LabelSpec |
|
1241 |
#label: 'Top:' |
|
1242 |
#name: 'Label3' |
|
1243 |
#layout: #(#LayoutFrame 14 0 81 0 90 0 103 0) |
|
1244 |
#translateLabel: true |
|
1245 |
#adjust: #right |
|
1246 |
) |
|
1247 |
#(#InputFieldSpec |
|
1248 |
#name: 'EntryField3' |
|
1249 |
#layout: #(#LayoutFrame 95 0 81 0 132 0 103 0) |
|
1250 |
#model: #top |
|
1251 |
#type: #number |
|
1252 |
#acceptOnPointerLeave: false |
|
1253 |
) |
|
1254 |
#(#LabelSpec |
|
1255 |
#label: 'Bottom:' |
|
1256 |
#name: 'Label4' |
|
1257 |
#layout: #(#LayoutFrame 14 0 111 0 90 0 133 0) |
|
1258 |
#translateLabel: true |
|
1259 |
#adjust: #right |
|
1260 |
) |
|
1261 |
#(#InputFieldSpec |
|
1262 |
#name: 'EntryField4' |
|
1263 |
#layout: #(#LayoutFrame 95 0 111 0 132 0 133 0) |
|
1264 |
#model: #bottom |
|
1265 |
#type: #number |
|
1266 |
#acceptOnPointerLeave: false |
|
1267 |
) |
|
1268 |
#(#HorizontalPanelViewSpec |
|
1269 |
#name: 'HorizontalPanel1' |
|
1270 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
|
1271 |
#horizontalLayout: #fitSpace |
|
1272 |
#verticalLayout: #center |
|
1273 |
#horizontalSpace: 3 |
|