author | Claus Gittinger <cg@exept.de> |
Thu, 18 Dec 2014 00:52:06 +0100 | |
changeset 3174 | cd45c49a0d63 |
parent 3173 | 801e6bfe2581 |
child 3180 | 9ee8f0e74b96 |
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 |
" |
|
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
12 |
"{ Package: 'stx:libtool2' }" |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
13 |
|
1975 | 14 |
ResourceSpecEditor subclass:#ImageEditor |
975 | 15 |
instanceVariableNames:'imageEditView colorMapMode editMode mouseKeyColorMode |
1960 | 16 |
selectedColorIndex postOpenAction imageSeqNr drawingColormap |
2767 | 17 |
lastShiftUsedWrap lastGrabbedScreenArea |
18 |
allowedToChangeImageDimensionAndDepth' |
|
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
19 |
classVariableNames:'LastDirectory LastSizeString MaskClipboard LastColormapMode |
2796 | 20 |
DefaultRelativeSizes LastURL' |
929 | 21 |
poolDictionaries:'' |
22 |
category:'Interface-UIPainter' |
|
400 | 23 |
! |
24 |
||
25 |
!ImageEditor class methodsFor:'documentation'! |
|
26 |
||
27 |
copyright |
|
28 |
" |
|
767 | 29 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
400 | 30 |
All Rights Reserved |
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
405 | 34 |
inclusion of the above copyright notice. This software may not |
400 | 35 |
be provided or otherwise made available to, or used by, any |
405 | 36 |
other person. No title to or ownership of the software is |
400 | 37 |
hereby transferred. |
38 |
" |
|
39 |
! |
|
40 |
||
41 |
documentation |
|
42 |
" |
|
737 | 43 |
Image Editor allows you to create, design, modify or just inspect images. |
400 | 44 |
|
45 |
[start with:] |
|
46 |
ImageEditor open |
|
941 | 47 |
ImageEditor openOnClass:Icon andSelector:#startIcon |
400 | 48 |
|
49 |
[see also:] |
|
50 |
ImageEditView Image |
|
51 |
||
52 |
[author:] |
|
544 | 53 |
Thomas Zwick, eXept Software AG |
1806 | 54 |
Claus Gittinger, eXept Software AG |
400 | 55 |
" |
56 |
! ! |
|
57 |
||
58 |
!ImageEditor class methodsFor:'instance creation'! |
|
59 |
||
1975 | 60 |
openLoadingImageWith:aBlock |
61 |
"opens an Image Editor on anImage" |
|
62 |
||
63 |
|editor| |
|
64 |
||
65 |
editor := self new. |
|
66 |
editor allButOpen. |
|
67 |
aBlock value:editor. |
|
2764 | 68 |
editor openWindow. |
69 |
^ editor |
|
1975 | 70 |
! |
71 |
||
400 | 72 |
openModalOnClass: aClass andSelector: aSelector |
1975 | 73 |
"opens a modal Image Editor on aClass and aSelector. |
74 |
Returns the real name of the edited resource method (in case, user changed it)." |
|
75 |
||
76 |
|imageEditor imageEditView className resourceClass resourceSelector| |
|
767 | 77 |
|
400 | 78 |
imageEditor := self new. |
767 | 79 |
|
900 | 80 |
aClass isClass ifTrue: [className := aClass name]. |
81 |
aClass isString ifTrue: [className := aClass]. |
|
903 | 82 |
aClass isNil ifTrue: [className := '']. |
400 | 83 |
|
2764 | 84 |
imageEditor postOpenAction: [ |
85 |
imageEditView := imageEditor imageEditView. |
|
86 |
imageEditor loadFromOrPrepareForClass: aClass andSelector: aSelector |
|
87 |
]. |
|
400 | 88 |
imageEditor openModal. |
89 |
||
1975 | 90 |
resourceClass := imageEditView resourceClass. |
91 |
resourceSelector := imageEditView resourceSelector. |
|
92 |
||
93 |
(resourceClass isNil or:[resourceSelector isNil]) ifTrue:[^ nil]. |
|
94 |
^ Array with:resourceClass with:resourceSelector |
|
1966 | 95 |
|
96 |
" |
|
97 |
self openModalOnClass: self andSelector: #leftMouseKeyIcon |
|
98 |
" |
|
400 | 99 |
! |
100 |
||
2764 | 101 |
openModalOnImage:anImage |
102 |
"opens a modal Image Editor on an image. |
|
103 |
Returns the modified image or nil if unsaved/unchanged" |
|
104 |
||
105 |
|imageEditor imageEditView newImage| |
|
106 |
||
107 |
imageEditor := self new. |
|
2767 | 108 |
imageEditor allowedToChangeImageDimensionAndDepth:false. |
2764 | 109 |
imageEditor postOpenAction: [ |
110 |
imageEditView := imageEditor imageEditView. |
|
111 |
imageEditor loadFromImage: anImage |
|
112 |
]. |
|
113 |
imageEditor openModal. |
|
114 |
||
2766 | 115 |
newImage := imageEditor savedImage. |
2764 | 116 |
^ newImage |
117 |
! |
|
118 |
||
1966 | 119 |
openOnClass:aClass andSelector:aSelector |
120 |
"opens an Image Editor on aClass and aSelector" |
|
400 | 121 |
|
2764 | 122 |
self openLoadingImageWith:[:editor | |
123 |
editor loadFromClass:aClass theNonMetaclass andSelector:aSelector. |
|
124 |
] |
|
1057 | 125 |
|
1966 | 126 |
" |
127 |
self openOnClass:self andSelector:#leftMouseKeyIcon |
|
128 |
self openOnClass:self andSelector:nil |
|
129 |
" |
|
130 |
||
1057 | 131 |
"Modified: / 16.3.1999 / 21:33:49 / cg" |
400 | 132 |
! |
133 |
||
1966 | 134 |
openOnFile:aFileName |
135 |
"opens an Image Editor on aFileName" |
|
400 | 136 |
|
2764 | 137 |
self openLoadingImageWith:[:editor | |
138 |
editor loadFromFile:aFileName. |
|
139 |
] |
|
1057 | 140 |
|
1966 | 141 |
" |
1975 | 142 |
self openOnFile: '../../goodies/bitmaps/gifImages/back.gif' |
1966 | 143 |
" |
144 |
||
1057 | 145 |
"Modified: / 16.3.1999 / 21:33:25 / cg" |
400 | 146 |
! |
147 |
||
1966 | 148 |
openOnImage:anImage |
149 |
"opens an Image Editor on anImage" |
|
400 | 150 |
|
2764 | 151 |
self openLoadingImageWith:[:editor | |
152 |
editor loadFromImage: anImage. |
|
153 |
] |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
154 |
|
1966 | 155 |
" |
156 |
self openOnImage: Icon startIcon |
|
157 |
" |
|
158 |
||
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
159 |
"Modified: / 11.3.1999 / 16:18:33 / cg" |
400 | 160 |
! ! |
161 |
||
162 |
!ImageEditor class methodsFor:'accessing'! |
|
163 |
||
164 |
listOfColorMaps |
|
767 | 165 |
"returns the list of default color maps for a new image" |
400 | 166 |
|
167 |
|colorMap| |
|
898 | 168 |
|
400 | 169 |
(colorMap := OrderedCollection new) |
170 |
add: Color black; |
|
171 |
add: Color white; |
|
172 |
add: Color red; |
|
173 |
add: Color green; |
|
174 |
add: Color blue; |
|
175 |
add: Color cyan; |
|
176 |
add: Color yellow; |
|
177 |
add: Color magenta; |
|
898 | 178 |
add: (Color redByte: 127 greenByte: 0 blueByte: 0); |
179 |
add: (Color redByte: 0 greenByte: 127 blueByte: 0); |
|
180 |
add: (Color redByte: 0 greenByte: 0 blueByte: 127); |
|
181 |
add: (Color redByte: 0 greenByte: 127 blueByte: 127); |
|
182 |
add: (Color redByte: 127 greenByte: 127 blueByte: 0); |
|
183 |
add: (Color redByte: 127 greenByte: 0 blueByte: 127); |
|
184 |
add: (Color redByte: 127 greenByte: 127 blueByte: 127); |
|
185 |
add: (Color redByte: 170 greenByte: 170 blueByte: 170). |
|
186 |
||
400 | 187 |
0 to: 5 do: |
188 |
[:r| |
|
189 |
0 to: 5 do: |
|
190 |
[:g| |
|
191 |
0 to: 5 do: |
|
192 |
[:b| |
|
898 | 193 |
colorMap add: (Color redByte: (r*255//5) ceiling greenByte: (g*255//5) ceiling blueByte: (b*255//5) ceiling) |
400 | 194 |
] |
195 |
] |
|
196 |
]. |
|
197 |
||
198 |
1 to: 25 do: |
|
199 |
[:g| |
|
898 | 200 |
colorMap add: (Color redByte: (g*255//26) ceiling greenByte: (g*255//26) ceiling blueByte: (g*255//26) ceiling) |
400 | 201 |
]. |
202 |
||
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
203 |
^ Dictionary new |
2571 | 204 |
at: #depth32 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
205 |
at: #depth24 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
206 |
at: #masked24 put:(FixedPalette redShift:16 redMask:16rFF greenShift:8 greenMask:16rFF blueShift:0 blueMask:16rFF); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
207 |
at: #depth16 put:(FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
208 |
at: #masked16 put:(FixedPalette redShift:11 redMask:16r1F greenShift:5 greenMask:16r3F blueShift:0 blueMask:16r1F); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
209 |
at: #depth8 put: colorMap; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
210 |
at: #masked8 put: colorMap; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
211 |
at: #depth4 put: (colorMap copyFrom: 1 to: 16); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
212 |
at: #masked4 put: (colorMap copyFrom: 1 to: 16); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
213 |
at: #depth2 put: (colorMap copyFrom: 1 to: 4); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
214 |
at: #masked2 put: (colorMap copyFrom: 1 to: 4); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
215 |
at: #depth1 put: (colorMap copyFrom: 1 to: 2); |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
216 |
at: #masked1 put: (colorMap copyFrom: 1 to: 2); |
400 | 217 |
yourself |
218 |
! |
|
219 |
||
220 |
listOfDefaultSizes |
|
767 | 221 |
"returns the list of default sizes for a new image" |
400 | 222 |
|
1960 | 223 |
^ #('8x8' '16x16' '22x22' '32x32' '48x48' '64x64') |
932
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
224 |
|
7111238cda23
fixed dimension of new-image dialog.
Claus Gittinger <cg@exept.de>
parents:
930
diff
changeset
|
225 |
"Modified: / 31.7.1998 / 01:57:34 / cg" |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
226 |
! |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
227 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
228 |
namesOfColorMaps |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
229 |
^ Dictionary new |
2571 | 230 |
at: #depth32 put: '32-plane (rgba)'; |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
231 |
at: #depth24 put: '24-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
232 |
at: #masked24 put: '24-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
233 |
at: #depth16 put: '16-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
234 |
at: #masked16 put: '16-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
235 |
at: #depth8 put: ' 8-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
236 |
at: #masked8 put: ' 8-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
237 |
at: #depth4 put: ' 4-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
238 |
at: #masked4 put: ' 4-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
239 |
at: #depth2 put: ' 2-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
240 |
at: #masked2 put: ' 2-plane + mask'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
241 |
at: #depth1 put: ' 1-plane'; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
242 |
at: #masked1 put: ' 1-plane + mask' ; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
243 |
yourself |
400 | 244 |
! ! |
245 |
||
460 | 246 |
!ImageEditor class methodsFor:'help specs'! |
247 |
||
1545 | 248 |
flyByHelpSpec |
249 |
<resource: #help> |
|
250 |
||
2871 | 251 |
^super flyByHelpSpec addPairsFrom:(self localHelpTexts) |
252 |
||
253 |
"Modified: / 19-01-2012 / 13:29:48 / cg" |
|
1545 | 254 |
! |
255 |
||
460 | 256 |
helpSpec |
737 | 257 |
"This resource specification was automatically generated |
258 |
by the UIHelpTool of ST/X." |
|
259 |
||
260 |
"Do not manually edit this!! If it is corrupted, |
|
261 |
the UIHelpTool may not be able to read the specification." |
|
460 | 262 |
|
263 |
" |
|
737 | 264 |
UIHelpTool openOnClass:ImageEditor |
460 | 265 |
" |
266 |
||
737 | 267 |
<resource: #help> |
268 |
||
2871 | 269 |
^ super helpSpec addPairsFrom:(self localHelpTexts) |
270 |
||
271 |
"Modified: / 19-01-2012 / 13:29:42 / cg" |
|
272 |
! |
|
273 |
||
274 |
localHelpTexts |
|
275 |
"This resource specification was automatically generated |
|
276 |
by the UIHelpTool of ST/X." |
|
277 |
||
278 |
"Do not manually edit this!! If it is corrupted, |
|
279 |
the UIHelpTool may not be able to read the specification." |
|
280 |
||
281 |
" |
|
282 |
UIHelpTool openOnClass:ImageEditor |
|
283 |
" |
|
284 |
||
285 |
<resource: #help> |
|
286 |
||
287 |
^ #( |
|
288 |
||
289 |
#xdrawModeBox |
|
290 |
'Rectangle' |
|
291 |
||
292 |
#xdrawModeCopy |
|
293 |
'Copy' |
|
294 |
||
295 |
#xdrawModeFill |
|
296 |
'Flood-fill' |
|
297 |
||
298 |
#xdrawModeFilledBox |
|
299 |
'Filled rectangle' |
|
300 |
||
301 |
#xdrawModePaste |
|
302 |
'Paste' |
|
303 |
||
304 |
#xdrawModePasteUnder |
|
305 |
'Paste under' |
|
306 |
||
307 |
#xdrawModePasteWithMask |
|
308 |
'Paste with Mask' |
|
309 |
||
310 |
#xdrawModePoint |
|
311 |
'Point' |
|
312 |
||
313 |
#xfileGrabImage |
|
314 |
'Pick from screen' |
|
315 |
||
316 |
#xfileLoadFromClass |
|
317 |
'Load from method...' |
|
318 |
||
319 |
#xfileLoadFromFile |
|
320 |
'Load from file...' |
|
321 |
||
322 |
#xfileNewImage |
|
323 |
'New image' |
|
324 |
||
325 |
#filePrint |
|
326 |
'Print' |
|
327 |
||
328 |
#xfileSaveAs |
|
329 |
'Save to file...' |
|
330 |
||
331 |
#xfileSaveMaskAs |
|
332 |
'Save mask to file...' |
|
333 |
||
334 |
#xfileSaveMethod |
|
335 |
'Save as method' |
|
336 |
||
337 |
#xfileSaveMethodAs |
|
338 |
'Save as Method...' |
|
339 |
||
340 |
#nextImageInSequence |
|
341 |
'Go to the next image in the animated gif image sequence.' |
|
342 |
||
343 |
#previousImageInSequence |
|
344 |
'Go to the previous image in the animated gif image sequence.' |
|
460 | 345 |
|
346 |
#colorMap |
|
2765 | 347 |
'ColorMap functions' |
929 | 348 |
|
349 |
#colorMap1 |
|
2765 | 350 |
'Convert to depth-1 image' |
929 | 351 |
|
986 | 352 |
#colorMap1M |
2765 | 353 |
'Convert to depth-1 image plus mask' |
986 | 354 |
|
929 | 355 |
#colorMap2 |
2765 | 356 |
'Convert to depth-2 image' |
357 |
||
358 |
#colorMap24 |
|
359 |
'Convert to depth-24 image (rgb)' |
|
929 | 360 |
|
986 | 361 |
#colorMap2M |
2765 | 362 |
'Convert to depth-2 image plus mask' |
363 |
||
364 |
#colorMap32 |
|
365 |
'Convert to depth-32 image (rgba)' |
|
986 | 366 |
|
929 | 367 |
#colorMap4 |
2765 | 368 |
'Convert to depth-4 image' |
929 | 369 |
|
986 | 370 |
#colorMap4M |
2765 | 371 |
'Convert to depth-4 image plus mask' |
986 | 372 |
|
929 | 373 |
#colorMap8 |
2765 | 374 |
'Convert to depth-8 image' |
929 | 375 |
|
376 |
#colorMap8M |
|
2765 | 377 |
'Convert to depth-8 image plus mask' |
2571 | 378 |
|
986 | 379 |
#colorMapTable |
2765 | 380 |
'Shows a list of used colors of the image' |
986 | 381 |
|
929 | 382 |
#compressColormap |
2765 | 383 |
'Remove unneeded entries from the colorMap' |
460 | 384 |
|
1045 | 385 |
#cropAll |
2765 | 386 |
'Find and remove all borders' |
986 | 387 |
|
1045 | 388 |
#cropBottom |
2765 | 389 |
'Find and remove bottom border' |
986 | 390 |
|
1045 | 391 |
#cropLeft |
2765 | 392 |
'Find and remove left border' |
986 | 393 |
|
1045 | 394 |
#cropManual |
986 | 395 |
'Specify border(s) to remove.' |
396 |
||
1045 | 397 |
#cropRight |
2765 | 398 |
'Find and remove right border' |
986 | 399 |
|
1045 | 400 |
#cropTop |
2765 | 401 |
'Find and remove top border' |
487 | 402 |
|
460 | 403 |
#drawModeBox |
2765 | 404 |
'Rectangle Drawing Mode' |
460 | 405 |
|
2375 | 406 |
#drawModeCircle |
2765 | 407 |
'Circle Drawing Mode' |
2375 | 408 |
|
460 | 409 |
#drawModeCopy |
2765 | 410 |
'Area Copy Mode' |
460 | 411 |
|
412 |
#drawModeFill |
|
2765 | 413 |
'Flood Fill Mode' |
460 | 414 |
|
415 |
#drawModeFilledBox |
|
2765 | 416 |
'Filled Rectangle Drawing Mode' |
460 | 417 |
|
418 |
#drawModePaste |
|
2765 | 419 |
'Paste Mode' |
914 | 420 |
|
421 |
#drawModePasteUnder |
|
2765 | 422 |
'Paste-Under Mode' |
1637 | 423 |
|
424 |
#drawModePasteWithMask |
|
2765 | 425 |
'Paste-with-Mask Mode' |
460 | 426 |
|
427 |
#drawModePoint |
|
2765 | 428 |
'Point Drawing Mode' |
2375 | 429 |
|
1639 | 430 |
#drawModeSpecial |
2871 | 431 |
'Special operations (select rectangle, then choose operation)' |
1639 | 432 |
|
2765 | 433 |
#drawModeSpray |
434 |
'Spray Drawing Mode' |
|
435 |
||
460 | 436 |
#editFlipHorizontal |
2765 | 437 |
'Flip the image horizontally' |
460 | 438 |
|
439 |
#editFlipVertical |
|
2765 | 440 |
'Flip the image vertically' |
460 | 441 |
|
442 |
#editMagnifyImage |
|
2765 | 443 |
'Magnify the image' |
460 | 444 |
|
445 |
#editNegate |
|
2765 | 446 |
'Invert the images colors' |
460 | 447 |
|
448 |
#editResize |
|
2765 | 449 |
'Resize the image (preserving the old image)' |
460 | 450 |
|
451 |
#editRotate |
|
2765 | 452 |
'Rotate the image' |
460 | 453 |
|
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
454 |
#fileGrabImageFromScreen |
2765 | 455 |
'Pick an image from the screen (specify area)' |
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
456 |
|
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
457 |
#fileGrabImageFromWindow |
2765 | 458 |
'Pick an image from a window on the screen (click on window)' |
929 | 459 |
|
460 | 460 |
#fileLoadFromClass |
2765 | 461 |
'Select and load an image from a resource method' |
460 | 462 |
|
463 |
#fileLoadFromFile |
|
2765 | 464 |
'Select and load an image from a file' |
460 | 465 |
|
2796 | 466 |
#fileLoadFromURL |
467 |
'Load an image from the net, given its URL' |
|
468 |
||
460 | 469 |
#fileNewImage |
914 | 470 |
'Create a new image' |
460 | 471 |
|
472 |
#filePrint |
|
2765 | 473 |
'Print the image on a postscript printer' |
474 |
||
475 |
#fileSave |
|
476 |
'Save the image' |
|
460 | 477 |
|
478 |
#fileSaveAs |
|
2765 | 479 |
'Save the image to a file' |
480 |
||
481 |
#fileSaveButtonImageAs |
|
482 |
'Save an image of a button with the image to a file (for html use)' |
|
460 | 483 |
|
484 |
#fileSaveMaskAs |
|
2765 | 485 |
'Save the mask of the image to a file' |
1613 | 486 |
|
460 | 487 |
#fileSaveMethod |
2765 | 488 |
'Save the image as resource method in the current class and selector' |
460 | 489 |
|
490 |
#fileSaveMethodAs |
|
2765 | 491 |
'Save the image as resource method in a class' |
460 | 492 |
|
487 | 493 |
#magnificationNumber |
2765 | 494 |
'Shows the current magnification' |
487 | 495 |
|
496 |
#magnifyImageDown |
|
2765 | 497 |
'Decrease magnification' |
487 | 498 |
|
499 |
#magnifyImageUp |
|
2765 | 500 |
'Increase magnification' |
487 | 501 |
|
502 |
#mouseKeyColorMode |
|
2765 | 503 |
'Toggle between left and right mouse button color' |
487 | 504 |
|
505 |
#previewView |
|
2765 | 506 |
'Shows a preview of the image' |
487 | 507 |
|
905 | 508 |
#settingsGridMagnification |
2765 | 509 |
'Change the grid magnification of the edit view' |
905 | 510 |
|
460 | 511 |
) |
2871 | 512 |
|
513 |
"Created: / 19-01-2012 / 13:29:31 / cg" |
|
460 | 514 |
! ! |
515 |
||
737 | 516 |
!ImageEditor class methodsFor:'image specs'! |
517 |
||
2272 | 518 |
circleIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
519 |
<resource: #image> |
2272 | 520 |
"This resource specification was automatically generated |
521 |
by the ImageEditor of ST/X." |
|
522 |
"Do not manually edit this!! If it is corrupted, |
|
523 |
the ImageEditor may not be able to read the specification." |
|
524 |
" |
|
525 |
self circleIcon inspect |
|
526 |
ImageEditor openOnClass:self andSelector:#circleIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
527 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
528 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
529 |
^ Icon constantNamed:'ImageEditor class circleIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
530 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
531 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
532 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
533 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
534 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
535 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
536 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
537 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
538 |
fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
539 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
540 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
541 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
542 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
543 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
544 |
fromPackedString:'@@@@@@N@CF@PDA@PH@ BB@HDA@PD@1 @8@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
545 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
546 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
547 |
] |
2272 | 548 |
! |
549 |
||
1637 | 550 |
copyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
551 |
<resource: #image> |
1637 | 552 |
"This resource specification was automatically generated |
553 |
by the ImageEditor of ST/X." |
|
554 |
"Do not manually edit this!! If it is corrupted, |
|
555 |
the ImageEditor may not be able to read the specification." |
|
556 |
" |
|
557 |
self copyIcon inspect |
|
558 |
ImageEditor openOnClass:self andSelector:#copyIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
559 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
560 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
561 |
^ Icon constantNamed:'ImageEditor class copyIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
562 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
563 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
564 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
565 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
566 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
567 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
568 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
569 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
570 |
fromPackedString:'@@@@@@@@@@@** @@J)UUTB*Z*)@*&**PJ)**$B*Z*)@*&**PJ)**$@@Z*)@@F**P@AUUT@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
571 |
colorMapFromArray:#[ 0 0 0 0 0 128 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
572 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
573 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
574 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
575 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
576 |
fromPackedString:'@@C? O>@??3??O?<??3??O?<??3??@_<A?0@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
577 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
578 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
579 |
] |
1637 | 580 |
! |
581 |
||
2155 | 582 |
defaultIcon |
583 |
<resource: #programImage> |
|
584 |
||
585 |
^ ToolbarIconLibrary startImageEditorIcon |
|
586 |
! |
|
587 |
||
2871 | 588 |
fillGradientRectIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
589 |
<resource: #image> |
2871 | 590 |
"This resource specification was automatically generated |
591 |
by the ImageEditor of ST/X." |
|
592 |
"Do not manually edit this!! If it is corrupted, |
|
593 |
the ImageEditor may not be able to read the specification." |
|
594 |
" |
|
595 |
self fillGradientRectIcon inspect |
|
596 |
ImageEditor openOnClass:self andSelector:#fillGradientRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
597 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
598 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
599 |
^ Icon constantNamed:'ImageEditor class fillGradientRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
600 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
601 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
602 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
603 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
604 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
605 |
bitsPerSample:(#[ 4 ]); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
606 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
607 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
608 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ADQDQDQ@@@QDQDQDP@@BH"H"H"@@@"H"H"H @@L3L3L3L@@CL3L3L3@@@QDQDQDP@@DQDQDQD@@@@@@@@@ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
609 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
610 |
colorMapFromArray:#[ 0 0 0 255 0 0 127 0 0 191 0 0 63 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
611 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
612 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
613 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
614 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
615 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
616 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
617 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
618 |
] |
2871 | 619 |
! |
620 |
||
621 |
fillHorizontalGradientRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
622 |
<resource: #image> |
2871 | 623 |
"This resource specification was automatically generated |
624 |
by the ImageEditor of ST/X." |
|
625 |
"Do not manually edit this!! If it is corrupted, |
|
626 |
the ImageEditor may not be able to read the specification." |
|
627 |
" |
|
628 |
self fillHorizontalGradientRectIcon inspect |
|
629 |
ImageEditor openOnClass:self andSelector:#fillHorizontalGradientRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
630 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
631 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
632 |
^ Icon constantNamed:'ImageEditor class fillHorizontalGradientRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
633 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
634 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
635 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
636 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
637 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
638 |
bitsPerSample:(#[ 4 ]); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
639 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
640 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
641 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@ADH#LQ@@@@QBH3DP@@@DP"L1D@@@@@@@@@ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
642 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
643 |
colorMapFromArray:#[ 0 0 0 255 0 0 127 0 0 191 0 0 63 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
644 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
645 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
646 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
647 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
648 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
649 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
650 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
651 |
] |
2871 | 652 |
! |
653 |
||
1637 | 654 |
fillIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
655 |
<resource: #image> |
1637 | 656 |
"This resource specification was automatically generated |
657 |
by the ImageEditor of ST/X." |
|
658 |
"Do not manually edit this!! If it is corrupted, |
|
659 |
the ImageEditor may not be able to read the specification." |
|
660 |
" |
|
661 |
self fillIcon inspect |
|
662 |
ImageEditor openOnClass:self andSelector:#fillIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
663 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
664 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
665 |
^ Icon constantNamed:'ImageEditor class fillIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
666 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
667 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
668 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
669 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
670 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
671 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
672 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
673 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
674 |
fromPackedString:'@@@@@@@@@@@@@ @@@@*H@@D*(@@DUUP@EAUU@AAEU@@@@U@@DDA@@@@@@@@PP@@@@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
675 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
676 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
677 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
678 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
679 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
680 |
fromPackedString:'C @Q@BN@I<@?8C?0[?!!G<@O P\@@ D@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
681 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
682 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
683 |
] |
1637 | 684 |
! |
685 |
||
686 |
fillRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
687 |
<resource: #image> |
1637 | 688 |
"This resource specification was automatically generated |
689 |
by the ImageEditor of ST/X." |
|
690 |
"Do not manually edit this!! If it is corrupted, |
|
691 |
the ImageEditor may not be able to read the specification." |
|
692 |
" |
|
693 |
self fillRectIcon inspect |
|
694 |
ImageEditor openOnClass:self andSelector:#fillRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
695 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
696 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
697 |
^ Icon constantNamed:'ImageEditor class fillRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
698 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
699 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
700 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
701 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
702 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
703 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
704 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
705 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
706 |
fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
707 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
708 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
709 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
710 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
711 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
712 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
713 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
714 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
715 |
] |
1637 | 716 |
! |
717 |
||
2871 | 718 |
fillVerticalGradientRectIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
719 |
<resource: #image> |
2871 | 720 |
"This resource specification was automatically generated |
721 |
by the ImageEditor of ST/X." |
|
722 |
"Do not manually edit this!! If it is corrupted, |
|
723 |
the ImageEditor may not be able to read the specification." |
|
724 |
" |
|
725 |
self fillGradientRectIcon inspect |
|
726 |
ImageEditor openOnClass:self andSelector:#fillGradientRectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
727 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
728 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
729 |
^ Icon constantNamed:'ImageEditor class fillGradientRectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
730 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
731 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
732 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
733 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
734 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
735 |
bitsPerSample:(#[ 4 ]); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
736 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
737 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
738 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ADQDQDQ@@@QDQDQDP@@BH"H"H"@@@"H"H"H @@L3L3L3L@@CL3L3L3@@@QDQDQDP@@DQDQDQD@@@@@@@@@ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
739 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
740 |
colorMapFromArray:#[ 0 0 0 255 0 0 127 0 0 191 0 0 63 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
741 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
742 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
743 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
744 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
745 |
fromPackedString:'@@@@@C?0O?@?<C?0O?@?<C?0O?@?<C?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
746 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
747 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
748 |
] |
2871 | 749 |
|
750 |
"Created: / 19-01-2012 / 13:44:51 / cg" |
|
751 |
! |
|
752 |
||
2837 | 753 |
flipHorizontalIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
754 |
<resource: #image> |
2837 | 755 |
"This resource specification was automatically generated |
756 |
by the ImageEditor of ST/X." |
|
757 |
"Do not manually edit this!! If it is corrupted, |
|
758 |
the ImageEditor may not be able to read the specification." |
|
759 |
" |
|
760 |
self flipHorizontalIcon inspect |
|
761 |
ImageEditor openOnClass:self andSelector:#flipHorizontalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
762 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
763 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
764 |
^ Icon constantNamed:'ImageEditor class flipHorizontalIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
765 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
766 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
767 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
768 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
769 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
770 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
771 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
772 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
773 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
774 |
colorMapFromArray:#[ 0 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
775 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
776 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
777 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
778 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
779 |
fromPackedString:'@@@A@C?8HP )JC$8_?1??C$8JR !!BC?8@P@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
780 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
781 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
782 |
] |
2837 | 783 |
! |
784 |
||
785 |
flipVerticalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
786 |
<resource: #image> |
2837 | 787 |
"This resource specification was automatically generated |
788 |
by the ImageEditor of ST/X." |
|
789 |
"Do not manually edit this!! If it is corrupted, |
|
790 |
the ImageEditor may not be able to read the specification." |
|
791 |
" |
|
792 |
self flipVerticalIcon inspect |
|
793 |
ImageEditor openOnClass:self andSelector:#flipVerticalIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
794 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
795 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
796 |
^ Icon constantNamed:'ImageEditor class flipVerticalIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
797 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
798 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
799 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
800 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
801 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
802 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
803 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
804 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
805 |
fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
806 |
colorMapFromArray:#[ 0 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
807 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
808 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
809 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
810 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
811 |
fromPackedString:'@@@C@C?0I9@/4BLPH1A?>BLPH1@/4B^PO?@C@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
812 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
813 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
814 |
] |
2837 | 815 |
! |
816 |
||
737 | 817 |
leftMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
818 |
<resource: #image> |
737 | 819 |
"This resource specification was automatically generated |
820 |
by the ImageEditor of ST/X." |
|
821 |
"Do not manually edit this!! If it is corrupted, |
|
822 |
the ImageEditor may not be able to read the specification." |
|
823 |
" |
|
1405 | 824 |
self leftMouseKeyIcon inspect |
737 | 825 |
ImageEditor openOnClass:self andSelector:#leftMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
826 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
827 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
828 |
^ Icon constantNamed:'ImageEditor class leftMouseKeyIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
829 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
830 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
831 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
832 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
833 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
834 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
835 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
836 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
837 |
fromPackedString:'@@@@@@@@@@@@@@@@@EJJ@@AR" @@T((@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
838 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
839 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
840 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
841 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
842 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
843 |
fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
844 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
845 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
846 |
] |
1433 | 847 |
! |
737 | 848 |
|
1637 | 849 |
pasteIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
850 |
<resource: #image> |
1637 | 851 |
"This resource specification was automatically generated |
852 |
by the ImageEditor of ST/X." |
|
853 |
"Do not manually edit this!! If it is corrupted, |
|
854 |
the ImageEditor may not be able to read the specification." |
|
855 |
" |
|
856 |
self pasteIcon inspect |
|
857 |
ImageEditor openOnClass:self andSelector:#pasteIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
858 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
859 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
860 |
^ Icon constantNamed:'ImageEditor class pasteIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
861 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
862 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
863 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
864 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
865 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
866 |
bitsPerSample:(#( 4 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
867 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
868 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
869 |
fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3A&Y&X@@SL0Y A&@@D3LF@@A @AL3A&@FX@@QDPY&Y& |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
870 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
871 |
colorMapFromArray:#[ 0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
872 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
873 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
874 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
875 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
876 |
fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
877 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
878 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
879 |
] |
1637 | 880 |
! |
881 |
||
882 |
pasteUnderIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
883 |
<resource: #image> |
1637 | 884 |
"This resource specification was automatically generated |
885 |
by the ImageEditor of ST/X." |
|
886 |
"Do not manually edit this!! If it is corrupted, |
|
887 |
the ImageEditor may not be able to read the specification." |
|
888 |
" |
|
889 |
self pasteUnderIcon inspect |
|
890 |
ImageEditor openOnClass:self andSelector:#pasteUnderIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
891 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
892 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
893 |
^ Icon constantNamed:'ImageEditor class pasteUnderIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
894 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
895 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
896 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
897 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
898 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
899 |
bitsPerSample:(#( 4 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
900 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
901 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
902 |
fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L3LP@@@AL3L3E&X@@SL3L0A&@@D3L3@@A @AL3L3@FX@@QDQDQY& |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
903 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
904 |
colorMapFromArray:#[ 0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
905 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
906 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
907 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
908 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
909 |
fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
910 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
911 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
912 |
] |
1637 | 913 |
! |
914 |
||
915 |
pasteWithMaskIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
916 |
<resource: #image> |
1637 | 917 |
"This resource specification was automatically generated |
918 |
by the ImageEditor of ST/X." |
|
919 |
"Do not manually edit this!! If it is corrupted, |
|
920 |
the ImageEditor may not be able to read the specification." |
|
921 |
" |
|
922 |
self pasteWithMaskIcon inspect |
|
923 |
ImageEditor openOnClass:self andSelector:#pasteWithMaskIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
924 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
925 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
926 |
^ Icon constantNamed:'ImageEditor class pasteWithMaskIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
927 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
928 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
929 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
930 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
931 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
932 |
bitsPerSample:(#( 4 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
933 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
934 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
935 |
fromPackedString:'@@@@@@@@@@@@AU@@@@@CHE@E@2@@@ QDQD@0@@L@@@@@H@@BL#H2L#@@@QDQDQL @@D3L@@@@@@AL3@3M&X@@SL0L3A&@@D3LCL0A @AL3@3LFX@@QDPY&Y& |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
936 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
937 |
colorMapFromArray:#[ 0 0 0 0 0 128 128 128 0 128 128 128 212 208 200 255 255 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
938 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
939 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
940 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
941 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
942 |
fromPackedString:'C0A?8O?0??C?<O?0??C?>O?8??#?>O?8_? G>@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
943 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
944 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
945 |
] |
1637 | 946 |
! |
947 |
||
948 |
pointIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
949 |
<resource: #image> |
1637 | 950 |
"This resource specification was automatically generated |
951 |
by the ImageEditor of ST/X." |
|
952 |
"Do not manually edit this!! If it is corrupted, |
|
953 |
the ImageEditor may not be able to read the specification." |
|
954 |
" |
|
955 |
self pointIcon inspect |
|
956 |
ImageEditor openOnClass:self andSelector:#pointIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
957 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
958 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
959 |
^ Icon constantNamed:'ImageEditor class pointIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
960 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
961 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
962 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
963 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
964 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
965 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
966 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
967 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
968 |
fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
969 |
colorMapFromArray:#[ 0 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
970 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
971 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
972 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
973 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
974 |
fromPackedString:'@@@@@@@0@G@@8@G@@8@G@@8@G@@X@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
975 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
976 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
977 |
] |
1637 | 978 |
! |
979 |
||
980 |
rectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
981 |
<resource: #image> |
1637 | 982 |
"This resource specification was automatically generated |
983 |
by the ImageEditor of ST/X." |
|
984 |
"Do not manually edit this!! If it is corrupted, |
|
985 |
the ImageEditor may not be able to read the specification." |
|
986 |
" |
|
987 |
self rectIcon inspect |
|
988 |
ImageEditor openOnClass:self andSelector:#rectIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
989 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
990 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
991 |
^ Icon constantNamed:'ImageEditor class rectIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
992 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
993 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
994 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
995 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
996 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
997 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
998 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
999 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1000 |
fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@C@@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1001 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1002 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1003 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1004 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1005 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1006 |
fromPackedString:'@@@@@C?0HA@ DB@PHA@ DB@PHA@ DC?0@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1007 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1008 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1009 |
] |
1637 | 1010 |
! |
1011 |
||
737 | 1012 |
rightMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1013 |
<resource: #image> |
737 | 1014 |
"This resource specification was automatically generated |
1015 |
by the ImageEditor of ST/X." |
|
1016 |
"Do not manually edit this!! If it is corrupted, |
|
1017 |
the ImageEditor may not be able to read the specification." |
|
1018 |
" |
|
1405 | 1019 |
self rightMouseKeyIcon inspect |
737 | 1020 |
ImageEditor openOnClass:self andSelector:#rightMouseKeyIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1021 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1022 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1023 |
^ Icon constantNamed:'ImageEditor class rightMouseKeyIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1024 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1025 |
(Depth2Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1026 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1027 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1028 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1029 |
bitsPerSample:(#( 2 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1030 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1031 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1032 |
fromPackedString:'@@@@@@@@@@@@@@@@@JJE@@B"!!P@@((T@@@@@@@B** @@**(@@J**@@B** @@**(@@J**@@@**@@@@@@@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1033 |
colorMapFromArray:#[ 0 0 0 255 0 0 255 255 255 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1034 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1035 |
width:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1036 |
height:16; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1037 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1038 |
fromPackedString:'@@@@@@?0G? _>A?8G? _>A?8G? _>A?8G? O<@_ @@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1039 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1040 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1041 |
] |
1637 | 1042 |
! |
1043 |
||
2881 | 1044 |
specialCircleIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1045 |
<resource: #image> |
2881 | 1046 |
"This resource specification was automatically generated |
1047 |
by the ImageEditor of ST/X." |
|
1048 |
"Do not manually edit this!! If it is corrupted, |
|
1049 |
the ImageEditor may not be able to read the specification." |
|
1050 |
" |
|
1051 |
self specialCircleIcon inspect |
|
1052 |
ImageEditor openOnClass:self andSelector:#specialCircleIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1053 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1054 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1055 |
^ Icon constantNamed:'ImageEditor class specialCircleIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1056 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1057 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1058 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1059 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1060 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1061 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1062 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1063 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1064 |
fromPackedString:'@@L@@@!!BDB@ D4@HP@!!@BD@HHA@PHP!!@@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1065 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1066 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1067 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1068 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1069 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1070 |
fromPackedString:'@@@@@@-@D2@''$D^HQ8!!G"DLHH1@PH@-@@0@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1071 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1072 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1073 |
] |
2881 | 1074 |
! |
1075 |
||
1637 | 1076 |
specialIcon |
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1077 |
<resource: #image> |
1637 | 1078 |
"This resource specification was automatically generated |
1079 |
by the ImageEditor of ST/X." |
|
1080 |
"Do not manually edit this!! If it is corrupted, |
|
1081 |
the ImageEditor may not be able to read the specification." |
|
1082 |
" |
|
1083 |
self specialIcon inspect |
|
1084 |
ImageEditor openOnClass:self andSelector:#specialIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1085 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1086 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1087 |
^ Icon constantNamed:'ImageEditor class specialIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1088 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1089 |
(Depth1Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1090 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1091 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1092 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1093 |
bitsPerSample:(#( 1 )); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1094 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1095 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1096 |
fromPackedString:'@@L@@G!!:P@!!@B4@HP@!!@BD@HP@!!@BW!!8@@@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1097 |
colorMapFromArray:#[ 0 0 0 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1098 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1099 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1100 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1101 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1102 |
fromPackedString:'@@@@@G-8P0!!G"D^HQ8!!G"DLHP0!!@BG-8@0@@@@@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1103 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1104 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1105 |
] |
2375 | 1106 |
! |
1107 |
||
1108 |
sprayIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1109 |
<resource: #image> |
2375 | 1110 |
"This resource specification was automatically generated |
1111 |
by the ImageEditor of ST/X." |
|
1112 |
"Do not manually edit this!! If it is corrupted, |
|
1113 |
the ImageEditor may not be able to read the specification." |
|
1114 |
" |
|
1115 |
self sprayIcon inspect |
|
1116 |
ImageEditor openOnClass:self andSelector:#sprayIcon |
|
3121
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1117 |
Icon flushCachedIcons" |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1118 |
|
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1119 |
^ Icon constantNamed:'ImageEditor class sprayIcon' |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1120 |
ifAbsentPut:[ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1121 |
(Depth4Image new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1122 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1123 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1124 |
photometric:(#palette); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1125 |
bitsPerSample:(#[ 4 ]); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1126 |
samplesPerPixel:(1); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1127 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1128 |
fromPackedString:'@@@@@@@@@@@@@@@@@D@@@@@@@DA@@@@@@D@D@@@@@@A@PD@@@@@@A@P@@@@@@@A@P@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1129 |
@@@@@@@@@@@b'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1130 |
colorMapFromArray:#[ 0 0 0 84 84 84 170 170 170 255 255 255 255 0 0 ]; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1131 |
mask:((ImageMask new) |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1132 |
width:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1133 |
height:14; |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1134 |
bits:(ByteArray |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1135 |
fromPackedString:'@@@@B@@(A)@F*@IPA2 H$@"@BH@H @"@BH@O @@a'); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1136 |
yourself); |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1137 |
yourself |
b88abf599041
Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents:
3103
diff
changeset
|
1138 |
] |
1433 | 1139 |
! ! |
737 | 1140 |
|
400 | 1141 |
!ImageEditor class methodsFor:'interface specs'! |
1142 |
||
1650 | 1143 |
changeHLSDialogSpec |
1144 |
"This resource specification was automatically generated |
|
1145 |
by the UIPainter of ST/X." |
|
1146 |
||
1147 |
"Do not manually edit this!! If it is corrupted, |
|
1148 |
the UIPainter may not be able to read the specification." |
|
1149 |
||
1150 |
" |
|
1151 |
UIPainter new openOnClass:ImageEditor andSelector:#changeHLSDialogSpec |
|
1152 |
ImageEditor new openInterface:#changeHLSDialogSpec |
|
1153 |
" |
|
1154 |
||
1155 |
<resource: #canvas> |
|
1156 |
||
1157 |
^ |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1158 |
#(FullSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1159 |
name: changeHLSDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1160 |
window: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1161 |
(WindowSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1162 |
label: 'HLS Edit Dialog' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1163 |
name: 'HLS Edit Dialog' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1164 |
min: (Point 10 10) |
2438 | 1165 |
bounds: (Rectangle 0 0 312 258) |
1650 | 1166 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1167 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1168 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1169 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1170 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1171 |
label: 'Hue-Shift:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1172 |
name: 'HueLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1173 |
layout: (LayoutFrame 20 0 21 0 120 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1174 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1175 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1176 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1177 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1178 |
name: 'HueShiftEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1179 |
layout: (LayoutFrame 123 0 21 0 166 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1180 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1181 |
model: hueShiftAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1182 |
type: numberInRange |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1183 |
minValue: 0 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1184 |
maxValue: 360 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1185 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1186 |
acceptOnPointerLeave: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1187 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1188 |
(ThumbWheelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1189 |
name: 'HueWheel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1190 |
layout: (LayoutFrame 180 0 22 0 297 0 42 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1191 |
model: hueShiftAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1192 |
orientation: horizontal |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1193 |
step: 1 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1194 |
endlessRotation: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1195 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1196 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1197 |
label: 'Light Factor:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1198 |
name: 'LightLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1199 |
layout: (LayoutFrame 18 0 50 0 120 0 72 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1200 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1201 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1202 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1203 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1204 |
name: 'LightEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1205 |
layout: (LayoutFrame 123 0 50 0 166 0 72 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1206 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1207 |
model: lightAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1208 |
type: numberInRange |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1209 |
minValue: 0 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1210 |
maxValue: 1000 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1211 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1212 |
acceptOnPointerLeave: false |
1650 | 1213 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1214 |
(ThumbWheelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1215 |
name: 'LightWheel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1216 |
layout: (LayoutFrame 180 0 51 0 297 0 71 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1217 |
model: lightAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1218 |
orientation: horizontal |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1219 |
stop: 1000 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1220 |
step: 1 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1221 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1222 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1223 |
label: 'Saturation Factor:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1224 |
name: 'SaturationLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1225 |
layout: (LayoutFrame 9 0 79 0 120 0 101 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1226 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1227 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1228 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1229 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1230 |
name: 'SaturationEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1231 |
layout: (LayoutFrame 123 0 79 0 166 0 101 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1232 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1233 |
model: saturationAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1234 |
type: numberInRange |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1235 |
minValue: 0 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1236 |
maxValue: 1000 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1237 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1238 |
acceptOnPointerLeave: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1239 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1240 |
(ThumbWheelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1241 |
name: 'SaturationWheel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1242 |
layout: (LayoutFrame 180 0 80 0 297 0 100 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1243 |
model: saturationAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1244 |
orientation: horizontal |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1245 |
stop: 1000 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1246 |
step: 1 |
1650 | 1247 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1248 |
(LabelSpec |
2438 | 1249 |
label: 'Color Shift' |
1250 |
name: 'Label2' |
|
1251 |
layout: (LayoutFrame 5 0 110 0 -15 0.5 132 0) |
|
1252 |
translateLabel: true |
|
1253 |
) |
|
1254 |
(LabelSpec |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1255 |
name: 'HueColorLabel' |
2438 | 1256 |
layout: (LayoutFrame 18 0.0 133 0 -41 0.5 217 0) |
1257 |
level: -1 |
|
1975 | 1258 |
backgroundChannel: hlsColor |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1259 |
translateLabel: true |
1650 | 1260 |
) |
2438 | 1261 |
(LabelSpec |
1262 |
label: 'Preview' |
|
1263 |
name: 'Label3' |
|
1264 |
layout: (LayoutFrame 5 0.5 110 0 -5 1 132 0) |
|
1265 |
translateLabel: true |
|
1266 |
) |
|
1267 |
(LabelSpec |
|
1268 |
name: 'PreviewLabel' |
|
1269 |
layout: (LayoutFrame 36 0.5 133 0 -23 1.0 217 0) |
|
1270 |
level: -1 |
|
1271 |
translateLabel: true |
|
1272 |
labelChannel: previewImageHolder |
|
1273 |
) |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1274 |
(HorizontalPanelViewSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1275 |
name: 'HorizontalPanel1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1276 |
layout: (LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1277 |
horizontalLayout: fitSpace |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1278 |
verticalLayout: center |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1279 |
horizontalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1280 |
verticalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1281 |
reverseOrderIfOKAtLeft: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1282 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1283 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1284 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1285 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1286 |
label: 'Cancel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1287 |
name: 'Button1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1288 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1289 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1290 |
model: cancel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1291 |
extent: (Point 151 22) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1292 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1293 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1294 |
label: 'OK' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1295 |
name: 'Button2' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1296 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1297 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1298 |
model: accept |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1299 |
extent: (Point 152 22) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1300 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1301 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1302 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1303 |
) |
1650 | 1304 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1305 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1306 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1307 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1308 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1309 |
! |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1310 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1311 |
cropDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1312 |
"This resource specification was automatically generated |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1313 |
by the UIPainter of ST/X." |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1314 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1315 |
"Do not manually edit this!! If it is corrupted, |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1316 |
the UIPainter may not be able to read the specification." |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1317 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1318 |
" |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1319 |
UIPainter new openOnClass:ImageEditor andSelector:#cropDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1320 |
ImageEditor new openInterface:#cropDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1321 |
" |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1322 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1323 |
<resource: #canvas> |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1324 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1325 |
^ |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1326 |
#(FullSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1327 |
name: cropDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1328 |
window: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1329 |
(WindowSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1330 |
label: 'Crop Border(s)' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1331 |
name: 'Crop Border(s)' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1332 |
min: (Point 10 10) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1333 |
bounds: (Rectangle 14 46 259 229) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1334 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1335 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1336 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1337 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1338 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1339 |
label: 'Left:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1340 |
name: 'GropLeftLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1341 |
layout: (LayoutFrame 14 0 21 0 90 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1342 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1343 |
adjust: right |
1650 | 1344 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1345 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1346 |
name: 'GropLeftEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1347 |
layout: (LayoutFrame 95 0 21 0 132 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1348 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1349 |
model: left |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1350 |
type: number |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1351 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1352 |
acceptOnPointerLeave: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1353 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1354 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1355 |
label: 'Now' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1356 |
name: 'GropLeftNowButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1357 |
layout: (LayoutFrame 148 0 21 0 221 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1358 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1359 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1360 |
model: gropLeftNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1361 |
autoRepeat: true |
1650 | 1362 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1363 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1364 |
label: 'Right:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1365 |
name: 'GropRightLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1366 |
layout: (LayoutFrame 14 0 51 0 90 0 73 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1367 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1368 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1369 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1370 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1371 |
name: 'GropRightEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1372 |
layout: (LayoutFrame 95 0 51 0 132 0 73 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1373 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1374 |
model: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1375 |
type: number |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1376 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1377 |
acceptOnPointerLeave: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1378 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1379 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1380 |
label: 'Now' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1381 |
name: 'GropRightButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1382 |
layout: (LayoutFrame 148 0 51 0 221 0 73 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1383 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1384 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1385 |
model: gropRightNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1386 |
autoRepeat: true |
1650 | 1387 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1388 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1389 |
label: 'Top:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1390 |
name: 'GropTopLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1391 |
layout: (LayoutFrame 14 0 81 0 90 0 103 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1392 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1393 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1394 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1395 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1396 |
name: 'GropTopEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1397 |
layout: (LayoutFrame 95 0 81 0 132 0 103 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1398 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1399 |
model: top |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1400 |
type: number |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1401 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1402 |
acceptOnPointerLeave: false |
1650 | 1403 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1404 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1405 |
label: 'Now' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1406 |
name: 'GropTopButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1407 |
layout: (LayoutFrame 148 0 81 0 221 0 103 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1408 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1409 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1410 |
model: gropTopNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1411 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1412 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1413 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1414 |
label: 'Bottom:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1415 |
name: 'GropBottomLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1416 |
layout: (LayoutFrame 14 0 111 0 90 0 133 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1417 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1418 |
adjust: right |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1419 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1420 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1421 |
name: 'GropBottomEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1422 |
layout: (LayoutFrame 95 0 111 0 132 0 133 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1423 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1424 |
model: bottom |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1425 |
type: number |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1426 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1427 |
acceptOnPointerLeave: false |
1650 | 1428 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1429 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1430 |
label: 'Now' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1431 |
name: 'GropBottomButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1432 |
layout: (LayoutFrame 148 0 111 0 221 0 133 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1433 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1434 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1435 |
model: gropBottomNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1436 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1437 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1438 |
(HorizontalPanelViewSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1439 |
name: 'HorizontalPanel1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1440 |
layout: (LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1441 |
horizontalLayout: fitSpace |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1442 |
verticalLayout: center |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1443 |
horizontalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1444 |
verticalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1445 |
reverseOrderIfOKAtLeft: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1446 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1447 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1448 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1449 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1450 |
label: 'Cancel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1451 |
name: 'Button1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1452 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1453 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1454 |
model: cancel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1455 |
extent: (Point 77 22) |
1650 | 1456 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1457 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1458 |
label: 'Apply' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1459 |
name: 'Button3' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1460 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1461 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1462 |
model: applyAction |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1463 |
extent: (Point 78 22) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1464 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1465 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1466 |
label: 'OK' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1467 |
name: 'Button2' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1468 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1469 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1470 |
model: accept |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1471 |
extent: (Point 78 22) |
1650 | 1472 |
) |
1473 |
) |
|
1474 |
||
1475 |
) |
|
1476 |
) |
|
1477 |
) |
|
1478 |
||
1479 |
) |
|
1480 |
) |
|
1481 |
! |
|
1482 |
||
767 | 1483 |
dialogSpecForNewImage |
737 | 1484 |
"This resource specification was automatically generated |
1485 |
by the UIPainter of ST/X." |
|
519 | 1486 |
|
737 | 1487 |
"Do not manually edit this!! If it is corrupted, |
1488 |
the UIPainter may not be able to read the specification." |
|
519 | 1489 |
|
1490 |
" |
|
767 | 1491 |
UIPainter new openOnClass:ImageEditor andSelector:#dialogSpecForNewImage |
1492 |
ImageEditor new openInterface:#dialogSpecForNewImage |
|
519 | 1493 |
" |
1494 |
||
1495 |
<resource: #canvas> |
|
1496 |
||
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1497 |
^ |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1498 |
#(FullSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1499 |
name: dialogSpecForNewImage |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1500 |
window: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1501 |
(WindowSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1502 |
label: 'New Image' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1503 |
name: 'New Image' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1504 |
min: (Point 10 10) |
1806 | 1505 |
bounds: (Rectangle 0 0 301 119) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1506 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1507 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1508 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1509 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1510 |
(ViewSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1511 |
name: 'View' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1512 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -35 1.0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1513 |
level: 1 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1514 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1515 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1516 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1517 |
(FramedBoxSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1518 |
label: 'Size' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1519 |
name: 'framedBox1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1520 |
layout: (LayoutFrame 1 0.0 7 0.0 0 0.4 76 0) |
1806 | 1521 |
style: (FontDescription helvetica medium roman 12) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1522 |
labelPosition: topLeft |
1806 | 1523 |
translateLabel: true |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1524 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1525 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1526 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1527 |
(ComboBoxSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1528 |
name: 'defaultSizesComboBox' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1529 |
layout: (LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1530 |
model: selectionOfSize |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1531 |
type: string |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1532 |
acceptOnPointerLeave: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1533 |
comboList: listOfDefaultSizes |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1534 |
isFilenameBox: false |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1535 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1536 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1537 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1538 |
) |
1490 | 1539 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1540 |
(FramedBoxSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1541 |
label: 'Color Map' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1542 |
name: 'framedBox2' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1543 |
layout: (LayoutFrame 0 0.4 7 0.0 -1 1.0 76 0) |
1806 | 1544 |
style: (FontDescription helvetica medium roman 12) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1545 |
labelPosition: topLeft |
1806 | 1546 |
translateLabel: true |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1547 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1548 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1549 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1550 |
(ComboListSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1551 |
name: 'colorMapComboBox' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1552 |
layout: (LayoutFrame 0 0.0 10 0.0 0 1 35 0.0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1553 |
model: selectionOfColorMap |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1554 |
comboList: listOfColorMaps |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1555 |
useIndex: false |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
1556 |
hidePullDownMenuButton: false |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1557 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1558 |
) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1559 |
|
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1560 |
) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1561 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1562 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1563 |
|
986 | 1564 |
) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1565 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1566 |
(UISubSpecification |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1567 |
name: 'windowSpecForCommitWithoutChannels' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1568 |
layout: (LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1569 |
minorKey: windowSpecForCommitWithoutChannels |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1570 |
) |
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1571 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1572 |
|
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1449
diff
changeset
|
1573 |
) |
986 | 1574 |
) |
1575 |
! |
|
1576 |
||
1557 | 1577 |
shiftDialogSpec |
1578 |
"This resource specification was automatically generated |
|
1579 |
by the UIPainter of ST/X." |
|
1580 |
||
1581 |
"Do not manually edit this!! If it is corrupted, |
|
1582 |
the UIPainter may not be able to read the specification." |
|
1583 |
||
1584 |
" |
|
1585 |
UIPainter new openOnClass:ImageEditor andSelector:#shiftDialogSpec |
|
1586 |
ImageEditor new openInterface:#shiftDialogSpec |
|
1587 |
" |
|
1588 |
||
1589 |
<resource: #canvas> |
|
1590 |
||
1591 |
^ |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1592 |
#(FullSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1593 |
name: shiftDialogSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1594 |
window: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1595 |
(WindowSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1596 |
label: 'Shift' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1597 |
name: 'Shift' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1598 |
min: (Point 10 10) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1599 |
bounds: (Rectangle 14 46 259 229) |
1557 | 1600 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1601 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1602 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1603 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1604 |
(LabelSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1605 |
label: 'Amount:' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1606 |
name: 'AmountLabel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1607 |
layout: (LayoutFrame 14 0 21 0 90 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1608 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1609 |
adjust: right |
1557 | 1610 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1611 |
(InputFieldSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1612 |
name: 'AmountEntryField' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1613 |
layout: (LayoutFrame 95 0 21 0 139 0 43 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1614 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1615 |
model: shiftAmount |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1616 |
type: number |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1617 |
acceptChannel: acceptChannel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1618 |
acceptOnPointerLeave: false |
1557 | 1619 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1620 |
(HorizontalPanelViewSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1621 |
name: 'HorizontalPanel1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1622 |
layout: (LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1623 |
horizontalLayout: fitSpace |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1624 |
verticalLayout: center |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1625 |
horizontalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1626 |
verticalSpace: 3 |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1627 |
reverseOrderIfOKAtLeft: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1628 |
component: |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1629 |
(SpecCollection |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1630 |
collection: ( |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1631 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1632 |
label: 'Cancel' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1633 |
name: 'Button1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1634 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1635 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1636 |
model: cancel |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1637 |
extent: (Point 118 22) |
1557 | 1638 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1639 |
(ActionButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1640 |
label: 'OK' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1641 |
name: 'Button2' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1642 |
translateLabel: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1643 |
tabable: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1644 |
model: accept |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1645 |
extent: (Point 118 22) |
1557 | 1646 |
) |
1647 |
) |
|
1648 |
||
1649 |
) |
|
1650 |
) |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1651 |
(ArrowButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1652 |
name: 'upArrowButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1653 |
layout: (LayoutFrame 105 0 63 0 127 0 85 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1654 |
model: shiftUpNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1655 |
isTriggerOnDown: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1656 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1657 |
actionValue: '' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1658 |
direction: up |
1557 | 1659 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1660 |
(ArrowButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1661 |
name: 'leftArrowButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1662 |
layout: (LayoutFrame 84 0 86 0 106 0 108 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1663 |
model: shiftLeftNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1664 |
isTriggerOnDown: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1665 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1666 |
actionValue: '' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1667 |
direction: left |
1557 | 1668 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1669 |
(ArrowButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1670 |
name: 'rightArrowButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1671 |
layout: (LayoutFrame 126 0 86 0 148 0 108 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1672 |
model: shiftRightNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1673 |
isTriggerOnDown: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1674 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1675 |
actionValue: '' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1676 |
direction: right |
1557 | 1677 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1678 |
(ArrowButtonSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1679 |
name: 'downArrowButton' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1680 |
layout: (LayoutFrame 105 0 107 0 127 0 129 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1681 |
model: shiftDownNow |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1682 |
isTriggerOnDown: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1683 |
autoRepeat: true |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1684 |
actionValue: '' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1685 |
direction: down |
1557 | 1686 |
) |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1687 |
(CheckBoxSpec |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1688 |
label: 'Wrap' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1689 |
name: 'CheckBox1' |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1690 |
layout: (LayoutFrame 153 0 22 0 289 0 44 0) |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1691 |
model: wrap |
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1692 |
translateLabel: true |
1713 | 1693 |
) |
1557 | 1694 |
) |
1695 |
||
1696 |
) |
|
1697 |
) |
|
1698 |
! |
|
1699 |
||
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
1700 |
uncropDialogSpec |
1480 | 1701 |
"This resource specification was automatically generated |
1702 |
by the UIPainter of ST/X." |
|
1796 | 1703 |
|
1480 | 1704 |
"Do not manually edit this!! If it is corrupted, |
1705 |
the UIPainter may not be able to read the specification." |
|
1796 | 1706 |
|
1480 | 1707 |
" |
1796 | 1708 |
UIPainter new openOnClass:ImageEditor andSelector:#uncropDialogSpec |
1709 |
ImageEditor new openInterface:#uncropDialogSpec |
|
1480 | 1710 |
" |
1796 | 1711 |
|
1712 |
<resource: #canvas> |
|
1713 |
||
1714 |
^ |
|
1715 |
#(FullSpec |
|
1716 |
name: uncropDialogSpec |
|
1717 |
window: |
|
1718 |
(WindowSpec |
|
1719 |
label: 'Add Border(s)' |
|
1720 |
name: 'Add Border(s)' |
|
1721 |
min: (Point 10 10) |
|
1722 |
max: (Point 800 478) |
|
1723 |
bounds: (Rectangle 0 0 261 228) |
|
1724 |
) |
|
1725 |
component: |
|
1726 |
(SpecCollection |
|
1727 |
collection: ( |
|
1728 |
(LabelSpec |
|
1729 |
label: 'Left:' |
|
1730 |
name: 'Label1' |
|
1731 |
layout: (LayoutFrame 14 0 21 0 90 0 43 0) |
|
1732 |
translateLabel: true |
|
1733 |
adjust: right |
|
1734 |
) |
|
1735 |
(InputFieldSpec |
|
1736 |
name: 'EntryField1' |
|
1737 |
layout: (LayoutFrame 95 0 21 0 132 0 43 0) |
|
1738 |
model: left |
|
1739 |
type: number |
|
1740 |
acceptOnPointerLeave: false |
|
1741 |
) |
|
1742 |
(LabelSpec |
|
1743 |
label: 'Right:' |
|
1744 |
name: 'Label2' |
|
1745 |
layout: (LayoutFrame 14 0 51 0 90 0 73 0) |
|
1746 |
translateLabel: true |
|
1747 |
adjust: right |
|
1748 |
) |
|
1749 |
(InputFieldSpec |
|
1750 |
name: 'EntryField2' |
|
1751 |
layout: (LayoutFrame 95 0 51 0 132 0 73 0) |
|
1752 |
model: right |
|
1753 |
type: number |
|
1754 |
acceptOnPointerLeave: false |
|
1755 |
) |
|
1756 |
(LabelSpec |
|
1757 |
label: 'Top:' |
|
1758 |
name: 'Label3' |
|
1759 |
layout: (LayoutFrame 14 0 81 0 90 0 103 0) |
|
1760 |
translateLabel: true |
|
1761 |
adjust: right |
|
1762 |
) |
|
1763 |
(InputFieldSpec |
|
1764 |
name: 'EntryField3' |
|
1765 |
layout: (LayoutFrame 95 0 81 0 132 0 103 0) |
|
1766 |
model: top |
|
1767 |
type: number |
|
1768 |
acceptOnPointerLeave: false |
|
1769 |
) |
|
1770 |
(LabelSpec |
|
1771 |
label: 'Bottom:' |
|
1772 |
name: 'Label4' |
|
1773 |
layout: (LayoutFrame 14 0 111 0 90 0 133 0) |
|
1774 |
translateLabel: true |
|
1775 |
adjust: right |
|
1776 |
) |
|
1777 |
(InputFieldSpec |
|
1778 |
name: 'EntryField4' |
|
1779 |
layout: (LayoutFrame 95 0 111 0 132 0 133 0) |
|
1780 |
model: bottom |
|
1781 |
type: number |
|
1782 |
acceptOnPointerLeave: false |
|
1783 |
) |
|
1784 |
(HorizontalPanelViewSpec |
|
1785 |
name: 'HorizontalPanel1' |
|
1786 |
layout: (LayoutFrame 0 0.0 -30 1 0 1.0 0 1) |
|
1787 |
horizontalLayout: fitSpace |
|
1788 |
verticalLayout: center |
|
1789 |
horizontalSpace: 3 |
|
1790 |
verticalSpace: 3 |
|
1791 |
reverseOrderIfOKAtLeft: true |
|
1792 |
component: |
|
1793 |
(SpecCollection |
|
1794 |
collection: ( |
|
1795 |
(ActionButtonSpec |
|
1796 |
label: 'Cancel' |
|
1797 |
name: 'Button1' |
|
1798 |
translateLabel: true |
|
1799 |
model: cancel |
|
1800 |
extent: (Point 118 22) |
|
1801 |
) |
|
1802 |
(ActionButtonSpec |
|
1803 |
label: 'OK' |
|
1804 |
name: 'Button2' |
|
1805 |
translateLabel: true |
|
1806 |
model: accept |
|
1807 |
extent: (Point 118 22) |
|
1808 |
) |
|
1809 |
) |
|
1810 |
||
1811 |
) |
|
1812 |
) |
|
1813 |
) |
|
1814 |
||
1815 |
) |
|
1816 |
) |
|
1480 | 1817 |
! |
1818 |
||
767 | 1819 |
windowSpec |
1820 |
"This resource specification was automatically generated |
|
1821 |
by the UIPainter of ST/X." |
|
1822 |
||
1823 |
"Do not manually edit this!! If it is corrupted, |
|
1824 |
the UIPainter may not be able to read the specification." |
|
1825 |
||
1826 |
" |
|
1827 |
UIPainter new openOnClass:ImageEditor andSelector:#windowSpec |
|
1828 |
ImageEditor new openInterface:#windowSpec |
|
1829 |
ImageEditor open |
|
1830 |
" |
|
1831 |
||
1832 |
<resource: #canvas> |
|
1833 |
||
1558 | 1834 |
^ |
1820 | 1835 |
#(FullSpec |
1836 |
name: windowSpec |
|
1837 |
window: |
|
1838 |
(WindowSpec |
|
1839 |
label: 'Image Editor' |
|
1840 |
name: 'Image Editor' |
|
1841 |
min: (Point 400 320) |
|
1842 |
bounds: (Rectangle 0 0 450 350) |
|
1843 |
menu: menu |
|
2155 | 1844 |
icon: defaultIcon |
1558 | 1845 |
) |
1820 | 1846 |
component: |
1847 |
(SpecCollection |
|
1848 |
collection: ( |
|
1849 |
(MenuPanelSpec |
|
1850 |
name: 'menuToolbarView' |
|
1851 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
1852 |
style: (FontDescription helvetica medium roman 10) |
|
1853 |
menu: menuToolbar |
|
1854 |
showSeparatingLines: true |
|
1558 | 1855 |
) |
1820 | 1856 |
(VariableHorizontalPanelSpec |
1998 | 1857 |
name: 'mainPanel' |
1820 | 1858 |
layout: (LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
1859 |
snapMode: both |
|
1843 | 1860 |
barLevel: 0 |
1820 | 1861 |
component: |
1862 |
(SpecCollection |
|
1863 |
collection: ( |
|
1864 |
(ViewSpec |
|
1865 |
name: 'leftView' |
|
1866 |
level: 1 |
|
1867 |
component: |
|
1868 |
(SpecCollection |
|
1869 |
collection: ( |
|
1870 |
(VariableVerticalPanelSpec |
|
1871 |
name: 'verticalPanel' |
|
1872 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1873 |
level: 0 |
|
1874 |
snapMode: both |
|
1875 |
component: |
|
1876 |
(SpecCollection |
|
1877 |
collection: ( |
|
1878 |
(ViewSpec |
|
1879 |
name: 'View1' |
|
1880 |
component: |
|
1881 |
(SpecCollection |
|
1882 |
collection: ( |
|
1883 |
(MenuPanelSpec |
|
1884 |
name: 'MouseButtonColorToolBar' |
|
1885 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 24 0) |
|
1886 |
level: 0 |
|
1887 |
menu: menuMouseButtonColors |
|
1558 | 1888 |
) |
1820 | 1889 |
(DataSetSpec |
1890 |
name: 'colorDataSetView' |
|
1891 |
layout: (LayoutFrame 0 0.0 26 0.0 0 1.0 0 1.0) |
|
1892 |
activeHelpKey: colorMapTable |
|
1893 |
style: (FontDescription helvetica medium roman 10) |
|
1894 |
model: selectionOfColor |
|
1895 |
menu: colorMapMenu |
|
1896 |
hasHorizontalScrollBar: true |
|
1897 |
hasVerticalScrollBar: true |
|
1898 |
miniScrollerHorizontal: true |
|
1899 |
miniScrollerVertical: true |
|
1900 |
dataList: listOfColors |
|
1901 |
has3Dseparators: true |
|
2174 | 1902 |
doubleClickSelector: doubleClickOnColor: |
1900 | 1903 |
columnHolder: colorTableColumns |
1820 | 1904 |
verticalSpacing: 1 |
1905 |
columnAdaptor: colorColumnAdaptor |
|
767 | 1906 |
) |
1558 | 1907 |
) |
1908 |
||
1909 |
) |
|
1910 |
) |
|
1820 | 1911 |
(ArbitraryComponentSpec |
1912 |
name: 'imagePreView' |
|
1913 |
activeHelpKey: previewView |
|
1914 |
menu: previewMenu |
|
1915 |
hasHorizontalScrollBar: true |
|
1916 |
hasVerticalScrollBar: true |
|
2728 | 1917 |
miniScrollerHorizontal: false |
1918 |
miniScrollerVertical: false |
|
1820 | 1919 |
hasBorder: false |
1920 |
component: ImageView |
|
767 | 1921 |
) |
1558 | 1922 |
) |
1923 |
||
767 | 1924 |
) |
1820 | 1925 |
handles: (Any 0.5 1.0) |
767 | 1926 |
) |
1558 | 1927 |
) |
1928 |
||
767 | 1929 |
) |
1558 | 1930 |
) |
1820 | 1931 |
(ViewSpec |
1932 |
name: 'rightView' |
|
1933 |
component: |
|
1934 |
(SpecCollection |
|
1935 |
collection: ( |
|
1936 |
(MenuPanelSpec |
|
1937 |
name: 'ToolBar1' |
|
1938 |
layout: (LayoutFrame 0 0 0 0.0 28 0 0 1.0) |
|
1939 |
level: 1 |
|
1940 |
menu: toolsMenuToolbar |
|
1941 |
verticalLayout: true |
|
1942 |
centerItems: true |
|
1943 |
textDefault: true |
|
1558 | 1944 |
) |
1820 | 1945 |
(ViewSpec |
1946 |
name: 'editingView' |
|
1947 |
layout: (LayoutFrame 28 0.0 0 0.0 0 1.0 0 1.0) |
|
1948 |
level: 1 |
|
1949 |
component: |
|
1950 |
(SpecCollection |
|
1951 |
collection: ( |
|
1952 |
(ArbitraryComponentSpec |
|
1953 |
name: 'imageEditView' |
|
1954 |
layout: (LayoutFrame 2 0.0 2 0.0 -2 1.0 -24 1.0) |
|
1955 |
hasHorizontalScrollBar: true |
|
1956 |
hasVerticalScrollBar: true |
|
1957 |
hasBorder: false |
|
1958 |
component: ImageEditView |
|
1637 | 1959 |
) |
1820 | 1960 |
(LabelSpec |
1961 |
name: 'coordLabel' |
|
1962 |
layout: (LayoutFrame 2 0.0 -22 1 -83 1.0 0 1.0) |
|
1963 |
level: -1 |
|
1964 |
labelChannel: imageInfoHolder |
|
1965 |
resizeForLabel: false |
|
1966 |
adjust: left |
|
1637 | 1967 |
) |
1820 | 1968 |
(ArrowButtonSpec |
1969 |
name: 'magnifyDownButton' |
|
1970 |
layout: (LayoutFrame -80 1 -22 1 -58 1 0 1) |
|
1971 |
activeHelpKey: magnifyImageDown |
|
1972 |
model: doMagnifyDown |
|
2792 | 1973 |
enableChannel: imageIsLoadedHolder |
1820 | 1974 |
isTriggerOnDown: true |
1975 |
direction: left |
|
1637 | 1976 |
) |
1820 | 1977 |
(ArrowButtonSpec |
1978 |
name: 'magnifyUpButton' |
|
1979 |
layout: (LayoutFrame -24 1 -22 1 -2 1 0 1) |
|
1980 |
activeHelpKey: magnifyImageUp |
|
1981 |
model: doMagnifyUp |
|
2792 | 1982 |
enableChannel: imageIsLoadedHolder |
1820 | 1983 |
isTriggerOnDown: true |
1984 |
direction: right |
|
1637 | 1985 |
) |
1820 | 1986 |
(InputFieldSpec |
1987 |
name: 'magnificationInputField' |
|
1988 |
layout: (LayoutFrame -57 1 -22 1 -26 1 0 1) |
|
1989 |
activeHelpKey: magnificationNumber |
|
2792 | 1990 |
enableChannel: imageIsLoadedHolder |
1987 | 1991 |
model: magnificationHolder |
1820 | 1992 |
type: numberInRange |
1975 | 1993 |
acceptOnReturn: true |
1994 |
acceptOnTab: true |
|
1820 | 1995 |
numChars: 2 |
1996 |
minValue: 1 |
|
1997 |
maxValue: 99 |
|
1975 | 1998 |
acceptOnPointerLeave: true |
1637 | 1999 |
) |
2000 |
) |
|
2001 |
||
2002 |
) |
|
1558 | 2003 |
) |
2004 |
) |
|
2005 |
||
2006 |
) |
|
2007 |
) |
|
2008 |
) |
|
2009 |
||
767 | 2010 |
) |
1843 | 2011 |
handles: (Any 0.288889 1.0) |
1558 | 2012 |
) |
1820 | 2013 |
(UISubSpecification |
2014 |
name: 'infoBarSubSpec' |
|
2015 |
layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
2016 |
majorKey: ToolApplicationModel |
|
2017 |
minorKey: windowSpecForInfoBar |
|
1558 | 2018 |
) |
2019 |
) |
|
2020 |
||
2021 |
) |
|
767 | 2022 |
) |
2792 | 2023 |
|
2024 |
"Modified: / 04-07-2010 / 10:18:33 / cg" |
|
519 | 2025 |
! ! |
2026 |
||
2027 |
!ImageEditor class methodsFor:'menu specs'! |
|
2028 |
||
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2029 |
colorMapMenu |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2030 |
"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
|
2031 |
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
|
2032 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2033 |
"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
|
2034 |
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
|
2035 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2036 |
" |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2037 |
MenuEditor new openOnClass:ImageEditor andSelector:#colorMapMenu |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2038 |
(Menu new fromLiteralArrayEncoding:(ImageEditor colorMapMenu)) startUp |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2039 |
" |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2040 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2041 |
<resource: #menu> |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2042 |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2043 |
^ |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2044 |
#(Menu |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2045 |
( |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2046 |
(MenuItem |
2792 | 2047 |
enabled: hasColormapHolder |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2048 |
label: 'Add Color' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2049 |
itemValue: addColorToColormap |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2050 |
translateLabel: true |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2051 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2052 |
(MenuItem |
2792 | 2053 |
enabled: hasColormapHolder |
2539 | 2054 |
label: 'Pick and Add Color...' |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2055 |
itemValue: pickAndAddColorToColormap |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2056 |
translateLabel: true |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2057 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2058 |
(MenuItem |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2059 |
label: '-' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2060 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2061 |
(MenuItem |
2651 | 2062 |
enabled: hasColormapAndColorSelected |
1852 | 2063 |
label: 'Cut Color' |
2064 |
itemValue: cutColorFromColormap |
|
2065 |
translateLabel: true |
|
2066 |
isVisible: false |
|
2067 |
) |
|
2068 |
(MenuItem |
|
2792 | 2069 |
enabled: hasColorSelectedHolder |
1852 | 2070 |
label: 'Copy Color' |
2071 |
itemValue: copyColorFromColormap |
|
2072 |
translateLabel: true |
|
2841 | 2073 |
shortcutKey: Copy |
1852 | 2074 |
) |
2075 |
(MenuItem |
|
2651 | 2076 |
enabled: hasColormapAndColorSelected |
2539 | 2077 |
label: 'Pick and Paste Color...' |
1933 | 2078 |
itemValue: pickAndPasteColor |
1852 | 2079 |
translateLabel: true |
2080 |
) |
|
2081 |
(MenuItem |
|
2082 |
label: 'Paste Color' |
|
2083 |
itemValue: pasteColorIntoColormap |
|
2084 |
translateLabel: true |
|
2841 | 2085 |
shortcutKey: Paste |
1852 | 2086 |
) |
2087 |
(MenuItem |
|
2088 |
label: '-' |
|
2089 |
) |
|
2090 |
(MenuItem |
|
2651 | 2091 |
enabled: hasColormapAndColorSelected |
2539 | 2092 |
label: 'Edit Color...' |
1931 | 2093 |
itemValue: editSelectedColor |
2094 |
translateLabel: true |
|
2095 |
) |
|
2096 |
(MenuItem |
|
2651 | 2097 |
enabled: hasColormapAndColorSelected |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2098 |
label: 'Brighter' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2099 |
itemValue: makeSelectedColorBrighter |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2100 |
translateLabel: true |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2101 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2102 |
(MenuItem |
2651 | 2103 |
enabled: hasColormapAndColorSelected |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2104 |
label: 'Darker' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2105 |
itemValue: makeSelectedColorDarker |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2106 |
translateLabel: true |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2107 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2108 |
(MenuItem |
2651 | 2109 |
enabled: hasColormapAndColorSelected |
1884 | 2110 |
label: 'Make Gray' |
2111 |
itemValue: makeSelectedColorGray |
|
2112 |
translateLabel: true |
|
2113 |
) |
|
2114 |
(MenuItem |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2115 |
label: '-' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2116 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2117 |
(MenuItem |
2841 | 2118 |
enabled: hasColorSelectedHolder |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2119 |
label: 'Inspect Color' |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2120 |
itemValue: inspectColor |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2121 |
translateLabel: true |
2651 | 2122 |
) |
2123 |
(MenuItem |
|
2792 | 2124 |
enabled: hasColormapHolder |
2651 | 2125 |
label: 'Inspect Colormap' |
2126 |
itemValue: inspectColormap |
|
2127 |
translateLabel: true |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2128 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2129 |
) |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2130 |
nil |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
2131 |
nil |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2132 |
) |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2133 |
! |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
2134 |
|
400 | 2135 |
menu |
737 | 2136 |
"This resource specification was automatically generated |
2137 |
by the MenuEditor of ST/X." |
|
400 | 2138 |
|
737 | 2139 |
"Do not manually edit this!! If it is corrupted, |
2140 |
the MenuEditor may not be able to read the specification." |
|
400 | 2141 |
|
2142 |
" |
|
2143 |
MenuEditor new openOnClass:ImageEditor andSelector:#menu |
|
2144 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menu)) startUp |
|
2145 |
" |
|
2146 |
||
2147 |
<resource: #menu> |
|
2148 |
||
1124 | 2149 |
^ |
1882 | 2150 |
#(Menu |
2151 |
( |
|
2152 |
(MenuItem |
|
2153 |
label: '&File' |
|
2154 |
translateLabel: true |
|
2196 | 2155 |
submenuChannel: menuFile |
2585 | 2156 |
"/ keepLinkedMenu: true |
1124 | 2157 |
) |
1882 | 2158 |
(MenuItem |
2159 |
label: 'Edit' |
|
2160 |
translateLabel: true |
|
2196 | 2161 |
submenuChannel: menuEdit |
2585 | 2162 |
"/ keepLinkedMenu: true |
1124 | 2163 |
) |
1882 | 2164 |
(MenuItem |
2165 |
label: 'Mode' |
|
2166 |
translateLabel: true |
|
2167 |
submenuChannel: modeMenu |
|
1637 | 2168 |
) |
1882 | 2169 |
(MenuItem |
1924 | 2170 |
label: 'Colors' |
1882 | 2171 |
translateLabel: true |
2585 | 2172 |
submenuChannel: menuColors |
1124 | 2173 |
) |
1882 | 2174 |
(MenuItem |
2175 |
label: 'Settings' |
|
2176 |
translateLabel: true |
|
2585 | 2177 |
submenuChannel: menuSettings |
1124 | 2178 |
) |
1882 | 2179 |
(MenuItem |
2180 |
label: 'History' |
|
2181 |
translateLabel: true |
|
1975 | 2182 |
isVisible: isStandAlone |
1882 | 2183 |
submenuChannel: menuHistory |
1124 | 2184 |
) |
1882 | 2185 |
(MenuItem |
2136
bb10485fa455
support '?' as help (for now: controlled by resources)
Claus Gittinger <cg@exept.de>
parents:
2125
diff
changeset
|
2186 |
label: 'MENU_Help' |
1882 | 2187 |
translateLabel: true |
2125 | 2188 |
startGroup: conditionalRight |
1882 | 2189 |
submenuChannel: menuHelp |
1124 | 2190 |
) |
2191 |
) |
|
2192 |
nil |
|
2193 |
nil |
|
400 | 2194 |
) |
2195 |
! |
|
2196 |
||
2585 | 2197 |
menuColors |
2198 |
"This resource specification was automatically generated |
|
2199 |
by the MenuEditor of ST/X." |
|
2200 |
||
2201 |
"Do not manually edit this!! If it is corrupted, |
|
2202 |
the MenuEditor may not be able to read the specification." |
|
2203 |
||
2204 |
" |
|
2205 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuColors |
|
2206 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuColors)) startUp |
|
2207 |
" |
|
2208 |
||
2209 |
<resource: #menu> |
|
2210 |
||
2211 |
^ |
|
2212 |
#(Menu |
|
2213 |
( |
|
2214 |
(MenuItem |
|
2767 | 2215 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2585 | 2216 |
label: 'Depth' |
2217 |
translateLabel: true |
|
2218 |
submenu: |
|
2219 |
(Menu |
|
2220 |
( |
|
2221 |
(MenuItem |
|
2222 |
activeHelpKey: colorMap1 |
|
2223 |
label: '1-Plane' |
|
2224 |
itemValue: colorMapMode: |
|
2225 |
translateLabel: true |
|
2226 |
argument: depth1 |
|
2227 |
choice: colorMapMode |
|
2228 |
choiceValue: depth1 |
|
2229 |
) |
|
2230 |
(MenuItem |
|
2231 |
activeHelpKey: colorMap1M |
|
2232 |
label: '1-Plane + Mask' |
|
2233 |
itemValue: colorMapMode: |
|
2234 |
translateLabel: true |
|
2235 |
argument: masked1 |
|
2236 |
choice: colorMapMode |
|
2237 |
choiceValue: masked1 |
|
2238 |
) |
|
2239 |
(MenuItem |
|
2240 |
label: '-' |
|
2241 |
) |
|
2242 |
(MenuItem |
|
2243 |
activeHelpKey: colorMap2 |
|
2244 |
label: '2-Plane' |
|
2245 |
itemValue: colorMapMode: |
|
2246 |
translateLabel: true |
|
2247 |
argument: depth2 |
|
2248 |
choice: colorMapMode |
|
2249 |
choiceValue: depth2 |
|
2250 |
) |
|
2251 |
(MenuItem |
|
2252 |
activeHelpKey: colorMap2M |
|
2253 |
label: '2-Plane + Mask' |
|
2254 |
itemValue: colorMapMode: |
|
2255 |
translateLabel: true |
|
2256 |
argument: masked2 |
|
2257 |
choice: colorMapMode |
|
2258 |
choiceValue: masked2 |
|
2259 |
) |
|
2260 |
(MenuItem |
|
2261 |
label: '-' |
|
2262 |
) |
|
2263 |
(MenuItem |
|
2264 |
activeHelpKey: colorMap4 |
|
2265 |
label: '4-Plane' |
|
2266 |
itemValue: colorMapMode: |
|
2267 |
translateLabel: true |
|
2268 |
argument: depth4 |
|
2269 |
choice: colorMapMode |
|
2270 |
choiceValue: depth4 |
|
2271 |
) |
|
2272 |
(MenuItem |
|
2273 |
activeHelpKey: colorMap4M |
|
2274 |
label: '4-Plane + Mask' |
|
2275 |
itemValue: colorMapMode: |
|
2276 |
translateLabel: true |
|
2277 |
argument: masked4 |
|
2278 |
choice: colorMapMode |
|
2279 |
choiceValue: masked4 |
|
2280 |
) |
|
2281 |
(MenuItem |
|
2282 |
label: '-' |
|
2283 |
) |
|
2284 |
(MenuItem |
|
2285 |
activeHelpKey: colorMap8 |
|
2286 |
label: '8-Plane' |
|
2287 |
itemValue: colorMapMode: |
|
2288 |
translateLabel: true |
|
2289 |
argument: depth8 |
|
2290 |
choice: colorMapMode |
|
2291 |
choiceValue: depth8 |
|
2292 |
) |
|
2293 |
(MenuItem |
|
2294 |
activeHelpKey: colorMap8M |
|
2295 |
label: '8-Plane + Mask' |
|
2296 |
itemValue: colorMapMode: |
|
2297 |
translateLabel: true |
|
2298 |
argument: masked8 |
|
2299 |
choice: colorMapMode |
|
2300 |
choiceValue: masked8 |
|
2301 |
) |
|
2302 |
(MenuItem |
|
2303 |
label: '-' |
|
2304 |
) |
|
2305 |
(MenuItem |
|
2306 |
activeHelpKey: colorMap16 |
|
2307 |
label: '16-Plane' |
|
2308 |
itemValue: colorMapMode: |
|
2309 |
translateLabel: true |
|
2310 |
argument: depth16 |
|
2311 |
choice: colorMapMode |
|
2312 |
choiceValue: depth16 |
|
2313 |
) |
|
2314 |
(MenuItem |
|
2315 |
activeHelpKey: colorMap16M |
|
2316 |
label: '16-Plane + Mask' |
|
2317 |
itemValue: colorMapMode: |
|
2318 |
translateLabel: true |
|
2319 |
argument: masked16 |
|
2320 |
choice: colorMapMode |
|
2321 |
choiceValue: masked16 |
|
2322 |
) |
|
2323 |
(MenuItem |
|
2324 |
label: '-' |
|
2325 |
) |
|
2326 |
(MenuItem |
|
2327 |
activeHelpKey: colorMap24 |
|
2328 |
label: '24-Plane' |
|
2329 |
itemValue: colorMapMode: |
|
2330 |
translateLabel: true |
|
2331 |
argument: depth24 |
|
2332 |
choice: colorMapMode |
|
2333 |
choiceValue: depth24 |
|
2334 |
) |
|
2335 |
(MenuItem |
|
2336 |
activeHelpKey: colorMap24M |
|
2337 |
label: '24-Plane + Mask' |
|
2338 |
itemValue: colorMapMode: |
|
2339 |
translateLabel: true |
|
2340 |
argument: masked24 |
|
2341 |
choice: colorMapMode |
|
2342 |
choiceValue: masked24 |
|
2343 |
) |
|
2344 |
(MenuItem |
|
2345 |
label: '-' |
|
2346 |
) |
|
2347 |
(MenuItem |
|
2348 |
activeHelpKey: colorMap32 |
|
2349 |
label: '32-Plane (rgba)' |
|
2350 |
itemValue: colorMapMode: |
|
2351 |
translateLabel: true |
|
2352 |
argument: depth32 |
|
2353 |
choice: colorMapMode |
|
2354 |
choiceValue: depth32 |
|
2355 |
) |
|
2356 |
) |
|
2357 |
nil |
|
2358 |
nil |
|
2359 |
) |
|
2360 |
) |
|
2361 |
(MenuItem |
|
2792 | 2362 |
enabled: imageIsLoadedHolder |
2585 | 2363 |
label: 'ColorMap' |
2364 |
translateLabel: true |
|
2365 |
submenu: |
|
2366 |
(Menu |
|
2367 |
( |
|
2368 |
(MenuItem |
|
2369 |
activeHelpKey: compressColormap |
|
2792 | 2370 |
enabled: hasColormapHolder |
2585 | 2371 |
label: 'Compress Colormap' |
2826 | 2372 |
itemValue: #'menu_compressColorMap' |
2585 | 2373 |
translateLabel: true |
2374 |
) |
|
2375 |
(MenuItem |
|
2792 | 2376 |
enabled: hasColormapHolder |
2585 | 2377 |
label: 'Sort Colormap' |
2826 | 2378 |
itemValue: #'menu_sortColorMap' |
2585 | 2379 |
translateLabel: true |
2380 |
) |
|
2381 |
(MenuItem |
|
2382 |
label: 'Reduce Number of Colors by Rounding...' |
|
2383 |
itemValue: reduceNumberOfColors2 |
|
2384 |
translateLabel: true |
|
2385 |
) |
|
2386 |
(MenuItem |
|
2387 |
label: 'Reduce Number of Colors by Masking Bits...' |
|
2388 |
itemValue: reduceNumberOfColors |
|
2389 |
translateLabel: true |
|
2390 |
) |
|
2391 |
(MenuItem |
|
2392 |
label: 'Dither to Depth...' |
|
2393 |
itemValue: ditherToDepth |
|
2394 |
translateLabel: true |
|
2395 |
) |
|
2396 |
(MenuItem |
|
2397 |
label: '-' |
|
2398 |
) |
|
2399 |
(MenuItem |
|
2792 | 2400 |
enabled: imageIsLoadedHolder |
2585 | 2401 |
label: 'Brighten' |
2402 |
itemValue: doBrightenImage |
|
2403 |
translateLabel: true |
|
2404 |
) |
|
2405 |
(MenuItem |
|
2792 | 2406 |
enabled: imageIsLoadedHolder |
2585 | 2407 |
label: 'Darken' |
2408 |
itemValue: doDarkenImage |
|
2409 |
translateLabel: true |
|
2410 |
) |
|
2652 | 2411 |
(MenuItem |
2792 | 2412 |
enabled: imageIsLoadedHolder |
2652 | 2413 |
label: 'Invert' |
2414 |
itemValue: doNegativeImage |
|
2415 |
translateLabel: true |
|
2416 |
) |
|
2585 | 2417 |
) |
2418 |
nil |
|
2419 |
nil |
|
2420 |
) |
|
2421 |
) |
|
2422 |
(MenuItem |
|
2792 | 2423 |
enabled: imageIsLoadedHolder |
2585 | 2424 |
label: 'Process' |
2425 |
translateLabel: true |
|
2426 |
submenu: |
|
2427 |
(Menu |
|
2428 |
( |
|
2429 |
(MenuItem |
|
2430 |
label: 'Make GrayScale' |
|
2431 |
itemValue: makeGrayScaleImage |
|
2432 |
translateLabel: true |
|
2433 |
) |
|
2434 |
(MenuItem |
|
2826 | 2435 |
enabled: allowedToChangeImageDimensionAndDepth |
2585 | 2436 |
label: 'Make dithered 8Bit Palette' |
2437 |
itemValue: makeDitheredPaletteImage |
|
2438 |
translateLabel: true |
|
2439 |
isVisible: false |
|
2440 |
) |
|
2441 |
(MenuItem |
|
2826 | 2442 |
label: 'Make Inverse' |
2443 |
itemValue: makeInverse |
|
2444 |
translateLabel: true |
|
2445 |
) |
|
2446 |
(MenuItem |
|
2447 |
label: '-' |
|
2448 |
) |
|
2449 |
(MenuItem |
|
2450 |
label: 'Make Slightly Brighter' |
|
2451 |
itemValue: makeSlightlyBrighter |
|
2452 |
translateLabel: true |
|
2453 |
) |
|
2454 |
(MenuItem |
|
2455 |
label: 'Make Slightly Darker' |
|
2456 |
itemValue: makeSlightlyDarker |
|
2457 |
translateLabel: true |
|
2458 |
) |
|
2459 |
(MenuItem |
|
2460 |
label: '-' |
|
2461 |
) |
|
2462 |
(MenuItem |
|
2585 | 2463 |
label: 'Make Brighter' |
2464 |
itemValue: makeBrighter |
|
2465 |
translateLabel: true |
|
2466 |
) |
|
2467 |
(MenuItem |
|
2468 |
label: 'Make Darker' |
|
2469 |
itemValue: makeDarker |
|
2470 |
translateLabel: true |
|
2471 |
) |
|
2472 |
(MenuItem |
|
2473 |
label: '-' |
|
2474 |
) |
|
2475 |
(MenuItem |
|
2476 |
label: 'Change HLS...' |
|
2477 |
itemValue: changeHLS |
|
2478 |
translateLabel: true |
|
2479 |
) |
|
2480 |
(MenuItem |
|
2481 |
label: 'Colorize...' |
|
2482 |
itemValue: colorize |
|
2483 |
translateLabel: true |
|
2484 |
) |
|
2485 |
) |
|
2486 |
nil |
|
2487 |
nil |
|
2488 |
) |
|
2489 |
) |
|
2490 |
(MenuItem |
|
2792 | 2491 |
enabled: imageIsLoadedHolder |
2585 | 2492 |
label: 'Mask' |
2493 |
translateLabel: true |
|
2494 |
submenu: |
|
2495 |
(Menu |
|
2496 |
( |
|
2497 |
(MenuItem |
|
2498 |
activeHelpKey: copyMask |
|
2499 |
enabled: hasMask |
|
2500 |
label: 'Copy Mask' |
|
2826 | 2501 |
itemValue: #'menu_copyMask' |
2585 | 2502 |
translateLabel: true |
2503 |
) |
|
2504 |
(MenuItem |
|
2505 |
activeHelpKey: pasteMask |
|
2506 |
enabled: hasMask |
|
2507 |
label: 'Paste Mask' |
|
2826 | 2508 |
itemValue: #'menu_pasteMask' |
2585 | 2509 |
translateLabel: true |
2510 |
) |
|
2511 |
(MenuItem |
|
2512 |
enabled: hasMask |
|
2513 |
label: 'Clear Masked Pixels' |
|
2826 | 2514 |
itemValue: #'menu_clearMaskedPixels' |
2652 | 2515 |
translateLabel: true |
2516 |
) |
|
2517 |
(MenuItem |
|
2518 |
enabled: hasMask |
|
2653 | 2519 |
label: 'Clear Colormap Entry for Masked Pixels' |
2826 | 2520 |
itemValue: #'menu_clearColormapEntry0AndMaskedPixels' |
2585 | 2521 |
translateLabel: true |
2522 |
) |
|
2523 |
) |
|
2524 |
nil |
|
2525 |
nil |
|
2526 |
) |
|
2527 |
) |
|
2528 |
) |
|
2529 |
nil |
|
2530 |
nil |
|
2531 |
) |
|
2532 |
! |
|
2533 |
||
2196 | 2534 |
menuEdit |
2535 |
"This resource specification was automatically generated |
|
2536 |
by the MenuEditor of ST/X." |
|
2537 |
||
2538 |
"Do not manually edit this!! If it is corrupted, |
|
2539 |
the MenuEditor may not be able to read the specification." |
|
2540 |
||
2541 |
" |
|
2542 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuEdit |
|
2543 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuEdit)) startUp |
|
2544 |
" |
|
2545 |
||
2546 |
<resource: #menu> |
|
2547 |
||
2548 |
^ |
|
2549 |
#(Menu |
|
2550 |
( |
|
2551 |
(MenuItem |
|
2552 |
activeHelpKey: editUndo |
|
2553 |
enabled: canUndoHolder |
|
2554 |
label: 'Undo' |
|
2555 |
itemValue: doUndo |
|
2556 |
translateLabel: true |
|
2557 |
) |
|
2558 |
(MenuItem |
|
2559 |
label: '-' |
|
2560 |
) |
|
2561 |
(MenuItem |
|
2812 | 2562 |
enabled: imageIsLoadedHolder |
2563 |
label: 'Copy to Clipboard' |
|
2564 |
itemValue: doCopyImageToClipboard |
|
2565 |
translateLabel: true |
|
2566 |
) |
|
2567 |
(MenuItem |
|
2568 |
label: '-' |
|
2569 |
) |
|
2570 |
(MenuItem |
|
2571 |
activeHelpKey: editResize |
|
2767 | 2572 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2573 |
label: 'Resize...' |
2574 |
itemValue: doResizeImage |
|
2575 |
translateLabel: true |
|
2576 |
) |
|
2577 |
(MenuItem |
|
2812 | 2578 |
activeHelpKey: editMagnifyImage |
2767 | 2579 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2580 |
label: 'Magnify...' |
2581 |
itemValue: doMagnifyImage |
|
2582 |
translateLabel: true |
|
2583 |
) |
|
2584 |
(MenuItem |
|
2812 | 2585 |
activeHelpKey: editMagnifyImage |
2767 | 2586 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2587 |
label: 'Magnify By...' |
2588 |
itemValue: doMagnifyImageBy |
|
2589 |
translateLabel: true |
|
2590 |
) |
|
2591 |
(MenuItem |
|
2812 | 2592 |
activeHelpKey: editRotate |
2767 | 2593 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2594 |
label: 'Rotate...' |
2595 |
itemValue: doRotateImage |
|
2596 |
translateLabel: true |
|
2597 |
) |
|
2598 |
(MenuItem |
|
2812 | 2599 |
activeHelpKey: edit3DProjection |
2767 | 2600 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2354
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
2601 |
label: '3D Projection...' |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
2602 |
itemValue: do3DProjection |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
2603 |
translateLabel: true |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
2604 |
) |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
2605 |
(MenuItem |
2792 | 2606 |
enabled: imageIsLoadedHolder |
2196 | 2607 |
label: 'Flip' |
2608 |
translateLabel: true |
|
2609 |
submenu: |
|
2610 |
(Menu |
|
2611 |
( |
|
2612 |
(MenuItem |
|
2613 |
activeHelpKey: editFlipVertical |
|
2812 | 2614 |
enabled: imageIsLoadedHolder |
2196 | 2615 |
label: 'Flip - Vertical' |
2616 |
itemValue: doFlipVertical |
|
2617 |
translateLabel: true |
|
2837 | 2618 |
labelImage: (ResourceRetriever ImageEditor flipVerticalIcon 'Flip - Vertical') |
2196 | 2619 |
) |
2620 |
(MenuItem |
|
2621 |
activeHelpKey: editFlipHorizontal |
|
2812 | 2622 |
enabled: imageIsLoadedHolder |
2196 | 2623 |
label: 'Flip - Horizontal' |
2624 |
itemValue: doFlipHorizontal |
|
2625 |
translateLabel: true |
|
2837 | 2626 |
labelImage: (ResourceRetriever ImageEditor flipHorizontalIcon 'Flip - Horizontal') |
2196 | 2627 |
) |
2628 |
) |
|
2629 |
nil |
|
2630 |
nil |
|
2631 |
) |
|
2632 |
) |
|
2633 |
(MenuItem |
|
2634 |
label: '-' |
|
2635 |
) |
|
2636 |
(MenuItem |
|
2767 | 2637 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2638 |
label: 'Crop' |
2639 |
translateLabel: true |
|
2640 |
submenu: |
|
2641 |
(Menu |
|
2642 |
( |
|
2643 |
(MenuItem |
|
2644 |
activeHelpKey: cropManual |
|
2645 |
label: 'Manual...' |
|
2646 |
itemValue: doCropManual |
|
2647 |
translateLabel: true |
|
2648 |
) |
|
2649 |
(MenuItem |
|
2650 |
label: '-' |
|
2651 |
) |
|
2652 |
(MenuItem |
|
2653 |
activeHelpKey: cropAll |
|
2654 |
label: 'All' |
|
2655 |
itemValue: doCropAll |
|
2656 |
translateLabel: true |
|
2657 |
) |
|
2658 |
(MenuItem |
|
2659 |
label: '-' |
|
2660 |
) |
|
2661 |
(MenuItem |
|
2662 |
activeHelpKey: cropLeft |
|
2663 |
label: 'Left' |
|
2664 |
itemValue: doCropLeft |
|
2665 |
translateLabel: true |
|
2666 |
) |
|
2667 |
(MenuItem |
|
2668 |
activeHelpKey: cropRight |
|
2669 |
label: 'Right' |
|
2670 |
itemValue: doCropRight |
|
2671 |
translateLabel: true |
|
2672 |
) |
|
2673 |
(MenuItem |
|
2674 |
activeHelpKey: cropTop |
|
2675 |
label: 'Top' |
|
2676 |
itemValue: doCropTop |
|
2677 |
translateLabel: true |
|
2678 |
) |
|
2679 |
(MenuItem |
|
2680 |
activeHelpKey: cropBottom |
|
2681 |
label: 'Bottom' |
|
2682 |
itemValue: doCropBottom |
|
2683 |
translateLabel: true |
|
2684 |
) |
|
2685 |
) |
|
2686 |
nil |
|
2687 |
nil |
|
2688 |
) |
|
2689 |
) |
|
2690 |
(MenuItem |
|
2812 | 2691 |
activeHelpKey: uncropManual |
2767 | 2692 |
enabled: imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
2196 | 2693 |
label: 'Uncrop (Add Border)...' |
2694 |
itemValue: doUnCropManual |
|
2695 |
translateLabel: true |
|
2696 |
) |
|
2697 |
(MenuItem |
|
2812 | 2698 |
activeHelpKey: shiftManual |
2792 | 2699 |
enabled: imageIsLoadedHolder |
2196 | 2700 |
label: 'Shift...' |
2701 |
itemValue: doShiftManual |
|
2702 |
translateLabel: true |
|
2703 |
) |
|
2704 |
(MenuItem |
|
2705 |
label: '-' |
|
2706 |
) |
|
2707 |
(MenuItem |
|
2585 | 2708 |
activeHelpKey: fileEditMask |
2792 | 2709 |
enabled: imageIsLoadedHolder |
2585 | 2710 |
label: 'Edit Mask' |
2711 |
itemValue: doEditMask |
|
2712 |
translateLabel: true |
|
2713 |
) |
|
2714 |
(MenuItem |
|
2792 | 2715 |
enabled: imageIsLoadedHolder |
2196 | 2716 |
label: 'Text...' |
2717 |
itemValue: doInsertTextFromUser |
|
2718 |
translateLabel: true |
|
2719 |
) |
|
2812 | 2720 |
(MenuItem |
2721 |
label: '-' |
|
2722 |
) |
|
2723 |
(MenuItem |
|
2814 | 2724 |
label: 'Animation Sequence' |
2812 | 2725 |
translateLabel: true |
2726 |
submenu: |
|
2727 |
(Menu |
|
2728 |
( |
|
2729 |
(MenuItem |
|
2730 |
enabled: imageHasNextImageHolder |
|
2731 |
label: 'Next in Sequence' |
|
2732 |
itemValue: nextImageInSequence |
|
2733 |
translateLabel: true |
|
2734 |
) |
|
2735 |
(MenuItem |
|
2736 |
enabled: imageHasPreviousImageHolder |
|
2813 | 2737 |
label: 'Previous in Sequence' |
2812 | 2738 |
itemValue: previousImageInSequence |
2739 |
translateLabel: true |
|
2740 |
) |
|
2741 |
(MenuItem |
|
2742 |
label: '-' |
|
2743 |
) |
|
2744 |
(MenuItem |
|
2745 |
enabled: imageHasImageSequenceHolder |
|
2746 |
label: 'Edit each from Sequence' |
|
2747 |
itemValue: editEachImageFromSequence |
|
2748 |
translateLabel: true |
|
2749 |
) |
|
2750 |
) |
|
2751 |
nil |
|
2752 |
nil |
|
2753 |
) |
|
2754 |
) |
|
2196 | 2755 |
) |
2756 |
nil |
|
2757 |
nil |
|
2758 |
) |
|
2759 |
! |
|
2760 |
||
2761 |
menuFile |
|
2762 |
"This resource specification was automatically generated |
|
2763 |
by the MenuEditor of ST/X." |
|
2764 |
||
2765 |
"Do not manually edit this!! If it is corrupted, |
|
2766 |
the MenuEditor may not be able to read the specification." |
|
2767 |
||
3022 | 2768 |
|
2196 | 2769 |
" |
2770 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuFile |
|
2771 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuFile)) startUp |
|
2772 |
" |
|
2773 |
||
2774 |
<resource: #menu> |
|
2775 |
||
2776 |
^ |
|
2777 |
#(Menu |
|
2778 |
( |
|
2779 |
(MenuItem |
|
2780 |
activeHelpKey: fileNewImageEditor |
|
2781 |
label: 'New ImageEditor' |
|
2782 |
itemValue: doNewImageEditor |
|
2783 |
) |
|
2784 |
(MenuItem |
|
2876 | 2785 |
label: '-' |
2786 |
) |
|
2787 |
(MenuItem |
|
2196 | 2788 |
activeHelpKey: fileNewImage |
2789 |
label: 'New...' |
|
2790 |
itemValue: doNewImage |
|
2791 |
) |
|
2792 |
(MenuItem |
|
2793 |
activeHelpKey: fileNewImage |
|
2794 |
label: 'New from ClipBoard' |
|
2795 |
itemValue: doNewImageFromClipboard |
|
2796 |
) |
|
2797 |
(MenuItem |
|
2798 |
label: '-' |
|
2799 |
) |
|
2800 |
(MenuItem |
|
2801 |
activeHelpKey: fileLoadFromClass |
|
2802 |
label: 'Load...' |
|
2803 |
itemValue: doLoadFromClass |
|
2804 |
) |
|
2805 |
(MenuItem |
|
2806 |
activeHelpKey: fileLoadFromFile |
|
2807 |
label: 'Load from File...' |
|
2808 |
itemValue: doLoadFromFile |
|
2809 |
) |
|
2810 |
(MenuItem |
|
2796 | 2811 |
activeHelpKey: fileLoadFromURL |
2812 |
label: 'Load from URL...' |
|
2813 |
itemValue: doLoadFromURL |
|
2814 |
) |
|
2815 |
(MenuItem |
|
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2816 |
label: 'Grab' |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2817 |
submenu: |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2818 |
(Menu |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2819 |
( |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2820 |
(MenuItem |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2821 |
activeHelpKey: fileGrabImageFromScreen |
2717 | 2822 |
label: 'Grab from Screen Area...' |
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2823 |
itemValue: grabScreenImage |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2824 |
) |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2825 |
(MenuItem |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2826 |
activeHelpKey: fileGrabImageFromScreen |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2827 |
enabled: hasLastGrabScreenArea |
2711 | 2828 |
label: 'Grab again from same Screen Area' |
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2829 |
itemValue: grabScreenImageFromLastArea |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2830 |
) |
2771 | 2831 |
(MenuItem |
2832 |
label: '-' |
|
2833 |
) |
|
2834 |
(MenuItem |
|
2835 |
activeHelpKey: fileGrabImageFromWindow |
|
2836 |
label: 'Grab from Window...' |
|
2837 |
itemValue: grabWindowImage |
|
2838 |
) |
|
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2839 |
) |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2840 |
nil |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2841 |
nil |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
2842 |
) |
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
2843 |
) |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
2844 |
(MenuItem |
2196 | 2845 |
label: '-' |
2846 |
) |
|
2847 |
(MenuItem |
|
2848 |
activeHelpKey: fileSaveMethod |
|
2849 |
enabled: imageIsLoadedAndClassDefined |
|
2850 |
label: 'Save' |
|
2851 |
itemValue: doSaveMethod |
|
2852 |
) |
|
2853 |
(MenuItem |
|
2854 |
activeHelpKey: fileSaveMethodAs |
|
2792 | 2855 |
enabled: imageIsLoadedHolder |
2196 | 2856 |
label: 'Save As...' |
2857 |
itemValue: doSaveMethodAs |
|
2858 |
) |
|
2859 |
(MenuItem |
|
2860 |
activeHelpKey: fileSaveAs |
|
2792 | 2861 |
enabled: imageIsLoadedHolder |
2196 | 2862 |
label: 'Save to File...' |
2863 |
itemValue: doSaveImageFileAs |
|
2864 |
) |
|
2865 |
(MenuItem |
|
2866 |
activeHelpKey: fileSaveMaskAs |
|
2792 | 2867 |
enabled: imageIsLoadedHolder |
2196 | 2868 |
label: 'Save Mask to File...' |
2869 |
itemValue: doSaveImageMaskFileAs |
|
2870 |
) |
|
2871 |
(MenuItem |
|
2872 |
activeHelpKey: fileSaveButtonImageAs |
|
2792 | 2873 |
enabled: imageIsLoadedHolder |
2196 | 2874 |
label: 'Save as Button to File...' |
2875 |
itemValue: doSaveButtonImageToFileAs |
|
2876 |
) |
|
2877 |
(MenuItem |
|
2878 |
label: '-' |
|
2879 |
) |
|
2880 |
(MenuItem |
|
2881 |
activeHelpKey: filePrint |
|
2792 | 2882 |
enabled: imageIsLoadedHolder |
2196 | 2883 |
label: 'Print' |
2884 |
itemValue: doPrint |
|
2885 |
) |
|
2886 |
(MenuItem |
|
2887 |
label: '-' |
|
2888 |
isVisible: isStandAlone |
|
2889 |
) |
|
2890 |
(MenuItem |
|
2891 |
activeHelpKey: fileBrowseClass |
|
2792 | 2892 |
enabled: hasClassDefinedHolder |
2196 | 2893 |
label: 'Browse Class' |
2894 |
itemValue: doBrowseClass |
|
2895 |
isVisible: isStandAlone |
|
2896 |
) |
|
2897 |
(MenuItem |
|
2792 | 2898 |
enabled: imageIsLoadedHolder |
2196 | 2899 |
label: 'Inspect Image' |
2900 |
itemValue: doInspectImage |
|
2901 |
isVisible: isStandAlone |
|
2902 |
) |
|
2903 |
(MenuItem |
|
2585 | 2904 |
activeHelpKey: fileShowStoreString |
2792 | 2905 |
enabled: imageIsLoadedHolder |
2585 | 2906 |
label: 'Show storeString' |
2907 |
itemValue: doShowStoreString |
|
3022 | 2908 |
) |
2909 |
(MenuItem |
|
2910 |
activeHelpKey: fileShowStoreString |
|
2911 |
enabled: imageIsLoadedHolder |
|
2912 |
label: 'Show Pixel Array Literal String' |
|
2913 |
itemValue: doShowPixelArrayLiteralString |
|
2585 | 2914 |
) |
2915 |
(MenuItem |
|
2196 | 2916 |
label: '-' |
2917 |
isVisible: isStandAlone |
|
2918 |
) |
|
2919 |
(MenuItem |
|
2920 |
activeHelpKey: fileExit |
|
2921 |
label: 'Exit' |
|
2922 |
itemValue: closeRequest |
|
2923 |
isVisible: isStandAlone |
|
2924 |
) |
|
2925 |
) |
|
2926 |
nil |
|
2927 |
nil |
|
2928 |
) |
|
2929 |
! |
|
2930 |
||
679 | 2931 |
menuMouseButtonColors |
737 | 2932 |
"This resource specification was automatically generated |
2933 |
by the MenuEditor of ST/X." |
|
679 | 2934 |
|
737 | 2935 |
"Do not manually edit this!! If it is corrupted, |
2936 |
the MenuEditor may not be able to read the specification." |
|
679 | 2937 |
|
2938 |
" |
|
2939 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuMouseButtonColors |
|
2940 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuMouseButtonColors)) startUp |
|
2941 |
" |
|
2942 |
||
2943 |
<resource: #menu> |
|
2944 |
||
2945 |
^ |
|
2946 |
||
2947 |
#(#Menu |
|
2948 |
||
2949 |
#( |
|
2950 |
#(#MenuItem |
|
2951 |
#label: 'Left Mouse Button' |
|
2952 |
#nameKey: #leftMouseKeyButton |
|
2953 |
#activeHelpKey: #mouseKeyColorMode |
|
2792 | 2954 |
#enabled: #imageIsLoadedHolder |
679 | 2955 |
#labelImage: #(#ResourceRetriever nil #leftMouseKeyIcon) |
975 | 2956 |
#choice: #mouseKeyColorMode |
2957 |
#choiceValue: 1 |
|
679 | 2958 |
) |
2959 |
#(#MenuItem |
|
2960 |
#label: 'Right Mouse Button' |
|
2961 |
#nameKey: #rightMouseKeyButton |
|
2962 |
#activeHelpKey: #mouseKeyColorMode |
|
2792 | 2963 |
#enabled: #imageIsLoadedHolder |
679 | 2964 |
#labelImage: #(#ResourceRetriever nil #rightMouseKeyIcon) |
975 | 2965 |
#choice: #mouseKeyColorMode |
2966 |
#choiceValue: 2 |
|
679 | 2967 |
) |
2968 |
) nil |
|
2969 |
nil |
|
2970 |
) |
|
2792 | 2971 |
|
2972 |
"Modified: / 04-07-2010 / 10:17:37 / cg" |
|
679 | 2973 |
! |
2974 |
||
2585 | 2975 |
menuSettings |
2976 |
"This resource specification was automatically generated |
|
2977 |
by the MenuEditor of ST/X." |
|
2978 |
||
2979 |
"Do not manually edit this!! If it is corrupted, |
|
2980 |
the MenuEditor may not be able to read the specification." |
|
2981 |
||
2881 | 2982 |
|
2585 | 2983 |
" |
2984 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuSettings |
|
2985 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuSettings)) startUp |
|
2986 |
" |
|
2987 |
||
2988 |
<resource: #menu> |
|
2989 |
||
2990 |
^ |
|
2991 |
#(Menu |
|
2992 |
( |
|
2993 |
(MenuItem |
|
2994 |
activeHelpKey: settingsGridMagnification |
|
2995 |
label: 'Grid Magnification Limit...' |
|
2996 |
itemValue: doChangeGridMagnification |
|
2997 |
translateLabel: true |
|
2998 |
) |
|
2999 |
(MenuItem |
|
3000 |
label: 'Pen' |
|
3001 |
translateLabel: true |
|
3002 |
submenu: |
|
3003 |
(Menu |
|
3004 |
( |
|
3005 |
(MenuItem |
|
3006 |
label: '1' |
|
3007 |
translateLabel: true |
|
2881 | 3008 |
choice: penWidthHolder |
3009 |
choiceValue: 1 |
|
2585 | 3010 |
) |
3011 |
(MenuItem |
|
3012 |
label: '5' |
|
3013 |
translateLabel: true |
|
2881 | 3014 |
choice: penWidthHolder |
3015 |
choiceValue: 5 |
|
2585 | 3016 |
) |
3017 |
(MenuItem |
|
3018 |
label: '10' |
|
3019 |
translateLabel: true |
|
2881 | 3020 |
choice: penWidthHolder |
3021 |
choiceValue: 10 |
|
2585 | 3022 |
) |
3023 |
) |
|
3024 |
nil |
|
3025 |
nil |
|
3026 |
) |
|
3027 |
) |
|
3028 |
(MenuItem |
|
3029 |
label: 'Spray' |
|
3030 |
translateLabel: true |
|
3031 |
submenu: |
|
3032 |
(Menu |
|
3033 |
( |
|
3034 |
(MenuItem |
|
3035 |
label: '4' |
|
3036 |
translateLabel: true |
|
2881 | 3037 |
choice: spraySpotHolder |
3038 |
choiceValue: 4 |
|
2585 | 3039 |
) |
3040 |
(MenuItem |
|
3041 |
label: '8' |
|
3042 |
translateLabel: true |
|
2881 | 3043 |
choice: spraySpotHolder |
3044 |
choiceValue: 8 |
|
2585 | 3045 |
) |
3046 |
(MenuItem |
|
3047 |
label: '16' |
|
3048 |
translateLabel: true |
|
2881 | 3049 |
choice: spraySpotHolder |
3050 |
choiceValue: 16 |
|
2585 | 3051 |
) |
3052 |
(MenuItem |
|
3053 |
label: '32' |
|
3054 |
translateLabel: true |
|
2881 | 3055 |
choice: spraySpotHolder |
3056 |
choiceValue: 32 |
|
2585 | 3057 |
) |
3058 |
) |
|
3059 |
nil |
|
3060 |
nil |
|
3061 |
) |
|
3062 |
) |
|
3063 |
) |
|
3064 |
nil |
|
3065 |
nil |
|
3066 |
) |
|
3067 |
! |
|
3068 |
||
400 | 3069 |
menuToolbar |
737 | 3070 |
"This resource specification was automatically generated |
3071 |
by the MenuEditor of ST/X." |
|
400 | 3072 |
|
737 | 3073 |
"Do not manually edit this!! If it is corrupted, |
3074 |
the MenuEditor may not be able to read the specification." |
|
400 | 3075 |
|
2876 | 3076 |
|
400 | 3077 |
" |
3078 |
MenuEditor new openOnClass:ImageEditor andSelector:#menuToolbar |
|
3079 |
(Menu new fromLiteralArrayEncoding:(ImageEditor menuToolbar)) startUp |
|
3080 |
" |
|
3081 |
||
3082 |
<resource: #menu> |
|
3083 |
||
1196 | 3084 |
^ |
1820 | 3085 |
#(Menu |
3086 |
( |
|
3087 |
(MenuItem |
|
3088 |
activeHelpKey: fileNewImage |
|
3089 |
label: 'newImage' |
|
3090 |
itemValue: doNewImage |
|
3091 |
translateLabel: true |
|
3092 |
isButton: true |
|
1883 | 3093 |
labelImage: (ResourceRetriever ToolbarIconLibrary newImageIcon) |
1196 | 3094 |
) |
1820 | 3095 |
(MenuItem |
2876 | 3096 |
activeHelpKey: fileGrabImageFromScreen |
3097 |
label: 'grabScreenImage' |
|
3098 |
itemValue: grabScreenImage |
|
3099 |
translateLabel: true |
|
3100 |
isButton: true |
|
2877 | 3101 |
labelImage: (ResourceRetriever ToolbarIconLibrary snapshot24x24Icon) |
2876 | 3102 |
) |
3103 |
(MenuItem |
|
1949 | 3104 |
label: '-' |
3105 |
) |
|
3106 |
(MenuItem |
|
1970 | 3107 |
activeHelpKey: fileLoadFromClass |
3108 |
label: 'loadFromClass' |
|
3109 |
itemValue: doLoadFromClass |
|
3110 |
translateLabel: true |
|
3111 |
isButton: true |
|
1975 | 3112 |
isVisible: isStandAlone |
1970 | 3113 |
submenuChannel: menuHistory |
3114 |
labelImage: (ResourceRetriever XPToolbarIconLibrary loadImageFromMethodIcon) |
|
3115 |
keepLinkedMenu: true |
|
3116 |
) |
|
3117 |
(MenuItem |
|
2567 | 3118 |
activeHelpKey: fileSaveMethodAs |
2792 | 3119 |
enabled: imageIsLoadedHolder |
2567 | 3120 |
label: 'fileSaveMethodAs' |
1970 | 3121 |
itemValue: doSaveMethodAs |
3122 |
translateLabel: true |
|
3123 |
isButton: true |
|
1975 | 3124 |
isVisible: isStandAlone |
1970 | 3125 |
labelImage: (ResourceRetriever XPToolbarIconLibrary saveImageAsMethodAsIcon) |
3126 |
) |
|
3127 |
(MenuItem |
|
3128 |
activeHelpKey: fileSaveMethod |
|
2792 | 3129 |
enabled: imageIsLoadedHolder |
1970 | 3130 |
label: 'saveAsMethod' |
3131 |
itemValue: doSaveMethod |
|
3132 |
translateLabel: true |
|
3133 |
isButton: true |
|
1975 | 3134 |
isVisible: isNotStandAlone |
2590 | 3135 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveImageAsMethodIcon) |
1970 | 3136 |
) |
3137 |
(MenuItem |
|
3138 |
label: '-' |
|
3139 |
) |
|
3140 |
(MenuItem |
|
1820 | 3141 |
activeHelpKey: fileLoadFromFile |
3142 |
label: 'loadFromFile' |
|
3143 |
itemValue: doLoadFromFile |
|
3144 |
translateLabel: true |
|
3145 |
isButton: true |
|
1884 | 3146 |
labelImage: (ResourceRetriever ToolbarIconLibrary loadImageFromFileIcon) |
1820 | 3147 |
) |
3148 |
(MenuItem |
|
3149 |
activeHelpKey: fileSaveAs |
|
2792 | 3150 |
enabled: imageIsLoadedHolder |
1820 | 3151 |
label: 'saveAsFile' |
3152 |
itemValue: doSaveImageFileAs |
|
3153 |
translateLabel: true |
|
3154 |
isButton: true |
|
1885 | 3155 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveImageToFileAsIcon) |
1820 | 3156 |
) |
3157 |
(MenuItem |
|
1949 | 3158 |
label: '-' |
1196 | 3159 |
) |
1820 | 3160 |
(MenuItem |
3161 |
activeHelpKey: editUndo |
|
1987 | 3162 |
enabled: canUndoHolder |
1820 | 3163 |
label: 'Undo' |
3164 |
itemValue: doUndo |
|
3165 |
translateLabel: true |
|
3166 |
isButton: true |
|
1883 | 3167 |
labelImage: (ResourceRetriever ToolbarIconLibrary undoIcon) |
1196 | 3168 |
) |
2812 | 3169 |
(MenuItem |
3170 |
label: '-' |
|
3171 |
isVisible: imageHasImageSequenceHolder |
|
3172 |
) |
|
3173 |
(MenuItem |
|
3174 |
activeHelpKey: previousImageInSequence |
|
3175 |
enabled: imageHasPreviousImageHolder |
|
3176 |
label: 'Previous Image' |
|
3177 |
itemValue: previousImageInSequence |
|
3178 |
translateLabel: true |
|
3179 |
isVisible: imageHasImageSequenceHolder |
|
3180 |
labelImage: (ResourceRetriever ToolbarIconLibrary leftArrow24x24Icon) |
|
3181 |
) |
|
3182 |
(MenuItem |
|
3183 |
activeHelpKey: nextImageInSequence |
|
3184 |
enabled: imageHasNextImageHolder |
|
3185 |
label: 'Next Image' |
|
3186 |
itemValue: nextImageInSequence |
|
3187 |
translateLabel: true |
|
3188 |
isVisible: imageHasImageSequenceHolder |
|
3189 |
labelImage: (ResourceRetriever ToolbarIconLibrary rightArrow24x24Icon) |
|
3190 |
) |
|
1637 | 3191 |
) |
3192 |
nil |
|
3193 |
nil |
|
3194 |
) |
|
3195 |
! |
|
3196 |
||
3197 |
modeMenu |
|
3198 |
"This resource specification was automatically generated |
|
3199 |
by the MenuEditor of ST/X." |
|
3200 |
||
3201 |
"Do not manually edit this!! If it is corrupted, |
|
3202 |
the MenuEditor may not be able to read the specification." |
|
3203 |
||
3204 |
" |
|
3205 |
MenuEditor new openOnClass:ImageEditor andSelector:#modeMenu |
|
3206 |
(Menu new fromLiteralArrayEncoding:(ImageEditor modeMenu)) startUp |
|
3207 |
" |
|
3208 |
||
3209 |
<resource: #menu> |
|
3210 |
||
3211 |
^ |
|
2592 | 3212 |
#(Menu |
3213 |
( |
|
3214 |
(MenuItem |
|
3215 |
activeHelpKey: drawModePoint |
|
2792 | 3216 |
enabled: imageIsLoadedHolder |
2592 | 3217 |
label: 'Point' |
3218 |
translateLabel: true |
|
3219 |
labelImage: (ResourceRetriever ImageEditor pointIcon 'Point') |
|
3220 |
choice: editMode |
|
3221 |
choiceValue: point |
|
3222 |
) |
|
3223 |
(MenuItem |
|
3224 |
activeHelpKey: drawModePoint |
|
2792 | 3225 |
enabled: imageIsLoadedHolder |
2592 | 3226 |
label: 'Spray' |
3227 |
translateLabel: true |
|
3228 |
labelImage: (ResourceRetriever ImageEditor sprayIcon 'Spray') |
|
3229 |
choice: editMode |
|
3230 |
choiceValue: spray |
|
1196 | 3231 |
) |
2592 | 3232 |
(MenuItem |
3233 |
activeHelpKey: drawModeBox |
|
2792 | 3234 |
enabled: imageIsLoadedHolder |
2592 | 3235 |
label: 'Rect' |
3236 |
translateLabel: true |
|
3237 |
labelImage: (ResourceRetriever ImageEditor rectIcon 'Rect') |
|
3238 |
choice: editMode |
|
3239 |
choiceValue: box |
|
1196 | 3240 |
) |
2592 | 3241 |
(MenuItem |
3242 |
activeHelpKey: drawModeFilledBox |
|
2792 | 3243 |
enabled: imageIsLoadedHolder |
2592 | 3244 |
label: 'Filled Rectangle' |
3245 |
translateLabel: true |
|
3246 |
labelImage: (ResourceRetriever ImageEditor fillRectIcon 'Filled Rectangle') |
|
3247 |
choice: editMode |
|
3248 |
choiceValue: filledBox |
|
1196 | 3249 |
) |
2592 | 3250 |
(MenuItem |
3251 |
activeHelpKey: drawModeBox |
|
2792 | 3252 |
enabled: imageIsLoadedHolder |
2592 | 3253 |
label: 'Circle' |
3254 |
translateLabel: true |
|
3255 |
labelImage: (ResourceRetriever ImageEditor circleIcon 'Circle') |
|
3256 |
choice: editMode |
|
3257 |
choiceValue: circle |
|
1196 | 3258 |
) |
2592 | 3259 |
(MenuItem |
3260 |
activeHelpKey: drawModeFill |
|
2792 | 3261 |
enabled: imageIsLoadedHolder |
2592 | 3262 |
label: 'Fill' |
3263 |
translateLabel: true |
|
3264 |
labelImage: (ResourceRetriever ImageEditor fillIcon 'Fill') |
|
3265 |
choice: editMode |
|
3266 |
choiceValue: fill |
|
1196 | 3267 |
) |
2592 | 3268 |
(MenuItem |
3269 |
activeHelpKey: drawModeCopy |
|
2792 | 3270 |
enabled: imageIsLoadedHolder |
2592 | 3271 |
label: 'Copy' |
3272 |
translateLabel: true |
|
3273 |
labelImage: (ResourceRetriever ImageEditor copyIcon 'Copy') |
|
3274 |
choice: editMode |
|
3275 |
choiceValue: copy |
|
3276 |
) |
|
3277 |
(MenuItem |
|
3278 |
activeHelpKey: drawModePaste |
|
2792 | 3279 |
enabled: imageIsLoadedHolder |
2592 | 3280 |
label: 'Paste' |
3281 |
translateLabel: true |
|
3282 |
labelImage: (ResourceRetriever ImageEditor pasteIcon 'Paste') |
|
3283 |
choice: editMode |
|
3284 |
choiceValue: paste |
|
1196 | 3285 |
) |
2592 | 3286 |
(MenuItem |
3287 |
activeHelpKey: drawModePasteUnder |
|
2792 | 3288 |
enabled: imageIsLoadedHolder |
2592 | 3289 |
label: 'Paste Under' |
3290 |
translateLabel: true |
|
3291 |
labelImage: (ResourceRetriever ImageEditor pasteUnderIcon 'Paste Under') |
|
3292 |
choice: editMode |
|
3293 |
choiceValue: pasteUnder |
|
1196 | 3294 |
) |
2592 | 3295 |
(MenuItem |
3296 |
activeHelpKey: drawModePasteWithMask |
|
2792 | 3297 |
enabled: imageIsLoadedHolder |
2592 | 3298 |
label: 'Paste with Mask' |
3299 |
translateLabel: true |
|
3300 |
labelImage: (ResourceRetriever ImageEditor pasteWithMaskIcon 'Paste with Mask') |
|
3301 |
choice: editMode |
|
3302 |
choiceValue: pasteWithMask |
|
1579 | 3303 |
) |
2592 | 3304 |
(MenuItem |
3305 |
activeHelpKey: drawModeSpecial |
|
2792 | 3306 |
enabled: imageIsLoadedHolder |
2592 | 3307 |
label: 'Special' |
3308 |
translateLabel: true |
|
3309 |
labelImage: (ResourceRetriever ImageEditor specialIcon 'Special') |
|
3310 |
choice: editMode |
|
3311 |
choiceValue: specialOperation |
|
1411 | 3312 |
) |
1196 | 3313 |
) |
3314 |
nil |
|
3315 |
nil |
|
400 | 3316 |
) |
2792 | 3317 |
|
3318 |
"Modified: / 04-07-2010 / 10:18:08 / cg" |
|
1558 | 3319 |
! |
3320 |
||
3321 |
previewMenu |
|
3322 |
"This resource specification was automatically generated |
|
3323 |
by the MenuEditor of ST/X." |
|
3324 |
||
3325 |
"Do not manually edit this!! If it is corrupted, |
|
3326 |
the MenuEditor may not be able to read the specification." |
|
3327 |
||
3328 |
" |
|
3329 |
MenuEditor new openOnClass:ImageEditor andSelector:#previewMenu |
|
3330 |
(Menu new fromLiteralArrayEncoding:(ImageEditor previewMenu)) startUp |
|
3331 |
" |
|
3332 |
||
3333 |
<resource: #menu> |
|
3334 |
||
3335 |
^ |
|
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3336 |
#(Menu |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3337 |
( |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3338 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3339 |
label: 'TileMode' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3340 |
translateLabel: true |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3341 |
indication: tileModeHolder |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3342 |
) |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3343 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3344 |
label: '-' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3345 |
) |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3346 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3347 |
label: 'Background Color' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3348 |
translateLabel: true |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3349 |
submenu: |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3350 |
(Menu |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3351 |
( |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3352 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3353 |
label: 'Gray' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3354 |
translateLabel: true |
2792 | 3355 |
choice: previewBackgroundColorHolder |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3356 |
choiceValue: nil |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3357 |
) |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3358 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3359 |
label: 'Black' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3360 |
translateLabel: true |
2792 | 3361 |
choice: previewBackgroundColorHolder |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3362 |
choiceValue: black |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3363 |
) |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3364 |
(MenuItem |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3365 |
label: 'White' |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3366 |
translateLabel: true |
2792 | 3367 |
choice: previewBackgroundColorHolder |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3368 |
choiceValue: white |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3369 |
) |
1774 | 3370 |
(MenuItem |
3371 |
label: '-' |
|
3372 |
) |
|
3373 |
(MenuItem |
|
3374 |
label: 'Red' |
|
3375 |
translateLabel: true |
|
2792 | 3376 |
choice: previewBackgroundColorHolder |
1774 | 3377 |
choiceValue: red |
3378 |
) |
|
3379 |
(MenuItem |
|
3380 |
label: 'Green' |
|
3381 |
translateLabel: true |
|
2792 | 3382 |
choice: previewBackgroundColorHolder |
1774 | 3383 |
choiceValue: green |
3384 |
) |
|
3385 |
(MenuItem |
|
3386 |
label: 'Blue' |
|
3387 |
translateLabel: true |
|
2792 | 3388 |
choice: previewBackgroundColorHolder |
1774 | 3389 |
choiceValue: blue |
3390 |
) |
|
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3391 |
) |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3392 |
nil |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3393 |
nil |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3394 |
) |
1558 | 3395 |
) |
3396 |
) |
|
3397 |
nil |
|
3398 |
nil |
|
3399 |
) |
|
2792 | 3400 |
|
3401 |
"Modified: / 04-07-2010 / 10:20:09 / cg" |
|
1637 | 3402 |
! |
3403 |
||
3404 |
toolsMenuToolbar |
|
3405 |
"This resource specification was automatically generated |
|
3406 |
by the MenuEditor of ST/X." |
|
3407 |
||
3408 |
"Do not manually edit this!! If it is corrupted, |
|
3409 |
the MenuEditor may not be able to read the specification." |
|
3410 |
||
2881 | 3411 |
|
1637 | 3412 |
" |
3413 |
MenuEditor new openOnClass:ImageEditor andSelector:#toolsMenuToolbar |
|
3414 |
(Menu new fromLiteralArrayEncoding:(ImageEditor toolsMenuToolbar)) startUp |
|
3415 |
" |
|
3416 |
||
3417 |
<resource: #menu> |
|
3418 |
||
3419 |
^ |
|
2881 | 3420 |
#(Menu |
3421 |
( |
|
3422 |
(MenuItem |
|
3423 |
activeHelpKey: drawModePoint |
|
3424 |
enabled: imageIsLoadedHolder |
|
3425 |
label: 'Point' |
|
3426 |
translateLabel: true |
|
3427 |
isButton: true |
|
3428 |
labelImage: (ResourceRetriever ImageEditor pointIcon) |
|
3429 |
choice: editMode |
|
3430 |
choiceValue: point |
|
1637 | 3431 |
) |
2881 | 3432 |
(MenuItem |
3433 |
activeHelpKey: drawModeSpray |
|
3434 |
enabled: imageIsLoadedHolder |
|
3435 |
label: 'Spray' |
|
3436 |
translateLabel: true |
|
3437 |
isButton: true |
|
3438 |
labelImage: (ResourceRetriever ImageEditor sprayIcon) |
|
3439 |
choice: editMode |
|
3440 |
choiceValue: spray |
|
2375 | 3441 |
) |
2881 | 3442 |
(MenuItem |
3443 |
activeHelpKey: drawModeBox |
|
3444 |
enabled: imageIsLoadedHolder |
|
3445 |
label: 'Rect' |
|
3446 |
translateLabel: true |
|
3447 |
isButton: true |
|
3448 |
labelImage: (ResourceRetriever ImageEditor rectIcon) |
|
3449 |
choice: editMode |
|
3450 |
choiceValue: box |
|
1637 | 3451 |
) |
2881 | 3452 |
(MenuItem |
3453 |
activeHelpKey: drawModeFilledBox |
|
3454 |
enabled: imageIsLoadedHolder |
|
3455 |
label: 'FillRect' |
|
3456 |
translateLabel: true |
|
3457 |
isButton: true |
|
3458 |
labelImage: (ResourceRetriever ImageEditor fillRectIcon) |
|
3459 |
choice: editMode |
|
3460 |
choiceValue: filledBox |
|
1637 | 3461 |
) |
2881 | 3462 |
(MenuItem |
3463 |
activeHelpKey: drawModeCircle |
|
3464 |
enabled: imageIsLoadedHolder |
|
3465 |
label: 'Circle' |
|
3466 |
translateLabel: true |
|
3467 |
isButton: true |
|
3468 |
labelImage: (ResourceRetriever ImageEditor circleIcon) |
|
3469 |
choice: editMode |
|
3470 |
choiceValue: circle |
|
2375 | 3471 |
) |
2881 | 3472 |
(MenuItem |
3473 |
activeHelpKey: drawModeFill |
|
3474 |
enabled: imageIsLoadedHolder |
|
3475 |
label: 'Fill' |
|
3476 |
translateLabel: true |
|
3477 |
isButton: true |
|
3478 |
labelImage: (ResourceRetriever ImageEditor fillIcon) |
|
3479 |
choice: editMode |
|
3480 |
choiceValue: fill |
|
1637 | 3481 |
) |
2881 | 3482 |
(MenuItem |
3483 |
activeHelpKey: drawModeCopy |
|
3484 |
enabled: imageIsLoadedHolder |
|
3485 |
label: 'Copy' |
|
3486 |
translateLabel: true |
|
3487 |
isButton: true |
|
3488 |
labelImage: (ResourceRetriever ImageEditor copyIcon) |
|
3489 |
choice: editMode |
|
3490 |
choiceValue: copy |
|
1637 | 3491 |
) |
2881 | 3492 |
(MenuItem |
3493 |
activeHelpKey: drawModePasteWithMask |
|
3494 |
enabled: imageIsLoadedHolder |
|
3495 |
label: 'Paste With Mask' |
|
3496 |
translateLabel: true |
|
3497 |
isButton: true |
|
3498 |
labelImage: (ResourceRetriever ImageEditor pasteWithMaskIcon) |
|
3499 |
choice: editMode |
|
3500 |
choiceValue: pasteWithMask |
|
1637 | 3501 |
) |
2881 | 3502 |
(MenuItem |
3503 |
activeHelpKey: drawModePaste |
|
3504 |
enabled: imageIsLoadedHolder |
|
3505 |
label: 'Paste' |
|
3506 |
translateLabel: true |
|
3507 |
isButton: true |
|
3508 |
labelImage: (ResourceRetriever ImageEditor pasteIcon) |
|
3509 |
choice: editMode |
|
3510 |
choiceValue: paste |
|
1637 | 3511 |
) |
2881 | 3512 |
(MenuItem |
3513 |
activeHelpKey: drawModePasteUnder |
|
3514 |
enabled: imageIsLoadedHolder |
|
3515 |
label: 'Paste Under' |
|
3516 |
translateLabel: true |
|
3517 |
isButton: true |
|
3518 |
labelImage: (ResourceRetriever ImageEditor pasteUnderIcon) |
|
3519 |
choice: editMode |
|
3520 |
choiceValue: pasteUnder |
|
1637 | 3521 |
) |
2881 | 3522 |
(MenuItem |
3523 |
activeHelpKey: drawModeSpecial |
|
3524 |
enabled: imageIsLoadedHolder |
|
3525 |
label: 'Special' |
|
3526 |
translateLabel: true |
|
3527 |
isButton: true |
|
3528 |
labelImage: (ResourceRetriever ImageEditor specialIcon) |
|
3529 |
choice: editMode |
|
3530 |
choiceValue: specialOperation |
|
1637 | 3531 |
) |
3532 |
) |
|
3533 |
nil |
|
3534 |
nil |
|
3535 |
) |
|
400 | 3536 |
! ! |
3537 |
||
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3538 |
!ImageEditor class methodsFor:'tableColumns specs'! |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3539 |
|
1900 | 3540 |
colorTableColumns |
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3541 |
"This resource specification was automatically generated |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3542 |
by the DataSetBuilder of ST/X." |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3543 |
|
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3544 |
"Do not manually edit this!! If it is corrupted, |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3545 |
the DataSetBuilder may not be able to read the specification." |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3546 |
|
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3547 |
" |
1975 | 3548 |
DataSetBuilder new openOnClass:ImageEditor andSelector:#colorTableColumns |
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3549 |
" |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3550 |
|
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3551 |
<resource: #tableColumns> |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3552 |
|
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3553 |
^#( |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3554 |
(DataSetColumnSpec |
2174 | 3555 |
activeHelpKey: '' |
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3556 |
labelButtonType: Button |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3557 |
rendererType: rowSelector |
2712 | 3558 |
backgroundSelector: theColorItself: |
3559 |
selectedBackgroundSelector: theColorItself: |
|
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3560 |
isResizeable: false |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3561 |
) |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3562 |
(DataSetColumnSpec |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3563 |
label: 'R' |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3564 |
labelAlignment: left |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3565 |
labelButtonType: Button |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3566 |
columnAlignment: right |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3567 |
editorType: InputField |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3568 |
type: number |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3569 |
model: redFromColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3570 |
writeSelector: redAtColor:put: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3571 |
selectSelector: canSelectRedInColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3572 |
) |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3573 |
(DataSetColumnSpec |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3574 |
label: 'G' |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3575 |
labelAlignment: left |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3576 |
labelButtonType: Button |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3577 |
columnAlignment: right |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3578 |
editorType: InputField |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3579 |
type: number |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3580 |
model: greenFromColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3581 |
writeSelector: greenAtColor:put: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3582 |
selectSelector: canSelectGreenInColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3583 |
) |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3584 |
(DataSetColumnSpec |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3585 |
label: 'B' |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3586 |
labelAlignment: left |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3587 |
labelButtonType: Button |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3588 |
columnAlignment: right |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3589 |
editorType: InputField |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3590 |
type: number |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3591 |
model: blueFromColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3592 |
writeSelector: blueAtColor:put: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3593 |
selectSelector: canSelectBlueInColor: |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3594 |
) |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3595 |
) |
2174 | 3596 |
|
3597 |
"Modified: / 22-07-2007 / 13:21:57 / cg" |
|
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3598 |
! ! |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
3599 |
|
400 | 3600 |
!ImageEditor methodsFor:'accessing'! |
3601 |
||
3602 |
image |
|
767 | 3603 |
"returns the current editing image" |
400 | 3604 |
|
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
3605 |
^ imageEditView image |
400 | 3606 |
! |
3607 |
||
3608 |
postOpenAction: anAction |
|
767 | 3609 |
"sets an action which is evaluated after opening" |
400 | 3610 |
|
3611 |
postOpenAction := anAction |
|
1381 | 3612 |
! |
3613 |
||
3614 |
resourceClass:aClass |
|
3615 |
imageEditView resourceClass:aClass |
|
400 | 3616 |
! ! |
3617 |
||
2767 | 3618 |
!ImageEditor methodsFor:'accessing-behavior'! |
3619 |
||
3620 |
allowedToChangeImageDimensionAndDepth |
|
3621 |
"used to edit an existing image's contents only (Expecco)" |
|
3622 |
||
3623 |
^ allowedToChangeImageDimensionAndDepth ? true |
|
3624 |
! |
|
3625 |
||
3626 |
allowedToChangeImageDimensionAndDepth:aBoolean |
|
3627 |
"used to edit an existing image's contents only (Expecco)" |
|
3628 |
||
3629 |
allowedToChangeImageDimensionAndDepth := aBoolean |
|
3630 |
! ! |
|
3631 |
||
1398 | 3632 |
!ImageEditor methodsFor:'accessing-views'! |
400 | 3633 |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3634 |
colorDataSetView |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3635 |
"returns the view of the colormap" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3636 |
|
1597
b670ad8c30e1
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
3637 |
^(self componentAt: #colorDataSetView) |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3638 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3639 |
"Created: / 26.7.1998 / 12:02:14 / cg" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3640 |
! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3641 |
|
487 | 3642 |
coordLabel |
767 | 3643 |
"returns the view the coord label" |
487 | 3644 |
|
1597
b670ad8c30e1
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
3645 |
^self componentAt: #coordLabel |
487 | 3646 |
! |
3647 |
||
400 | 3648 |
imageEditView |
911 | 3649 |
"returns the view of the image" |
400 | 3650 |
|
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
3651 |
imageEditView isNil ifTrue:[ |
1597
b670ad8c30e1
builder componentAt: -> self componentAt:
Claus Gittinger <cg@exept.de>
parents:
1583
diff
changeset
|
3652 |
imageEditView := (self componentAt: #imageEditView) scrolledView. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
3653 |
imageEditView addDependent:self. |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
3654 |
]. |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
3655 |
^ imageEditView |
1345 | 3656 |
|
3657 |
"Modified: / 10.2.2000 / 23:19:20 / cg" |
|
400 | 3658 |
! |
3659 |
||
3660 |
imagePreView |
|
767 | 3661 |
"returns the preview of the image" |
400 | 3662 |
|
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3663 |
|imagePreViewSubViews| |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3664 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3665 |
imagePreViewSubViews := (self componentAt: #imagePreView) subViews. |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3666 |
|
2043 | 3667 |
"subViews is an empty array at closing image Editor" |
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3668 |
imagePreViewSubViews isEmptyOrNil ifTrue:[ |
2043 | 3669 |
^ nil |
3670 |
]. |
|
3671 |
||
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
3672 |
^ imagePreViewSubViews first |
475 | 3673 |
! ! |
3674 |
||
400 | 3675 |
!ImageEditor methodsFor:'aspects'! |
3676 |
||
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3677 |
activityInfoHolder |
1987 | 3678 |
^ self infoLabelHolder |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3679 |
|
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3680 |
"Modified: / 29.7.1998 / 18:49:03 / cg" |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3681 |
! |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3682 |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3683 |
colorColumnAdaptor |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3684 |
^ self |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3685 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3686 |
"Created: / 26.7.1998 / 12:17:03 / cg" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3687 |
! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
3688 |
|
2792 | 3689 |
hasClassAndSelectorDefinedHolder |
1054 | 3690 |
^ [ |
1965
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
3691 |
|cls| |
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
3692 |
|
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
3693 |
(cls := imageEditView resourceClass) notNil |
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
3694 |
and:[imageEditView resourceSelector notNil] |
1054 | 3695 |
] |
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3696 |
|
2792 | 3697 |
"Created: / 04-07-2010 / 10:11:10 / cg" |
3698 |
! |
|
3699 |
||
3700 |
hasClassDefinedHolder |
|
1054 | 3701 |
^ [ |
1965
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
3702 |
imageEditView resourceClass notNil |
1054 | 3703 |
] |
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3704 |
|
2792 | 3705 |
"Created: / 04-07-2010 / 10:11:47 / cg" |
3706 |
! |
|
3707 |
||
3708 |
hasColorSelectedHolder |
|
3709 |
^ [ self selectedColorIndexOrNil notNil ] |
|
3710 |
||
3711 |
"Created: / 04-07-2010 / 10:12:22 / cg" |
|
2651 | 3712 |
! |
3713 |
||
1008 | 3714 |
hasColormap |
2792 | 3715 |
^ self image notNil and:[self image colorMap notNil] |
3716 |
||
3717 |
"Created: / 30-09-1998 / 23:53:55 / cg" |
|
3718 |
"Modified: / 04-07-2010 / 10:13:26 / cg" |
|
1008 | 3719 |
! |
3720 |
||
2651 | 3721 |
hasColormapAndColorSelected |
2792 | 3722 |
^ [ self hasColormapHolder value and:[self hasColorSelectedHolder value]] |
3723 |
||
3724 |
"Modified: / 04-07-2010 / 10:13:13 / cg" |
|
3725 |
! |
|
3726 |
||
3727 |
hasColormapHolder |
|
3728 |
^ [self hasColormap] |
|
3729 |
||
3730 |
"Created: / 04-07-2010 / 10:13:05 / cg" |
|
3731 |
! |
|
3732 |
||
2812 | 3733 |
imageHasImageSequence |
3080 | 3734 |
|img| |
3735 |
||
3736 |
^ (img := self image) notNil and:[img imageSequence notNil] |
|
2812 | 3737 |
|
3738 |
"Created: / 21-10-2010 / 14:35:45 / cg" |
|
3739 |
! |
|
3740 |
||
3741 |
imageHasImageSequenceHolder |
|
3742 |
|holder| |
|
3743 |
||
3744 |
(holder := builder bindingAt:#imageHasImageSequenceHolder) isNil ifTrue:[ |
|
3745 |
builder aspectAt:#imageHasImageSequenceHolder put:(holder := false asValue). |
|
3746 |
holder value:(self imageHasImageSequence). |
|
3747 |
]. |
|
3748 |
^ holder |
|
3749 |
||
3750 |
"Modified: / 21-10-2010 / 14:36:57 / cg" |
|
3751 |
! |
|
3752 |
||
3753 |
imageHasNextImage |
|
3754 |
^ self imageHasImageSequence and:[ (imageSeqNr ? 1) < self image imageSequence size ] |
|
3755 |
||
3756 |
"Created: / 21-10-2010 / 14:37:10 / cg" |
|
3757 |
! |
|
3758 |
||
2792 | 3759 |
imageHasNextImageHolder |
2812 | 3760 |
|holder| |
3761 |
||
3762 |
(holder := builder bindingAt:#imageHasNextImageHolder) isNil ifTrue:[ |
|
3763 |
builder aspectAt:#imageHasNextImageHolder put:(holder := false asValue). |
|
3764 |
holder value:(self imageHasNextImage). |
|
3765 |
]. |
|
3766 |
^ holder |
|
3767 |
||
3768 |
"Modified: / 21-10-2010 / 14:37:40 / cg" |
|
3769 |
! |
|
3770 |
||
3771 |
imageHasPreviousImage |
|
3772 |
^ self imageHasImageSequence and:[ (imageSeqNr ? 1) > 1 ] |
|
3773 |
||
3774 |
"Created: / 21-10-2010 / 14:37:21 / cg" |
|
3775 |
! |
|
3776 |
||
3777 |
imageHasPreviousImageHolder |
|
3778 |
|holder| |
|
3779 |
||
3780 |
(holder := builder bindingAt:#imageHasPreviousImageHolder) isNil ifTrue:[ |
|
3781 |
builder aspectAt:#imageHasPreviousImageHolder put:(holder := false asValue). |
|
3782 |
holder value:(self imageHasPreviousImage). |
|
3783 |
]. |
|
3784 |
^ holder |
|
3785 |
||
3786 |
"Modified: / 21-10-2010 / 14:37:48 / cg" |
|
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
3787 |
! |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
3788 |
|
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3789 |
imageInfoHolder |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3790 |
|holder| |
2792 | 3791 |
|
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3792 |
(holder := builder bindingAt:#imageInfoHolder) isNil ifTrue:[ |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3793 |
builder aspectAt:#imageInfoHolder put:(holder := '' asValue). |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3794 |
]. |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3795 |
^ holder |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
3796 |
|
2792 | 3797 |
"Modified: / 04-07-2010 / 10:15:14 / cg" |
400 | 3798 |
! |
3799 |
||
2767 | 3800 |
imageIsLoadedAndAllowedToChangeImageDimensionAndDepth |
3801 |
"returns whether an image is loaded as value holder" |
|
3802 |
||
3803 |
^ [ |
|
2792 | 3804 |
self imageIsLoadedHolder value |
2767 | 3805 |
and:[ self allowedToChangeImageDimensionAndDepth ] |
3806 |
] |
|
2792 | 3807 |
|
3808 |
"Modified: / 04-07-2010 / 10:15:43 / cg" |
|
2767 | 3809 |
! |
3810 |
||
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3811 |
imageIsLoadedAndClassDefined |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3812 |
"returns whether an image is loaded as value holder" |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3813 |
|
2792 | 3814 |
^ [self hasClassAndSelectorDefinedHolder value |
3815 |
and:[self imageIsLoadedHolder value]] |
|
3816 |
||
3817 |
"Created: / 31-07-1998 / 02:04:18 / cg" |
|
3818 |
"Modified: / 04-07-2010 / 10:15:48 / cg" |
|
3819 |
! |
|
3820 |
||
3821 |
imageIsLoadedHolder |
|
3822 |
"returns whether an image is loaded as value holder" |
|
3823 |
||
3824 |
|holder| |
|
3825 |
||
3826 |
(holder := builder bindingAt:#imageIsLoaded) isNil ifTrue:[ |
|
3827 |
builder aspectAt:#imageIsLoaded put:(holder := false asValue). |
|
3828 |
]. |
|
3829 |
^ holder |
|
3830 |
||
3831 |
"Created: / 04-07-2010 / 10:15:38 / cg" |
|
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3832 |
! |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
3833 |
|
400 | 3834 |
listOfColors |
1896 | 3835 |
"returns the list of colors" |
3836 |
||
3837 |
|list| |
|
3838 |
||
3839 |
(list := builder bindingAt:#listOfColors) isNil ifTrue:[ |
|
3840 |
builder aspectAt:#listOfColors put:(list := List new). |
|
3841 |
list addDependent:self. |
|
400 | 3842 |
]. |
1896 | 3843 |
^ list |
400 | 3844 |
! |
3845 |
||
1987 | 3846 |
magnificationHolder |
3847 |
"returns current magnification of the image as an AspectAdaptor" |
|
3848 |
||
3849 |
|holder| |
|
3850 |
(holder := builder bindingAt:#valueOfMagnification) isNil ifTrue:[ |
|
3851 |
builder aspectAt:#valueOfMagnification put:( |
|
3852 |
holder := AspectAdaptor new subject:self; forAspect:#magnification) |
|
3853 |
]. |
|
3854 |
^ holder |
|
3855 |
! |
|
3856 |
||
2881 | 3857 |
penWidthHolder |
3858 |
|holder| |
|
3859 |
||
3860 |
(holder := builder bindingAt:#penWidthHolder) isNil ifTrue:[ |
|
3861 |
builder aspectAt:#penWidthHolder put:(holder := imageEditView penWidth asValue). |
|
3862 |
holder onChangeSend:#penWidthHolderChanged to:self. |
|
3863 |
]. |
|
3864 |
^ holder |
|
3865 |
||
3866 |
"Created: / 15-02-2012 / 22:30:58 / cg" |
|
3867 |
! |
|
3868 |
||
2792 | 3869 |
previewBackgroundColorHolder |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3870 |
|holder| |
2792 | 3871 |
|
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3872 |
(holder := builder bindingAt:#previewBackgroundColor) isNil ifTrue:[ |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3873 |
builder aspectAt:#previewBackgroundColor put:(holder := nil asValue). |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3874 |
holder addDependent:self. |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3875 |
]. |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3876 |
^ holder |
2792 | 3877 |
|
3878 |
"Created: / 04-07-2010 / 10:19:34 / cg" |
|
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3879 |
! |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3880 |
|
400 | 3881 |
selectionOfColor |
1682 | 3882 |
"returns a valueHolder for the current selection of the edit color. |
3883 |
Here, an AspectAdaptor which accesses selectedColorIndex is returned." |
|
400 | 3884 |
|
3885 |
|holder| |
|
1682 | 3886 |
|
400 | 3887 |
(holder := builder bindingAt:#selectionOfColor) isNil ifTrue:[ |
3888 |
builder aspectAt:#selectionOfColor put:( |
|
1682 | 3889 |
holder := AspectAdaptor new subject:self; forAspect:#selectedColorIndex ). |
400 | 3890 |
]. |
3891 |
^ holder |
|
3892 |
! |
|
3893 |
||
2881 | 3894 |
spraySpotHolder |
3895 |
|holder| |
|
3896 |
||
3897 |
(holder := builder bindingAt:#spraySpotHolder) isNil ifTrue:[ |
|
3898 |
builder aspectAt:#spraySpotHolder put:(holder := imageEditView spraySpot asValue). |
|
3899 |
holder onChangeSend:#spraySpotHolderChanged to:self. |
|
3900 |
]. |
|
3901 |
^ holder |
|
3902 |
||
3903 |
"Created: / 15-02-2012 / 22:36:38 / cg" |
|
3904 |
! |
|
3905 |
||
1558 | 3906 |
tileModeHolder |
3907 |
|holder| |
|
2812 | 3908 |
|
1558 | 3909 |
(holder := builder bindingAt:#tileModeHolder) isNil ifTrue:[ |
3910 |
builder aspectAt:#tileModeHolder put:(holder := false asValue). |
|
3911 |
holder addDependent:self. |
|
3912 |
]. |
|
3913 |
^ holder |
|
2812 | 3914 |
|
3915 |
"Modified: / 21-10-2010 / 14:35:24 / cg" |
|
1558 | 3916 |
! |
3917 |
||
400 | 3918 |
valueOfMagnification |
2308 | 3919 |
<resource: #obsolete> |
767 | 3920 |
"returns current magnification of the image as an AspectAdaptor" |
400 | 3921 |
|
1987 | 3922 |
self obsoleteMethodWarning:'stupid method name - use #magnificationHolder'. |
3923 |
^ self magnificationHolder |
|
400 | 3924 |
! ! |
3925 |
||
767 | 3926 |
!ImageEditor methodsFor:'change & update'! |
3927 |
||
3928 |
findColorMapMode |
|
899 | 3929 |
"finds the colorMapMode for a new image" |
767 | 3930 |
|
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3931 |
|image newListOfColors colorMapModeKey drawColor1 drawColor2 someOrAllUsedColors| |
1054 | 3932 |
|
3933 |
image := self image. |
|
1975 | 3934 |
image isNil ifTrue:[^ self ]. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3935 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3936 |
image mask notNil ifTrue: [ |
1896 | 3937 |
colorMapModeKey := 'masked'. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3938 |
] ifFalse:[ |
1896 | 3939 |
colorMapModeKey := 'depth'. |
1054 | 3940 |
]. |
1896 | 3941 |
colorMapModeKey := colorMapModeKey , image depth printString. |
1967 | 3942 |
self colorMapMode setValue:colorMapModeKey. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3943 |
|
1928 | 3944 |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3945 |
image depth > 12 ifTrue:[ |
2447 | 3946 |
newListOfColors := OrderedCollection new. |
2870 | 3947 |
(image depth > 16 or:[image colorMap isEmptyOrNil]) ifTrue:[ |
1927 | 3948 |
someOrAllUsedColors := image usedColorsMax:10000. |
2054 | 3949 |
someOrAllUsedColors notNil ifTrue:[ |
3950 |
someOrAllUsedColors := someOrAllUsedColors asArray. |
|
3951 |
someOrAllUsedColors sort:self sortBlockForColors. |
|
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3952 |
newListOfColors addAll:someOrAllUsedColors. |
2054 | 3953 |
"/ listOfColors add:Color black; add:Color white. |
3954 |
] |
|
1904 | 3955 |
] ifFalse:[ |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3956 |
newListOfColors addAll:(image colorMap). |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3957 |
]. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3958 |
] ifFalse:[ |
2447 | 3959 |
newListOfColors := OrderedCollection withAll:(self listOfColors). |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3960 |
newListOfColors isEmpty ifTrue:[ |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3961 |
self colorMapMode: colorMapMode value. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3962 |
image := self image. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
3963 |
]. |
2054 | 3964 |
]. |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3965 |
newListOfColors notEmptyOrNil ifTrue:[ |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3966 |
drawColor1 := newListOfColors at:1. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3967 |
drawColor2 := newListOfColors at:2 ifAbsent:drawColor1. |
2054 | 3968 |
|
3969 |
self hasMask ifTrue: [ |
|
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3970 |
(newListOfColors contains: [:clr| clr = (Color colorId:0)]) |
2054 | 3971 |
ifFalse:[ |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3972 |
newListOfColors addFirst:(Color colorId:0). |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3973 |
drawColor1 := newListOfColors at:2. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3974 |
drawColor2 := newListOfColors at:3 ifAbsent:drawColor1. |
2054 | 3975 |
] |
3976 |
]. |
|
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3977 |
"/ imageEditView drawingColors:(Array with: drawColor1 with: drawColor2). |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3978 |
"/ self selectionOfColor |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3979 |
"/ setValue: 0; |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
3980 |
"/ value: (listOfColors indexOf: imageEditView selectedColor). |
767 | 3981 |
]. |
2447 | 3982 |
self listOfColors asOrderedCollection ~= newListOfColors ifTrue:[ |
3983 |
self listOfColors contents:newListOfColors. |
|
3984 |
]. |
|
2870 | 3985 |
|
3986 |
"Modified: / 18-01-2012 / 13:58:38 / cg" |
|
767 | 3987 |
! |
3988 |
||
942 | 3989 |
update:something with:aParameter from:changedObject |
2042 | 3990 |
|clrIndex img imagePreView clr changedColor| |
1436 | 3991 |
|
3992 |
img := self image. |
|
2042 | 3993 |
imagePreView := self imagePreView. |
1558 | 3994 |
|
3995 |
changedObject == self tileModeHolder ifTrue:[ |
|
2042 | 3996 |
imagePreView |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3997 |
tileMode:(changedObject value) tileOffset:(img extent); |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3998 |
clear; |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
3999 |
invalidate. |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4000 |
^ self |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4001 |
]. |
2792 | 4002 |
changedObject == self previewBackgroundColorHolder ifTrue:[ |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4003 |
clr := changedObject value isNil |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4004 |
ifTrue:[imageEditView viewBackground] |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4005 |
ifFalse:[Color perform:changedObject value]. |
2042 | 4006 |
imagePreView |
1764
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4007 |
viewBackground:clr; |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4008 |
clear; |
7e9b804fd2d9
changeable preview background (to see effect of transpaent pixels)
Claus Gittinger <cg@exept.de>
parents:
1762
diff
changeset
|
4009 |
invalidate. |
1558 | 4010 |
^ self |
4011 |
]. |
|
4012 |
||
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4013 |
changedObject == self listOfColors ifTrue:[ |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4014 |
something == #at: ifTrue:[ |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4015 |
"/ colormap entry changed at aParameter |
960 | 4016 |
|
4017 |
clrIndex := aParameter. |
|
4018 |
(self hasMask) ifTrue:[ |
|
4019 |
clrIndex := clrIndex - 1. |
|
4020 |
]. |
|
1928 | 4021 |
changedColor := changedObject at:aParameter. |
4022 |
img colorMap notNil ifTrue:[ |
|
4023 |
img colorMap at:clrIndex put:changedColor. |
|
4024 |
self colorMapChanged. |
|
4025 |
] ifFalse:[ |
|
4026 |
drawingColormap notNil ifTrue:[ |
|
4027 |
drawingColormap at:clrIndex put:changedColor. |
|
4028 |
]. |
|
4029 |
]. |
|
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4030 |
^ self |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4031 |
]. |
1896 | 4032 |
^ self |
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4033 |
]. |
1124 | 4034 |
|
4035 |
changedObject == imageEditView undoImages ifTrue:[ |
|
1987 | 4036 |
self canUndoHolder value:(changedObject notEmpty). |
1124 | 4037 |
^ self. |
4038 |
]. |
|
4039 |
||
1345 | 4040 |
changedObject == imageEditView ifTrue:[ |
4041 |
something == #imageColors ifTrue:[ |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4042 |
self updateListOfColorsAndColormapMode. |
1345 | 4043 |
^ self. |
4044 |
]. |
|
4045 |
something == #image ifTrue:[ |
|
2812 | 4046 |
self updateAfterImageChange. |
2728 | 4047 |
imagePreView image:img scroll:false. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4048 |
self updateListOfColorsAndColormapMode. |
1558 | 4049 |
self tileModeHolder value ifTrue:[ |
2042 | 4050 |
imagePreView tileMode:true tileOffset:(img extent). |
1558 | 4051 |
]. |
1345 | 4052 |
^ self. |
4053 |
]. |
|
4054 |
something == #subImageIn ifTrue:[ |
|
2042 | 4055 |
imagePreView image ~~ img ifTrue:[ |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
4056 |
self error:'internal error' mayProceed:true. |
1406 | 4057 |
]. |
1558 | 4058 |
self tileModeHolder value ifTrue:[ |
2042 | 4059 |
imagePreView invalidate. |
1558 | 4060 |
] ifFalse:[ |
2042 | 4061 |
imagePreView invalidate:aParameter. |
1558 | 4062 |
]. |
1345 | 4063 |
^ self. |
4064 |
]. |
|
1491
4249a6a1b252
pick with SHIFT-click in the mag-view
Claus Gittinger <cg@exept.de>
parents:
1490
diff
changeset
|
4065 |
something == #selectedColor ifTrue:[ |
1842
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4066 |
(aParameter isNil or:[aParameter = (Color colorId:0)]) ifTrue:[ |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4067 |
"/ no color/mask */ |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4068 |
"/ self halt. |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4069 |
clrIndex := self hasMask ifTrue:[1] ifFalse:[0]. |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4070 |
] ifFalse:[ |
f04fe34d10ac
do not cover selected color (by arrow-image) in colorMap-DSV
Claus Gittinger <cg@exept.de>
parents:
1820
diff
changeset
|
4071 |
clrIndex := self listOfColors indexOf:aParameter. |
1491
4249a6a1b252
pick with SHIFT-click in the mag-view
Claus Gittinger <cg@exept.de>
parents:
1490
diff
changeset
|
4072 |
]. |
4249a6a1b252
pick with SHIFT-click in the mag-view
Claus Gittinger <cg@exept.de>
parents:
1490
diff
changeset
|
4073 |
self selectionOfColor value:clrIndex. |
4249a6a1b252
pick with SHIFT-click in the mag-view
Claus Gittinger <cg@exept.de>
parents:
1490
diff
changeset
|
4074 |
^ self. |
4249a6a1b252
pick with SHIFT-click in the mag-view
Claus Gittinger <cg@exept.de>
parents:
1490
diff
changeset
|
4075 |
]. |
1345 | 4076 |
^ self. |
4077 |
]. |
|
4078 |
||
1880 | 4079 |
changedObject == imageEditView modifiedHolder ifTrue:[ |
4080 |
"/ self halt:'to be implemented'. |
|
4081 |
^ self |
|
4082 |
]. |
|
4083 |
||
1345 | 4084 |
changedObject == imageEditView image ifTrue:[ |
2042 | 4085 |
"/ self halt:'to be implemented'. |
2812 | 4086 |
self updateAfterImageChange. |
1345 | 4087 |
^ self. |
4088 |
]. |
|
4089 |
||
942 | 4090 |
super update:something with:aParameter from:changedObject |
4091 |
||
2812 | 4092 |
"Modified: / 21-10-2010 / 14:34:31 / cg" |
4093 |
! |
|
4094 |
||
4095 |
updateAfterImageChange |
|
4096 |
|img| |
|
4097 |
||
4098 |
(img := self image) notNil ifTrue:[ |
|
4099 |
img := img onDevice:device. |
|
4100 |
self updateColorsFromImage:img. |
|
4101 |
self findColorMapMode. |
|
4102 |
self updateLabelsAndHistory. |
|
4103 |
||
4104 |
imageSeqNr isNil ifTrue:[ |
|
4105 |
imageSeqNr := 1 |
|
4106 |
]. |
|
4107 |
self imageHasImageSequenceHolder value:(self imageHasImageSequence). |
|
4108 |
self imageHasNextImageHolder value:(self imageHasNextImage). |
|
4109 |
self imageHasPreviousImageHolder value:(self imageHasPreviousImage). |
|
4110 |
] ifFalse:[ |
|
4111 |
self updateForNoImage |
|
4112 |
] |
|
4113 |
||
4114 |
"Modified: / 21-10-2010 / 14:40:45 / cg" |
|
942 | 4115 |
! |
4116 |
||
1900 | 4117 |
updateColorsFromImage:image |
4118 |
|colors| |
|
4119 |
||
2870 | 4120 |
image depth > 16 ifTrue:[ |
4121 |
self listOfColors contents:#(). |
|
4122 |
^ self. |
|
4123 |
]. |
|
4124 |
||
1904 | 4125 |
colors := image colorMap. |
4126 |
colors isNil ifTrue:[ |
|
1906 | 4127 |
Error handle:[:ex | |
4128 |
colors := OrderedCollection new. |
|
4129 |
] do:[ |
|
4130 |
colors := image usedColors asSet. |
|
2870 | 4131 |
]. |
1900 | 4132 |
]. |
1904 | 4133 |
self listOfColors contents:(colors asOrderedCollection). |
2870 | 4134 |
|
4135 |
"Modified: / 18-01-2012 / 13:57:43 / cg" |
|
1900 | 4136 |
! |
4137 |
||
1054 | 4138 |
updateForNoImage |
767 | 4139 |
"updates channels and view, if image is loaded" |
4140 |
||
2792 | 4141 |
self imageIsLoadedHolder value: false. |
767 | 4142 |
self listOfColors removeAll. |
2812 | 4143 |
self imagePreView image: nil. |
4144 |
self imageHasImageSequenceHolder value:false. |
|
4145 |
||
4146 |
"Modified: / 21-10-2010 / 14:39:13 / cg" |
|
767 | 4147 |
! |
4148 |
||
4149 |
updateLabelsAndHistory |
|
4150 |
"updates labels and history, if something has changed" |
|
4151 |
||
1910 | 4152 |
|image| |
4153 |
||
4154 |
image := self image. |
|
4155 |
||
2792 | 4156 |
self imageIsLoadedHolder value: image notNil. |
1910 | 4157 |
image isNil ifTrue: [^nil]. |
767 | 4158 |
|
4159 |
self updateInfoLabel. |
|
4160 |
||
1975 | 4161 |
imageEditView resourceClass notNil ifTrue:[ |
4162 |
imageEditView resourceSelector notNil ifTrue:[ |
|
4163 |
self addHistoryEntryForClass:imageEditView resourceClass selector:imageEditView resourceSelector. |
|
4164 |
] |
|
4165 |
]. |
|
4166 |
||
4167 |
image fileName notNil ifTrue: [ |
|
4168 |
self addHistoryEntryForFile:image fileName. |
|
4169 |
]. |
|
2792 | 4170 |
|
4171 |
"Modified: / 04-07-2010 / 10:16:02 / cg" |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4172 |
! |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4173 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4174 |
updateListOfColorsAndColormapMode |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4175 |
|selectedColor colorMap image| |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4176 |
|
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4177 |
selectedColor := self selectedColorOrNil. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4178 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4179 |
image := self image. |
1975 | 4180 |
image isNil ifTrue:[ |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4181 |
self listOfColors removeAll. |
1975 | 4182 |
] ifFalse:[ |
4183 |
colorMap := image colorMap. |
|
2447 | 4184 |
colorMap notNil ifTrue:[ |
4185 |
(colorMap size <= 4096) ifTrue:[ |
|
4186 |
image mask notNil ifTrue:[ |
|
4187 |
colorMap := (Array with:(Color noColor)),colorMap. |
|
4188 |
]. |
|
4189 |
self listOfColors contents:colorMap. |
|
4190 |
] ifFalse:[ |
|
4191 |
self listOfColors removeAll. |
|
4192 |
colorMap isFixedPalette ifTrue:[ |
|
4193 |
image colorMap:nil. |
|
4194 |
image photometric:#rgb. |
|
4195 |
image samplesPerPixel:3. |
|
4196 |
||
4197 |
image bitsPerSample:(Array |
|
4198 |
with:(colorMap bitsRed) |
|
4199 |
with:(colorMap bitsGreen) |
|
4200 |
with:(colorMap bitsBlue)). |
|
4201 |
]. |
|
4202 |
] |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4203 |
]. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4204 |
]. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4205 |
self findColorMapMode. |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4206 |
selectedColor notNil ifTrue:[ |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4207 |
self selectColor:selectedColor. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
4208 |
]. |
767 | 4209 |
! ! |
4210 |
||
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4211 |
!ImageEditor methodsFor:'data access'! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4212 |
|
1951 | 4213 |
atColor:anOldColor put:newColor |
1952 | 4214 |
"a color changed to a new color" |
4215 |
||
1930 | 4216 |
|index list oldColor image newImage oldSel| |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4217 |
|
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4218 |
list := self listOfColors. |
1951 | 4219 |
index := list identityIndexOf:anOldColor. |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4220 |
|
1930 | 4221 |
oldSel := self selectionOfColor value. |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4222 |
index ~~ 0 ifTrue:[ |
1928 | 4223 |
oldColor := list at:index. |
4224 |
list at:index put:newColor |
|
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4225 |
] ifFalse:[ |
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
4226 |
self error:'internal error' mayProceed:true. |
1928 | 4227 |
list add:newColor |
4228 |
]. |
|
4229 |
||
4230 |
image := self image. |
|
4231 |
(image colorMap isNil |
|
4232 |
and:[drawingColormap isNil]) ifTrue:[ |
|
4233 |
oldColor notNil ifTrue:[ |
|
4234 |
imageEditView makeUndo. |
|
4235 |
newImage := image copy. |
|
4236 |
newImage |
|
4237 |
colorsFromX:0 y:0 toX:(image width-1) y:(image height-1) |
|
4238 |
do:[:x :y :clr | |
|
4239 |
|newClr| |
|
4240 |
||
1951 | 4241 |
newClr := (clr = oldColor) ifTrue:[newColor] ifFalse:[clr]. |
1928 | 4242 |
newImage colorAtX:x y:y put:newClr |
4243 |
]. |
|
4244 |
imageEditView image:newImage. |
|
4245 |
imageEditView setModified. |
|
4246 |
self updateImage. |
|
4247 |
self updateImagePreView. |
|
1930 | 4248 |
|
4249 |
self selectionOfColor value:oldSel. |
|
4250 |
imageEditView selectedColorIndex:oldSel. |
|
4251 |
imageEditView selectedColor:(self listOfColors at:oldSel). |
|
1928 | 4252 |
] |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4253 |
]. |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4254 |
! |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4255 |
|
942 | 4256 |
blueAtColor:aColor put:newBlue |
4257 |
"helper used to return a new row element, when blue is changed" |
|
4258 |
||
4259 |
|byte| |
|
4260 |
||
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4261 |
aColor isNil ifTrue:[^ self]. "/ mask cannot be changed |
942 | 4262 |
byte := newBlue clampBetween:0 and:255. |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4263 |
byte = aColor blueByte ifTrue:[^ self ]. |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4264 |
|
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4265 |
self atColor:aColor |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4266 |
put:(Color redByte:(aColor redByte) greenByte:(aColor greenByte) blueByte:byte). |
942 | 4267 |
! |
4268 |
||
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4269 |
blueFromColor:aColor |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4270 |
"helper used to access a color as a row in the dataSet view" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4271 |
|
930 | 4272 |
aColor isNil ifTrue:[^ 'none']. |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4273 |
^ aColor blueByte ? 'mask' |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4274 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4275 |
"Created: / 26.7.1998 / 12:30:35 / cg" |
930 | 4276 |
"Modified: / 31.7.1998 / 01:11:18 / cg" |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4277 |
! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4278 |
|
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4279 |
canSelectBlueInColor:aColor |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4280 |
^ aColor blueByte notNil |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4281 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4282 |
"Created: / 7.8.1998 / 22:50:34 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4283 |
"Modified: / 7.8.1998 / 22:52:57 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4284 |
! |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4285 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4286 |
canSelectGreenInColor:aColor |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4287 |
^ aColor greenByte notNil |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4288 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4289 |
"Created: / 7.8.1998 / 22:50:22 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4290 |
"Modified: / 7.8.1998 / 22:52:46 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4291 |
! |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4292 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4293 |
canSelectRedInColor:aColor |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4294 |
^ aColor redByte notNil |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4295 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4296 |
"Created: / 7.8.1998 / 22:50:00 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4297 |
"Modified: / 7.8.1998 / 22:51:03 / cg" |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4298 |
! |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
4299 |
|
942 | 4300 |
greenAtColor:aColor put:newGreen |
4301 |
"helper used to return a new row element, when green is changed" |
|
4302 |
||
4303 |
|byte| |
|
4304 |
||
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4305 |
aColor isNil ifTrue:[^ self]. "/ mask cannot be changed |
942 | 4306 |
byte := newGreen clampBetween:0 and:255. |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4307 |
byte = aColor greenByte ifTrue:[^ self]. |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4308 |
|
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4309 |
self atColor:aColor |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4310 |
put:(Color redByte:(aColor redByte) greenByte:byte blueByte:(aColor blueByte)). |
942 | 4311 |
! |
4312 |
||
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4313 |
greenFromColor:aColor |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4314 |
"helper used to access a color as a row in the dataSet view" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4315 |
|
930 | 4316 |
aColor isNil ifTrue:[^ 'none']. |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4317 |
^ aColor greenByte ? 'mask' |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4318 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4319 |
"Created: / 26.7.1998 / 12:30:29 / cg" |
930 | 4320 |
"Modified: / 31.7.1998 / 01:11:31 / cg" |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4321 |
! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4322 |
|
942 | 4323 |
redAtColor:aColor put:newRed |
4324 |
"helper used to return a new row element, when red is changed" |
|
4325 |
||
4326 |
|byte| |
|
4327 |
||
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4328 |
aColor isNil ifTrue:[^ self]. "/ mask cannot be changed |
942 | 4329 |
byte := newRed clampBetween:0 and:255. |
1611
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4330 |
byte = aColor redByte ifTrue:[^ self]. |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4331 |
|
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4332 |
self atColor:aColor |
2f23751929d6
behavior of dataset changed if a write operation is invoked by a column adaptor
ca
parents:
1603
diff
changeset
|
4333 |
put:(Color redByte:byte greenByte:(aColor greenByte) blueByte:(aColor blueByte)). |
942 | 4334 |
! |
4335 |
||
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4336 |
redFromColor:aColor |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4337 |
"helper used to access a color as a row in the dataSet view" |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4338 |
|
930 | 4339 |
aColor isNil ifTrue:[^ 'none']. |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4340 |
^ aColor redByte ? 'mask' |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4341 |
|
930 | 4342 |
"Modified: / 31.7.1998 / 01:11:35 / cg" |
1449
49ad9f552d64
oops - fixed bg-color access in dataset
Claus Gittinger <cg@exept.de>
parents:
1446
diff
changeset
|
4343 |
! |
49ad9f552d64
oops - fixed bg-color access in dataset
Claus Gittinger <cg@exept.de>
parents:
1446
diff
changeset
|
4344 |
|
2712 | 4345 |
theColorItself:aColor |
4346 |
"an accessor for the table-column" |
|
4347 |
||
1449
49ad9f552d64
oops - fixed bg-color access in dataset
Claus Gittinger <cg@exept.de>
parents:
1446
diff
changeset
|
4348 |
^ aColor |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4349 |
! ! |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
4350 |
|
2663 | 4351 |
!ImageEditor methodsFor:'defaults'! |
4352 |
||
4353 |
aboutIcon |
|
4354 |
^ self class defaultIcon |
|
4355 |
! ! |
|
4356 |
||
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4357 |
!ImageEditor methodsFor:'drag & drop'! |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4358 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4359 |
canDropObjects:aCollectionOfDropObjects in:aWidget |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4360 |
^ (aCollectionOfDropObjects size == 1) |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4361 |
and:[ aCollectionOfDropObjects |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4362 |
contains:[:dropObject | dropObject isFileObject]] |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4363 |
! |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4364 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4365 |
dropObjects:aCollectionOfDropObjects in:aWidget at:position |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4366 |
|dropObject| |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4367 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4368 |
dropObject := aCollectionOfDropObjects first. |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4369 |
dropObject isFileObject ifTrue:[ |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4370 |
self loadFromFile:dropObject asFilename. |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4371 |
] |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4372 |
! ! |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4373 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4374 |
!ImageEditor methodsFor:'event handling'! |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4375 |
|
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4376 |
processEvent:anEvent |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4377 |
"Return true, if I have eaten the event" |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4378 |
|
2945 | 4379 |
<resource: #keyboard (#Paste #Copy )> |
4380 |
||
2841 | 4381 |
|view focusView p transformation| |
4382 |
||
4383 |
view := anEvent view. |
|
4384 |
view notNil ifTrue:[ |
|
4385 |
view == self imagePreView ifTrue:[ |
|
4386 |
((anEvent isButtonPressEvent and:[ anEvent button == 1 ]) |
|
4387 |
or:[ anEvent isButtonMotionEvent and:[ anEvent hasButton1 ]]) ifTrue:[ |
|
4388 |
p := anEvent x @ anEvent y. |
|
4389 |
(transformation := view transformation) notNil ifTrue:[ |
|
4390 |
p := transformation applyInverseTo:p. |
|
4391 |
]. |
|
4392 |
self imageEditView scrollToMakeVisible:p. |
|
4393 |
^ true. |
|
2546 | 4394 |
]. |
2841 | 4395 |
]. |
4396 |
||
4397 |
anEvent isKeyPressEvent ifTrue:[ |
|
4398 |
focusView := view windowGroup focusView ? view. |
|
4399 |
(focusView isComponentOf:(builder componentAt:#colorDataSetView)) ifTrue:[ |
|
4400 |
anEvent key == #Paste ifTrue:[ |
|
4401 |
self pasteColorIntoColormap. |
|
4402 |
^ true. |
|
4403 |
]. |
|
4404 |
anEvent key == #Copy ifTrue:[ |
|
4405 |
self copyColorFromColormap. |
|
4406 |
^ true. |
|
4407 |
]. |
|
4408 |
]. |
|
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4409 |
]. |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4410 |
]. |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4411 |
^ false. |
2841 | 4412 |
|
4413 |
"Modified: / 04-04-2011 / 13:50:09 / cg" |
|
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4414 |
! ! |
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4415 |
|
672 | 4416 |
!ImageEditor methodsFor:'help'! |
4417 |
||
4418 |
defaultInfoLabel |
|
1969
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4419 |
"returns the text shown in the info label, when the mouse is NOT over |
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4420 |
some widget with a help text." |
672 | 4421 |
|
1966 | 4422 |
|resourceClass resourceSelector| |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4423 |
|
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4424 |
resourceClass := imageEditView resourceClass. |
1965
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
4425 |
resourceClass notNil ifTrue:[ |
1969
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4426 |
resourceSelector := imageEditView resourceSelector. |
1966 | 4427 |
resourceSelector notNil ifTrue:[ |
1969
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4428 |
^ resourceClass name, ' >> ', resourceSelector |
1966 | 4429 |
]. |
672 | 4430 |
]. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4431 |
^ 'No class and selector defined.' |
674 | 4432 |
! |
4433 |
||
702 | 4434 |
openDocumentation |
767 | 4435 |
"opens the documentation file of the Image Editor" |
674 | 4436 |
|
763 | 4437 |
self openHTMLDocument: 'tools/uipainter/ImageEditor.html' |
4438 |
||
672 | 4439 |
! ! |
4440 |
||
767 | 4441 |
!ImageEditor methodsFor:'loading'! |
4442 |
||
1975 | 4443 |
loadFromClass:aClass andSelector:aSelector |
4444 |
"loads an image from the method specified by class and selector" |
|
4445 |
||
4446 |
self assert:(aClass isNil or:[aClass isClass]). |
|
4447 |
||
2932
7f305ee14e98
changed: #loadFromClass:andSelector:
Claus Gittinger <cg@exept.de>
parents:
2893
diff
changeset
|
4448 |
(aClass isNil or:[aSelector isNil]) ifTrue:[ |
1975 | 4449 |
imageEditView resourceClass:aClass. |
4450 |
imageEditView resourceSelector:aSelector. |
|
1969
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4451 |
imageEditView image:nil. |
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4452 |
self clearModified. |
1966 | 4453 |
^ self. |
4454 |
]. |
|
4455 |
||
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4456 |
"/ (imageEditView resourceClass == aClass |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4457 |
"/ and:[ imageEditView resourceSelector == aSelector ]) ifTrue:[ |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4458 |
"/ imageEditView modified ifFalse:[ |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4459 |
"/ ^ self. |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4460 |
"/ ]. |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4461 |
"/ ]. |
1969
f1763f6f4500
stripped down menu, if in browser
Claus Gittinger <cg@exept.de>
parents:
1967
diff
changeset
|
4462 |
|
1975 | 4463 |
(imageEditView loadFromClass:aClass andSelector:aSelector) notNil ifTrue:[ |
1966 | 4464 |
self updateAfterImageChange. |
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4465 |
self clearModified. |
1966 | 4466 |
] |
1975 | 4467 |
|
4468 |
"Modified: / 16.3.1999 / 21:44:41 / cg" |
|
1966 | 4469 |
! |
4470 |
||
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4471 |
loadFromFile:aFileName |
767 | 4472 |
"loads an image from aFileName and sets up color map list and other info labels" |
4473 |
||
980
bd21079f40e1
show waitCursor while loading from file.
Claus Gittinger <cg@exept.de>
parents:
976
diff
changeset
|
4474 |
self withCursor:Cursor wait do:[ |
bd21079f40e1
show waitCursor while loading from file.
Claus Gittinger <cg@exept.de>
parents:
976
diff
changeset
|
4475 |
(imageEditView loadFromFile: aFileName) notNil ifTrue:[ |
1966 | 4476 |
self updateAfterImageChange |
767 | 4477 |
] |
4478 |
] |
|
960 | 4479 |
|
1057 | 4480 |
"Modified: / 16.3.1999 / 21:44:26 / cg" |
767 | 4481 |
! |
4482 |
||
960 | 4483 |
loadFromImage:anImage |
767 | 4484 |
"loads an image from anImage and sets up color map list and other info labels" |
4485 |
||
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4486 |
|img| |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4487 |
|
1057 | 4488 |
anImage notNil ifTrue:[ |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4489 |
img := anImage onDevice:device. |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4490 |
]. |
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4491 |
|
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4492 |
imageEditView image:img. |
1799
e605f0af928a
clear modified flag when an image is loaded
Claus Gittinger <cg@exept.de>
parents:
1796
diff
changeset
|
4493 |
imageEditView clearModified. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4494 |
|
1966 | 4495 |
self updateAfterImageChange. |
4496 |
"/ img notNil ifTrue:[ |
|
4497 |
"/ self updateColorsFromImage:img. |
|
4498 |
"/ self findColorMapMode. |
|
4499 |
"/ self updateLabelsAndHistory. |
|
4500 |
"/ ] ifFalse:[ |
|
4501 |
"/ self updateForNoImage |
|
4502 |
"/ ] |
|
960 | 4503 |
|
1057 | 4504 |
"Modified: / 16.3.1999 / 21:43:56 / cg" |
767 | 4505 |
! |
4506 |
||
1975 | 4507 |
loadFromOrPrepareForClass: aClass andSelector: aSelector |
767 | 4508 |
"loads an image by evaluating aMessage; |
4509 |
if no image could extract from aMessage; do set the class and the selector from |
|
4510 |
the aMessage for a saving at the end of editing" |
|
4511 |
||
1975 | 4512 |
(imageEditView loadFromClass:aClass andSelector:aSelector) notNil ifTrue: [ |
1900 | 4513 |
self updateColorsFromImage:self image. |
767 | 4514 |
self findColorMapMode. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
4515 |
] ifFalse: [ |
1975 | 4516 |
imageEditView resourceClass: aClass. |
4517 |
imageEditView resourceSelector:aSelector. |
|
767 | 4518 |
]. |
4519 |
self updateLabelsAndHistory. |
|
1057 | 4520 |
|
4521 |
"Modified: / 16.3.1999 / 21:45:07 / cg" |
|
767 | 4522 |
! ! |
4523 |
||
400 | 4524 |
!ImageEditor methodsFor:'menu modes'! |
4525 |
||
975 | 4526 |
colorMapMode |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4527 |
"returns the colorMapMode" |
400 | 4528 |
|
975 | 4529 |
colorMapMode isNil ifTrue: [colorMapMode := '' asValue]. |
400 | 4530 |
|
975 | 4531 |
^colorMapMode |
400 | 4532 |
! |
4533 |
||
975 | 4534 |
editMode |
4535 |
"returns editMode" |
|
400 | 4536 |
|
1054 | 4537 |
editMode isNil ifTrue: [ |
975 | 4538 |
editMode := #point asValue. |
1329 | 4539 |
editMode onChangeEvaluate:[imageEditView editMode:(editMode value)] |
975 | 4540 |
]. |
4541 |
||
4542 |
^editMode |
|
400 | 4543 |
! |
4544 |
||
975 | 4545 |
mouseKeyColorMode |
4546 |
"returns mouseKeyColorMode" |
|
400 | 4547 |
|
1345 | 4548 |
mouseKeyColorMode isNil ifTrue:[ |
975 | 4549 |
mouseKeyColorMode := 1 asValue. |
1345 | 4550 |
mouseKeyColorMode onChangeEvaluate: [ |
4551 |
imageEditView mouseKeyColorMode:mouseKeyColorMode value. |
|
4552 |
self selectionOfColor value: (self listOfColors indexOf:imageEditView selectedColor). |
|
4553 |
] |
|
956 | 4554 |
]. |
400 | 4555 |
|
975 | 4556 |
^mouseKeyColorMode |
1345 | 4557 |
|
4558 |
"Modified: / 10.2.2000 / 23:16:42 / cg" |
|
400 | 4559 |
! ! |
4560 |
||
1558 | 4561 |
!ImageEditor methodsFor:'private'! |
4562 |
||
1975 | 4563 |
checkModified |
4564 |
imageEditView modified value ifTrue:[ |
|
4565 |
(Dialog |
|
4566 |
confirm:(resources string:'Image was not saved. Proceed anyway ?') |
|
4567 |
yesLabel:(resources string:'Proceed') |
|
4568 |
noLabel:(resources string:'Cancel') |
|
4569 |
initialAnswer:false |
|
4570 |
) ifFalse: [^false]. |
|
4571 |
||
4572 |
imageEditView clearModified. |
|
4573 |
]. |
|
4574 |
^ true |
|
4575 |
||
4576 |
"Modified: / 29.7.1998 / 18:55:24 / cg" |
|
4577 |
! |
|
4578 |
||
1960 | 4579 |
pointFromString:aString |
4580 |
|p s x y| |
|
4581 |
||
4582 |
p := Object readFromString:aString onError:nil. |
|
1962 | 4583 |
p isPoint ifTrue:[^ p]. |
1960 | 4584 |
|
4585 |
s := aString readStream. |
|
4586 |
x := Number readFrom:s onError:nil. |
|
4587 |
x notNil ifTrue:[ |
|
4588 |
s skipSeparators. |
|
1962 | 4589 |
[s atEnd not and:[s peek isDigit not]] whileTrue:[s next]. |
1960 | 4590 |
y := Number readFrom:s onError:nil. |
1961 | 4591 |
^ x @ (y ? x) |
1960 | 4592 |
]. |
1962 | 4593 |
^ nil |
1960 | 4594 |
! |
4595 |
||
1939 | 4596 |
sortBlockForColors |
4597 |
^ [:a :b | |
|
4598 |
a redByte == b redByte ifTrue:[ |
|
4599 |
a greenByte == b greenByte ifTrue:[ |
|
4600 |
a blueByte < b blueByte |
|
4601 |
] ifFalse:[ |
|
4602 |
a greenByte < b greenByte |
|
4603 |
] |
|
4604 |
] ifFalse:[ |
|
4605 |
a redByte < b redByte |
|
4606 |
] |
|
4607 |
] |
|
4608 |
! |
|
4609 |
||
1598 | 4610 |
updateImage |
4611 |
|img| |
|
4612 |
||
4613 |
img := imageEditView image. |
|
4614 |
imageEditView image:img. |
|
4615 |
self fetchImageData. |
|
4616 |
! |
|
4617 |
||
1558 | 4618 |
updateImagePreView |
4619 |
self tileModeHolder value ifTrue:[ |
|
4620 |
self imagePreView tileMode:true tileOffset:(self image extent). |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4621 |
]. |
2546 | 4622 |
self imagePreView setImage:(self image) scroll:false invalidate:true. |
1558 | 4623 |
! ! |
4624 |
||
535 | 4625 |
!ImageEditor methodsFor:'queries'! |
4626 |
||
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
4627 |
hasLastGrabScreenArea |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
4628 |
^ [ lastGrabbedScreenArea notNil ] |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
4629 |
! |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
4630 |
|
960 | 4631 |
hasMask |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4632 |
^ colorMapMode value notNil and:[colorMapMode value startsWith:'mask'] |
960 | 4633 |
|
4634 |
"Created: / 18.8.1998 / 17:17:38 / cg" |
|
4635 |
! |
|
4636 |
||
1975 | 4637 |
modified |
4638 |
^ imageEditView modified |
|
4639 |
! |
|
4640 |
||
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4641 |
modified:aBoolean |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4642 |
super modified:aBoolean. |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4643 |
imageEditView modified:aBoolean |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4644 |
! |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
4645 |
|
535 | 4646 |
preferredExtent |
767 | 4647 |
"returns the preferred extent" |
535 | 4648 |
|
2423
0c5ac1daf0e4
changed #preferredExtent - formating
Stefan Vogel <sv@exept.de>
parents:
2420
diff
changeset
|
4649 |
^ super preferredExtent max: (Screen current width//3)@(Screen current height//3.5) |
535 | 4650 |
! ! |
4651 |
||
400 | 4652 |
!ImageEditor methodsFor:'selection'! |
4653 |
||
4654 |
magnification |
|
767 | 4655 |
"returns the magnification of the image" |
400 | 4656 |
|
911 | 4657 |
self imageEditView isNil ifTrue: [^1]. |
4658 |
^imageEditView magnification x |
|
400 | 4659 |
! |
4660 |
||
4661 |
magnification: aValue |
|
767 | 4662 |
"sets the magnification of the image" |
400 | 4663 |
|
905 | 4664 |
|magnification| |
4665 |
magnification := (aValue ? 1) asPoint. |
|
911 | 4666 |
(magnification = imageEditView magnification or: [magnification = (0@0)]) ifTrue: [^nil]. |
4667 |
imageEditView magnification: magnification |
|
400 | 4668 |
! |
4669 |
||
4670 |
selectedColorIndex |
|
767 | 4671 |
"returns the index of the selected color" |
400 | 4672 |
|
4673 |
^selectedColorIndex |
|
4674 |
! |
|
4675 |
||
4676 |
selectedColorIndex: anIndex |
|
767 | 4677 |
"sets the index of the selected color" |
400 | 4678 |
|
1054 | 4679 |
|clr pixel| |
4680 |
||
4681 |
selectedColorIndex := anIndex. |
|
2447 | 4682 |
anIndex isNil ifTrue:[^ self]. |
1054 | 4683 |
clr := self listOfColors at:anIndex ifAbsent:nil. |
4684 |
clr isNil ifTrue:[^ self]. |
|
4685 |
||
1075 | 4686 |
pixel := anIndex - 1. |
1054 | 4687 |
(self listOfColors at:1) = Color noColor ifTrue:[ |
4688 |
anIndex == 1 ifTrue:[ |
|
4689 |
pixel := nil. "/ mask |
|
4690 |
] ifFalse:[ |
|
1075 | 4691 |
pixel := pixel - 1 |
1054 | 4692 |
] |
4693 |
]. |
|
4694 |
imageEditView selectedColorIndex:pixel. |
|
4695 |
imageEditView selectedColor:clr. |
|
400 | 4696 |
! ! |
4697 |
||
1716 | 4698 |
!ImageEditor methodsFor:'startup & release'! |
400 | 4699 |
|
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4700 |
closeDownViews |
1644 | 4701 |
builder notNil ifTrue:[ |
4702 |
DefaultRelativeSizes := |
|
4703 |
Array |
|
1998 | 4704 |
with:(builder componentAt:#mainPanel) relativeCorners |
1644 | 4705 |
with:(builder componentAt:#verticalPanel) relativeCorners. |
4706 |
]. |
|
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4707 |
super closeDownViews |
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4708 |
! |
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4709 |
|
400 | 4710 |
closeRequest |
2016 | 4711 |
"asks for permission before closing" |
4712 |
||
4713 |
imageEditView checkModified ifTrue:[ |
|
4714 |
super closeRequest |
|
4715 |
] |
|
400 | 4716 |
! |
4717 |
||
1980 | 4718 |
commonPostBuild |
1975 | 4719 |
imageEditView undoImages addDependent:self. |
4720 |
imageEditView imageInfoHolder:(self imageInfoHolder). |
|
4721 |
imageEditView activityInfoHolder:(self activityInfoHolder). |
|
4722 |
||
4723 |
imageEditView clickInfoCallBack:[:button :point | |
|
4724 |
|mouseButtonColorToolBar| |
|
3170 | 4725 |
button <= 2 ifTrue:[ |
4726 |
mouseButtonColorToolBar := self componentAt:#MouseButtonColorToolBar. |
|
4727 |
(mouseButtonColorToolBar itemAt:button) toggleIndication. |
|
4728 |
mouseButtonColorToolBar do: [:i| i updateIndicators]. |
|
4729 |
]. |
|
1975 | 4730 |
]. |
4731 |
||
4732 |
imageEditView addDependent:self. |
|
4733 |
imageEditView modifiedHolder addDependent:self. |
|
4734 |
||
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4735 |
DefaultRelativeSizes notNil ifTrue:[ |
1998 | 4736 |
(builder componentAt:#mainPanel) relativeCorners:DefaultRelativeSizes first. |
1980 | 4737 |
(builder componentAt:#verticalPanel) relativeCorners:DefaultRelativeSizes second. |
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4738 |
]. |
1995 | 4739 |
|
1996 | 4740 |
"/ using masters infoHolder ? |
4741 |
(builder aspectAt:#useAlienInfoLabelHolder) == true ifTrue:[ |
|
1998 | 4742 |
(builder componentAt:#mainPanel) layout bottomOffset:0. |
1995 | 4743 |
(builder componentAt:#infoBarSubSpec) beInvisible |
4744 |
] |
|
1640
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4745 |
! |
87ce36f48fbc
remember previous relative sizes and
Claus Gittinger <cg@exept.de>
parents:
1639
diff
changeset
|
4746 |
|
1980 | 4747 |
open |
4748 |
"after opening, sets the masterApplication of the imageEditView to self" |
|
4749 |
||
4750 |
super open. |
|
4751 |
||
4752 |
imageEditView := (self componentAt: #imageEditView) subViews first. |
|
4753 |
! |
|
4754 |
||
400 | 4755 |
postOpenWith:aBuilder |
767 | 4756 |
"after opening, sets the masterApplication of the imageEditView to self; |
4757 |
evaluate the postOpenAction" |
|
400 | 4758 |
|
1921 | 4759 |
postOpenAction value. |
400 | 4760 |
|
1250 | 4761 |
super postOpenWith:aBuilder. |
4762 |
||
4763 |
aBuilder keyboardProcessor menuBar:nil. |
|
2339
a06d19fe7b32
click on preview to scroll editView;
Claus Gittinger <cg@exept.de>
parents:
2308
diff
changeset
|
4764 |
self windowGroup addPreEventHook:self. |
400 | 4765 |
! ! |
4766 |
||
1715 | 4767 |
!ImageEditor methodsFor:'user actions-colormap'! |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
4768 |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4769 |
addColorToColormap |
1682 | 4770 |
self addColorToColormap:(Color black) |
4771 |
! |
|
4772 |
||
4773 |
addColorToColormap:newColor |
|
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4774 |
|depth img cMap newColorMap newImage oldCListSize newMode listOfColors| |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4775 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4776 |
img := self image. |
1499
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1496
diff
changeset
|
4777 |
img isNil ifTrue:[ |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1496
diff
changeset
|
4778 |
self warn:'No Image.'. |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1496
diff
changeset
|
4779 |
^ self |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1496
diff
changeset
|
4780 |
]. |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1496
diff
changeset
|
4781 |
|
1054 | 4782 |
depth := img depth. |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4783 |
cMap := img colorMap. |
1054 | 4784 |
cMap isNil ifTrue:[ |
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4785 |
drawingColormap isNil ifTrue:[ |
1916 | 4786 |
self information:(resources stringWithCRs:'Image has no colormap.\The shown colorMap is for drawing only.'). |
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4787 |
drawingColormap := OrderedCollection new. |
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4788 |
]. |
1682 | 4789 |
drawingColormap add:newColor. |
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4790 |
self listOfColors contents:drawingColormap. |
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4791 |
self selectionOfColor value:(drawingColormap size). |
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4792 |
|
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4793 |
"/ self warn:'Image has no colormap.\Change colorMap mode first.' withCRs. |
1054 | 4794 |
^ self |
4795 |
]. |
|
4796 |
||
1583 | 4797 |
("(depth == 1)" false |
1054 | 4798 |
or:[cMap size == (1 bitShift:depth)]) ifTrue:[ |
4799 |
depth >= 8 ifTrue:[ |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4800 |
self warn:'No space for more colors in colormap.'. |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4801 |
^ self |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4802 |
]. |
1916 | 4803 |
(self confirm:(resources stringWithCRs:'No space for more colors in colormap.\Change depth ?')) |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4804 |
ifFalse:[ |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4805 |
^ self |
1057 | 4806 |
]. |
4807 |
||
4808 |
imageEditView makeUndo. |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4809 |
img mask notNil ifTrue:[ |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4810 |
newMode := 'masked' , (depth*2) printString. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4811 |
] ifFalse:[ |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4812 |
newMode := 'depth' , (depth*2) printString. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
4813 |
]. |
1057 | 4814 |
self colorMapMode:newMode. |
4815 |
] ifFalse:[ |
|
4816 |
imageEditView makeUndo. |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4817 |
]. |
1054 | 4818 |
|
4819 |
cMap := cMap asArray. |
|
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4820 |
listOfColors := self listOfColors. |
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4821 |
oldCListSize := listOfColors size. |
1054 | 4822 |
|
1682 | 4823 |
newColorMap := cMap copyWith:newColor. |
1054 | 4824 |
|
4825 |
newImage := img species new |
|
4826 |
width:img width |
|
4827 |
height:img height |
|
4828 |
depth:depth |
|
4829 |
fromArray:img bits. |
|
4830 |
||
4831 |
newImage colorMap:newColorMap. |
|
4832 |
newImage fileName:img fileName. |
|
4833 |
newImage mask:(img mask copy). |
|
4834 |
||
4835 |
(imageEditView image:newImage) notNil ifTrue:[ |
|
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4836 |
listOfColors contents: newImage colorMap. |
1054 | 4837 |
self findColorMapMode. |
4838 |
"/ mhmh - somehow, we get two colors added ... (sigh findColorMapMode adds another one ...) |
|
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4839 |
listOfColors size > (oldCListSize + 1) ifTrue:[ |
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4840 |
listOfColors removeLast |
1054 | 4841 |
]. |
1643
91b7ea254a3b
some changes to support drawing into 24-bit images
Claus Gittinger <cg@exept.de>
parents:
1640
diff
changeset
|
4842 |
self selectionOfColor value:(listOfColors size). |
1054 | 4843 |
self updateLabelsAndHistory. |
4844 |
] |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4845 |
|
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4846 |
"Created: / 12.3.1999 / 00:20:28 / cg" |
1057 | 4847 |
"Modified: / 16.3.1999 / 21:57:26 / cg" |
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4848 |
! |
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
4849 |
|
1650 | 4850 |
changeHLS |
4851 |
"interactive Hue/Light/Saturation editing" |
|
4852 |
||
4853 |
|bindings hueShift lightValue saturationValue originalColormap firstChange acceptChannel |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4854 |
shiftAction avgColorHolder avgColor shiftedColor shiftProcess readySema |
2438 | 4855 |
originalPixels p previewImage previewImageHolder originalPreviewColormap originalPreviewPixels |
4856 |
anyChange | |
|
1652 | 4857 |
|
1741 | 4858 |
"/ compute the averageColor in the background (while asking user) |
2438 | 4859 |
avgColorHolder := nil asValue. |
4860 |
previewImageHolder := nil asValue. |
|
4861 |
||
1652 | 4862 |
readySema := Semaphore new. |
4863 |
[ |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4864 |
|image| |
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4865 |
|
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4866 |
image := imageEditView image. |
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4867 |
originalColormap := image colorMap copy. |
2438 | 4868 |
originalPixels := image bits. |
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4869 |
avgColor := image averageColor. |
2438 | 4870 |
avgColorHolder value:avgColor. |
4871 |
||
4872 |
previewImage := self image magnifiedPreservingRatioTo:100@100. |
|
4873 |
previewImageHolder value: previewImage. |
|
4874 |
originalPreviewColormap := previewImage colorMap copy. |
|
4875 |
originalPreviewPixels := previewImage bits. |
|
4876 |
||
1652 | 4877 |
readySema signal. |
4878 |
] forkAt:7. |
|
1649 | 4879 |
|
4880 |
acceptChannel := TriggerValue new. |
|
4881 |
||
4882 |
firstChange := true. |
|
2438 | 4883 |
anyChange := false. |
1649 | 4884 |
|
1651 | 4885 |
shiftedColor := [:clr :hShift :lFactor :sFactor | |
4886 |
Color |
|
4887 |
hue:((clr hue) ? 0 + hShift) |
|
3172 | 4888 |
light:((clr light * lFactor / 100) min:100) |
4889 |
saturation:((clr saturation * sFactor / 100) min:100)]. |
|
1652 | 4890 |
|
1649 | 4891 |
shiftAction := |
4892 |
[ |
|
1650 | 4893 |
|hShift lFactor sFactor| |
4894 |
||
1649 | 4895 |
acceptChannel value:true. |
4896 |
||
4897 |
firstChange ifTrue:[ |
|
4898 |
imageEditView makeUndo. |
|
4899 |
firstChange := false. |
|
2438 | 4900 |
anyChange := true. |
1649 | 4901 |
]. |
1652 | 4902 |
readySema notNil ifTrue:[readySema wait. readySema := nil]. |
1650 | 4903 |
|
4904 |
hShift := hueShift value. |
|
4905 |
lFactor := lightValue value. |
|
4906 |
sFactor := saturationValue value. |
|
4907 |
||
1652 | 4908 |
avgColorHolder value:(shiftedColor value:avgColor value:hShift value:lFactor value:sFactor). |
4909 |
||
2438 | 4910 |
previewImage |
4911 |
colorMap:originalPreviewColormap copy; |
|
4912 |
bits:originalPreviewPixels copy; |
|
4913 |
release; |
|
4914 |
colorMapProcessing:[:clr | shiftedColor value:clr value:hShift value:lFactor value:sFactor]. |
|
4915 |
previewImageHolder value:nil; value:previewImage. |
|
4916 |
||
1652 | 4917 |
shiftProcess notNil ifTrue:[ |
4918 |
shiftProcess terminate. |
|
4919 |
shiftProcess waitUntilTerminated. |
|
4920 |
shiftProcess := nil. |
|
4921 |
]. |
|
4922 |
shiftProcess := |
|
4923 |
[ |
|
4924 |
[ |
|
1656 | 4925 |
imageEditView image |
4926 |
colorMap:originalColormap copy; |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4927 |
bits:originalPixels copy; |
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4928 |
release; |
1656 | 4929 |
colorMapProcessing:[:clr | shiftedColor value:clr value:hShift value:lFactor value:sFactor]. |
1652 | 4930 |
self updateImage. |
4931 |
self updateInfoLabel. |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4932 |
self updateImagePreView. |
1652 | 4933 |
] ensure:[ shiftProcess := nil ]. |
4934 |
] forkAt:7. |
|
1649 | 4935 |
]. |
4936 |
||
4937 |
bindings := IdentityDictionary new. |
|
1650 | 4938 |
bindings at:#hueShiftAmount put:(hueShift := 0 asValue). |
1656 | 4939 |
hueShift onChangeEvaluate:shiftAction. |
1650 | 4940 |
|
4941 |
bindings at:#lightAmount put:(lightValue := 100 asValue). |
|
1656 | 4942 |
lightValue onChangeEvaluate:shiftAction. |
1650 | 4943 |
|
4944 |
bindings at:#saturationAmount put:(saturationValue := 100 asValue). |
|
1656 | 4945 |
saturationValue onChangeEvaluate:shiftAction. |
1650 | 4946 |
|
1649 | 4947 |
bindings at:#acceptChannel put:acceptChannel. |
1652 | 4948 |
bindings at:#hlsColor put:avgColorHolder. |
2438 | 4949 |
bindings at:#previewImageHolder put:previewImageHolder. |
1650 | 4950 |
|
4951 |
(self openDialogInterface:#changeHLSDialogSpec withBindings:bindings) |
|
1649 | 4952 |
ifFalse:[ |
2438 | 4953 |
anyChange ifTrue:[ |
1649 | 4954 |
imageEditView undo |
4955 |
] |
|
4956 |
]. |
|
1923
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4957 |
|
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4958 |
(p := shiftProcess) notNil ifTrue:[ |
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4959 |
p waitUntilTerminated. |
b73340bcc215
changeHLS fixed dfor depth24-images;
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
4960 |
]. |
2438 | 4961 |
|
4962 |
anyChange ifTrue:[ |
|
4963 |
self updateImage. |
|
4964 |
self updateImagePreView. |
|
4965 |
]. |
|
1649 | 4966 |
! |
4967 |
||
2652 | 4968 |
clearColormapEntry0AndMaskedPixels |
4969 |
"ensure that there is a colorMap entry with 0/0/0 at position |
|
4970 |
0 and then clear all masked pixels (to pixelValue 0). |
|
4971 |
This is required for windows icons to be really transparent" |
|
4972 |
||
4973 |
|index colorMap| |
|
4974 |
||
4975 |
self compressColorMap. |
|
4976 |
colorMap := self image colorMap. |
|
4977 |
(colorMap includes:(Color black)) ifFalse:[ |
|
4978 |
self addColorToColormap:(Color black). |
|
4979 |
colorMap := self image colorMap. |
|
4980 |
]. |
|
4981 |
index := colorMap indexOf:(Color black). |
|
4982 |
index == 1 ifFalse:[ |
|
4983 |
self sortColorMap. |
|
4984 |
colorMap := self image colorMap. |
|
4985 |
]. |
|
4986 |
self clearMaskedPixels |
|
4987 |
! |
|
4988 |
||
1403 | 4989 |
clearMaskedPixels |
4990 |
"clear all masked pixels (to pixelValue 0)" |
|
4991 |
||
2652 | 4992 |
|newImage| |
4993 |
||
4994 |
newImage := self image clearMaskedPixels. |
|
4995 |
0 to:newImage height - 1 do:[:y | |
|
4996 |
0 to:newImage width - 1 do:[:x | |
|
4997 |
(newImage maskAtX:x y:y) == 0 ifTrue:[ |
|
4998 |
newImage pixelAtX:x y:y put:0 |
|
1460 | 4999 |
] |
1403 | 5000 |
] |
2652 | 5001 |
]. |
5002 |
||
5003 |
(imageEditView image:newImage) notNil ifTrue:[ |
|
5004 |
self fetchImageData. |
|
1403 | 5005 |
] |
5006 |
! |
|
5007 |
||
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5008 |
colorMapChanged |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5009 |
|img| |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5010 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5011 |
img := self image. |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5012 |
img release. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
5013 |
|
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
5014 |
self imageEditView invalidate. |
960 | 5015 |
self imagePreView invalidate. |
5016 |
||
5017 |
"/ (imageEditView image:img) notNil ifTrue:[ |
|
5018 |
"/ self updateLabelsAndHistory. |
|
5019 |
"/ self imagePreView image:img |
|
5020 |
"/ ] |
|
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5021 |
|
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5022 |
"Created: / 7.8.1998 / 22:26:10 / cg" |
960 | 5023 |
"Modified: / 18.8.1998 / 17:08:55 / cg" |
945
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5024 |
! |
cb689f3971ab
allow editing of color values;
Claus Gittinger <cg@exept.de>
parents:
942
diff
changeset
|
5025 |
|
975 | 5026 |
colorMapMode:aMode |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5027 |
"calculates a new color map for the image from aMode" |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5028 |
|
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5029 |
|depth numColors newColorMap newImage |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5030 |
oldImage image newColors realColorMap oldFileName |
1008 | 5031 |
usedColors useNearest usageCounts tmpBits tmpMap quest |
5032 |
prevMode maskThreshold maskImage| |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5033 |
|
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5034 |
self withExecuteCursorDo:[ |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5035 |
oldImage := self image. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5036 |
|
1053
31097504a15a
fixed startup (modal box in calling thread, instead of
Claus Gittinger <cg@exept.de>
parents:
1047
diff
changeset
|
5037 |
prevMode := colorMapMode value. |
1008 | 5038 |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5039 |
newColorMap := self class listOfColorMaps at:aMode. |
2572 | 5040 |
aMode == #depth32 ifTrue:[ |
5041 |
depth := 32. |
|
5042 |
] ifFalse:[ |
|
5043 |
depth := (newColorMap size log:2) asInteger. |
|
5044 |
]. |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5045 |
|
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5046 |
useNearest := false. |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
5047 |
depth == 1 ifTrue:[ |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
5048 |
quest := 'Keep colormap (or use standard B&W)' |
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
5049 |
] ifFalse:[ |
1008 | 5050 |
prevMode isNil ifTrue:[ |
5051 |
quest := 'Compute colormap (or use standard)' |
|
5052 |
] ifFalse:[ |
|
5053 |
quest := 'Keep colormap (or use standard)' |
|
5054 |
] |
|
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
5055 |
]. |
1008 | 5056 |
((prevMode = aMode) |
1057 | 5057 |
or:[depth > oldImage depth |
5058 |
or:[self confirm:(resources string:quest)]]) ifTrue:[ |
|
1937 | 5059 |
(newColorMap isOrderedCollection or:[newColorMap isFixedPalette not]) ifTrue:[ |
1935 | 5060 |
|
5061 |
"/ keep the colormap |
|
5062 |
newColorMap atAllPut:Color black. |
|
5063 |
depth > oldImage depth ifTrue:[ |
|
5064 |
"/ easy - simply copy the part |
|
5065 |
numColors := 1 bitShift:oldImage depth. |
|
5066 |
0 to:numColors-1 do:[:pixel | |
|
5067 |
newColorMap at:(pixel+1) put:(oldImage colorFromValue:pixel) |
|
1008 | 5068 |
]. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5069 |
] ifFalse:[ |
1935 | 5070 |
"/ see if all used color fit the new colormap |
5071 |
usedColors := oldImage usedColorsMax:(1 bitShift:depth). |
|
5072 |
(usedColors notNil and:[usedColors size > (1 bitShift:depth)]) ifTrue:[ |
|
5073 |
usedColors := oldImage realUsedColors |
|
5074 |
]. |
|
5075 |
(usedColors notNil and:[usedColors size <= (1 bitShift:depth)]) ifTrue:[ |
|
5076 |
"/ yea - just install them |
|
5077 |
usedColors asArray keysAndValuesDo:[:idx :clr | |
|
5078 |
newColorMap at:idx put:clr |
|
5079 |
]. |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5080 |
] ifFalse:[ |
1935 | 5081 |
"/ copy over those that are most often used. |
5082 |
oldImage depth < 8 ifTrue:[ |
|
5083 |
tmpBits := ByteArray uninitializedNew:(oldImage width*oldImage height). |
|
5084 |
oldImage bits |
|
5085 |
expandPixels:(oldImage depth) |
|
5086 |
width:oldImage width |
|
5087 |
height:oldImage height |
|
5088 |
into:tmpBits |
|
5089 |
mapping:nil. |
|
986 | 5090 |
] ifFalse:[ |
1935 | 5091 |
oldImage depth == 8 ifTrue:[ |
5092 |
tmpBits := oldImage bits |
|
5093 |
] ifFalse:[ |
|
5094 |
colorMapMode value:prevMode. |
|
5095 |
self findColorMapMode. |
|
5096 |
self warn:('Too many used colors in image (', oldImage usedColors size printString , ').'). |
|
5097 |
^ self |
|
5098 |
"/ (self confirm:('Too many used colors in image (', oldImage usedColors size printString , ').\\Dither ?' withCRs)) |
|
5099 |
"/ ifFalse:[. |
|
5100 |
"/ ^ self |
|
5101 |
"/ ]. |
|
5102 |
"/ self image: (Image newForDepth:depth) fromImage:oldImage. |
|
5103 |
"/ ^ self. |
|
5104 |
] |
|
5105 |
]. |
|
5106 |
usageCounts := tmpBits usageCounts. |
|
5107 |
tmpMap := Array new:usageCounts size. |
|
5108 |
oldImage colorMap asArray keysAndValuesDo:[:i :clr | |
|
5109 |
tmpMap at:i put:clr |
|
5110 |
]. |
|
5111 |
usageCounts sort:[:a :b | a > b] with:tmpMap. |
|
5112 |
||
5113 |
1 to:(1 bitShift:depth) do:[:idx | |
|
5114 |
newColorMap at:idx put:(tmpMap at:idx) |
|
5115 |
]. |
|
5116 |
||
5117 |
useNearest := Dialog |
|
5118 |
confirmWithCancel:(resources |
|
5119 |
stringWithCRs:'Image requires %1 colors.\ColorMap has only space for %2\\Use nearest (or map to first color) ?' |
|
5120 |
with:usedColors size |
|
5121 |
with:(1 bitShift:depth)) |
|
5122 |
labels:(resources array:#('Cancel' 'First' 'Nearest')). |
|
5123 |
useNearest isNil ifTrue:[ |
|
1124 | 5124 |
colorMapMode value:prevMode. |
1935 | 5125 |
^ self "/ cancel |
5126 |
]. |
|
5127 |
] |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5128 |
] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5129 |
] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5130 |
] ifFalse:[ |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5131 |
"/ standard colormap |
921
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5132 |
usedColors := oldImage usedColors. |
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5133 |
(usedColors conform:[:clr | newColorMap includes:clr]) ifFalse:[ |
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5134 |
useNearest := Dialog |
928
89bd2304da33
cleaned up imageEitViews interface to my infoPanel
Claus Gittinger <cg@exept.de>
parents:
927
diff
changeset
|
5135 |
confirmWithCancel:(resources |
1916 | 5136 |
stringWithCRs:'Not all colors are present in the new colormap.\\Map missing ones to nearest (or map to first color) ?' |
5137 |
) |
|
1542 | 5138 |
labels:(resources string:#('Cancel' 'First' 'Nearest')). |
921
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5139 |
useNearest isNil ifTrue:[ |
1542 | 5140 |
colorMapMode value:prevMode. |
921
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5141 |
^ self "/ cancel |
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5142 |
]. |
a5aca21ea803
also allow nearest-color mode for standard colormap.
Claus Gittinger <cg@exept.de>
parents:
920
diff
changeset
|
5143 |
]. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5144 |
]. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5145 |
|
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5146 |
imageEditView makeUndo. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5147 |
|
2260 | 5148 |
newImage := Image newForDepth:depth. |
1424
d7367ae7f85e
fixed conversion of 3-3-2 8-bit truecolor images
Claus Gittinger <cg@exept.de>
parents:
1411
diff
changeset
|
5149 |
newImage depth:depth. |
3125
9d5624af77ab
Sending of Image>>#clearMaskedPixels moved to Image >> #asFormOnDevice:
Stefan Vogel <sv@exept.de>
parents:
3122
diff
changeset
|
5150 |
"/ newImage photometric:oldImage photometric. |
2260 | 5151 |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5152 |
oldFileName := oldImage fileName. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5153 |
|
1008 | 5154 |
Image imageErrorSignal handle:[:ex| |
5155 |
Color colorErrorSignal handle:[:ex| |
|
1542 | 5156 |
colorMapMode value:prevMode. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5157 |
imageEditView undo. |
1008 | 5158 |
^ self warn:(resources string:'Conversion failed !!') |
5159 |
] do:[ |
|
1393 | 5160 |
newImage := Image newForDepth:depth. |
3103 | 5161 |
newImage |
5162 |
width:oldImage width height:oldImage height depth:depth; |
|
5163 |
colorMap:newColorMap; |
|
5164 |
photometric:#palette; |
|
5165 |
bits:(ByteArray new:(newImage bytesPerRow * newImage height)); |
|
5166 |
mask:oldImage mask. |
|
2260 | 5167 |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5168 |
oldImage colorsFromX:0 y:0 toX:(oldImage width-1) y:(oldImage height-1) do: |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5169 |
[:x :y :clr | |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5170 |
|newColor| |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5171 |
|
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5172 |
(newColorMap includes:clr) |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5173 |
ifTrue: [newColor := clr] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5174 |
ifFalse: [ |
1008 | 5175 |
newColor := clr nearestIn:newColorMap. |
5176 |
useNearest ifFalse:[ |
|
5177 |
(newColor deltaFrom:clr) > 0.5 ifTrue:[ |
|
5178 |
newColor := oldImage colorFromValue:0 |
|
5179 |
] |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5180 |
] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5181 |
]. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5182 |
newImage colorAtX:x y:y put:newColor. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5183 |
]. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5184 |
image := newImage |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5185 |
]. |
1008 | 5186 |
] do:[ |
3103 | 5187 |
image := newImage fromImage:oldImage photometric:newImage photometric. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5188 |
]. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5189 |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5190 |
(aMode asString startsWith:'mask') ifTrue:[ |
1008 | 5191 |
image mask isNil ifTrue:[ |
1949 | 5192 |
false "(Dialog confirm:'Generate mask from black ?' default:false)" ifTrue:[ |
1008 | 5193 |
maskThreshold := 0.1. |
5194 |
maskImage := Depth1Image fromImage:(image asThresholdMonochromeImage:maskThreshold). |
|
5195 |
] ifFalse:[ |
|
3122 | 5196 |
maskImage := ImageMask extent:image extent. |
1770 | 5197 |
maskImage bits:(ByteArray |
1008 | 5198 |
new:(maskImage bytesPerRow * maskImage height) |
5199 |
withAll:16rFF). |
|
5200 |
||
5201 |
"/ maskImage fillRectangle:(image bounds) withColor:(Color colorId:1). |
|
5202 |
]. |
|
5203 |
image mask:maskImage. |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5204 |
]. |
1008 | 5205 |
] ifFalse:[ |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5206 |
image mask: nil. |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5207 |
]. |
1935 | 5208 |
|
1937 | 5209 |
(newColorMap isOrderedCollection or:[newColorMap isFixedPalette not]) ifTrue:[ |
1935 | 5210 |
realColorMap := OrderedCollection new. |
5211 |
image realColorMap do:[:clr| |
|
5212 |
(realColorMap includes: clr) ifFalse: [realColorMap add: clr] |
|
5213 |
]. |
|
5214 |
newColors := realColorMap copyFrom: 1 to: (newColorMap size min: realColorMap size). |
|
5215 |
newColorMap do:[:clr| |
|
5216 |
((newColors size < newColorMap size) and: [(newColors includes: clr) not]) |
|
5217 |
ifTrue:[ |
|
5218 |
newColors add: clr |
|
5219 |
] |
|
5220 |
]. |
|
5221 |
image colorMap: newColors. |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5222 |
]. |
1446 | 5223 |
image fileName: oldFileName. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5224 |
|
1054 | 5225 |
(imageEditView image: image) notNil ifTrue:[ |
1446 | 5226 |
self fetchImageData. |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5227 |
] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5228 |
] |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5229 |
|
2174 | 5230 |
"Modified: / 20-07-2007 / 09:18:59 / cg" |
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5231 |
! |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5232 |
|
2192 | 5233 |
colorize |
5234 |
"interactive Hue editing" |
|
5235 |
||
5236 |
|bindings hueShift lightValue saturationValue originalColormap firstChange acceptChannel |
|
5237 |
shiftAction avgColorHolder avgColor shiftedColor shiftProcess readySema |
|
5238 |
originalPixels p| |
|
5239 |
||
5240 |
"/ compute the averageColor in the background (while asking user) |
|
5241 |
readySema := Semaphore new. |
|
5242 |
[ |
|
5243 |
|image| |
|
5244 |
||
5245 |
image := imageEditView image. |
|
5246 |
originalColormap := image colorMap copy. |
|
5247 |
avgColor := image averageColor. |
|
5248 |
originalPixels := image bits. |
|
5249 |
readySema signal. |
|
5250 |
] forkAt:7. |
|
5251 |
||
5252 |
acceptChannel := TriggerValue new. |
|
5253 |
avgColorHolder := avgColor asValue. |
|
5254 |
||
5255 |
firstChange := true. |
|
5256 |
||
5257 |
shiftedColor := [:clr :hShift :lFactor :sFactor | |
|
5258 |
Color |
|
5259 |
hue:((clr hue) ? 0 + hShift) |
|
3173 | 5260 |
light:((clr light * lFactor / 100) min:100) |
5261 |
saturation:(((clr saturation max:20) * sFactor / 100) min:100)]. |
|
2192 | 5262 |
|
5263 |
||
5264 |
shiftAction := |
|
5265 |
[ |
|
5266 |
|hShift lFactor sFactor| |
|
5267 |
||
5268 |
acceptChannel value:true. |
|
5269 |
||
5270 |
firstChange ifTrue:[ |
|
5271 |
imageEditView makeUndo. |
|
5272 |
firstChange := false. |
|
5273 |
]. |
|
5274 |
readySema notNil ifTrue:[readySema wait. readySema := nil]. |
|
5275 |
||
5276 |
hShift := hueShift value. |
|
5277 |
lFactor := lightValue value. |
|
5278 |
sFactor := saturationValue value. |
|
5279 |
||
5280 |
avgColorHolder value:(shiftedColor value:avgColor value:hShift value:lFactor value:sFactor). |
|
5281 |
||
5282 |
shiftProcess notNil ifTrue:[ |
|
5283 |
shiftProcess terminate. |
|
5284 |
shiftProcess waitUntilTerminated. |
|
5285 |
shiftProcess := nil. |
|
5286 |
]. |
|
5287 |
shiftProcess := |
|
5288 |
[ |
|
5289 |
[ |
|
5290 |
imageEditView image |
|
5291 |
colorMap:originalColormap copy; |
|
5292 |
bits:originalPixels copy; |
|
5293 |
release; |
|
5294 |
colorMapProcessing:[:clr | shiftedColor value:clr value:hShift value:lFactor value:sFactor]. |
|
5295 |
self updateImage. |
|
5296 |
self updateInfoLabel. |
|
5297 |
self updateImagePreView. |
|
5298 |
] ensure:[ shiftProcess := nil ]. |
|
5299 |
] forkAt:7. |
|
5300 |
]. |
|
5301 |
||
5302 |
bindings := IdentityDictionary new. |
|
5303 |
bindings at:#hueShiftAmount put:(hueShift := 0 asValue). |
|
5304 |
hueShift onChangeEvaluate:shiftAction. |
|
5305 |
||
5306 |
bindings at:#lightAmount put:(lightValue := 100 asValue). |
|
5307 |
lightValue onChangeEvaluate:shiftAction. |
|
5308 |
||
5309 |
bindings at:#saturationAmount put:(saturationValue := 100 asValue). |
|
5310 |
saturationValue onChangeEvaluate:shiftAction. |
|
5311 |
||
5312 |
bindings at:#acceptChannel put:acceptChannel. |
|
5313 |
bindings at:#hlsColor put:avgColorHolder. |
|
5314 |
||
5315 |
(self openDialogInterface:#changeHLSDialogSpec withBindings:bindings) |
|
5316 |
ifFalse:[ |
|
5317 |
firstChange ~~ true ifTrue:[ |
|
5318 |
imageEditView undo |
|
5319 |
] |
|
5320 |
]. |
|
5321 |
||
5322 |
(p := shiftProcess) notNil ifTrue:[ |
|
5323 |
p waitUntilTerminated. |
|
5324 |
]. |
|
5325 |
self updateImage. |
|
5326 |
self updateImagePreView. |
|
5327 |
||
5328 |
"Created: / 01-11-2007 / 23:27:37 / cg" |
|
5329 |
! |
|
5330 |
||
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5331 |
compressColorMap |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5332 |
"calculates a new color map for the image, using only used colors" |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5333 |
|
2893 | 5334 |
|newImage| |
5335 |
||
5336 |
newImage := self image. |
|
5337 |
newImage compressColorMap. |
|
2652 | 5338 |
|
5339 |
(imageEditView image:newImage) notNil ifTrue:[ |
|
5340 |
self fetchImageData. |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5341 |
] |
1008 | 5342 |
! |
5343 |
||
1852 | 5344 |
copyColorFromColormap |
1871 | 5345 |
imageEditView setClipboardObject:(self selectedColorOrNil) |
1852 | 5346 |
! |
5347 |
||
2054 | 5348 |
ditherToDepth |
5349 |
|depth| |
|
5350 |
||
5351 |
depth := Dialog request:'New depth ?'. |
|
5352 |
depth isEmptyOrNil ifTrue:[^ self]. |
|
5353 |
depth := Number readFrom:depth onError:nil. |
|
5354 |
depth isNil ifTrue:[^ self]. |
|
5355 |
||
5356 |
self ditherToDepth:depth |
|
5357 |
||
5358 |
"Created: / 07-07-2006 / 13:22:10 / cg" |
|
5359 |
! |
|
5360 |
||
5361 |
ditherToDepth:depth |
|
2576
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5362 |
|ditherColors newImage useStandardColors nGrey greyColorsAlready additionalGreyColors moreColors d| |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5363 |
|
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5364 |
useStandardColors := true. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5365 |
"/ useStandardColors := Dialog confirmWithCancel:'Dither in standard colors or use a new (optimized) colormap ?'. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5366 |
"/ useStandardColors isNil ifTrue:[^ self]. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5367 |
|
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5368 |
useStandardColors ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5369 |
depth = 1 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5370 |
ditherColors := Array with:(Color black) with:(Color white). |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5371 |
] ifFalse:[ depth = 2 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5372 |
ditherColors := Array |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5373 |
with:(Color black) |
3140 | 5374 |
with:(Color darkGray) |
5375 |
with:(Color lightGray) |
|
2576
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5376 |
with:(Color white). |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5377 |
] ifFalse:[ depth = 3 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5378 |
ditherColors := Color colorCubeWithRed:2 green:2 blue:2. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5379 |
] ifFalse:[ depth = 4 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5380 |
ditherColors := Color vgaColors. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5381 |
] ifFalse:[ depth = 5 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5382 |
ditherColors := Color colorCubeWithRed:4 green:4 blue:2. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5383 |
] ifFalse:[ depth = 6 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5384 |
ditherColors := Color colorCubeWithRed:4 green:4 blue:3. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5385 |
] ifFalse:[ depth <= 8 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5386 |
ditherColors := Color colorCubeWithRed:6 green:6 blue:5. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5387 |
] ifFalse:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5388 |
self error:'unsupported depth'. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5389 |
]]]]]]]. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5390 |
|
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5391 |
nGrey := (2 raisedTo:depth) - ditherColors size. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5392 |
nGrey > 0 ifTrue:[ |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5393 |
nGrey := nGrey min:128. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5394 |
greyColorsAlready := ditherColors select:[:clr | clr isGreyColor]. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5395 |
d := 1 / nGrey. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5396 |
moreColors := (1 to:nGrey-1) |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5397 |
collect:[:i | Color brightness:(d * i)] |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5398 |
thenReject:[:clr | greyColorsAlready includes:clr ]. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5399 |
|
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5400 |
ditherColors := ditherColors , moreColors. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5401 |
]. |
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5402 |
] ifFalse:[ |
3020 | 5403 |
self halt:'unhandled dither color setup'. |
2576
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5404 |
]. |
2054 | 5405 |
|
5406 |
self withExecuteCursorDo:[ |
|
2576
9e8d63aadb11
more grey values used when dithering
Claus Gittinger <cg@exept.de>
parents:
2575
diff
changeset
|
5407 |
"/ newImage := self image asDitheredImageUsing:ditherColors depth:depth. |
2054 | 5408 |
newImage := self image asDitheredImageUsing:ditherColors depth:8. |
5409 |
||
5410 |
imageEditView makeUndo. |
|
5411 |
imageEditView image:newImage. |
|
5412 |
imageEditView setModified. |
|
5413 |
self updateImage. |
|
5414 |
self updateImagePreView. |
|
5415 |
||
5416 |
self fetchImageData. |
|
5417 |
]. |
|
5418 |
||
5419 |
"Created: / 07-07-2006 / 13:20:56 / cg" |
|
2073 | 5420 |
"Modified: / 05-09-2006 / 16:13:25 / cg" |
2054 | 5421 |
! |
5422 |
||
2174 | 5423 |
doubleClickOnColor:aColorIndex |
5424 |
self editSelectedColor. |
|
5425 |
||
5426 |
"Created: / 22-07-2007 / 13:14:37 / cg" |
|
5427 |
! |
|
5428 |
||
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5429 |
editSelectedColor |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5430 |
self processSelectedColorWith:[:clr | |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5431 |
|editor| |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5432 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5433 |
editor := ColorEditDialog new. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5434 |
editor color:clr. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5435 |
editor open. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5436 |
editor accepted ifFalse:[ |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5437 |
AbortOperationRequest raise. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5438 |
]. |
2575
43e98f6d71d2
ColorEditDialog was grazy - adapted to changed protocol
Claus Gittinger <cg@exept.de>
parents:
2573
diff
changeset
|
5439 |
editor colorNameOrColor |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5440 |
] |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5441 |
! |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5442 |
|
1446 | 5443 |
fetchImageData |
1460 | 5444 |
|image| |
5445 |
||
5446 |
(image := imageEditView image) notNil ifTrue:[ |
|
5447 |
self findColorMapMode. |
|
5448 |
self updateLabelsAndHistory. |
|
5449 |
] |
|
1446 | 5450 |
! |
5451 |
||
1544 | 5452 |
inspectColor |
2573 | 5453 |
|clrIndex clr| |
5454 |
||
5455 |
self hasColormap ifFalse:[ |
|
5456 |
clr := self selectedColorOrNil |
|
5457 |
] ifTrue:[ |
|
5458 |
clrIndex := self selectedColorIndexOrNil. |
|
5459 |
clrIndex isNil ifTrue:[ |
|
5460 |
^ self |
|
5461 |
]. |
|
5462 |
clr := self image colorFromValue:clrIndex-1 |
|
1544 | 5463 |
]. |
2573 | 5464 |
clr inspect |
1544 | 5465 |
! |
5466 |
||
2651 | 5467 |
inspectColormap |
5468 |
self hasColormap ifTrue:[ |
|
5469 |
self image colorMap inspect |
|
5470 |
]. |
|
5471 |
! |
|
5472 |
||
1598 | 5473 |
makeBrighter |
5474 |
| anyChange| |
|
5475 |
||
5476 |
self withExecuteCursorDo:[ |
|
5477 |
anyChange := imageEditView makeBrighter. |
|
5478 |
anyChange ifFalse:[ |
|
5479 |
Dialog warn:'Image unchanged'. |
|
5480 |
] ifTrue:[ |
|
5481 |
self updateImage. |
|
5482 |
] |
|
5483 |
]. |
|
5484 |
! |
|
5485 |
||
5486 |
makeDarker |
|
5487 |
| anyChange| |
|
5488 |
||
5489 |
self withExecuteCursorDo:[ |
|
5490 |
anyChange := imageEditView makeDarker. |
|
5491 |
anyChange ifFalse:[ |
|
5492 |
Dialog warn:'Image unchanged'. |
|
5493 |
] ifTrue:[ |
|
5494 |
self updateImage. |
|
5495 |
] |
|
5496 |
]. |
|
5497 |
! |
|
5498 |
||
1926 | 5499 |
makeGrayScaleImage |
1598 | 5500 |
|anyChange| |
1436 | 5501 |
|
5502 |
self withExecuteCursorDo:[ |
|
1926 | 5503 |
anyChange := imageEditView makeGrayScaleImage. |
1436 | 5504 |
anyChange ifFalse:[ |
5505 |
Dialog warn:'Image unchanged'. |
|
5506 |
] ifTrue:[ |
|
1598 | 5507 |
self updateImage. |
5508 |
] |
|
5509 |
]. |
|
5510 |
! |
|
5511 |
||
5512 |
makeInverse |
|
5513 |
| anyChange| |
|
5514 |
||
5515 |
self withExecuteCursorDo:[ |
|
5516 |
anyChange := imageEditView makeInverse. |
|
5517 |
anyChange ifFalse:[ |
|
5518 |
Dialog warn:'Image unchanged'. |
|
5519 |
] ifTrue:[ |
|
5520 |
self updateImage. |
|
1436 | 5521 |
] |
5522 |
]. |
|
5523 |
! |
|
5524 |
||
1446 | 5525 |
makeSelectedColorBrighter |
1682 | 5526 |
self processSelectedColorWith:[:clr | clr lightened] |
1446 | 5527 |
! |
5528 |
||
5529 |
makeSelectedColorDarker |
|
1682 | 5530 |
self processSelectedColorWith:[:clr | clr darkened] |
1446 | 5531 |
! |
5532 |
||
1884 | 5533 |
makeSelectedColorGray |
5534 |
self processSelectedColorWith:[:clr | Color brightness:(clr brightness)] |
|
5535 |
! |
|
5536 |
||
2826 | 5537 |
makeSlightlyBrighter |
5538 |
| anyChange| |
|
5539 |
||
5540 |
self withExecuteCursorDo:[ |
|
5541 |
anyChange := imageEditView makeSlightlyBrighter. |
|
5542 |
anyChange ifFalse:[ |
|
5543 |
Dialog warn:'Image unchanged'. |
|
5544 |
] ifTrue:[ |
|
5545 |
self updateImage. |
|
5546 |
] |
|
5547 |
]. |
|
5548 |
||
5549 |
"Created: / 24-11-2010 / 11:06:11 / cg" |
|
5550 |
! |
|
5551 |
||
5552 |
makeSlightlyDarker |
|
5553 |
| anyChange| |
|
5554 |
||
5555 |
self withExecuteCursorDo:[ |
|
5556 |
anyChange := imageEditView makeSlightlyDarker. |
|
5557 |
anyChange ifFalse:[ |
|
5558 |
Dialog warn:'Image unchanged'. |
|
5559 |
] ifTrue:[ |
|
5560 |
self updateImage. |
|
5561 |
] |
|
5562 |
]. |
|
5563 |
||
5564 |
"Created: / 24-11-2010 / 11:06:23 / cg" |
|
5565 |
! |
|
5566 |
||
2652 | 5567 |
menu_clearColormapEntry0AndMaskedPixels |
5568 |
"ensure that there is a colorMap entry with 0/0/0 at position |
|
5569 |
0 and then clear all masked pixels (to pixelValue 0)" |
|
5570 |
||
5571 |
imageEditView makeUndo. |
|
5572 |
self withExecuteCursorDo:[ |
|
5573 |
self clearColormapEntry0AndMaskedPixels |
|
5574 |
] |
|
5575 |
! |
|
5576 |
||
5577 |
menu_clearMaskedPixels |
|
5578 |
"clear all masked pixels (to pixelValue 0)" |
|
5579 |
||
5580 |
imageEditView makeUndo. |
|
5581 |
||
5582 |
self withExecuteCursorDo:[ |
|
5583 |
self clearMaskedPixels |
|
5584 |
] |
|
5585 |
! |
|
5586 |
||
5587 |
menu_compressColorMap |
|
5588 |
"calculates a new color map for the image, using only used colors" |
|
5589 |
||
2893 | 5590 |
|depth oldImage usedColors colorMap| |
2652 | 5591 |
|
5592 |
oldImage := self image. |
|
5593 |
||
5594 |
oldImage photometric ~~ #palette ifTrue:[ |
|
5595 |
self information:'Compress colorMap: Only palette images have colormaps.'. |
|
1852 | 5596 |
^ self |
5597 |
]. |
|
2893 | 5598 |
depth := oldImage depth. |
3103 | 5599 |
colorMap := oldImage colorMap asArray. |
2652 | 5600 |
usedColors := oldImage realUsedColors. |
2893 | 5601 |
usedColors size == colorMap size ifTrue:[ |
2652 | 5602 |
self information:'Compress colorMap: Colormap already compressed - no compression.'. |
5603 |
^ self |
|
5604 |
]. |
|
5605 |
||
5606 |
imageEditView makeUndo. |
|
5607 |
||
5608 |
self withExecuteCursorDo:[ |
|
5609 |
self compressColorMap |
|
1852 | 5610 |
] |
5611 |
! |
|
5612 |
||
2652 | 5613 |
menu_copyMask |
5614 |
|mask| |
|
5615 |
||
5616 |
mask := self image mask. |
|
5617 |
MaskClipboard := mask subImageIn: (0@0 extent:mask extent). |
|
5618 |
! |
|
5619 |
||
5620 |
menu_pasteMask |
|
1480 | 5621 |
|img mask| |
5622 |
||
5623 |
imageEditView makeUndo. |
|
5624 |
||
5625 |
img := self image. |
|
5626 |
mask := img mask. |
|
5627 |
||
5628 |
mask |
|
5629 |
copyFrom:MaskClipboard |
|
5630 |
x:0 y:0 |
|
5631 |
toX:0 y:0 |
|
5632 |
width:(mask width min:MaskClipboard width) |
|
5633 |
height:(mask height min:MaskClipboard height). |
|
5634 |
img mask:mask. |
|
5635 |
(imageEditView image:img copy) notNil ifTrue:[ |
|
5636 |
self fetchImageData. |
|
5637 |
] |
|
5638 |
! |
|
5639 |
||
2652 | 5640 |
menu_sortColorMap |
5641 |
"calculates a new color map for the image, sorting colors" |
|
5642 |
||
5643 |
self menu_sortColorMapWith:self sortBlockForColors |
|
5644 |
! |
|
5645 |
||
5646 |
menu_sortColorMapWith:sortBlock |
|
5647 |
"calculates a new color map for the image, sorting colors" |
|
5648 |
||
5649 |
self image photometric ~~ #palette ifTrue:[ |
|
5650 |
self information:'Compress colorMap: Only palette images have colormaps.'. |
|
5651 |
^ self |
|
5652 |
]. |
|
5653 |
||
5654 |
imageEditView makeUndo. |
|
5655 |
||
5656 |
self withExecuteCursorDo:[ |
|
5657 |
self sortColorMapWith:sortBlock |
|
5658 |
] |
|
5659 |
||
5660 |
"Modified: / 15.9.1998 / 17:53:32 / cg" |
|
5661 |
"Created: / 30.9.1998 / 23:51:23 / cg" |
|
5662 |
! |
|
5663 |
||
5664 |
pasteColorIntoColormap |
|
5665 |
|copyBufferColor| |
|
5666 |
||
5667 |
copyBufferColor := imageEditView getClipboardObject. |
|
5668 |
copyBufferColor isColor ifFalse:[ |
|
5669 |
UserPreferences current beepInEditor ifTrue:[ |
|
5670 |
self window beep. |
|
5671 |
]. |
|
5672 |
^ self |
|
5673 |
]. |
|
5674 |
||
5675 |
self processSelectedColorWith:[:clr | |
|
5676 |
copyBufferColor |
|
5677 |
] |
|
5678 |
! |
|
5679 |
||
1682 | 5680 |
pickAndAddColorToColormap |
5681 |
self addColorToColormap:(Color fromUser) |
|
5682 |
! |
|
5683 |
||
1933 | 5684 |
pickAndPasteColor |
5685 |
self pickColor. |
|
5686 |
self pasteColorIntoColormap. |
|
5687 |
! |
|
5688 |
||
1852 | 5689 |
pickColor |
1871 | 5690 |
imageEditView setClipboardObject:(Color fromUser) |
1852 | 5691 |
! |
5692 |
||
1682 | 5693 |
processSelectedColorWith:aBlock |
1852 | 5694 |
"undoable color processing: the selected color will be replaced by the |
5695 |
value of aBlock" |
|
5696 |
||
5697 |
|img cMap modifiedColormap oldColor newImage selectedColorIndex oldSelection newColor| |
|
1682 | 5698 |
|
5699 |
selectedColorIndex := self selectedColorIndexOrNil. |
|
5700 |
selectedColorIndex isNil ifTrue:[^ self]. |
|
5701 |
||
5702 |
img := self image. |
|
5703 |
cMap := img colorMap. |
|
5704 |
cMap isNil ifTrue:[ |
|
1916 | 5705 |
self warn:(resources stringWithCRs:'Image has no colormap.\Please change the colorMap mode first.'). |
1682 | 5706 |
^ self |
5707 |
]. |
|
1852 | 5708 |
|
5709 |
oldColor := cMap at:selectedColorIndex. |
|
1682 | 5710 |
imageEditView makeUndo. |
5711 |
||
2992 | 5712 |
modifiedColormap := cMap asNewArray. |
1852 | 5713 |
|
5714 |
newColor := aBlock value:oldColor. |
|
1859 | 5715 |
modifiedColormap at:selectedColorIndex put:newColor. |
1682 | 5716 |
|
5717 |
newImage := img species new |
|
5718 |
width:img width |
|
5719 |
height:img height |
|
1843 | 5720 |
depth:img depth |
1682 | 5721 |
fromArray:img bits. |
5722 |
||
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5723 |
newImage colorMap:modifiedColormap. |
1682 | 5724 |
newImage fileName:img fileName. |
5725 |
newImage mask:(img mask copy). |
|
5726 |
||
5727 |
oldSelection := self selectionOfColor value. |
|
5728 |
||
5729 |
(imageEditView image:newImage) notNil ifTrue:[ |
|
5730 |
self fetchImageData. |
|
5731 |
]. |
|
5732 |
self selectionOfColor value:oldSelection. |
|
5733 |
||
5734 |
"Created: / 12.3.1999 / 00:20:28 / cg" |
|
5735 |
"Modified: / 16.3.1999 / 21:57:26 / cg" |
|
5736 |
! |
|
5737 |
||
1124 | 5738 |
reduceNumberOfColors |
1727
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5739 |
|s n anyChange img usedColors| |
1124 | 5740 |
|
2817 | 5741 |
s := Dialog request:'Number of color bits to strip (1-7) ?' initialAnswer:3. |
1435 | 5742 |
s size == 0 ifTrue:[^ self]. |
1934 | 5743 |
|
1124 | 5744 |
n := Integer readFrom:s onError:0. |
5745 |
(n between:1 and:7) ifFalse:[ |
|
5746 |
Dialog warn:'Image unchanged'. |
|
5747 |
^ self |
|
5748 |
]. |
|
5749 |
||
5750 |
self withExecuteCursorDo:[ |
|
5751 |
anyChange := imageEditView reduceColorResolutionBy:n. |
|
5752 |
anyChange ifFalse:[ |
|
5753 |
Dialog warn:'Image unchanged'. |
|
5754 |
] ifTrue:[ |
|
5755 |
img := imageEditView image. |
|
5756 |
imageEditView image:img. |
|
1446 | 5757 |
|
5758 |
self fetchImageData. |
|
1727
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5759 |
usedColors := img usedColorsMax:10000. |
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5760 |
usedColors size == 10000 ifTrue:[ |
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5761 |
Dialog information:('>= ' , usedColors size printString , ' colors used.') |
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5762 |
] ifFalse:[ |
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5763 |
Dialog information:(usedColors size printString , ' colors used.') |
8c626d784494
color reduction algorithm fixed
Claus Gittinger <cg@exept.de>
parents:
1716
diff
changeset
|
5764 |
] |
1124 | 5765 |
] |
5766 |
]. |
|
2817 | 5767 |
|
5768 |
"Modified: / 29-10-2010 / 18:08:01 / cg" |
|
1124 | 5769 |
! |
5770 |
||
1930 | 5771 |
reduceNumberOfColors2 |
1938 | 5772 |
|s rndR rndG rndB usedColors image newImage| |
5773 |
||
5774 |
s := Dialog request:'Rounding Interval red (2..) ?' initialAnswer:4. |
|
1934 | 5775 |
s size == 0 ifTrue:[^ self]. |
1938 | 5776 |
rndR := Integer readFrom:s onError:0. |
1939 | 5777 |
|
1938 | 5778 |
s := Dialog request:'Rounding Interval green (2..) ?' initialAnswer:2. |
5779 |
s size == 0 ifTrue:[^ self]. |
|
5780 |
rndG := Integer readFrom:s onError:0. |
|
1939 | 5781 |
|
1938 | 5782 |
s := Dialog request:'Rounding Interval blue (2..) ?' initialAnswer:10. |
5783 |
s size == 0 ifTrue:[^ self]. |
|
5784 |
rndB := Integer readFrom:s onError:0. |
|
1939 | 5785 |
|
5786 |
((rndR > 1) or:[(rndG > 1) or:[(rndB > 1)]]) ifFalse:[ |
|
1930 | 5787 |
Dialog warn:'Image unchanged'. |
5788 |
^ self |
|
5789 |
]. |
|
5790 |
||
5791 |
self withExecuteCursorDo:[ |
|
1934 | 5792 |
image := self image. |
2054 | 5793 |
"/ usedColors := image usedColorsMax:4096. |
1934 | 5794 |
imageEditView makeUndo. |
5795 |
||
5796 |
newImage := image copy. |
|
2260 | 5797 |
newImage photometric == #palette ifTrue:[ |
5798 |
newImage colorMap:(OrderedCollection new). |
|
5799 |
]. |
|
5800 |
||
1934 | 5801 |
image |
5802 |
colorsFromX:0 y:0 toX:(image width-1) y:(image height-1) |
|
5803 |
do:[:x :y :clr | |
|
5804 |
|r g b nr ng nb newClr| |
|
5805 |
||
5806 |
r := clr redByte. |
|
5807 |
g := clr greenByte. |
|
5808 |
b := clr blueByte. |
|
1938 | 5809 |
nr := (r roundTo:rndR) min:255. |
5810 |
ng := (g roundTo:rndG) min:255. |
|
5811 |
nb := (b roundTo:rndB) min:255. |
|
1934 | 5812 |
|
5813 |
newClr := Color redByte:nr greenByte:ng blueByte:nb. |
|
2260 | 5814 |
newImage photometric == #palette ifTrue:[ |
5815 |
(newImage colorMap includes:newClr) ifFalse:[ |
|
5816 |
newImage colorMap add:newClr |
|
5817 |
]. |
|
5818 |
]. |
|
1934 | 5819 |
newImage colorAtX:x y:y put:newClr |
5820 |
]. |
|
5821 |
||
5822 |
imageEditView image:newImage. |
|
5823 |
imageEditView setModified. |
|
5824 |
self updateImage. |
|
5825 |
self updateImagePreView. |
|
5826 |
||
5827 |
self fetchImageData. |
|
5828 |
usedColors := newImage usedColorsMax:10000. |
|
5829 |
usedColors size == 10000 ifTrue:[ |
|
5830 |
Dialog information:('>= ' , usedColors size printString , ' colors used.') |
|
5831 |
] ifFalse:[ |
|
5832 |
Dialog information:(usedColors size printString , ' colors used.') |
|
5833 |
] |
|
1930 | 5834 |
]. |
2054 | 5835 |
|
5836 |
"Modified: / 07-07-2006 / 13:10:42 / cg" |
|
1930 | 5837 |
! |
5838 |
||
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5839 |
selectColor:aColor |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5840 |
|idx img cMap| |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5841 |
|
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5842 |
aColor isNil ifTrue:[ |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5843 |
idx := nil. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5844 |
] ifFalse:[ |
2791 | 5845 |
img := self image. |
5846 |
img notNil ifTrue: [ |
|
5847 |
aColor == Color noColor ifTrue:[ |
|
5848 |
(img mask notNil) ifTrue:[ |
|
5849 |
idx := 1. |
|
5850 |
] |
|
5851 |
] ifFalse:[ |
|
2447 | 5852 |
(cMap := self listOfColors) notNil ifTrue:[ |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5853 |
idx := cMap indexOf:aColor ifAbsent:nil. |
2447 | 5854 |
]. |
5855 |
idx isNil ifTrue:[ |
|
5856 |
"/ should not happen... |
|
5857 |
(cMap := img colorMap) notNil ifTrue:[ |
|
5858 |
idx := cMap indexOf:aColor ifAbsent:nil. |
|
5859 |
idx notNil ifTrue:[ |
|
5860 |
img mask notNil ifTrue:[ |
|
5861 |
idx := idx + 1. |
|
5862 |
]. |
|
5863 |
] |
|
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5864 |
]. |
2447 | 5865 |
]. |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5866 |
]. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5867 |
]. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5868 |
]. |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5869 |
self selectionOfColor value:idx. |
2790 | 5870 |
|
2791 | 5871 |
"Modified: / 02-07-2010 / 12:06:07 / cg" |
2446
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5872 |
! |
862717a7ca0f
color selection when undoing
Claus Gittinger <cg@exept.de>
parents:
2438
diff
changeset
|
5873 |
|
1682 | 5874 |
selectedColorIndexOrNil |
2651 | 5875 |
|img clrIndex| |
1682 | 5876 |
|
5877 |
img := self image. |
|
5878 |
img isNil ifTrue:[ |
|
2764 | 5879 |
"/ self warn:'No Image.'. |
1682 | 5880 |
^ nil |
5881 |
]. |
|
5882 |
clrIndex := self selectionOfColor value. |
|
1896 | 5883 |
self hasMask "img mask notNil" ifTrue: [ |
2449
5ef668d71314
changed #selectedColorIndexOrNil
Claus Gittinger <cg@exept.de>
parents:
2447
diff
changeset
|
5884 |
(clrIndex isInteger and:[clrIndex > 1]) ifTrue:[ |
5ef668d71314
changed #selectedColorIndexOrNil
Claus Gittinger <cg@exept.de>
parents:
2447
diff
changeset
|
5885 |
^ clrIndex - 1 |
5ef668d71314
changed #selectedColorIndexOrNil
Claus Gittinger <cg@exept.de>
parents:
2447
diff
changeset
|
5886 |
]. |
5ef668d71314
changed #selectedColorIndexOrNil
Claus Gittinger <cg@exept.de>
parents:
2447
diff
changeset
|
5887 |
^ nil |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
5888 |
]. |
1682 | 5889 |
^ clrIndex |
5890 |
! |
|
5891 |
||
1852 | 5892 |
selectedColorOrNil |
2447 | 5893 |
|cmapIndex img cMap colorList| |
1896 | 5894 |
|
5895 |
cmapIndex := self selectedColorIndexOrNil. |
|
1900 | 5896 |
cmapIndex isNil ifTrue:[^ nil]. |
2556 | 5897 |
cmapIndex == 0 ifTrue:[^ nil]. |
1852 | 5898 |
|
5899 |
img := self image. |
|
5900 |
cMap := img colorMap. |
|
5901 |
cMap isNil ifTrue:[ |
|
2447 | 5902 |
"/ self warn:(resources stringWithCRs:'Image has no colormap.\Please change the colorMap mode first.'). |
5903 |
colorList := self listOfColors. |
|
5904 |
colorList notNil ifTrue:[ |
|
5905 |
^ colorList at:cmapIndex ifAbsent:nil |
|
5906 |
]. |
|
1900 | 5907 |
^ nil |
1852 | 5908 |
]. |
1896 | 5909 |
^ cMap at:cmapIndex. |
1852 | 5910 |
! |
5911 |
||
1008 | 5912 |
sortColorMap |
5913 |
"calculates a new color map for the image, sorting colors" |
|
5914 |
||
2652 | 5915 |
self sortColorMapWith:self sortBlockForColors |
1939 | 5916 |
! |
5917 |
||
5918 |
sortColorMapWith:sortBlock |
|
5919 |
"calculates a new color map for the image, sorting colors" |
|
5920 |
||
1008 | 5921 |
|depth newColorMap newImage oldImage usedColors oldToNew oldBits newBits tmpBits| |
5922 |
||
5923 |
oldImage := self image. |
|
5924 |
depth := oldImage depth. |
|
5925 |
||
2652 | 5926 |
usedColors := oldImage realColorMap. |
5927 |
||
5928 |
||
5929 |
"/ translation table |
|
5930 |
oldToNew := ByteArray new:(1 bitShift:depth). |
|
5931 |
newColorMap := usedColors asArray. |
|
5932 |
newColorMap sort:sortBlock. |
|
5933 |
||
5934 |
oldImage colorMap asArray keysAndValuesDo:[:oldIdx :clr | |
|
5935 |
|newPixel| |
|
5936 |
||
5937 |
(usedColors includes:clr) ifTrue:[ |
|
5938 |
newPixel := newColorMap indexOf:clr. |
|
5939 |
oldToNew at:oldIdx put:newPixel-1. |
|
5940 |
] |
|
1008 | 5941 |
]. |
5942 |
||
2652 | 5943 |
oldBits := oldImage bits. |
5944 |
newBits := ByteArray new:(oldBits size). |
|
5945 |
depth ~~ 8 ifTrue:[ |
|
5946 |
"/ expand/compress can only handle 8bits |
|
5947 |
tmpBits := ByteArray uninitializedNew:(oldImage width*oldImage height). |
|
5948 |
oldBits |
|
5949 |
expandPixels:depth |
|
5950 |
width:oldImage width |
|
5951 |
height:oldImage height |
|
5952 |
into:tmpBits |
|
5953 |
mapping:oldToNew. |
|
5954 |
tmpBits |
|
5955 |
compressPixels:depth |
|
5956 |
width:oldImage width |
|
5957 |
height:oldImage height |
|
5958 |
into:newBits |
|
5959 |
mapping:nil |
|
5960 |
] ifFalse:[ |
|
5961 |
oldBits |
|
5962 |
expandPixels:depth |
|
5963 |
width:oldImage width |
|
5964 |
height:oldImage height |
|
5965 |
into:newBits |
|
5966 |
mapping:oldToNew. |
|
5967 |
]. |
|
5968 |
||
5969 |
newImage := oldImage species new |
|
5970 |
width:oldImage width |
|
5971 |
height:oldImage height |
|
5972 |
depth:depth |
|
5973 |
fromArray:newBits. |
|
5974 |
||
5975 |
newImage colorMap:newColorMap. |
|
5976 |
newImage fileName:oldImage fileName. |
|
5977 |
newImage mask:(oldImage mask copy). |
|
5978 |
||
5979 |
(imageEditView image:newImage) notNil ifTrue:[ |
|
5980 |
self fetchImageData. |
|
1008 | 5981 |
] |
5982 |
||
5983 |
"Modified: / 15.9.1998 / 17:53:32 / cg" |
|
5984 |
"Created: / 30.9.1998 / 23:51:23 / cg" |
|
919
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5985 |
! ! |
4e50c3164625
more options (preserving colorMap) when changing the colorMapMode;
Claus Gittinger <cg@exept.de>
parents:
917
diff
changeset
|
5986 |
|
1715 | 5987 |
!ImageEditor methodsFor:'user actions-editing'! |
400 | 5988 |
|
2354
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5989 |
do3DProjection |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5990 |
|box dx1 dx2 image| |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5991 |
|
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5992 |
image := imageEditView image. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5993 |
|
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5994 |
box := EnterBox new. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5995 |
box title:(resources string:'dX1 (0 < dx < 0.5):'). |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5996 |
box okText:(resources string:'OK'). |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5997 |
box abortText:(resources string:'Cancel'). |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5998 |
box initialText:'0.1'. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
5999 |
box showAtPointer. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6000 |
|
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6001 |
(box accepted |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6002 |
and: [(dx1 := Number readFrom:(box contents) onError:nil) notNil]) |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6003 |
ifTrue:[ |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6004 |
box title:(resources string:'dX2 (0 < dx < 0.5):'). |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6005 |
box initialText:(dx1 printString). |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6006 |
box showAtPointer. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6007 |
(box accepted |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6008 |
and: [(dx2 := Number readFrom:(box contents) onError:nil) notNil]) |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6009 |
ifTrue:[ |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6010 |
imageEditView threeDProjection:dx1 and:dx2. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6011 |
] |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6012 |
]. |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6013 |
|
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6014 |
self updateInfoLabel |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6015 |
! |
15be12f5e320
3d projection (first attempt)
Claus Gittinger <cg@exept.de>
parents:
2339
diff
changeset
|
6016 |
|
1882 | 6017 |
doBrightenImage |
6018 |
imageEditView brightenImage. |
|
6019 |
self listOfColors removeAll. |
|
6020 |
self findColorMapMode. |
|
2585 | 6021 |
"/ imageEditView removelastUndo |
1882 | 6022 |
! |
6023 |
||
767 | 6024 |
doBrowseClass |
6025 |
"opens a System Browser on the resourceClass and the resourceSelector" |
|
400 | 6026 |
|
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6027 |
|cls| |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6028 |
|
1965
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
6029 |
cls := imageEditView resourceClass. |
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6030 |
cls isNil ifTrue:[^ self warn:'No Class specified']. |
1965
1d2b7893ae89
some code cleanup (resourceClass was actually its name)
Claus Gittinger <cg@exept.de>
parents:
1962
diff
changeset
|
6031 |
|
1488 | 6032 |
UserPreferences systemBrowserClass |
933
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6033 |
openInClass:cls class |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6034 |
selector:(imageEditView resourceSelector) |
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6035 |
|
f090206aadff
disable some menu items if no class/selector is defined
Claus Gittinger <cg@exept.de>
parents:
932
diff
changeset
|
6036 |
"Modified: / 31.7.1998 / 02:01:15 / cg" |
400 | 6037 |
! |
6038 |
||
1703 | 6039 |
doCopyImageToClipboard |
6040 |
imageEditView copyImageToClipboard. |
|
6041 |
! |
|
6042 |
||
1045 | 6043 |
doCropAll |
986 | 6044 |
"find all borders and cut them off" |
6045 |
||
1045 | 6046 |
imageEditView cropLeft:true right:true top:true bottom:true. |
986 | 6047 |
self updateInfoLabel |
6048 |
||
6049 |
"Modified: / 7.9.1998 / 14:26:23 / cg" |
|
6050 |
"Created: / 7.9.1998 / 16:33:43 / cg" |
|
6051 |
! |
|
6052 |
||
1045 | 6053 |
doCropBottom |
986 | 6054 |
"find a bottom border and cut it off" |
6055 |
||
1045 | 6056 |
imageEditView cropLeft:false right:false top:false bottom:true. |
986 | 6057 |
self updateInfoLabel |
6058 |
||
6059 |
"Created: / 7.9.1998 / 13:00:20 / cg" |
|
6060 |
"Modified: / 7.9.1998 / 14:26:23 / cg" |
|
6061 |
! |
|
6062 |
||
1045 | 6063 |
doCropLeft |
986 | 6064 |
"find a left border and cut it off" |
6065 |
||
1045 | 6066 |
imageEditView cropLeft:true right:false top:false bottom:false. |
986 | 6067 |
self updateInfoLabel |
6068 |
||
6069 |
"Created: / 7.9.1998 / 13:00:14 / cg" |
|
6070 |
"Modified: / 7.9.1998 / 14:26:34 / cg" |
|
6071 |
! |
|
6072 |
||
1045 | 6073 |
doCropManual |
986 | 6074 |
"let user specify borders and cut them off" |
6075 |
||
1502 | 6076 |
|bindings left top right bottom img firstChange gropAction acceptChannel| |
6077 |
||
6078 |
acceptChannel := TriggerValue new. |
|
1490 | 6079 |
|
6080 |
firstChange := true. |
|
6081 |
||
1502 | 6082 |
gropAction := |
6083 |
[:lV :rV :tV :bV | |l r t b| |
|
6084 |
acceptChannel value:true. |
|
6085 |
||
6086 |
l := lV value. |
|
6087 |
r := rV value. |
|
6088 |
t := tV value. |
|
6089 |
b := bV value. |
|
6090 |
(l + r + t + b) == 0 ifTrue:[ |
|
2520 | 6091 |
UserPreferences current beepInEditor ifTrue:[ |
6092 |
self window beep |
|
6093 |
] |
|
1502 | 6094 |
] ifFalse:[ |
6095 |
img := imageEditView image. |
|
6096 |
firstChange ifTrue:[ |
|
6097 |
imageEditView makeUndo. |
|
6098 |
firstChange := false. |
|
6099 |
]. |
|
6100 |
imageEditView |
|
6101 |
makeSubImageX:l y:t |
|
6102 |
width:(img width - l - r) |
|
6103 |
height:(img height - t - b). |
|
2546 | 6104 |
|
6105 |
self updateImagePreView. |
|
1502 | 6106 |
self updateInfoLabel |
6107 |
]. |
|
1490 | 6108 |
]. |
986 | 6109 |
|
6110 |
bindings := IdentityDictionary new. |
|
1507 | 6111 |
bindings at:#left put:(left := 1 asValue). |
6112 |
bindings at:#right put:(right := 1 asValue). |
|
6113 |
bindings at:#top put:(top := 1 asValue). |
|
6114 |
bindings at:#bottom put:(bottom := 1 asValue). |
|
1502 | 6115 |
bindings at:#acceptChannel put:acceptChannel. |
6116 |
||
6117 |
bindings at:#gropLeftNow put:[ gropAction value:left value:0 value:0 value:0 ]. |
|
6118 |
bindings at:#gropRightNow put:[ gropAction value:0 value:right value:0 value:0 ]. |
|
6119 |
bindings at:#gropTopNow put:[ gropAction value:0 value:0 value:top value:0 ]. |
|
6120 |
bindings at:#gropBottomNow put:[ gropAction value:0 value:0 value:0 value:bottom ]. |
|
6121 |
||
6122 |
bindings at:#applyAction put:[ gropAction value:left value:right value:top value:bottom ]. |
|
1490 | 6123 |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
6124 |
(self openDialogInterface:#cropDialogSpec withBindings:bindings) |
1507 | 6125 |
ifFalse:[ |
6126 |
firstChange ~~ true ifTrue:[ |
|
1558 | 6127 |
imageEditView undo. |
6128 |
self updateImagePreView. |
|
1507 | 6129 |
] |
6130 |
]. |
|
986 | 6131 |
|
6132 |
"Created: / 7.9.1998 / 18:16:07 / cg" |
|
6133 |
"Modified: / 7.9.1998 / 18:20:42 / cg" |
|
6134 |
! |
|
6135 |
||
1045 | 6136 |
doCropRight |
986 | 6137 |
"find a right border and cut it off" |
6138 |
||
1045 | 6139 |
imageEditView cropLeft:false right:true top:false bottom:false. |
986 | 6140 |
self updateInfoLabel |
6141 |
||
6142 |
"Created: / 7.9.1998 / 13:00:14 / cg" |
|
6143 |
"Modified: / 7.9.1998 / 14:26:44 / cg" |
|
6144 |
! |
|
6145 |
||
1045 | 6146 |
doCropTop |
986 | 6147 |
"find a top border and cut it off" |
6148 |
||
1045 | 6149 |
imageEditView cropLeft:false right:false top:true bottom:false. |
986 | 6150 |
self updateInfoLabel |
6151 |
||
6152 |
"Created: / 7.9.1998 / 13:00:19 / cg" |
|
6153 |
"Modified: / 7.9.1998 / 14:26:52 / cg" |
|
6154 |
! |
|
6155 |
||
1882 | 6156 |
doDarkenImage |
6157 |
imageEditView darkenImage. |
|
6158 |
self listOfColors removeAll. |
|
6159 |
self findColorMapMode. |
|
2585 | 6160 |
"/ imageEditView removelastUndo |
1882 | 6161 |
! |
6162 |
||
1433 | 6163 |
doEditMask |
6164 |
self image mask edit |
|
6165 |
! |
|
6166 |
||
767 | 6167 |
doFlipHorizontal |
6168 |
"flips horizontally current image" |
|
400 | 6169 |
|
911 | 6170 |
imageEditView flipHorizontal |
400 | 6171 |
! |
6172 |
||
767 | 6173 |
doFlipVertical |
6174 |
"flips vertically current image" |
|
400 | 6175 |
|
911 | 6176 |
imageEditView flipVertical |
400 | 6177 |
! |
6178 |
||
2196 | 6179 |
doInsertTextFromUser |
3157 | 6180 |
|text tempForm tempImage maskImage font w h paintColor| |
2196 | 6181 |
|
2424 | 6182 |
text := Dialog request:'Text to be inserted (placed as bitmap into clipboard for paste):'. |
6183 |
text isEmptyOrNil ifTrue:[^ self ]. |
|
2196 | 6184 |
|
6185 |
font := Font family:'arial' size:20. |
|
6186 |
font := font onDevice:Screen current. |
|
6187 |
w := font widthOf:text. |
|
6188 |
h := font heightOf:text. |
|
6189 |
||
6190 |
tempForm := Form extent:(w@h) depth:1 onDevice:(Screen current). |
|
6191 |
tempForm clear. |
|
6192 |
tempForm font:font. |
|
6193 |
tempForm paint:(Color colorId:1). |
|
6194 |
tempForm displayString:text at:(0@font ascent). |
|
6195 |
||
6196 |
tempImage := tempForm asImage. |
|
6197 |
maskImage := tempForm asImage. |
|
3157 | 6198 |
|
6199 |
paintColor := imageEditView selectedColor. |
|
6200 |
paintColor colorId == 0 ifTrue:[ |
|
6201 |
paintColor := Color black |
|
6202 |
]. |
|
2196 | 6203 |
tempImage |
6204 |
photometric:#palette; |
|
3157 | 6205 |
colorMap:(Array |
6206 |
with:Color white |
|
6207 |
with:paintColor); |
|
2196 | 6208 |
mask:maskImage. |
6209 |
||
6210 |
ImageEditView copyImageToClipboard:tempImage. |
|
6211 |
self editMode value:#paste. |
|
6212 |
||
6213 |
"Modified: / 11-11-2007 / 12:32:55 / cg" |
|
6214 |
! |
|
6215 |
||
1896 | 6216 |
doInspectImage |
6217 |
"opens a System Browser on the resourceClass and the resourceSelector" |
|
6218 |
||
6219 |
self image inspect |
|
6220 |
! |
|
6221 |
||
767 | 6222 |
doMagnifyDown |
1987 | 6223 |
"magnifies the current image one step down" |
400 | 6224 |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6225 |
|magHolder mag| |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6226 |
|
1987 | 6227 |
magHolder := self magnificationHolder. |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6228 |
(mag := magHolder value) > 1 ifTrue: [ |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6229 |
magHolder value: mag - 1 |
400 | 6230 |
] |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6231 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6232 |
"Modified: / 26.7.1998 / 20:24:08 / cg" |
400 | 6233 |
! |
6234 |
||
767 | 6235 |
doMagnifyImage |
1479 | 6236 |
"magnifies the current image to a new size" |
400 | 6237 |
|
1353 | 6238 |
|box newSize image| |
6239 |
||
6240 |
image := imageEditView image. |
|
6241 |
||
6242 |
box := EnterBox new. |
|
6243 |
box title:(resources string:'Images new size:'). |
|
6244 |
box okText:(resources string:'OK'). |
|
6245 |
box abortText:(resources string:'Cancel'). |
|
6246 |
box initialText:image extent printString. |
|
6247 |
box showAtPointer. |
|
6248 |
(box accepted |
|
1960 | 6249 |
and: [(newSize := self pointFromString:(box contents)) notNil]) |
1353 | 6250 |
ifTrue:[ |
1479 | 6251 |
newSize isPoint ifFalse:[ |
6252 |
self warn:'please enter the new size as ''x @ y''.'. |
|
6253 |
^ self. |
|
6254 |
]. |
|
6255 |
imageEditView magnifyImageTo:newSize. |
|
6256 |
]. |
|
6257 |
||
6258 |
self updateInfoLabel |
|
6259 |
! |
|
6260 |
||
6261 |
doMagnifyImageBy |
|
6262 |
"magnifies the current image (by a scale)" |
|
6263 |
||
2260 | 6264 |
|box oldSize newSize scaleString scale image| |
1479 | 6265 |
|
6266 |
image := imageEditView image. |
|
6267 |
oldSize := image extent. |
|
6268 |
||
2260 | 6269 |
scaleString := Dialog |
6270 |
request:(resources string:'Scale factor (<1 to shrink; >1 to magnify):') |
|
6271 |
initialAnswer:'1' |
|
6272 |
list:#('0.25' '0.5' '2' '4'). |
|
6273 |
||
6274 |
"/ box := EnterBox new. |
|
6275 |
"/ box title:(resources string:'Scale factor (<1 to shrink; >1 to magnify):'). |
|
6276 |
"/ box okText:(resources string:'OK'). |
|
6277 |
"/ box abortText:(resources string:'Cancel'). |
|
6278 |
"/ box initialText:1 printString. |
|
6279 |
"/ box showAtPointer. |
|
6280 |
"/ box accepted ifTrue:[ |
|
6281 |
"/ scaleString := box contents. |
|
6282 |
"/ ]. |
|
6283 |
||
6284 |
scale := Object readFromString:scaleString onError:nil. |
|
6285 |
||
6286 |
scale notNil ifTrue:[ |
|
1479 | 6287 |
scale isNumber ifFalse:[ |
6288 |
self warn:'please enter a scale factor (<1 to shrink; >1 to magnify).'. |
|
6289 |
^ self. |
|
6290 |
]. |
|
6291 |
newSize := oldSize * scale. |
|
1353 | 6292 |
imageEditView magnifyImageTo:newSize. |
6293 |
]. |
|
6294 |
||
400 | 6295 |
self updateInfoLabel |
6296 |
! |
|
6297 |
||
767 | 6298 |
doMagnifyUp |
1987 | 6299 |
"magnifies the current image one step up" |
400 | 6300 |
|
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6301 |
|magHolder mag| |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6302 |
|
1987 | 6303 |
magHolder := self magnificationHolder. |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6304 |
(mag := magHolder value) < 99 ifTrue: [ |
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6305 |
magHolder value: mag + 1 |
400 | 6306 |
] |
915
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6307 |
|
99f8e19aab3a
better use a columnAdaptor to fetch r/g/b values from a color.
Claus Gittinger <cg@exept.de>
parents:
914
diff
changeset
|
6308 |
"Modified: / 26.7.1998 / 20:23:52 / cg" |
400 | 6309 |
! |
6310 |
||
767 | 6311 |
doNegativeImage |
6312 |
"negates current image by negating the color map" |
|
400 | 6313 |
|
1598 | 6314 |
self image depth ~~ 1 ifTrue:[ |
6315 |
Dialog warn:'Only useful for depth 1 images'. |
|
6316 |
^ self |
|
6317 |
]. |
|
911 | 6318 |
imageEditView negativeImage. |
400 | 6319 |
self listOfColors removeAll. |
901 | 6320 |
self findColorMapMode. |
2585 | 6321 |
"/ imageEditView removelastUndo |
400 | 6322 |
! |
6323 |
||
767 | 6324 |
doResizeImage |
1353 | 6325 |
"resizes the current image" |
6326 |
||
6327 |
|box newSize image| |
|
6328 |
||
6329 |
image := imageEditView image. |
|
6330 |
||
6331 |
box := EnterBox new. |
|
6332 |
box title:(resources string:'Images new size:'). |
|
6333 |
box okText:(resources string:'OK'). |
|
6334 |
box abortText:(resources string:'Cancel'). |
|
6335 |
box initialText:image extent printString. |
|
6336 |
box showAtPointer. |
|
6337 |
(box accepted |
|
1960 | 6338 |
and: [(newSize := self pointFromString:(box contents)) notNil]) |
1353 | 6339 |
ifTrue:[ |
6340 |
imageEditView resizeImageTo:newSize. |
|
6341 |
]. |
|
400 | 6342 |
! |
6343 |
||
767 | 6344 |
doRotateImage |
6345 |
"rotates current image" |
|
400 | 6346 |
|
2884 | 6347 |
|rotationString box rotation| |
6348 |
||
6349 |
rotationString := Dialog |
|
6350 |
request:(resources string:'Rotate by (degrees, clockwise):') |
|
6351 |
list:#( '-90' '90' '180' '45' '-45' '135' '-135' ) |
|
6352 |
initialAnswer:90. |
|
6353 |
rotationString isEmptyOrNil ifTrue:[^ self]. "/ cancelled |
|
6354 |
rotation := Number readFrom:rotationString onError:[nil]. |
|
6355 |
rotation isNil ifTrue:[^ self]. |
|
6356 |
||
6357 |
"/ box := EnterBox new. |
|
6358 |
"/ box title:(resources string:'Rotate by (degrees, clockwise):'). |
|
6359 |
"/ box okText:(resources string:'OK'). |
|
6360 |
"/ box abortText:(resources string:'Cancel'). |
|
6361 |
"/ box initialText: '0'. |
|
6362 |
"/ box showAtPointer. |
|
6363 |
"/ (box accepted and: [(rotation := Number readFromString: box contents onError:nil) notNil]) |
|
6364 |
"/ ifFalse:[ ^ self ]. |
|
6365 |
||
6366 |
imageEditView rotateImageBy:rotation. |
|
6367 |
self updateInfoLabel. |
|
6368 |
||
6369 |
"Modified: / 18-03-2012 / 14:41:14 / cg" |
|
400 | 6370 |
! |
6371 |
||
1557 | 6372 |
doShiftManual |
6373 |
"let user specify amount and shift" |
|
6374 |
||
1713 | 6375 |
|bindings amount img firstChange shiftAction acceptChannel wrapHolder| |
1557 | 6376 |
|
6377 |
acceptChannel := TriggerValue new. |
|
1960 | 6378 |
wrapHolder := (lastShiftUsedWrap ? true) asValue. |
1557 | 6379 |
|
6380 |
firstChange := true. |
|
6381 |
||
6382 |
shiftAction := |
|
6383 |
[:shiftH :shiftV | |
|
6384 |
acceptChannel value:true. |
|
6385 |
||
6386 |
img := imageEditView image. |
|
6387 |
firstChange ifTrue:[ |
|
6388 |
imageEditView makeUndo. |
|
6389 |
firstChange := false. |
|
6390 |
]. |
|
1713 | 6391 |
imageEditView shiftImageHorizontal:(shiftH value) vertical:(shiftV value) wrap:(wrapHolder value). |
1557 | 6392 |
self updateInfoLabel |
6393 |
]. |
|
6394 |
||
6395 |
bindings := IdentityDictionary new. |
|
6396 |
bindings at:#shiftAmount put:(amount := 1 asValue). |
|
1713 | 6397 |
bindings at:#wrap put:wrapHolder. |
1557 | 6398 |
bindings at:#acceptChannel put:acceptChannel. |
6399 |
||
6400 |
bindings at:#shiftLeftNow put:[ shiftAction value:(-1*amount value) value:0 ]. |
|
6401 |
bindings at:#shiftRightNow put:[ shiftAction value:amount value value:0 ]. |
|
6402 |
bindings at:#shiftUpNow put:[ shiftAction value:0 value:(-1*amount value) ]. |
|
6403 |
bindings at:#shiftDownNow put:[ shiftAction value:0 value:amount value ]. |
|
6404 |
||
6405 |
(self openDialogInterface:#shiftDialogSpec withBindings:bindings) |
|
6406 |
ifFalse:[ |
|
6407 |
firstChange ~~ true ifTrue:[ |
|
6408 |
imageEditView undo |
|
6409 |
] |
|
6410 |
]. |
|
1960 | 6411 |
lastShiftUsedWrap := wrapHolder value. |
1557 | 6412 |
|
6413 |
"Created: / 7.9.1998 / 18:16:07 / cg" |
|
6414 |
"Modified: / 7.9.1998 / 18:20:42 / cg" |
|
6415 |
! |
|
6416 |
||
1480 | 6417 |
doUnCropManual |
6418 |
"let user specify borders and add them" |
|
6419 |
||
6420 |
|bindings left top right bottom img| |
|
6421 |
||
6422 |
bindings := IdentityDictionary new. |
|
1704 | 6423 |
bindings at:#left put:(left := 1 asValue). |
6424 |
bindings at:#right put:(right := 1 asValue). |
|
6425 |
bindings at:#top put:(top := 1 asValue). |
|
6426 |
bindings at:#bottom put:(bottom := 1 asValue). |
|
1740
5c0b60e76676
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1734
diff
changeset
|
6427 |
(self openDialogInterface:#uncropDialogSpec withBindings:bindings) |
1480 | 6428 |
ifTrue:[ |
6429 |
left := left value. |
|
6430 |
right := right value. |
|
6431 |
top := top value. |
|
6432 |
bottom := bottom value. |
|
6433 |
img := imageEditView image. |
|
6434 |
||
6435 |
imageEditView |
|
6436 |
makeBorderedImageX:left y:top |
|
6437 |
width:(img width + left + right) |
|
6438 |
height:(img height + top + bottom). |
|
6439 |
self updateInfoLabel |
|
6440 |
]. |
|
6441 |
||
6442 |
"Created: / 7.9.1998 / 18:16:07 / cg" |
|
6443 |
"Modified: / 7.9.1998 / 18:20:42 / cg" |
|
6444 |
! |
|
6445 |
||
767 | 6446 |
doUndo |
6447 |
"reverses last edit action" |
|
400 | 6448 |
|
1436 | 6449 |
imageEditView undo. |
400 | 6450 |
! ! |
6451 |
||
2812 | 6452 |
!ImageEditor methodsFor:'user actions-image sequences'! |
6453 |
||
6454 |
editEachImageFromSequence |
|
6455 |
|seq| |
|
6456 |
||
6457 |
self checkModified ifFalse:[ ^ self ]. |
|
6458 |
||
6459 |
imageEditView releaseUndos. |
|
6460 |
||
6461 |
seq := self image imageSequence. |
|
6462 |
seq size > 10 ifTrue:[ |
|
6463 |
(Dialog confirm:(resources string:'Ok to open %1 image editor windows?' with:seq size)) |
|
6464 |
ifFalse:[^ self]. |
|
6465 |
]. |
|
6466 |
||
6467 |
seq do:[:eachFrame | |
|
6468 |
ImageEditor openOnImage:eachFrame image |
|
6469 |
]. |
|
6470 |
||
6471 |
"Modified: / 21-10-2010 / 15:01:25 / cg" |
|
6472 |
! |
|
6473 |
||
6474 |
gotoImageInSequence:index |
|
6475 |
"display the next image in the image sequence" |
|
6476 |
||
6477 |
|img seq frame listOfColors| |
|
6478 |
||
6479 |
imageEditView releaseUndos. |
|
6480 |
||
6481 |
seq := self image imageSequence. |
|
6482 |
||
6483 |
imageSeqNr := index. |
|
6484 |
frame := seq at:imageSeqNr. |
|
6485 |
imageEditView image:(frame image). |
|
6486 |
||
6487 |
(img := self image) notNil ifTrue:[ |
|
6488 |
listOfColors := self listOfColors. |
|
6489 |
img colorMap notNil ifTrue:[ |
|
6490 |
listOfColors contents:(img usedColors asSet asOrderedCollection). |
|
6491 |
] ifFalse:[ |
|
6492 |
listOfColors removeAll. |
|
6493 |
]. |
|
6494 |
self findColorMapMode. |
|
6495 |
self updateLabelsAndHistory. |
|
6496 |
img := img onDevice:device. |
|
6497 |
imageEditView image:img. |
|
6498 |
] ifFalse:[ |
|
6499 |
self updateForNoImage |
|
6500 |
]. |
|
6501 |
||
6502 |
"Created: / 21-10-2010 / 14:22:11 / cg" |
|
6503 |
! |
|
6504 |
||
6505 |
nextImageInSequence |
|
6506 |
"display the next image in the image sequence" |
|
6507 |
||
6508 |
|seq index| |
|
6509 |
||
6510 |
seq := self image imageSequence. |
|
6511 |
(index := imageSeqNr) isNil ifTrue:[ |
|
6512 |
index := 1. |
|
6513 |
]. |
|
6514 |
index := index + 1. |
|
6515 |
index > seq size ifTrue:[ |
|
6516 |
self information:'Back to first image in sequence'. |
|
6517 |
index := 1. |
|
6518 |
]. |
|
6519 |
self gotoImageInSequence:index. |
|
6520 |
||
6521 |
"Modified: / 21-10-2010 / 14:24:11 / cg" |
|
6522 |
! |
|
6523 |
||
6524 |
previousImageInSequence |
|
6525 |
"display the previous image in the image sequence" |
|
6526 |
||
6527 |
|seq index| |
|
6528 |
||
6529 |
seq := self image imageSequence. |
|
6530 |
(index := imageSeqNr) isNil ifTrue:[ |
|
6531 |
index := 1. |
|
6532 |
]. |
|
6533 |
index := index - 1. |
|
6534 |
index < 1 ifTrue:[ |
|
6535 |
self information:'Wrap to last image in sequence'. |
|
6536 |
index := seq size. |
|
6537 |
]. |
|
6538 |
self gotoImageInSequence:index. |
|
6539 |
||
6540 |
"Created: / 21-10-2010 / 14:25:03 / cg" |
|
6541 |
! ! |
|
6542 |
||
1715 | 6543 |
!ImageEditor methodsFor:'user actions-loading'! |
400 | 6544 |
|
767 | 6545 |
doLoadFromClass |
6546 |
"opens a dialog for loading an image from class and a (resource-) selector" |
|
400 | 6547 |
|
1122 | 6548 |
|img| |
6549 |
||
1975 | 6550 |
self checkModified ifFalse:[ ^ self ]. |
6551 |
||
1054 | 6552 |
(imageEditView loadFromClass) notNil ifTrue:[ |
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
6553 |
imageSeqNr := nil. |
1122 | 6554 |
(img := self image) notNil ifTrue: [ |
1900 | 6555 |
self updateColorsFromImage:img. |
574 | 6556 |
self findColorMapMode. |
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
6557 |
self updateLabelsAndHistory. |
1054 | 6558 |
] ifFalse: [ |
6559 |
self updateForNoImage |
|
1376
ce3cf26e201e
change & updates fixed (monochrome bitmaps)
Claus Gittinger <cg@exept.de>
parents:
1353
diff
changeset
|
6560 |
]. |
449 | 6561 |
] |
400 | 6562 |
! |
6563 |
||
767 | 6564 |
doLoadFromFile |
6565 |
"opens a dialog for loading an image from a file" |
|
400 | 6566 |
|
2820 | 6567 |
|img file filters title| |
1353 | 6568 |
|
1975 | 6569 |
self checkModified ifFalse:[ ^ self ]. |
6570 |
||
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
6571 |
imageSeqNr := nil. |
1353 | 6572 |
img := self image. |
6573 |
img notNil ifTrue: [ |
|
6574 |
file := img fileName |
|
6575 |
]. |
|
6576 |
||
2820 | 6577 |
title := (resources string:'Load Image From'). |
6578 |
||
3066
a8e197ceebed
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
3050
diff
changeset
|
6579 |
(UserPreferences current useNativeFileDialog |
3100 | 6580 |
and:[Screen current isWindowsPlatform]) ifTrue:[ |
2820 | 6581 |
self withWaitCursorDo:[ |
3066
a8e197ceebed
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
3050
diff
changeset
|
6582 |
file := Screen current |
2820 | 6583 |
nativeFileDialogFor:(self window topView id) |
6584 |
save:false |
|
6585 |
title:title |
|
6586 |
inDirectory:(file notNil ifTrue:[file asFilename directory pathName] ifFalse:[LastDirectory]) |
|
6587 |
initialAnswer:(file notNil ifTrue:[file asFilename baseName] ifFalse:['image.png']) |
|
2827 | 6588 |
"/ flags:#( ENABLESIZING "HIDEREADONLY" EXPLORER NOCHANGEDIR) |
2820 | 6589 |
filter: |
6590 |
{ |
|
6591 |
{ (resources string:'Image Files') . '*.tif;*.png;*.gif;*.bmp;*.jpg' } . |
|
6592 |
{ (resources string:'All Files') . '*.*' } |
|
6593 |
} |
|
2821 | 6594 |
extension:nil |
2827 | 6595 |
"blocking:false". |
2820 | 6596 |
]. |
6597 |
] ifFalse:[ |
|
6598 |
filters := FileSelectionBrowser loadImageFileNameFilters. |
|
6599 |
file notNil ifTrue:[ |
|
6600 |
file := FileSelectionBrowser |
|
6601 |
request:title |
|
6602 |
fileName:file |
|
6603 |
withFileFilters:filters. |
|
6604 |
] ifFalse:[ |
|
6605 |
file := FileSelectionBrowser |
|
6606 |
request:title |
|
6607 |
inDirectory:LastDirectory |
|
6608 |
withFileFilters:filters. |
|
6609 |
]. |
|
1353 | 6610 |
]. |
2820 | 6611 |
|
1353 | 6612 |
file notNil ifTrue:[ |
6613 |
LastDirectory := file asFilename directoryName. |
|
6614 |
self loadFromFile:file |
|
6615 |
] |
|
2820 | 6616 |
|
2827 | 6617 |
"Modified: / 14-12-2010 / 13:52:11 / cg" |
400 | 6618 |
! |
6619 |
||
2796 | 6620 |
doLoadFromURL |
6621 |
"opens a dialog for loading an image from a URL" |
|
6622 |
||
2866 | 6623 |
|tempFile url response| |
2796 | 6624 |
|
6625 |
self checkModified ifFalse:[ ^ self ]. |
|
6626 |
||
6627 |
url := Dialog |
|
2866 | 6628 |
request:(resources string:'Load Image from URL') |
2796 | 6629 |
initialAnswer:LastURL. |
6630 |
||
6631 |
url notEmptyOrNil ifTrue:[ |
|
3050 | 6632 |
HTTPInterface isNil ifTrue:[ Smalltalk loadPackage:'stx:goodies/communication']. |
6633 |
||
2796 | 6634 |
LastURL := url. |
3027 | 6635 |
tempFile := FileStream newTemporary close fileName. |
2866 | 6636 |
self withWaitCursorDo:[ |
6637 |
response := HTTPInterface get:url destinationFile:tempFile. |
|
6638 |
]. |
|
6639 |
response isErrorResponse ifTrue:[ |
|
6640 |
Dialog warn:(resources string:'Could not load image ("%1")' with:response responseText). |
|
6641 |
] ifFalse:[ |
|
6642 |
self loadFromFile:tempFile. |
|
6643 |
]. |
|
2796 | 6644 |
tempFile delete |
6645 |
] |
|
6646 |
||
6647 |
"Created: / 20-09-2010 / 11:30:59 / cg" |
|
6648 |
! |
|
6649 |
||
767 | 6650 |
doNewImage |
6651 |
"opens a dialog with choices of size and color map for creating a new image" |
|
400 | 6652 |
|
1975 | 6653 |
|dialogAspects width height cMapString cMapMode cMap imageClass image szString defaultSize ext| |
6654 |
||
6655 |
self checkModified ifFalse:[ ^ self ]. |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6656 |
|
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6657 |
defaultSize := (self class listOfDefaultSizes includes:'32x32') |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6658 |
ifTrue:['32x32'] |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6659 |
ifFalse:[self class listOfDefaultSizes first]. |
767 | 6660 |
|
1975 | 6661 |
dialogAspects := IdentityDictionary new |
767 | 6662 |
at:#listOfSizes put: self class listOfDefaultSizes asValue; |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6663 |
at:#listOfColorMaps put: self class namesOfColorMaps values asSortedCollection asValue; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6664 |
at:#selectionOfSize put: (LastSizeString ? defaultSize) asValue; |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6665 |
at:#selectionOfColorMap put: (LastColormapMode ? self class namesOfColorMaps values asSortedCollection first) asValue; |
400 | 6666 |
yourself. |
6667 |
||
1975 | 6668 |
(self openDialogInterface:#dialogSpecForNewImage withBindings:dialogAspects) |
1383 | 6669 |
ifTrue:[ |
1975 | 6670 |
szString := (dialogAspects at:#selectionOfSize) value. |
1960 | 6671 |
ext := self pointFromString:szString. |
1962 | 6672 |
ext isNil ifTrue:[ |
6673 |
width := height := 32 |
|
6674 |
] ifFalse:[ |
|
6675 |
width := ext x. |
|
6676 |
height := ext y. |
|
6677 |
]. |
|
1960 | 6678 |
"/ width := "128 min: "(Integer readFromString: (szString upTo: $x) onError:[32]). |
6679 |
"/ height := "128 min: " (Integer readFromString: (szString copy reverse upTo: $x) reverse onError:[32]). |
|
400 | 6680 |
|
1975 | 6681 |
cMapString := (dialogAspects at:#selectionOfColorMap) value. |
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6682 |
cMapMode := self class namesOfColorMaps keyAtEqualValue:cMapString. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6683 |
cMap := self class listOfColorMaps at:cMapMode. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6684 |
imageClass := Image implementorForDepth:(cMap size highBit-1). |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6685 |
image := imageClass width: width height: height. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6686 |
image bits:(ByteArray new:(image bytesPerRow*height)). |
400 | 6687 |
|
1637 | 6688 |
LastSizeString := szString. |
6689 |
LastColormapMode := cMapString. |
|
6690 |
||
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6691 |
(cMapMode startsWith: 'mask') ifTrue:[ |
3125
9d5624af77ab
Sending of Image>>#clearMaskedPixels moved to Image >> #asFormOnDevice:
Stefan Vogel <sv@exept.de>
parents:
3122
diff
changeset
|
6692 |
image mask: (ImageMask width: width height: height depth: 1 fromArray: (ByteArray new: width*height)). |
400 | 6693 |
]. |
6694 |
image colorMap: cMap. |
|
1847
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6695 |
(imageEditView image: image) notNil ifTrue:[ |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6696 |
self updateListOfColorsAndColormapMode. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6697 |
self updateLabelsAndHistory. |
d7e8ec4f3696
partial support for depth>8 images;
Claus Gittinger <cg@exept.de>
parents:
1843
diff
changeset
|
6698 |
]. |
400 | 6699 |
image fillRectangleX:0 y:0 width:width height:height with:Color white. |
767 | 6700 |
] |
929 | 6701 |
! |
6702 |
||
2058 | 6703 |
doNewImageEditor |
6704 |
"opens a new image editor" |
|
6705 |
||
6706 |
ImageEditor open |
|
6707 |
||
6708 |
"Created: / 17-08-2006 / 09:03:14 / cg" |
|
6709 |
! |
|
6710 |
||
1682 | 6711 |
doNewImageFromClipboard |
6712 |
|image| |
|
6713 |
||
1975 | 6714 |
self checkModified ifFalse:[ ^ self ]. |
6715 |
||
1682 | 6716 |
image := imageEditView clipBoard. |
3164 | 6717 |
image isImageOrForm ifFalse:[ |
6718 |
image := Image readFrom:(image asString) onError:nil. |
|
6719 |
image isNil ifTrue:[ |
|
6720 |
Dialog warn:'Clipboard does not contain an image I can use/understand'. |
|
6721 |
^ self. |
|
6722 |
]. |
|
6723 |
]. |
|
1975 | 6724 |
imageEditView image:image. |
6725 |
||
6726 |
image notNil ifTrue:[ |
|
1900 | 6727 |
self updateColorsFromImage:image. |
1682 | 6728 |
self findColorMapMode. |
6729 |
self updateLabelsAndHistory. |
|
6730 |
] |
|
6731 |
! |
|
6732 |
||
929 | 6733 |
grabScreenImage |
6734 |
"let user choose an area and grab that are for editing" |
|
6735 |
||
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6736 |
self grabScreenImageUsing:[ |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6737 |
|r| |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6738 |
|
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6739 |
[Screen current leftButtonPressed] whileTrue:[Delay waitForSeconds:0.05]. |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6740 |
r := Rectangle fromUser. |
2708 | 6741 |
(r width == 0 or:[r height == 0]) ifTrue:[ |
6742 |
nil |
|
6743 |
] ifFalse:[ |
|
6744 |
lastGrabbedScreenArea := r. |
|
6745 |
Image fromScreen:r |
|
6746 |
] |
|
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6747 |
]. |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6748 |
! |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6749 |
|
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6750 |
grabScreenImageFromLastArea |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6751 |
"grab again from the previous area for editing" |
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6752 |
|
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6753 |
self grabScreenImageUsing:[ |
2708 | 6754 |
Image fromScreen:lastGrabbedScreenArea |
2707
6610854318eb
remember last grabbed screen area
Claus Gittinger <cg@exept.de>
parents:
2704
diff
changeset
|
6755 |
]. |
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6756 |
! |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6757 |
|
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6758 |
grabScreenImageUsing:aBlock |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6759 |
"let user choose an area and grab that are for editing" |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6760 |
|
1975 | 6761 |
self checkModified ifFalse:[ ^ self ]. |
6762 |
||
990
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6763 |
Processor |
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6764 |
addTimedBlock:[ |
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6765 |
|image d8image img| |
929 | 6766 |
|
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
6767 |
imageSeqNr := nil. |
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6768 |
image := aBlock value. |
2708 | 6769 |
image notNil ifTrue:[ |
1121 | 6770 |
image depth > 8 ifTrue:[ |
2420
14678b9fea60
grabScreenImage - do not convert to 8bit; leave as is initially
Claus Gittinger <cg@exept.de>
parents:
2375
diff
changeset
|
6771 |
false ifTrue:[ |
1687
f4543a556b89
Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents:
1682
diff
changeset
|
6772 |
Error handle:[:ex | |sig| |
2996 | 6773 |
(sig := ex creator) == HaltInterrupt ifTrue:[ex reject]. |
1122 | 6774 |
sig == Signal noHandlerSignal ifTrue:[ex reject]. |
1121 | 6775 |
|
6776 |
self warn:'Could not convert to depth8 image (too many colors)'. |
|
6777 |
d8image := nil. |
|
6778 |
] do:[ |
|
2420
14678b9fea60
grabScreenImage - do not convert to 8bit; leave as is initially
Claus Gittinger <cg@exept.de>
parents:
2375
diff
changeset
|
6779 |
d8image := Depth8Image fromImage:image photometric:#palette. |
1121 | 6780 |
]. |
6781 |
d8image notNil ifTrue:[ |
|
6782 |
image := d8image |
|
6783 |
] |
|
2420
14678b9fea60
grabScreenImage - do not convert to 8bit; leave as is initially
Claus Gittinger <cg@exept.de>
parents:
2375
diff
changeset
|
6784 |
]. |
990
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6785 |
]. |
1121 | 6786 |
(imageEditView image:image) notNil ifTrue:[ |
6787 |
self listOfColors contents:(image colorMap). |
|
6788 |
self findColorMapMode. |
|
6789 |
self updateLabelsAndHistory. |
|
990
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6790 |
] |
1121 | 6791 |
] |
6792 |
] |
|
990
4303f0064410
delay a second before grabbing screen image (to allow for redraws to happen)
Claus Gittinger <cg@exept.de>
parents:
986
diff
changeset
|
6793 |
afterSeconds:1 |
929 | 6794 |
|
6795 |
"Created: / 29.7.1998 / 21:24:42 / cg" |
|
1537
e86a686eeba2
class based exceptions - no longer need to send #haltSÃgnal
Claus Gittinger <cg@exept.de>
parents:
1507
diff
changeset
|
6796 |
"Modified: / 16.11.2001 / 16:21:19 / cg" |
1380
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
6797 |
! |
9787c42843c2
allow display and extract from image sequences (gif anims)
Claus Gittinger <cg@exept.de>
parents:
1377
diff
changeset
|
6798 |
|
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6799 |
grabWindowImage |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6800 |
"let user choose an area and grab that are for editing" |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6801 |
|
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6802 |
self grabScreenImageUsing:[ |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6803 |
|v| |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6804 |
|
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6805 |
(v := Screen current viewFromUser) notNil ifTrue:[ |
2704 | 6806 |
v topView raise. |
6807 |
v topView makeFullyVisible. |
|
6808 |
Delay waitForSeconds:0.5. "/ give view a chance to redraw itself. |
|
2701
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6809 |
Image fromView:(v topView) |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6810 |
]. |
5abe05ebb370
added: grabWindowImage (menu)
Claus Gittinger <cg@exept.de>
parents:
2663
diff
changeset
|
6811 |
]. |
400 | 6812 |
! ! |
6813 |
||
1715 | 6814 |
!ImageEditor methodsFor:'user actions-saving'! |
400 | 6815 |
|
767 | 6816 |
doPrint |
6817 |
"prints current image on the current printer" |
|
400 | 6818 |
|
1734 | 6819 |
self withWaitCursorDo:[ |
6820 |
imageEditView print |
|
6821 |
] |
|
400 | 6822 |
! |
6823 |
||
1613 | 6824 |
doSaveButtonImageToFileAs |
6825 |
"opens a dialog for saving current image to a file" |
|
6826 |
||
6827 |
imageEditView saveButtonImageToFileAs. |
|
6828 |
self updateLabelsAndHistory. |
|
6829 |
! |
|
6830 |
||
767 | 6831 |
doSaveImageFile |
6832 |
"saves current image to current file" |
|
400 | 6833 |
|
1481 | 6834 |
imageEditView save. |
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6835 |
self clearModified. |
400 | 6836 |
! |
6837 |
||
767 | 6838 |
doSaveImageFileAs |
1922 | 6839 |
"opens a dialog for saving an image to a file" |
6840 |
||
6841 |
|img file filters| |
|
6842 |
||
6843 |
img := self image. |
|
6844 |
img notNil ifTrue: [ |
|
6845 |
file := img fileName |
|
6846 |
]. |
|
6847 |
||
2595 | 6848 |
filters := FileSelectionBrowser saveImageFileNameFilters. |
1922 | 6849 |
|
3066
a8e197ceebed
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
3050
diff
changeset
|
6850 |
(UserPreferences current useNativeFileDialog |
3100 | 6851 |
and:[Screen current isWindowsPlatform]) ifTrue:[ |
2820 | 6852 |
self withWaitCursorDo:[ |
3066
a8e197ceebed
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
3050
diff
changeset
|
6853 |
file := Screen current |
2820 | 6854 |
nativeFileDialogFor:(self window topView id) |
6855 |
save:true |
|
6856 |
title:(resources string:'Save Image To') |
|
6857 |
inDirectory:(file notNil ifTrue:[file asFilename directory pathName] ifFalse:[LastDirectory]) |
|
6858 |
initialAnswer:(file notNil ifTrue:[file asFilename baseName] ifFalse:['image.png']) |
|
2827 | 6859 |
"/ flags:#( ENABLESIZING "HIDEREADONLY" EXPLORER NOCHANGEDIR) |
2820 | 6860 |
filter: |
6861 |
{ |
|
6862 |
{ (resources string:'Image Files') . '*.tif;*.png;*.gif;*.bmp' } . |
|
6863 |
{ (resources string:'All Files') . '*.*' } |
|
6864 |
} |
|
2821 | 6865 |
extension:nil |
2827 | 6866 |
"blocking:false". |
2807 | 6867 |
]. |
2820 | 6868 |
] ifFalse:[ |
6869 |
(FileSelectionBrowser isNil or:[DirectoryView isNil]) ifTrue:[ |
|
6870 |
file notNil ifTrue:[ |
|
6871 |
file := Dialog requestFileName:'Save Image To' |
|
6872 |
default:file |
|
6873 |
pattern:(filters first). |
|
6874 |
] ifFalse:[ |
|
6875 |
file := Dialog |
|
6876 |
requestFileName:'Save Image To' |
|
6877 |
default:'image.png' |
|
6878 |
pattern:(filters first) |
|
6879 |
fromDirectory:LastDirectory. |
|
6880 |
]. |
|
2807 | 6881 |
] ifFalse:[ |
2820 | 6882 |
file notNil ifTrue:[ |
6883 |
file := FileSelectionBrowser |
|
6884 |
request:'Save Image To' |
|
6885 |
fileName:file |
|
6886 |
withFileFilters:filters. |
|
6887 |
] ifFalse:[ |
|
6888 |
file := FileSelectionBrowser |
|
6889 |
request:'Save Image To' |
|
6890 |
inDirectory:LastDirectory |
|
6891 |
withFileFilters:filters. |
|
6892 |
]. |
|
2807 | 6893 |
]. |
1922 | 6894 |
]. |
6895 |
file notNil ifTrue:[ |
|
6896 |
imageEditView saveImageFileAs:file. |
|
6897 |
LastDirectory := file asFilename directoryName. |
|
6898 |
self updateLabelsAndHistory. |
|
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6899 |
self clearModified. |
1922 | 6900 |
] |
2807 | 6901 |
|
2827 | 6902 |
"Modified: / 14-12-2010 / 13:51:47 / cg" |
400 | 6903 |
! |
6904 |
||
767 | 6905 |
doSaveImageMaskFileAs |
6906 |
"opens a dialog for saving mask of current image to a file" |
|
400 | 6907 |
|
1481 | 6908 |
imageEditView saveImageMaskFileAs. |
400 | 6909 |
! |
6910 |
||
767 | 6911 |
doSaveMethod |
1975 | 6912 |
"saves the image in current class and selector" |
6913 |
||
6914 |
imageEditView saveMethod ifTrue:[ |
|
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6915 |
self updateLabelsAndHistory. |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6916 |
self clearModified. |
400 | 6917 |
] |
6918 |
! |
|
6919 |
||
767 | 6920 |
doSaveMethodAs |
6921 |
"opens a dialog for saving current image on a class and a selector" |
|
400 | 6922 |
|
1975 | 6923 |
imageEditView saveMethodAs ifTrue:[ |
2006
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6924 |
self updateLabelsAndHistory. |
ae6fe65e9f33
embedding as special editors
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
6925 |
self clearModified. |
400 | 6926 |
] |
1309
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6927 |
! |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6928 |
|
3022 | 6929 |
doShowPixelArrayLiteralString |
6930 |
"opens a dialog showing a literal array-like storeString |
|
6931 |
(sometimes useful to embed an image into source code)" |
|
6932 |
||
6933 |
|img| |
|
6934 |
||
6935 |
img := imageEditView image. |
|
6936 |
TextBox openOn:img bits storeString |
|
6937 |
! |
|
6938 |
||
1309
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6939 |
doShowStoreString |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6940 |
"opens a dialog showing the storeString |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6941 |
(sometimes useful to embed an image into source code)" |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6942 |
|
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6943 |
|img| |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6944 |
|
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6945 |
img := imageEditView image. |
0a45ef81b47e
added showStoreString menu function
Claus Gittinger <cg@exept.de>
parents:
1250
diff
changeset
|
6946 |
TextBox openOn:img storeString |
1975 | 6947 |
! |
6948 |
||
6949 |
save |
|
6950 |
"saves current image on current class and selector" |
|
6951 |
||
6952 |
self doSaveMethod |
|
400 | 6953 |
! ! |
6954 |
||
1715 | 6955 |
!ImageEditor methodsFor:'user actions-settings'! |
1353 | 6956 |
|
6957 |
doChangeGridMagnification |
|
6958 |
"change grid magnification" |
|
6959 |
||
6960 |
|box oldGridLimit newGridLimit| |
|
6961 |
||
6962 |
oldGridLimit := imageEditView class gridMagnificationLimit asPoint. |
|
6963 |
||
6964 |
box := EnterBox new. |
|
6965 |
box title:(resources string:'Grid Magnification Limit:'). |
|
6966 |
box okText:(resources string:'OK'). |
|
6967 |
box abortText:(resources string:'Cancel'). |
|
6968 |
box initialText:(oldGridLimit x printString). |
|
6969 |
box showAtPointer. |
|
6970 |
||
6971 |
(box accepted |
|
6972 |
and: [(newGridLimit := Number readFromString:(box contents) onError:[2]) notNil] |
|
6973 |
) ifTrue:[ |
|
6974 |
newGridLimit := (99 min: (2 max:newGridLimit)) asPoint. |
|
6975 |
imageEditView class gridMagnificationLimit:newGridLimit. |
|
6976 |
imageEditView invalidate |
|
6977 |
] |
|
6978 |
||
2192 | 6979 |
! |
6980 |
||
6981 |
penWidth:n |
|
6982 |
imageEditView penWidth:n |
|
6983 |
||
6984 |
"Created: / 01-11-2007 / 23:47:48 / cg" |
|
2375 | 6985 |
! |
6986 |
||
2881 | 6987 |
penWidthHolderChanged |
6988 |
imageEditView penWidth:(self penWidthHolder value) |
|
6989 |
||
6990 |
"Created: / 15-02-2012 / 22:32:00 / cg" |
|
6991 |
! |
|
6992 |
||
2375 | 6993 |
spraySpot:n |
6994 |
imageEditView spraySpot:n |
|
6995 |
||
6996 |
"Created: / 01-11-2007 / 23:47:48 / cg" |
|
2881 | 6997 |
! |
6998 |
||
6999 |
spraySpotHolderChanged |
|
7000 |
imageEditView spraySpot:(self spraySpotHolder value) |
|
7001 |
||
7002 |
"Created: / 15-02-2012 / 22:37:08 / cg" |
|
1353 | 7003 |
! ! |
7004 |
||
400 | 7005 |
!ImageEditor class methodsFor:'documentation'! |
7006 |
||
7007 |
version |
|
7008 |
^ '$Header$' |
|
2590 | 7009 |
! |
7010 |
||
7011 |
version_CVS |
|
7012 |
^ '$Header$' |
|
400 | 7013 |
! ! |
2945 | 7014 |