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