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