author | Claus Gittinger <cg@exept.de> |
Tue, 30 Oct 2001 15:47:54 +0100 | |
changeset 1520 | eb77c52704c7 |
parent 1507 | e65674cad5e5 |
child 1537 | e86a686eeba2 |
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 |
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
17 |
selectedColorIndex postOpenAction imageSeqNr' |
1480 | 18 |
classVariableNames:'LastDirectory MaskClipboard' |
929 | 19 |
poolDictionaries:'' |
20 |
category:'Interface-UIPainter' |
|
400 | 21 |
! |
22 |
||
23 |
!ImageEditor class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
767 | 27 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 28 |
All Rights Reserved |
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
405 | 32 |
inclusion of the above copyright notice. This software may not |
400 | 33 |
be provided or otherwise made available to, or used by, any |
405 | 34 |
other person. No title to or ownership of the software is |
400 | 35 |
hereby transferred. |
36 |
" |
|
37 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
737 | 41 |
Image Editor allows you to create, design, modify or just inspect images. |
400 | 42 |
|
43 |
[start with:] |
|
44 |
ImageEditor open |
|
941 | 45 |
ImageEditor openOnClass:Icon andSelector:#startIcon |
400 | 46 |
|
47 |
[see also:] |
|
48 |
ImageEditView Image |
|
49 |
||
50 |
[author:] |
|
544 | 51 |
Thomas Zwick, eXept Software AG |
400 | 52 |
" |
53 |
! ! |
|
54 |
||
55 |
!ImageEditor class methodsFor:'instance creation'! |
|
56 |
||
57 |
openModalOnClass: aClass andSelector: aSelector |
|
900 | 58 |
"opens modal a Image Editor on aClass and aSelector" |
767 | 59 |
" |
60 |
self openModalOnClass: self andSelector: #leftMouseKeyIcon |
|
61 |
" |
|
400 | 62 |
|
767 | 63 |
|imageEditor imageEditView className resourceClassName resourceSelector| |
64 |
||
400 | 65 |
imageEditor := self new. |
767 | 66 |
|
900 | 67 |
aClass isClass ifTrue: [className := aClass name]. |
68 |
aClass isString ifTrue: [className := aClass]. |
|
903 | 69 |
aClass isNil ifTrue: [className := '']. |
400 | 70 |
|
688 | 71 |
imageEditor postOpenAction: [imageEditView := imageEditor imageEditView. imageEditor loadFromOrPrepareForMessage: className, ' ', aSelector]. |
400 | 72 |
imageEditor openModal. |
73 |
||
688 | 74 |
resourceClassName := imageEditView resourceClass. |
767 | 75 |
resourceSelector := imageEditView resourceSelector. |
415 | 76 |
|
815 | 77 |
((className asString ~= resourceClassName) |
78 |
or:[aSelector asString ~= resourceSelector]) |
|
415 | 79 |
ifTrue: [^resourceClassName, ' ', resourceSelector] |
80 |
ifFalse:[^nil] |
|
400 | 81 |
! |
82 |
||
83 |
openOnClass: aClass andSelector: aSelector |
|
900 | 84 |
"opens a Image Editor on aClass and aSelector" |
767 | 85 |
" |
86 |
self openOnClass: self andSelector: #leftMouseKeyIcon |
|
87 |
" |
|
400 | 88 |
|
1057 | 89 |
|editor| |
90 |
||
91 |
editor := self new. |
|
92 |
editor allButOpen. |
|
1381 | 93 |
aSelector notNil ifTrue:[ |
94 |
editor loadFromMessage: aClass name, ' ', aSelector. |
|
95 |
] ifFalse:[ |
|
96 |
editor resourceClass:aClass |
|
97 |
]. |
|
1057 | 98 |
editor openWindow |
99 |
||
100 |
"Modified: / 16.3.1999 / 21:33:49 / cg" |
|
400 | 101 |
! |
102 |
||
767 | 103 |
openOnFile: aFileName |
900 | 104 |
"opens a Image Editor on aFileName" |
767 | 105 |
" |
106 |
self openOnFile: 'bitmaps/SmalltalkX.xbm' |
|
107 |
" |
|
400 | 108 |
|
1057 | 109 |
|editor| |
110 |
||
111 |
editor := self new. |
|
112 |
editor allButOpen. |
|
113 |
editor loadFromFile: aFileName. |
|
114 |
editor openWindow |
|
115 |
||
116 |
"Modified: / 16.3.1999 / 21:33:25 / cg" |
|
400 | 117 |
! |
118 |
||
767 | 119 |
openOnImage: anImage |
900 | 120 |
"opens a Image Editor on anImage" |
767 | 121 |
" |
895 | 122 |
self openOnImage: Icon startIcon |
767 | 123 |
" |
400 | 124 |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
125 |
|editor| |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
126 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
127 |
editor := self new. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
128 |
editor allButOpen. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
129 |
editor loadFromImage: anImage. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
130 |
editor openWindow |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
131 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
132 |
"Modified: / 11.3.1999 / 16:18:33 / cg" |
400 | 133 |
! ! |
134 |
||
135 |
!ImageEditor class methodsFor:'accessing'! |
|
136 |
||
137 |
listOfColorMaps |
|
767 | 138 |
"returns the list of default color maps for a new image" |
400 | 139 |
|
140 |
|colorMap| |
|
898 | 141 |
|
400 | 142 |
(colorMap := OrderedCollection new) |
143 |
add: Color black; |
|
144 |
add: Color white; |
|
145 |
add: Color red; |
|
146 |
add: Color green; |
|
147 |
add: Color blue; |
|
148 |
add: Color cyan; |
|
149 |
add: Color yellow; |
|
150 |
add: Color magenta; |
|
898 | 151 |
add: (Color redByte: 127 greenByte: 0 blueByte: 0); |
152 |
add: (Color redByte: 0 greenByte: 127 blueByte: 0); |
|
153 |
add: (Color redByte: 0 greenByte: 0 blueByte: 127); |
|
154 |
add: (Color redByte: 0 greenByte: 127 blueByte: 127); |
|
155 |
add: (Color redByte: 127 greenByte: 127 blueByte: 0); |
|
156 |
add: (Color redByte: 127 greenByte: 0 blueByte: 127); |
|
157 |
add: (Color redByte: 127 greenByte: 127 blueByte: 127); |
|
158 |
add: (Color redByte: 170 greenByte: 170 blueByte: 170). |
|
159 |
||
400 | 160 |
0 to: 5 do: |
161 |
[:r| |
|
162 |
0 to: 5 do: |
|
163 |
[:g| |
|
164 |
0 to: 5 do: |
|
165 |
[:b| |
|
898 | 166 |
colorMap add: (Color redByte: (r*255//5) ceiling greenByte: (g*255//5) ceiling blueByte: (b*255//5) ceiling) |
400 | 167 |
] |
168 |
] |
|
169 |
]. |
|
170 |
||
171 |
1 to: 25 do: |
|
172 |
[:g| |
|
898 | 173 |
colorMap add: (Color redByte: (g*255//26) ceiling greenByte: (g*255//26) ceiling blueByte: (g*255//26) ceiling) |
400 | 174 |
]. |
175 |
||
176 |
^Dictionary new |
|
177 |
at: '8-plane' put: colorMap; |
|
178 |
at: '8-plane + mask' put: colorMap; |
|
179 |
at: '4-plane' put: (colorMap copyFrom: 1 to: 16); |
|
180 |
at: '4-plane + mask' put: (colorMap copyFrom: 1 to: 16); |
|
181 |
at: '2-plane' put: (colorMap copyFrom: 1 to: 4); |
|
182 |
at: '2-plane + mask' put: (colorMap copyFrom: 1 to: 4); |
|
183 |
at: '1-plane' put: (colorMap copyFrom: 1 to: 2); |
|
184 |
at: '1-plane + mask' put: (colorMap copyFrom: 1 to: 2); |
|
185 |
yourself |
|
186 |
! |
|
187 |
||
188 |
listOfDefaultSizes |
|
767 | 189 |
"returns the list of default sizes for a new image" |
400 | 190 |
|
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
191 |
^#('8x8' '16x16' '22x22' '32x32' '48x48' '64x64') |
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
192 |
|
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
193 |
"Modified: / 31.7.1998 / 01:57:34 / cg" |
400 | 194 |
! ! |
195 |
||
460 | 196 |
!ImageEditor class methodsFor:'help specs'! |
197 |
||
198 |
helpSpec |
|
737 | 199 |
"This resource specification was automatically generated |
200 |
by the UIHelpTool of ST/X." |
|
201 |
||
202 |
"Do not manually edit this!! If it is corrupted, |
|
203 |
the UIHelpTool may not be able to read the specification." |
|
460 | 204 |
|
205 |
" |
|
737 | 206 |
UIHelpTool openOnClass:ImageEditor |
460 | 207 |
" |
208 |
||
737 | 209 |
<resource: #help> |
210 |
||
211 |
^super helpSpec addPairsFrom:#( |
|
460 | 212 |
|
213 |
#colorMap |
|
929 | 214 |
'ColorMap functions.' |
215 |
||
216 |
#colorMap1 |
|
217 |
'Convert to depth-1 image.' |
|
218 |
||
986 | 219 |
#colorMap1M |
220 |
'Convert to depth-1 image plus mask.' |
|
221 |
||
929 | 222 |
#colorMap2 |
223 |
'Convert to depth-2 image.' |
|
224 |
||
986 | 225 |
#colorMap2M |
226 |
'Convert to depth-2 image plus mask.' |
|
227 |
||
929 | 228 |
#colorMap4 |
229 |
'Convert to depth-4 image.' |
|
230 |
||
986 | 231 |
#colorMap4M |
232 |
'Convert to depth-4 image plus mask.' |
|
233 |
||
929 | 234 |
#colorMap8 |
235 |
'Convert to depth-8 image.' |
|
236 |
||
237 |
#colorMap8M |
|
238 |
'Convert to depth-8 image plus mask.' |
|
239 |
||
986 | 240 |
#colorMapTable |
241 |
'Shows a list of used colors of the image.' |
|
242 |
||
929 | 243 |
#compressColormap |
244 |
'Remove unneeded entries from the colorMap.' |
|
460 | 245 |
|
1045 | 246 |
#cropAll |
986 | 247 |
'Find and remove all borders.' |
248 |
||
1045 | 249 |
#cropBottom |
986 | 250 |
'Find and remove bottom border.' |
251 |
||
1045 | 252 |
#cropLeft |
986 | 253 |
'Find and remove left border.' |
254 |
||
1045 | 255 |
#cropManual |
986 | 256 |
'Specify border(s) to remove.' |
257 |
||
1045 | 258 |
#cropRight |
986 | 259 |
'Find and remove right border.' |
260 |
||
1045 | 261 |
#cropTop |
986 | 262 |
'Find and remove top border.' |
487 | 263 |
|
460 | 264 |
#drawModeBox |
914 | 265 |
'Switches to box-drawing mode.' |
460 | 266 |
|
267 |
#drawModeCopy |
|
914 | 268 |
'Switches to area-copy mode.' |
460 | 269 |
|
270 |
#drawModeFill |
|
914 | 271 |
'Switches to flood-fill mode.' |
460 | 272 |
|
273 |
#drawModeFilledBox |
|
914 | 274 |
'Switches to filled-box drawing mode.' |
460 | 275 |
|
276 |
#drawModePaste |
|
914 | 277 |
'Switches to paste mode.' |
278 |
||
279 |
#drawModePasteUnder |
|
280 |
'Switches to paste under mode.' |
|
460 | 281 |
|
282 |
#drawModePoint |
|
914 | 283 |
'Switches to point-drawing mode.' |
460 | 284 |
|
285 |
#editFlipHorizontal |
|
914 | 286 |
'Flips the image horizontally.' |
460 | 287 |
|
288 |
#editFlipVertical |
|
914 | 289 |
'Flips the image vertically.' |
460 | 290 |
|
291 |
#editMagnifyImage |
|
914 | 292 |
'Magnify the image.' |
460 | 293 |
|
294 |
#editNegate |
|
914 | 295 |
'Invert the images colors.' |
460 | 296 |
|
297 |
#editResize |
|
914 | 298 |
'Resize the image (preserving the old image).' |
460 | 299 |
|
300 |
#editRotate |
|
914 | 301 |
'Rotate the image.' |
460 | 302 |
|
929 | 303 |
#fileGrabImage |
304 |
'Pick an image from the screen.' |
|
305 |
||
460 | 306 |
#fileLoadFromClass |
929 | 307 |
'Select and load an image from a resource method.' |
460 | 308 |
|
309 |
#fileLoadFromFile |
|
929 | 310 |
'Select and load an image from a file.' |
460 | 311 |
|
312 |
#fileNewImage |
|
914 | 313 |
'Create a new image' |
460 | 314 |
|
315 |
#filePrint |
|
316 |
'Print the image on a postscript printer.' |
|
317 |
||
318 |
#fileSaveAs |
|
914 | 319 |
'Save the image to a file.' |
460 | 320 |
|
321 |
#fileSaveMaskAs |
|
914 | 322 |
'Save the mask of the image to a file.' |
460 | 323 |
|
324 |
#fileSaveMethod |
|
914 | 325 |
'Save the image as resource method in the current class and selector.' |
460 | 326 |
|
327 |
#fileSaveMethodAs |
|
914 | 328 |
'Save the image as resource method in a class.' |
460 | 329 |
|
487 | 330 |
#magnificationNumber |
914 | 331 |
'Shows the current magnification.' |
487 | 332 |
|
333 |
#magnifyImageDown |
|
914 | 334 |
'Decrease magnification.' |
487 | 335 |
|
336 |
#magnifyImageUp |
|
914 | 337 |
'Increase magnification.' |
487 | 338 |
|
339 |
#mouseKeyColorMode |
|
914 | 340 |
'Toggles between left and right mouse button color.' |
487 | 341 |
|
342 |
#previewView |
|
914 | 343 |
'Shows a preview of the image.' |
487 | 344 |
|
905 | 345 |
#settingsGridMagnification |
914 | 346 |
'Change the grid magnification of the edit view.' |
905 | 347 |
|
460 | 348 |
) |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
349 |
|
986 | 350 |
"Modified: / 7.9.1998 / 18:20:26 / cg" |
460 | 351 |
! ! |
352 |
||
737 | 353 |
!ImageEditor class methodsFor:'image specs'! |
354 |
||
355 |
leftMouseKeyIcon |
|
356 |
"This resource specification was automatically generated |
|
357 |
by the ImageEditor of ST/X." |
|
358 |
||
359 |
"Do not manually edit this!! If it is corrupted, |
|
360 |
the ImageEditor may not be able to read the specification." |
|
361 |
||
362 |
" |
|
1405 | 363 |
self leftMouseKeyIcon inspect |
737 | 364 |
ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
365 |
" |
|
366 |
||
367 |
<resource: #image> |
|
368 |
||
369 |
^Icon |
|
370 |
constantNamed:#'ImageEditor leftMouseKeyIcon' |
|
1433 | 371 |
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] |
372 |
! |
|
737 | 373 |
|
374 |
rightMouseKeyIcon |
|
375 |
"This resource specification was automatically generated |
|
376 |
by the ImageEditor of ST/X." |
|
377 |
||
378 |
"Do not manually edit this!! If it is corrupted, |
|
379 |
the ImageEditor may not be able to read the specification." |
|
380 |
||
381 |
" |
|
1405 | 382 |
self rightMouseKeyIcon inspect |
737 | 383 |
ImageEditor openOnClass:self andSelector:#rightMouseKeyIcon |
384 |
" |
|
385 |
||
386 |
<resource: #image> |
|
387 |
||
388 |
^Icon |
|
389 |
constantNamed:#'ImageEditor rightMouseKeyIcon' |
|
1433 | 390 |
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] |
391 |
! ! |
|
737 | 392 |
|
400 | 393 |
!ImageEditor class methodsFor:'interface specs'! |
394 |
||
767 | 395 |
dialogSpecForNewImage |
737 | 396 |
"This resource specification was automatically generated |
397 |
by the UIPainter of ST/X." |
|
519 | 398 |
|
737 | 399 |
"Do not manually edit this!! If it is corrupted, |
400 |
the UIPainter may not be able to read the specification." |
|
519 | 401 |
|
402 |
" |
|
767 | 403 |
UIPainter new openOnClass:ImageEditor andSelector:#dialogSpecForNewImage |
404 |
ImageEditor new openInterface:#dialogSpecForNewImage |
|
519 | 405 |
" |
406 |
||
407 |
<resource: #canvas> |
|
408 |
||
409 |
^ |
|
410 |
||
411 |
#(#FullSpec |
|
672 | 412 |
#window: |
519 | 413 |
#(#WindowSpec |
672 | 414 |
#name: 'New Image' |
975 | 415 |
#layout: #(#LayoutFrame 81 0 288 0 381 0 406 0) |
672 | 416 |
#label: 'New Image' |
417 |
#min: #(#Point 10 10) |
|
418 |
#max: #(#Point 1152 900) |
|
975 | 419 |
#bounds: #(#Rectangle 81 288 382 407) |
672 | 420 |
#usePreferredExtent: false |
519 | 421 |
) |
672 | 422 |
#component: |
519 | 423 |
#(#SpecCollection |
672 | 424 |
#collection: |
519 | 425 |
#( |
426 |
#(#ViewSpec |
|
672 | 427 |
#name: 'View' |
737 | 428 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -35 1.0) |
672 | 429 |
#component: |
519 | 430 |
#(#SpecCollection |
672 | 431 |
#collection: |
519 | 432 |
#( |
433 |
#(#FramedBoxSpec |
|
672 | 434 |
#name: 'framedBox1' |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
435 |
#layout: #(#LayoutFrame 1 0.0 7 0.0 0 0.4 76 0) |
672 | 436 |
#component: |
519 | 437 |
#(#SpecCollection |
672 | 438 |
#collection: |
519 | 439 |
#( |
440 |
#(#ComboBoxSpec |
|
672 | 441 |
#name: 'defaultSizesComboBox' |
975 | 442 |
#layout: #(#LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
672 | 443 |
#model: #selectionOfSize |
444 |
#type: #string |
|
445 |
#comboList: #listOfDefaultSizes |
|
519 | 446 |
) |
447 |
) |
|
448 |
) |
|
672 | 449 |
#label: 'Size' |
450 |
#labelPosition: #topLeft |
|
451 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
519 | 452 |
) |
453 |
#(#FramedBoxSpec |
|
672 | 454 |
#name: 'framedBox2' |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
455 |
#layout: #(#LayoutFrame 0 0.4 7 0.0 -1 1.0 76 0) |
672 | 456 |
#component: |
519 | 457 |
#(#SpecCollection |
672 | 458 |
#collection: |
519 | 459 |
#( |
460 |
#(#ComboListSpec |
|
672 | 461 |
#name: 'colorMapComboBox' |
975 | 462 |
#layout: #(#LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
672 | 463 |
#model: #selectionOfColorMap |
464 |
#comboList: #listOfColorMaps |
|
465 |
#useIndex: false |
|
519 | 466 |
) |
467 |
) |
|
468 |
) |
|
672 | 469 |
#label: 'Color Map' |
470 |
#labelPosition: #topLeft |
|
471 |
#style: #(#FontDescription #helvetica #medium #roman 12) |
|
519 | 472 |
) |
473 |
) |
|
474 |
) |
|
672 | 475 |
#level: 1 |
519 | 476 |
) |
672 | 477 |
#(#UISubSpecification |
975 | 478 |
#name: 'windowSpecForCommitWithoutChannels' |
737 | 479 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
672 | 480 |
#minorKey: #windowSpecForCommitWithoutChannels |
519 | 481 |
) |
482 |
) |
|
483 |
) |
|
484 |
) |
|
767 | 485 |
! |
486 |
||
1045 | 487 |
gropDialogSpec |
986 | 488 |
"This resource specification was automatically generated |
489 |
by the UIPainter of ST/X." |
|
490 |
||
491 |
"Do not manually edit this!! If it is corrupted, |
|
492 |
the UIPainter may not be able to read the specification." |
|
493 |
||
494 |
" |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
495 |
UIPainter new openOnClass:ImageEditor andSelector:#gropDialogSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
496 |
ImageEditor new openInterface:#gropDialogSpec |
986 | 497 |
" |
498 |
||
499 |
<resource: #canvas> |
|
500 |
||
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
501 |
^ |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
502 |
#(#FullSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
503 |
#name: #gropDialogSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
504 |
#window: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
505 |
#(#WindowSpec |
1480 | 506 |
#label: 'Crop Border(s)' |
1490 | 507 |
#name: 'Crop Border(s)' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
508 |
#min: #(#Point 10 10) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
509 |
#max: #(#Point 800 478) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
510 |
#bounds: #(#Rectangle 16 46 261 229) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
511 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
512 |
#component: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
513 |
#(#SpecCollection |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
514 |
#collection: #( |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
515 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
516 |
#label: 'Left:' |
1502 | 517 |
#name: 'GropLeftLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
518 |
#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
|
519 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
520 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
521 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
522 |
#(#InputFieldSpec |
1502 | 523 |
#name: 'GropLeftEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
524 |
#layout: #(#LayoutFrame 95 0 21 0 132 0 43 0) |
1507 | 525 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
526 |
#model: #left |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
527 |
#type: #number |
1502 | 528 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
529 |
#acceptOnPointerLeave: false |
1502 | 530 |
) |
531 |
#(#ActionButtonSpec |
|
532 |
#label: 'Now' |
|
533 |
#name: 'GropLeftNowButton' |
|
534 |
#layout: #(#LayoutFrame 148 0 21 0 221 0 43 0) |
|
535 |
#translateLabel: true |
|
1507 | 536 |
#tabable: true |
1502 | 537 |
#model: #gropLeftNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
538 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
539 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
540 |
#label: 'Right:' |
1502 | 541 |
#name: 'GropRightLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
542 |
#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
|
543 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
544 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
545 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
546 |
#(#InputFieldSpec |
1502 | 547 |
#name: 'GropRightEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
548 |
#layout: #(#LayoutFrame 95 0 51 0 132 0 73 0) |
1507 | 549 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
550 |
#model: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
551 |
#type: #number |
1502 | 552 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
553 |
#acceptOnPointerLeave: false |
1502 | 554 |
) |
555 |
#(#ActionButtonSpec |
|
556 |
#label: 'Now' |
|
557 |
#name: 'GropRightButton' |
|
558 |
#layout: #(#LayoutFrame 148 0 51 0 221 0 73 0) |
|
559 |
#translateLabel: true |
|
1507 | 560 |
#tabable: true |
1502 | 561 |
#model: #gropRightNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
562 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
563 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
564 |
#label: 'Top:' |
1502 | 565 |
#name: 'GropTopLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
566 |
#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
|
567 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
568 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
569 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
570 |
#(#InputFieldSpec |
1502 | 571 |
#name: 'GropTopEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
572 |
#layout: #(#LayoutFrame 95 0 81 0 132 0 103 0) |
1507 | 573 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
574 |
#model: #top |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
575 |
#type: #number |
1502 | 576 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
577 |
#acceptOnPointerLeave: false |
1502 | 578 |
) |
579 |
#(#ActionButtonSpec |
|
580 |
#label: 'Now' |
|
581 |
#name: 'GropTopButton' |
|
582 |
#layout: #(#LayoutFrame 148 0 81 0 221 0 103 0) |
|
583 |
#translateLabel: true |
|
1507 | 584 |
#tabable: true |
1502 | 585 |
#model: #gropTopNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
586 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
587 |
#(#LabelSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
588 |
#label: 'Bottom:' |
1502 | 589 |
#name: 'GropBottomLabel' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
590 |
#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
|
591 |
#translateLabel: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
592 |
#adjust: #right |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
593 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
594 |
#(#InputFieldSpec |
1502 | 595 |
#name: 'GropBottomEntryField' |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
596 |
#layout: #(#LayoutFrame 95 0 111 0 132 0 133 0) |
1507 | 597 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
598 |
#model: #bottom |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
599 |
#type: #number |
1502 | 600 |
#acceptChannel: #acceptChannel |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
601 |
#acceptOnPointerLeave: false |
1502 | 602 |
) |
603 |
#(#ActionButtonSpec |
|
604 |
#label: 'Now' |
|
605 |
#name: 'GropBottomButton' |
|
606 |
#layout: #(#LayoutFrame 148 0 111 0 221 0 133 0) |
|
607 |
#translateLabel: true |
|
1507 | 608 |
#tabable: true |
1502 | 609 |
#model: #gropBottomNow |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
610 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
611 |
#(#HorizontalPanelViewSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
612 |
#name: 'HorizontalPanel1' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
613 |
#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
|
614 |
#horizontalLayout: #fitSpace |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
615 |
#verticalLayout: #center |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
616 |
#horizontalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
617 |
#verticalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
618 |
#reverseOrderIfOKAtLeft: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
619 |
#component: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
620 |
#(#SpecCollection |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
621 |
#collection: #( |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
622 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
623 |
#label: 'Cancel' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
624 |
#name: 'Button1' |
986 | 625 |
#translateLabel: true |
1507 | 626 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
627 |
#model: #cancel |
1490 | 628 |
#extent: #(#Point 77 22) |
629 |
) |
|
630 |
#(#ActionButtonSpec |
|
631 |
#label: 'Apply' |
|
632 |
#name: 'Button3' |
|
633 |
#translateLabel: true |
|
1507 | 634 |
#tabable: true |
1490 | 635 |
#model: #applyAction |
636 |
#extent: #(#Point 78 22) |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
637 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
638 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
639 |
#label: 'OK' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
640 |
#name: 'Button2' |
986 | 641 |
#translateLabel: true |
1507 | 642 |
#tabable: true |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
643 |
#model: #accept |
1490 | 644 |
#extent: #(#Point 78 22) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
645 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
646 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
647 |
|
986 | 648 |
) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
649 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
650 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
651 |
|
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
652 |
) |
986 | 653 |
) |
654 |
! |
|
655 |
||
1480 | 656 |
ungropDialogSpec |
657 |
"This resource specification was automatically generated |
|
658 |
by the UIPainter of ST/X." |
|
659 |
||
660 |
"Do not manually edit this!! If it is corrupted, |
|
661 |
the UIPainter may not be able to read the specification." |
|
662 |
||
663 |
" |
|
664 |
UIPainter new openOnClass:ImageEditor andSelector:#ungropDialogSpec |
|
665 |
ImageEditor new openInterface:#ungropDialogSpec |
|
666 |
" |
|
667 |
||
668 |
<resource: #canvas> |
|
669 |
||
670 |
^ |
|
671 |
#(#FullSpec |
|
672 |
#name: #ungropDialogSpec |
|
673 |
#window: |
|
674 |
#(#WindowSpec |
|
675 |
#label: 'Add Border(s)' |
|
676 |
#name: 'Add Borders' |
|
677 |
#min: #(#Point 10 10) |
|
678 |
#max: #(#Point 800 478) |
|
679 |
#bounds: #(#Rectangle 16 46 261 229) |
|
680 |
) |
|
681 |
#component: |
|
682 |
#(#SpecCollection |
|
683 |
#collection: #( |
|
684 |
#(#LabelSpec |
|
685 |
#label: 'Left:' |
|
686 |
#name: 'Label1' |
|
687 |
#layout: #(#LayoutFrame 14 0 21 0 90 0 43 0) |
|
688 |
#translateLabel: true |
|
689 |
#adjust: #right |
|
690 |
) |
|
691 |
#(#InputFieldSpec |
|
692 |
#name: 'EntryField1' |
|
693 |
#layout: #(#LayoutFrame 95 0 21 0 132 0 43 0) |
|
694 |
#model: #left |
|
695 |
#type: #number |
|
696 |
#acceptOnPointerLeave: false |
|
697 |
) |
|
698 |
#(#LabelSpec |
|
699 |
#label: 'Right:' |
|
700 |
#name: 'Label2' |
|
701 |
#layout: #(#LayoutFrame 14 0 51 0 90 0 73 0) |
|
702 |
#translateLabel: true |
|
703 |
#adjust: #right |
|
704 |
) |
|
705 |
#(#InputFieldSpec |
|
706 |
#name: 'EntryField2' |
|
707 |
#layout: #(#LayoutFrame 95 0 51 0 132 0 73 0) |
|
708 |
#model: #right |
|
709 |
#type: #number |
|
710 |
#acceptOnPointerLeave: false |
|
711 |
) |
|
712 |
#(#LabelSpec |
|
713 |
#label: 'Top:' |
|
714 |
#name: 'Label3' |
|
715 |
#layout: #(#LayoutFrame 14 0 81 0 90 0 103 0) |
|
716 |
#translateLabel: true |
|
717 |
#adjust: #right |
|
718 |
) |
|
719 |
#(#InputFieldSpec |
|
720 |
#name: 'EntryField3' |
|
721 |
#layout: #(#LayoutFrame 95 0 81 0 132 0 103 0) |
|
722 |
#model: #top |
|
723 |
#type: #number |
|
724 |
#acceptOnPointerLeave: false |
|
725 |
) |
|
726 |
#(#LabelSpec |
|
727 |
#label: 'Bottom:' |
|
728 |
#name: 'Label4' |
|
729 |
#layout: #(#LayoutFrame 14 0 111 0 90 0 133 0) |
|
730 |
#translateLabel: true |
|
731 |
#adjust: #right |
|
732 |
) |
|
733 |
#(#InputFieldSpec |
|
734 |
#name: 'EntryField4' |
|
735 |
#layout: #(#LayoutFrame 95 0 111 0 132 0 133 0) |
|
736 |
#model: #bottom |
|
737 |
#type: #number |
|
738 |
#acceptOnPointerLeave: false |
|
739 |
) |
|
740 |
#(#HorizontalPanelViewSpec |
|
741 |
#name: 'HorizontalPanel1' |
|
742 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
|
743 |
#horizontalLayout: #fitSpace |
|
744 |
#verticalLayout: #center |
|
745 |
#horizontalSpace: 3 |
|
746 |
#verticalSpace: 3 |
|
747 |
#reverseOrderIfOKAtLeft: true |
|
748 |
#component: |
|
749 |
#(#SpecCollection |
|
750 |
#collection: #( |
|
751 |
#(#ActionButtonSpec |
|
752 |
#label: 'Cancel' |
|
753 |
#name: 'Button1' |
|
754 |
#translateLabel: true |
|
755 |
#model: #cancel |
|
756 |
#extent: #(#Point 118 22) |
|
757 |
) |
|
758 |
#(#ActionButtonSpec |
|
759 |
#label: 'OK' |
|
760 |
#name: 'Button2' |
|
761 |
#translateLabel: true |
|
762 |
#model: #accept |
|
763 |
#extent: #(#Point 118 22) |
|
764 |
) |
|
765 |
) |
|
766 |
||
767 |
) |
|
768 |
) |
|
769 |
) |
|
770 |
||
771 |
) |
|
772 |
) |
|
773 |
! |
|
774 |
||
767 | 775 |
windowSpec |
776 |
"This resource specification was automatically generated |
|
777 |
by the UIPainter of ST/X." |
|
778 |
||
779 |
"Do not manually edit this!! If it is corrupted, |
|
780 |
the UIPainter may not be able to read the specification." |
|
781 |
||
782 |
" |
|
783 |
UIPainter new openOnClass:ImageEditor andSelector:#windowSpec |
|
784 |
ImageEditor new openInterface:#windowSpec |
|
785 |
ImageEditor open |
|
786 |
" |
|
787 |
||
788 |
<resource: #canvas> |
|
789 |
||
790 |
^ |
|
791 |
||
792 |
#(#FullSpec |
|
793 |
#window: |
|
794 |
#(#WindowSpec |
|
795 |
#name: 'Image Editor' |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
796 |
#layout: #(#LayoutFrame 507 0 28 0 1004 0 371 0) |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
797 |
#level: 0 |
767 | 798 |
#label: 'Image Editor' |
799 |
#min: #(#Point 400 320) |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
800 |
#bounds: #(#Rectangle 507 28 1005 372) |
767 | 801 |
#menu: #menu |
802 |
#usePreferredExtent: false |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
803 |
#returnIsOKInDialog: true |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
804 |
#escapeIsCancelInDialog: true |
767 | 805 |
) |
806 |
#component: |
|
807 |
#(#SpecCollection |
|
808 |
#collection: |
|
809 |
#( |
|
810 |
#(#MenuPanelSpec |
|
811 |
#name: 'menuToolbarView' |
|
812 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
813 |
#menu: #menuToolbar |
|
814 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
|
815 |
#showSeparatingLines: true |
|
816 |
) |
|
817 |
#(#VariableHorizontalPanelSpec |
|
818 |
#name: 'variableHorizontalPanel1' |
|
819 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
820 |
#component: |
|
821 |
#(#SpecCollection |
|
822 |
#collection: |
|
823 |
#( |
|
824 |
#(#ViewSpec |
|
825 |
#name: 'view1' |
|
826 |
#component: |
|
827 |
#(#SpecCollection |
|
828 |
#collection: |
|
829 |
#( |
|
830 |
#(#VariableVerticalPanelSpec |
|
831 |
#name: 'VariableVerticalPanel1' |
|
832 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
833 |
#component: |
|
834 |
#(#SpecCollection |
|
835 |
#collection: |
|
836 |
#( |
|
837 |
#(#ViewSpec |
|
838 |
#name: 'View1' |
|
839 |
#component: |
|
840 |
#(#SpecCollection |
|
841 |
#collection: |
|
842 |
#( |
|
843 |
#(#MenuPanelSpec |
|
844 |
#name: 'MouseButtonColorToolBar' |
|
845 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 24 0) |
|
846 |
#menu: #menuMouseButtonColors |
|
847 |
) |
|
848 |
#(#DataSetSpec |
|
849 |
#name: 'colorDataSetView' |
|
850 |
#layout: #(#LayoutFrame 0 0.0 26 0.0 0 1.0 0 1.0) |
|
851 |
#activeHelpKey: #colorMapTable |
|
852 |
#model: #selectionOfColor |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
853 |
#menu: #colorMapMenu |
767 | 854 |
#style: #(#FontDescription #helvetica #medium #roman 10) |
855 |
#hasHorizontalScrollBar: true |
|
856 |
#hasVerticalScrollBar: true |
|
857 |
#miniScrollerHorizontal: true |
|
858 |
#miniScrollerVertical: true |
|
859 |
#dataList: #listOfColors |
|
860 |
#has3Dsepartors: true |
|
905 | 861 |
#has3Dseparators: true |
767 | 862 |
#verticalSpacing: 1 |
863 |
#columns: |
|
864 |
#( |
|
865 |
#(#DataSetColumnSpec |
|
866 |
#rendererType: #rowSelector |
|
1449
49ad9f552d64
oops - fixed bg-color access in dataset
Claus Gittinger <cg@exept.de>
parents:
1446
diff
changeset
|
867 |
#backgroundSelector: #theColorItSelf: |
767 | 868 |
) |
869 |
#(#DataSetColumnSpec |
|
870 |
#label: 'R' |
|
871 |
#labelAlignment: #left |
|
942 | 872 |
#columnAlignment: #right |
873 |
#editorType: #InputField |
|
874 |
#type: #number |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
875 |
#model: #redFromColor: |
942 | 876 |
#writeSelector: #redAtColor:put: |
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
877 |
#selectSelector: #canSelectRedInColor: |
767 | 878 |
) |
879 |
#(#DataSetColumnSpec |
|
880 |
#label: 'G' |
|
881 |
#labelAlignment: #left |
|
942 | 882 |
#columnAlignment: #right |
883 |
#editorType: #InputField |
|
884 |
#type: #number |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
885 |
#model: #greenFromColor: |
942 | 886 |
#writeSelector: #greenAtColor:put: |
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
887 |
#selectSelector: #canSelectGreenInColor: |
767 | 888 |
) |
889 |
#(#DataSetColumnSpec |
|
890 |
#label: 'B' |
|
891 |
#labelAlignment: #left |
|
942 | 892 |
#columnAlignment: #right |
893 |
#editorType: #InputField |
|
894 |
#type: #number |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
895 |
#model: #blueFromColor: |
942 | 896 |
#writeSelector: #blueAtColor:put: |
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
897 |
#selectSelector: #canSelectBlueInColor: |
767 | 898 |
) |
899 |
) |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
900 |
#columnAdaptor: #colorColumnAdaptor |
767 | 901 |
) |
902 |
) |
|
903 |
) |
|
904 |
) |
|
905 |
#(#ArbitraryComponentSpec |
|
906 |
#name: 'imagePreView' |
|
907 |
#activeHelpKey: #previewView |
|
908 |
#hasHorizontalScrollBar: true |
|
909 |
#hasVerticalScrollBar: true |
|
910 |
#miniScrollerHorizontal: true |
|
911 |
#miniScrollerVertical: true |
|
912 |
#component: #ImageView |
|
913 |
#hasBorder: false |
|
914 |
) |
|
915 |
) |
|
916 |
) |
|
917 |
#handles: #(#Any 0.723776 1.0) |
|
918 |
) |
|
919 |
) |
|
920 |
) |
|
921 |
) |
|
922 |
#(#ViewSpec |
|
923 |
#name: 'view2' |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
924 |
#level: -1 |
767 | 925 |
#component: |
926 |
#(#SpecCollection |
|
927 |
#collection: |
|
928 |
#( |
|
929 |
#(#ArbitraryComponentSpec |
|
930 |
#name: 'imageEditView' |
|
931 |
#layout: #(#LayoutFrame 2 0.0 2 0.0 -2 1.0 -24 1.0) |
|
932 |
#hasHorizontalScrollBar: true |
|
933 |
#hasVerticalScrollBar: true |
|
934 |
#component: #ImageEditView |
|
935 |
#hasBorder: false |
|
936 |
) |
|
937 |
#(#LabelSpec |
|
938 |
#name: 'coordLabel' |
|
939 |
#layout: #(#LayoutFrame 2 0.0 -22 1 -83 1.0 0 1.0) |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
940 |
#level: -1 |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
941 |
#labelChannel: #imageInfoHolder |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
942 |
#resizeForLabel: false |
767 | 943 |
#adjust: #left |
944 |
) |
|
945 |
#(#ArrowButtonSpec |
|
946 |
#name: 'magnifyDownButton' |
|
947 |
#layout: #(#LayoutFrame -80 1 -22 1 -58 1 0 1) |
|
948 |
#activeHelpKey: #magnifyImageDown |
|
949 |
#model: #doMagnifyDown |
|
950 |
#enableChannel: #imageIsLoaded |
|
951 |
#isTriggerOnDown: true |
|
952 |
#direction: #left |
|
953 |
) |
|
954 |
#(#ArrowButtonSpec |
|
955 |
#name: 'magnifyUpButton' |
|
956 |
#layout: #(#LayoutFrame -24 1 -22 1 -2 1 0 1) |
|
957 |
#activeHelpKey: #magnifyImageUp |
|
958 |
#model: #doMagnifyUp |
|
959 |
#enableChannel: #imageIsLoaded |
|
960 |
#isTriggerOnDown: true |
|
961 |
#direction: #right |
|
962 |
) |
|
963 |
#(#InputFieldSpec |
|
964 |
#name: 'magnificationInputField' |
|
965 |
#layout: #(#LayoutFrame -57 1 -22 1 -26 1 0 1) |
|
966 |
#activeHelpKey: #magnificationNumber |
|
967 |
#enableChannel: #imageIsLoaded |
|
968 |
#model: #valueOfMagnification |
|
905 | 969 |
#type: #numberInRange |
767 | 970 |
#acceptOnReturn: false |
971 |
#acceptOnTab: false |
|
972 |
#numChars: 2 |
|
905 | 973 |
#minValue: 1 |
974 |
#maxValue: 99 |
|
767 | 975 |
) |
976 |
) |
|
977 |
) |
|
978 |
) |
|
979 |
) |
|
980 |
) |
|
981 |
#handles: #(#Any 0.276 1.0) |
|
982 |
) |
|
983 |
#(#UISubSpecification |
|
984 |
#name: 'infoBarSubSpec' |
|
985 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
986 |
#majorKey: #ToolApplicationModel |
|
987 |
#minorKey: #windowSpecForInfoBar |
|
988 |
) |
|
989 |
) |
|
990 |
) |
|
991 |
) |
|
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
992 |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
993 |
"Modified: / 12.3.1999 / 00:15:05 / cg" |
519 | 994 |
! ! |
995 |
||
996 |
!ImageEditor class methodsFor:'menu specs'! |
|
997 |
||
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
998 |
colorMapMenu |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
999 |
"This resource specification was automatically generated |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1000 |
by the MenuEditor of ST/X." |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1001 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1002 |
"Do not manually edit this!! If it is corrupted, |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1003 |
the MenuEditor may not be able to read the specification." |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1004 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1005 |
" |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1006 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuSpec |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1007 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuSpec)) startUp |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1008 |
" |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1009 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1010 |
<resource: #menu> |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1011 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1012 |
^ |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1013 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1014 |
#(#Menu |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1015 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1016 |
#( |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1017 |
#(#MenuItem |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1018 |
#label: 'Add Color' |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1019 |
#translateLabel: true |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1020 |
#value: #addColorToColormap |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1021 |
) |
1446 | 1022 |
"/ #(#MenuItem |
1023 |
"/ #label: 'Make Brighter' |
|
1024 |
"/ #translateLabel: true |
|
1025 |
"/ #value: #makeSelectedColorBrighter |
|
1026 |
"/ ) |
|
1027 |
"/ #(#MenuItem |
|
1028 |
"/ #label: 'Make Darker' |
|
1029 |
"/ #translateLabel: true |
|
1030 |
"/ #value: #makeSelectedColorDarker |
|
1031 |
"/ ) |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1032 |
) nil |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1033 |
nil |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1034 |
) |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1035 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1036 |
"Created: / 12.3.1999 / 00:19:00 / cg" |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1037 |
! |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
1038 |
|
400 | 1039 |
menu |
737 | 1040 |
"This resource specification was automatically generated |
1041 |
by the MenuEditor of ST/X." |
|
400 | 1042 |
|
737 | 1043 |
"Do not manually edit this!! If it is corrupted, |
1044 |
the MenuEditor may not be able to read the specification." |
|
400 | 1045 |
|
1046 |
" |
|
1047 |
MenuEditor new openOnClass:ImageEditor andSelector:#menu |
|
1048 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menu)) startUp |
|
1049 |
" |
|
1050 |
||
1051 |
<resource: #menu> |
|
1052 |
||
1124 | 1053 |
^ |
1054 |
#(#Menu |
|
1055 |
#( |
|
1056 |
#(#MenuItem |
|
1489 | 1057 |
#label: '&File' |
1124 | 1058 |
#translateLabel: true |
1059 |
#activeHelpKey: #file |
|
1489 | 1060 |
#shortcutKeyCharacter: #Cmdf |
1124 | 1061 |
#submenu: |
1062 |
#(#Menu |
|
1063 |
#( |
|
1064 |
#(#MenuItem |
|
1065 |
#label: 'New...' |
|
1066 |
#translateLabel: true |
|
1067 |
#value: #doNewImage |
|
1068 |
#activeHelpKey: #fileNewImage |
|
1069 |
) |
|
1070 |
#(#MenuItem |
|
1071 |
#label: '-' |
|
1072 |
) |
|
1073 |
#(#MenuItem |
|
1074 |
#label: 'Load...' |
|
1075 |
#translateLabel: true |
|
1076 |
#value: #doLoadFromClass |
|
1077 |
#activeHelpKey: #fileLoadFromClass |
|
1078 |
) |
|
1079 |
#(#MenuItem |
|
1080 |
#label: 'Load From File...' |
|
1081 |
#translateLabel: true |
|
1082 |
#value: #doLoadFromFile |
|
1083 |
#activeHelpKey: #fileLoadFromFile |
|
1084 |
) |
|
1085 |
#(#MenuItem |
|
1086 |
#label: 'Grab From Screen' |
|
1087 |
#translateLabel: true |
|
1088 |
#value: #grabScreenImage |
|
1089 |
#activeHelpKey: #fileGrabImage |
|
1090 |
) |
|
1091 |
#(#MenuItem |
|
1496 | 1092 |
#label: 'Next in Sequence' |
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
1093 |
#translateLabel: true |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
1094 |
#value: #nextImageInSequence |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
1095 |
#enabled: #imageHasNextImage |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
1096 |
) |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
1097 |
#(#MenuItem |
1124 | 1098 |
#label: '-' |
1099 |
) |
|
1100 |
#(#MenuItem |
|
1101 |
#label: 'Save' |
|
1102 |
#translateLabel: true |
|
1103 |
#value: #doSaveMethod |
|
1104 |
#activeHelpKey: #fileSaveMethod |
|
1105 |
#enabled: #imageIsLoadedAndClassDefined |
|
1106 |
) |
|
1107 |
#(#MenuItem |
|
1108 |
#label: 'Save As...' |
|
1109 |
#translateLabel: true |
|
1110 |
#value: #doSaveMethodAs |
|
1111 |
#activeHelpKey: #fileSaveMethodAs |
|
1112 |
#enabled: #imageIsLoaded |
|
1113 |
) |
|
1114 |
#(#MenuItem |
|
1115 |
#label: '-' |
|
1116 |
) |
|
1117 |
#(#MenuItem |
|
1118 |
#label: 'Save To File...' |
|
1119 |
#translateLabel: true |
|
1120 |
#value: #doSaveImageFileAs |
|
1121 |
#activeHelpKey: #fileSaveAs |
|
1122 |
#enabled: #imageIsLoaded |
|
1123 |
) |
|
1124 |
#(#MenuItem |
|
1125 |
#label: 'Save Mask To File...' |
|
1126 |
#translateLabel: true |
|
1127 |
#value: #doSaveImageMaskFileAs |
|
1128 |
#activeHelpKey: #fileSaveMaskAs |
|
1129 |
#enabled: #imageIsLoaded |
|
1130 |
) |
|
1131 |
#(#MenuItem |
|
1132 |
#label: '-' |
|
1133 |
) |
|
1134 |
#(#MenuItem |
|
1309
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1135 |
#label: 'Show storeString' |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1136 |
#translateLabel: true |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1137 |
#value: #doShowStoreString |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1138 |
#activeHelpKey: #fileShowStoreString |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1139 |
#enabled: #imageIsLoaded |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1140 |
) |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1141 |
#(#MenuItem |
1433 | 1142 |
#label: 'Edit Mask' |
1143 |
#translateLabel: true |
|
1144 |
#value: #doEditMask |
|
1145 |
#activeHelpKey: #fileEditMask |
|
1146 |
#enabled: #imageIsLoaded |
|
1147 |
) |
|
1148 |
#(#MenuItem |
|
1309
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1149 |
#label: '-' |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1150 |
) |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
1151 |
#(#MenuItem |
1124 | 1152 |
#label: 'Print' |
1153 |
#translateLabel: true |
|
1154 |
#value: #doPrint |
|
1155 |
#activeHelpKey: #filePrint |
|
1156 |
#enabled: #imageIsLoaded |
|
1157 |
) |
|
1158 |
#(#MenuItem |
|
1159 |
#label: '-' |
|
1160 |
) |
|
1161 |
#(#MenuItem |
|
1162 |
#label: 'Browse Class' |
|
1163 |
#translateLabel: true |
|
1164 |
#value: #doBrowseClass |
|
1165 |
#activeHelpKey: #fileBrowseClass |
|
1166 |
#enabled: #hasClassDefined |
|
1167 |
) |
|
1168 |
#(#MenuItem |
|
1169 |
#label: '-' |
|
1170 |
) |
|
1171 |
#(#MenuItem |
|
1172 |
#label: 'Exit' |
|
1173 |
#translateLabel: true |
|
1174 |
#value: #closeRequest |
|
1175 |
#activeHelpKey: #fileExit |
|
1176 |
) |
|
1177 |
) |
|
1178 |
nil |
|
1179 |
nil |
|
400 | 1180 |
) |
1124 | 1181 |
) |
1182 |
#(#MenuItem |
|
1183 |
#label: 'Edit' |
|
1184 |
#translateLabel: true |
|
1185 |
#activeHelpKey: #edit |
|
1186 |
#enabled: #imageIsLoaded |
|
1187 |
#submenu: |
|
1188 |
#(#Menu |
|
1189 |
#( |
|
1190 |
#(#MenuItem |
|
1191 |
#label: 'Undo' |
|
1192 |
#translateLabel: true |
|
1193 |
#value: #doUndo |
|
1194 |
#activeHelpKey: #editUndo |
|
1195 |
#enabled: #valueOfCanUndo |
|
1196 |
) |
|
1197 |
#(#MenuItem |
|
1198 |
#label: '-' |
|
1199 |
) |
|
1200 |
#(#MenuItem |
|
1201 |
#label: 'Flip - Vertical' |
|
1202 |
#translateLabel: true |
|
1203 |
#value: #doFlipVertical |
|
1204 |
#activeHelpKey: #editFlipVertical |
|
1205 |
) |
|
1206 |
#(#MenuItem |
|
1207 |
#label: 'Flip - Horizontal' |
|
1208 |
#translateLabel: true |
|
1209 |
#value: #doFlipHorizontal |
|
1210 |
#activeHelpKey: #editFlipHorizontal |
|
1211 |
) |
|
1212 |
#(#MenuItem |
|
1213 |
#label: '-' |
|
1214 |
) |
|
1215 |
#(#MenuItem |
|
1216 |
#label: 'Resize...' |
|
1217 |
#translateLabel: true |
|
1218 |
#value: #doResizeImage |
|
1219 |
#activeHelpKey: #editResize |
|
1220 |
) |
|
1221 |
#(#MenuItem |
|
1222 |
#label: 'Magnify...' |
|
1223 |
#translateLabel: true |
|
1224 |
#value: #doMagnifyImage |
|
1225 |
#activeHelpKey: #editMagnifyImage |
|
1226 |
) |
|
1227 |
#(#MenuItem |
|
1479 | 1228 |
#label: 'Magnify By...' |
1229 |
#translateLabel: true |
|
1230 |
#value: #doMagnifyImageBy |
|
1231 |
#activeHelpKey: #editMagnifyImage |
|
1232 |
) |
|
1233 |
#(#MenuItem |
|
1124 | 1234 |
#label: 'Rotate...' |
1235 |
#translateLabel: true |
|
1236 |
#value: #doRotateImage |
|
1237 |
#activeHelpKey: #editRotate |
|
1238 |
) |
|
1239 |
#(#MenuItem |
|
1240 |
#label: '-' |
|
1241 |
) |
|
1242 |
#(#MenuItem |
|
1146 | 1243 |
#label: 'Invert' |
1244 |
#translateLabel: true |
|
1245 |
#value: #doNegativeImage |
|
1246 |
) |
|
1247 |
#(#MenuItem |
|
1248 |
#label: '-' |
|
1249 |
) |
|
1250 |
#(#MenuItem |
|
1124 | 1251 |
#label: 'Crop' |
1252 |
#translateLabel: true |
|
1253 |
#submenu: |
|
400 | 1254 |
#(#Menu |
1124 | 1255 |
#( |
1256 |
#(#MenuItem |
|
1257 |
#label: 'All' |
|
1258 |
#translateLabel: true |
|
1259 |
#value: #doCropAll |
|
1260 |
#activeHelpKey: #cropAll |
|
400 | 1261 |
) |
1124 | 1262 |
#(#MenuItem |
1263 |
#label: '-' |
|
986 | 1264 |
) |
1124 | 1265 |
#(#MenuItem |
1266 |
#label: 'Left' |
|
1267 |
#translateLabel: true |
|
1268 |
#value: #doCropLeft |
|
1269 |
#activeHelpKey: #cropLeft |
|
1270 |
) |
|
1271 |
#(#MenuItem |
|
1272 |
#label: 'Right' |
|
1273 |
#translateLabel: true |
|
1274 |
#value: #doCropRight |
|
1275 |
#activeHelpKey: #cropRight |
|
986 | 1276 |
) |
1124 | 1277 |
#(#MenuItem |
1278 |
#label: 'Top' |
|
1279 |
#translateLabel: true |
|
1280 |
#value: #doCropTop |
|
1281 |
#activeHelpKey: #cropTop |
|
672 | 1282 |
) |
1124 | 1283 |
#(#MenuItem |
1284 |
#label: 'Bottom' |
|
1285 |
#translateLabel: true |
|
1286 |
#value: #doCropBottom |
|
1287 |
#activeHelpKey: #cropBottom |
|
400 | 1288 |
) |
1124 | 1289 |
#(#MenuItem |
1290 |
#label: '-' |
|
400 | 1291 |
) |
1124 | 1292 |
#(#MenuItem |
1293 |
#label: 'Manual...' |
|
1294 |
#translateLabel: true |
|
1295 |
#value: #doCropManual |
|
1296 |
#activeHelpKey: #cropManual |
|
400 | 1297 |
) |
1124 | 1298 |
) |
1299 |
nil |
|
400 | 1300 |
nil |
1124 | 1301 |
) |
400 | 1302 |
) |
1489 | 1303 |
#(#MenuItem |
1304 |
#label: 'Ungrop (Add Border)...' |
|
1305 |
#translateLabel: true |
|
1306 |
#value: #doUnCropManual |
|
1307 |