ImageEditor.st
changeset 519 085cf69fcd6c
parent 503 98b67511b1c0
child 535 1caf545614c5
--- a/ImageEditor.st	Thu Jan 29 15:30:48 1998 +0100
+++ b/ImageEditor.st	Thu Jan 29 15:42:06 1998 +0100
@@ -263,6 +263,397 @@
 
 !ImageEditor class methodsFor:'interface specs'!
 
+windowSpec
+    "this window spec was automatically generated by the ST/X UIPainter"
+
+    "do not manually edit this - the painter/builder may not be able to
+     handle the specification if its corrupted."
+
+    "
+     UIPainter new openOnClass:ImageEditor andSelector:#windowSpec
+     ImageEditor new openInterface:#windowSpec
+    "
+    "ImageEditor open"
+
+    <resource: #canvas>
+
+    ^
+     
+       #(#FullSpec
+          #'window:' 
+           #(#WindowSpec
+              #'name:' 'Image Editor'
+              #'layout:' #(#LayoutFrame 423 0 357 0 922 0 702 0)
+              #'label:' 'Image Editor'
+              #'min:' #(#Point 400 320)
+              #'max:' #(#Point 1152 900)
+              #'bounds:' #(#Rectangle 423 357 923 703)
+              #'menu:' #menu
+              #'usePreferredExtent:' false
+          )
+          #'component:' 
+           #(#SpecCollection
+              #'collection:' 
+               #(
+                 #(#MenuPanelSpec
+                    #'name:' 'menuToolbarView'
+                    #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
+                    #'menu:' #menuToolbar
+                    #'style:' #(#FontDescription #helvetica #medium #roman 10)
+                    #'showSeparatingLines:' true
+                )
+                 #(#VariableHorizontalPanelSpec
+                    #'name:' 'variableHorizontalPanel1'
+                    #'layout:' #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -22 1.0)
+                    #'component:' 
+                     #(#SpecCollection
+                        #'collection:' 
+                         #(
+                           #(#ViewSpec
+                              #'name:' 'view1'
+                              #'component:' 
+                               #(#SpecCollection
+                                  #'collection:' 
+                                   #(
+                                     #(#FramedBoxSpec
+                                        #'name:' 'framedBox1'
+                                        #'layout:' #(#LayoutFrame 1 0.0 3 0.0 110 0 65 0)
+                                        #'component:' 
+                                         #(#SpecCollection
+                                            #'collection:' 
+                                             #(
+                                               #(#ArrowButtonSpec
+                                                  #'name:' 'magnifyDownButton'
+                                                  #'layout:' #(#LayoutFrame 13 0 20 0 35 0 42 0)
+                                                  #'activeHelpKey:' #magnifyImageDown
+                                                  #'model:' #magnifyDown
+                                                  #'enableChannel:' #imageIsLoaded
+                                                  #'isTriggerOnDown:' true
+                                                  #'direction:' #left
+                                              )
+                                               #(#ArrowButtonSpec
+                                                  #'name:' 'magnifyUpButton'
+                                                  #'layout:' #(#LayoutFrame 73 0 20 0 95 0 42 0)
+                                                  #'activeHelpKey:' #magnifyImageUp
+                                                  #'model:' #magnifyUp
+                                                  #'enableChannel:' #imageIsLoaded
+                                                  #'isTriggerOnDown:' true
+                                                  #'direction:' #right
+                                              )
+                                               #(#InputFieldSpec
+                                                  #'name:' 'magnificationInputField'
+                                                  #'layout:' #(#LayoutFrame 36 0 20 0.0 72 0 42 0)
+                                                  #'activeHelpKey:' #magnificationNumber
+                                                  #'enableChannel:' #imageIsLoaded
+                                                  #'model:' #valueOfMagnification
+                                                  #'type:' #number
+                                                  #'acceptOnReturn:' false
+                                                  #'acceptOnTab:' false
+                                                  #'numChars:' 2
+                                              )
+                                            )
+                                        )
+                                        #'label:' 'Magnification'
+                                        #'labelPosition:' #topLeft
+                                        #'style:' #(#FontDescription #helvetica #medium #roman 12)
+                                    )
+                                     #(#ArbitraryComponentSpec
+                                        #'name:' 'imagePreView'
+                                        #'layout:' #(#LayoutFrame 111 0.0 9 0.0 -6 1 60 0)
+                                        #'activeHelpKey:' #previewView
+                                        #'hasHorizontalScrollBar:' true
+                                        #'hasVerticalScrollBar:' true
+                                        #'miniScrollerHorizontal:' true
+                                        #'miniScrollerVertical:' true
+                                        #'component:' #ImageView
+                                        #'hasBorder:' true
+                                    )
+                                     #(#FramedBoxSpec
+                                        #'name:' 'framedBox2'
+                                        #'layout:' #(#LayoutFrame 1 0.0 68 0 0 1.0 -66 1)
+                                        #'component:' 
+                                         #(#SpecCollection
+                                            #'collection:' 
+                                             #(
+                                               #(#DataSetSpec
+                                                  #'name:' 'colorDataSetView'
+                                                  #'layout:' #(#LayoutFrame 11 0.0 19 0.0 20 1.0 -10 1.0)
+                                                  #'activeHelpKey:' #colorMapTable
+                                                  #'model:' #selectionOfColor
+                                                  #'style:' #(#FontDescription #helvetica #medium #roman 12)
+                                                  #'hasHorizontalScrollBar:' true
+                                                  #'hasVerticalScrollBar:' true
+                                                  #'miniScrollerHorizontal:' true
+                                                  #'miniScrollerVertical:' true
+                                                  #'dataList:' #listOfColors
+                                                  #'level:' -1
+                                                  #'has3Dsepartors:' true
+                                                  #'verticalSpacing:' 1
+                                                  #'columns:' 
+                                                   #(
+                                                     #(#DataSetColumnSpec
+                                                        #'rendererType:' #rowSelector
+                                                        #'backgroundSelector:' #yourself
+                                                    )
+                                                     #(#DataSetColumnSpec
+                                                        #'label:' 'Red'
+                                                        #'model:' #rowRedByte
+                                                        #'canSelect:' false
+                                                    )
+                                                     #(#DataSetColumnSpec
+                                                        #'label:' 'Green'
+                                                        #'model:' #rowGreenByte
+                                                        #'canSelect:' false
+                                                    )
+                                                     #(#DataSetColumnSpec
+                                                        #'label:' 'Blue'
+                                                        #'model:' #rowBlueByte
+                                                        #'canSelect:' false
+                                                    )
+                                                  )
+                                              )
+                                               #(#MenuPanelSpec
+                                                  #'name:' 'menuColorAssignmentPanel'
+                                                  #'layout:' #(#LayoutFrame 11 0 -10 1 18 1 17 1)
+                                                  #'activeHelpKey:' #mouseKeyColorMode
+                                                  #'enableChannel:' #imageIsLoaded
+                                                  #'menu:' #menuColorAssignment
+                                                  #'style:' #(#FontDescription #helvetica #medium #roman 10)
+                                              )
+                                            )
+                                        )
+                                        #'label:' 'Color Map'
+                                        #'labelPosition:' #topLeft
+                                        #'style:' #(#FontDescription #helvetica #medium #roman 12)
+                                    )
+                                     #(#VerticalPanelViewSpec
+                                        #'name:' 'verticalPanelView1'
+                                        #'layout:' #(#LayoutFrame 1 0.0 -68 1 83 0 0 1.0)
+                                        #'component:' 
+                                         #(#SpecCollection
+                                            #'collection:' 
+                                             #(
+                                               #(#LabelSpec
+                                                  #'name:' 'classNameLabel'
+                                                  #'label:' 'Class:'
+                                                  #'adjust:' #right
+                                                  #'extent:' #(#Point 82 21)
+                                              )
+                                               #(#LabelSpec
+                                                  #'name:' 'selectorLabel'
+                                                  #'label:' 'Selector:'
+                                                  #'adjust:' #right
+                                                  #'extent:' #(#Point 82 20)
+                                              )
+                                               #(#LabelSpec
+                                                  #'name:' 'fileNameLabel'
+                                                  #'label:' 'File Name:'
+                                                  #'adjust:' #right
+                                                  #'extent:' #(#Point 82 21)
+                                              )
+                                            )
+                                        )
+                                        #'horizontalLayout:' #fit
+                                        #'verticalLayout:' #fit
+                                        #'horizontalSpace:' 3
+                                        #'verticalSpace:' 3
+                                    )
+                                     #(#VerticalPanelViewSpec
+                                        #'name:' 'verticalPanelView2'
+                                        #'layout:' #(#LayoutFrame 85 0.0 -68 1 -6 1 0 1.0)
+                                        #'component:' 
+                                         #(#SpecCollection
+                                            #'collection:' 
+                                             #(
+                                               #(#InputFieldSpec
+                                                  #'name:' 'resourceClassInputField'
+                                                  #'activeHelpKey:' #inputFieldOfClass
+                                                  #'model:' #valueOfResourceClass
+                                                  #'immediateAccept:' false
+                                                  #'extent:' #(#Point 153 21)
+                                              )
+                                               #(#InputFieldSpec
+                                                  #'name:' 'resourceSelectorInputField'
+                                                  #'activeHelpKey:' #inputFieldOfSelector
+                                                  #'model:' #valueOfResourceSelector
+                                                  #'immediateAccept:' false
+                                                  #'acceptOnTab:' false
+                                                  #'extent:' #(#Point 153 20)
+                                              )
+                                               #(#InputFieldSpec
+                                                  #'name:' 'fileNameInputField'
+                                                  #'activeHelpKey:' #inputFieldFileName
+                                                  #'model:' #valueOfFileName
+                                                  #'immediateAccept:' false
+                                                  #'acceptOnTab:' false
+                                                  #'extent:' #(#Point 153 21)
+                                              )
+                                            )
+                                        )
+                                        #'horizontalLayout:' #fit
+                                        #'verticalLayout:' #fit
+                                        #'horizontalSpace:' 3
+                                        #'verticalSpace:' 3
+                                    )
+                                  )
+                              )
+                              #'level:' -1
+                          )
+                           #(#ViewSpec
+                              #'name:' 'view2'
+                              #'component:' 
+                               #(#SpecCollection
+                                  #'collection:' 
+                                   #(
+                                     #(#ArbitraryComponentSpec
+                                        #'name:' 'imageEditView'
+                                        #'layout:' #(#LayoutFrame 2 0.0 2 0.0 -2 1.0 -24 1.0)
+                                        #'hasHorizontalScrollBar:' true
+                                        #'hasVerticalScrollBar:' true
+                                        #'component:' #ImageEditView
+                                        #'hasBorder:' false
+                                    )
+                                     #(#LabelSpec
+                                        #'name:' 'coordLabel'
+                                        #'layout:' #(#LayoutFrame 2 0.0 -22 1 -4 1.0 0 1.0)
+                                        #'level:' -1
+                                        #'adjust:' #left
+                                    )
+                                  )
+                              )
+                              #'level:' -1
+                          )
+                        )
+                    )
+                    #'level:' 1
+                    #'handles:' #(#Any 0.5 1.0)
+                )
+                 #(#UISubSpecification
+                    #'name:' 'infoBarSubSpec'
+                    #'layout:' #(#LayoutFrame 0 0.0 -22 1 0 1.0 0 1.0)
+                    #'majorKey:' #ToolApplicationModel
+                    #'minorKey:' #windowSpecForInfoBar
+                )
+              )
+          )
+      )
+!
+
+windowSpecForNewImage
+    "this window spec was automatically generated by the ST/X UIPainter"
+
+    "do not manually edit this - the painter/builder may not be able to
+     handle the specification if its corrupted."
+
+    "
+     UIPainter new openOnClass:ImageEditor andSelector:#windowSpecForNewImage
+     ImageEditor new openInterface:#windowSpecForNewImage
+    "
+
+    <resource: #canvas>
+
+    ^
+     
+       #(#FullSpec
+          #'window:' 
+           #(#WindowSpec
+              #'name:' 'New Image'
+              #'layout:' #(#LayoutFrame 194 0 152 0 461 0 248 0)
+              #'label:' 'New Image'
+              #'min:' #(#Point 10 10)
+              #'max:' #(#Point 1152 900)
+              #'bounds:' #(#Rectangle 194 152 462 249)
+              #'usePreferredExtent:' false
+          )
+          #'component:' 
+           #(#SpecCollection
+              #'collection:' 
+               #(
+                 #(#ViewSpec
+                    #'name:' 'View'
+                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -38 1.0)
+                    #'component:' 
+                     #(#SpecCollection
+                        #'collection:' 
+                         #(
+                           #(#FramedBoxSpec
+                              #'name:' 'framedBox1'
+                              #'layout:' #(#LayoutFrame 1 0.0 1 0.0 0 0.4 55 0)
+                              #'component:' 
+                               #(#SpecCollection
+                                  #'collection:' 
+                                   #(
+                                     #(#ComboBoxSpec
+                                        #'name:' 'defaultSizesComboBox'
+                                        #'layout:' #(#LayoutFrame 15 0.0 16 0.0 15 1.0 16 1.0)
+                                        #'model:' #selectionOfSize
+                                        #'type:' #string
+                                        #'comboList:' #listOfDefaultSizes
+                                    )
+                                  )
+                              )
+                              #'label:' 'Size'
+                              #'labelPosition:' #topLeft
+                              #'style:' #(#FontDescription #helvetica #medium #roman 12)
+                          )
+                           #(#FramedBoxSpec
+                              #'name:' 'framedBox2'
+                              #'layout:' #(#LayoutFrame 0 0.4 1 0.0 -1 1.0 55 0)
+                              #'component:' 
+                               #(#SpecCollection
+                                  #'collection:' 
+                                   #(
+                                     #(#ComboListSpec
+                                        #'name:' 'colorMapComboBox'
+                                        #'layout:' #(#LayoutFrame 15 0.0 16 0.0 15 1.0 16 1.0)
+                                        #'model:' #selectionOfColorMap
+                                        #'comboList:' #listOfColorMaps
+                                        #'useIndex:' false
+                                    )
+                                  )
+                              )
+                              #'label:' 'Color Map'
+                              #'labelPosition:' #topLeft
+                              #'style:' #(#FontDescription #helvetica #medium #roman 12)
+                          )
+                        )
+                    )
+                    #'level:' 1
+                )
+                 #(#HorizontalPanelViewSpec
+                    #'name:' 'horizontalPanelView1'
+                    #'layout:' #(#LayoutFrame 0 0.0 -38 1 0 1.0 0 1.0)
+                    #'component:' 
+                     #(#SpecCollection
+                        #'collection:' 
+                         #(
+                           #(#ActionButtonSpec
+                              #'name:' 'actionButton2'
+                              #'label:' 'Cancel'
+                              #'model:' #cancel
+                              #'extent:' #(#Point 100 22)
+                          )
+                           #(#ActionButtonSpec
+                              #'name:' 'actionButton1'
+                              #'label:' 'OK'
+                              #'model:' #accept
+                              #'isDefault:' true
+                              #'extent:' #(#Point 100 22)
+                          )
+                        )
+                    )
+                    #'horizontalLayout:' #center
+                    #'verticalLayout:' #center
+                    #'horizontalSpace:' 2
+                    #'verticalSpace:' 1
+                )
+              )
+          )
+      )
+! !
+
+!ImageEditor class methodsFor:'menu specs'!
+
 menu
     "this window spec was automatically generated by the ST/X MenuEditor"
 
@@ -585,7 +976,7 @@
                 #'labelImage:' #(#ResourceRetriever nil #loadFromFileIcon)
             )
              #(#MenuItem
-                #'label:' '-'
+                #'label:' ''
             )
              #(#MenuItem
                 #'label:' 'saveMethod'
@@ -604,7 +995,7 @@
                 #'labelImage:' #(#ResourceRetriever nil #saveIcon)
             )
              #(#MenuItem
-                #'label:' '-'
+                #'label:' ''
             )
              #(#MenuItem
                 #'label:' 'Point'
@@ -651,394 +1042,6 @@
           ) nil
           nil
       )
-!
-
-windowSpec
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:ImageEditor andSelector:#windowSpec
-     ImageEditor new openInterface:#windowSpec
-    "
-    "ImageEditor open"
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'Image Editor'
-              #'layout:' #(#LayoutFrame 197 0 172 0 696 0 517 0)
-              #'label:' 'Image Editor'
-              #'min:' #(#Point 400 320)
-              #'max:' #(#Point 1152 900)
-              #'bounds:' #(#Rectangle 197 172 697 518)
-              #'menu:' #menu
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#MenuPanelSpec
-                    #'name:' 'menuToolbarView'
-                    #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
-                    #'menu:' #menuToolbar
-                    #'style:' #(#FontDescription #helvetica #medium #roman 10)
-                    #'showSeparatingLines:' true
-                )
-                 #(#VariableHorizontalPanelSpec
-                    #'name:' 'variableHorizontalPanel1'
-                    #'layout:' #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -22 1.0)
-                    #'component:' 
-                     #(#SpecCollection
-                        #'collection:' 
-                         #(
-                           #(#ViewSpec
-                              #'name:' 'view1'
-                              #'component:' 
-                               #(#SpecCollection
-                                  #'collection:' 
-                                   #(
-                                     #(#FramedBoxSpec
-                                        #'name:' 'framedBox1'
-                                        #'layout:' #(#LayoutFrame 1 0.0 3 0.0 110 0 65 0)
-                                        #'component:' 
-                                         #(#SpecCollection
-                                            #'collection:' 
-                                             #(
-                                               #(#ArrowButtonSpec
-                                                  #'name:' 'magnifyDownButton'
-                                                  #'layout:' #(#LayoutFrame 13 0 20 0 35 0 42 0)
-                                                  #'activeHelpKey:' #magnifyImageDown
-                                                  #'model:' #magnifyDown
-                                                  #'enableChannel:' #imageIsLoaded
-                                                  #'isTriggerOnDown:' true
-                                                  #'direction:' #left
-                                              )
-                                               #(#ArrowButtonSpec
-                                                  #'name:' 'magnifyUpButton'
-                                                  #'layout:' #(#LayoutFrame 73 0 20 0 95 0 42 0)
-                                                  #'activeHelpKey:' #magnifyImageUp
-                                                  #'model:' #magnifyUp
-                                                  #'enableChannel:' #imageIsLoaded
-                                                  #'isTriggerOnDown:' true
-                                                  #'direction:' #right
-                                              )
-                                               #(#InputFieldSpec
-                                                  #'name:' 'magnificationInputField'
-                                                  #'layout:' #(#LayoutFrame 36 0 20 0.0 72 0 42 0)
-                                                  #'activeHelpKey:' #magnificationNumber
-                                                  #'enableChannel:' #imageIsLoaded
-                                                  #'model:' #valueOfMagnification
-                                                  #'type:' #number
-                                                  #'acceptOnReturn:' false
-                                                  #'acceptOnTab:' false
-                                                  #'numChars:' 2
-                                              )
-                                            )
-                                        )
-                                        #'label:' 'Magnification'
-                                        #'labelPosition:' #topLeft
-                                        #'style:' #(#FontDescription #helvetica #medium #roman 12)
-                                    )
-                                     #(#ArbitraryComponentSpec
-                                        #'name:' 'imagePreView'
-                                        #'layout:' #(#LayoutFrame 111 0.0 9 0.0 -6 1 60 0)
-                                        #'activeHelpKey:' #previewView
-                                        #'hasHorizontalScrollBar:' true
-                                        #'hasVerticalScrollBar:' true
-                                        #'miniScrollerHorizontal:' true
-                                        #'miniScrollerVertical:' true
-                                        #'component:' #ImageView
-                                        #'hasBorder:' true
-                                    )
-                                     #(#FramedBoxSpec
-                                        #'name:' 'framedBox2'
-                                        #'layout:' #(#LayoutFrame 1 0.0 68 0 0 1.0 -66 1)
-                                        #'component:' 
-                                         #(#SpecCollection
-                                            #'collection:' 
-                                             #(
-                                               #(#DataSetSpec
-                                                  #'name:' 'colorDataSetView'
-                                                  #'layout:' #(#LayoutFrame 11 0.0 19 0.0 20 1.0 -10 1.0)
-                                                  #'activeHelpKey:' #colorMapTable
-                                                  #'model:' #selectionOfColor
-                                                  #'style:' #(#FontDescription #helvetica #medium #roman 12)
-                                                  #'hasHorizontalScrollBar:' true
-                                                  #'hasVerticalScrollBar:' true
-                                                  #'miniScrollerHorizontal:' true
-                                                  #'miniScrollerVertical:' true
-                                                  #'dataList:' #listOfColors
-                                                  #'has3Dsepartors:' true
-                                                  #'verticalSpacing:' 1
-                                                  #'columns:' 
-                                                   #(
-                                                     #(#DataSetColumnSpec
-                                                        #'rendererType:' #rowSelector
-                                                        #'backgroundSelector:' #yourself
-                                                    )
-                                                     #(#DataSetColumnSpec
-                                                        #'label:' 'Red'
-                                                        #'model:' #rowRedByte
-                                                        #'canSelect:' false
-                                                    )
-                                                     #(#DataSetColumnSpec
-                                                        #'label:' 'Green'
-                                                        #'model:' #rowGreenByte
-                                                        #'canSelect:' false
-                                                    )
-                                                     #(#DataSetColumnSpec
-                                                        #'label:' 'Blue'
-                                                        #'model:' #rowBlueByte
-                                                        #'canSelect:' false
-                                                    )
-                                                  )
-                                              )
-                                               #(#MenuPanelSpec
-                                                  #'name:' 'menuColorAssignmentPanel'
-                                                  #'layout:' #(#LayoutFrame 11 0 -10 1 18 1 17 1)
-                                                  #'activeHelpKey:' #mouseKeyColorMode
-                                                  #'enableChannel:' #imageIsLoaded
-                                                  #'menu:' #menuColorAssignment
-                                                  #'style:' #(#FontDescription #helvetica #medium #roman 10)
-                                              )
-                                            )
-                                        )
-                                        #'label:' 'Color Map'
-                                        #'labelPosition:' #topLeft
-                                        #'style:' #(#FontDescription #helvetica #medium #roman 12)
-                                    )
-                                     #(#VerticalPanelViewSpec
-                                        #'name:' 'verticalPanelView1'
-                                        #'layout:' #(#LayoutFrame 1 0.0 -68 1 83 0 0 1.0)
-                                        #'component:' 
-                                         #(#SpecCollection
-                                            #'collection:' 
-                                             #(
-                                               #(#LabelSpec
-                                                  #'name:' 'classNameLabel'
-                                                  #'label:' 'Class:'
-                                                  #'adjust:' #right
-                                                  #'extent:' #(#Point 82 21)
-                                              )
-                                               #(#LabelSpec
-                                                  #'name:' 'selectorLabel'
-                                                  #'label:' 'Selector:'
-                                                  #'adjust:' #right
-                                                  #'extent:' #(#Point 82 20)
-                                              )
-                                               #(#LabelSpec
-                                                  #'name:' 'fileNameLabel'
-                                                  #'label:' 'File Name:'
-                                                  #'adjust:' #right
-                                                  #'extent:' #(#Point 82 21)
-                                              )
-                                            )
-                                        )
-                                        #'horizontalLayout:' #fit
-                                        #'verticalLayout:' #fit
-                                        #'horizontalSpace:' 3
-                                        #'verticalSpace:' 3
-                                    )
-                                     #(#VerticalPanelViewSpec
-                                        #'name:' 'verticalPanelView2'
-                                        #'layout:' #(#LayoutFrame 85 0.0 -68 1 -6 1 0 1.0)
-                                        #'component:' 
-                                         #(#SpecCollection
-                                            #'collection:' 
-                                             #(
-                                               #(#InputFieldSpec
-                                                  #'name:' 'resourceClassInputField'
-                                                  #'activeHelpKey:' #inputFieldOfClass
-                                                  #'model:' #valueOfResourceClass
-                                                  #'immediateAccept:' false
-                                                  #'extent:' #(#Point 153 21)
-                                              )
-                                               #(#InputFieldSpec
-                                                  #'name:' 'resourceSelectorInputField'
-                                                  #'activeHelpKey:' #inputFieldOfSelector
-                                                  #'model:' #valueOfResourceSelector
-                                                  #'immediateAccept:' false
-                                                  #'acceptOnTab:' false
-                                                  #'extent:' #(#Point 153 20)
-                                              )
-                                               #(#InputFieldSpec
-                                                  #'name:' 'fileNameInputField'
-                                                  #'activeHelpKey:' #inputFieldFileName
-                                                  #'model:' #valueOfFileName
-                                                  #'immediateAccept:' false
-                                                  #'acceptOnTab:' false
-                                                  #'extent:' #(#Point 153 21)
-                                              )
-                                            )
-                                        )
-                                        #'horizontalLayout:' #fit
-                                        #'verticalLayout:' #fit
-                                        #'horizontalSpace:' 3
-                                        #'verticalSpace:' 3
-                                    )
-                                  )
-                              )
-                              #'level:' -1
-                          )
-                           #(#ViewSpec
-                              #'name:' 'view2'
-                              #'component:' 
-                               #(#SpecCollection
-                                  #'collection:' 
-                                   #(
-                                     #(#ArbitraryComponentSpec
-                                        #'name:' 'imageEditView'
-                                        #'layout:' #(#LayoutFrame 2 0.0 2 0.0 -2 1.0 -24 1.0)
-                                        #'hasHorizontalScrollBar:' true
-                                        #'hasVerticalScrollBar:' true
-                                        #'component:' #ImageEditView
-                                        #'hasBorder:' false
-                                    )
-                                     #(#LabelSpec
-                                        #'name:' 'coordLabel'
-                                        #'layout:' #(#LayoutFrame 2 0.0 -22 1 -4 1.0 0 1.0)
-                                        #'level:' -1
-                                        #'adjust:' #left
-                                    )
-                                  )
-                              )
-                              #'level:' -1
-                          )
-                        )
-                    )
-                    #'level:' 1
-                    #'handles:' #(#Any 0.5 1.0)
-                )
-                 #(#UISubSpecification
-                    #'name:' 'infoBarSubSpec'
-                    #'layout:' #(#LayoutFrame 0 0.0 -22 1 0 1.0 0 1.0)
-                    #'majorKey:' #ToolApplicationModel
-                    #'minorKey:' #windowSpecForInfoBar
-                )
-              )
-          )
-      )
-!
-
-windowSpecForNewImage
-    "this window spec was automatically generated by the ST/X UIPainter"
-
-    "do not manually edit this - the painter/builder may not be able to
-     handle the specification if its corrupted."
-
-    "
-     UIPainter new openOnClass:ImageEditor andSelector:#windowSpecForNewImage
-     ImageEditor new openInterface:#windowSpecForNewImage
-    "
-
-    <resource: #canvas>
-
-    ^
-     
-       #(#FullSpec
-          #'window:' 
-           #(#WindowSpec
-              #'name:' 'New Image'
-              #'layout:' #(#LayoutFrame 194 0 152 0 461 0 248 0)
-              #'label:' 'New Image'
-              #'min:' #(#Point 10 10)
-              #'max:' #(#Point 1152 900)
-              #'bounds:' #(#Rectangle 194 152 462 249)
-              #'usePreferredExtent:' false
-          )
-          #'component:' 
-           #(#SpecCollection
-              #'collection:' 
-               #(
-                 #(#ViewSpec
-                    #'name:' 'View'
-                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -38 1.0)
-                    #'component:' 
-                     #(#SpecCollection
-                        #'collection:' 
-                         #(
-                           #(#FramedBoxSpec
-                              #'name:' 'framedBox1'
-                              #'layout:' #(#LayoutFrame 1 0.0 1 0.0 0 0.4 55 0)
-                              #'component:' 
-                               #(#SpecCollection
-                                  #'collection:' 
-                                   #(
-                                     #(#ComboBoxSpec
-                                        #'name:' 'defaultSizesComboBox'
-                                        #'layout:' #(#LayoutFrame 15 0.0 16 0.0 15 1.0 16 1.0)
-                                        #'model:' #selectionOfSize
-                                        #'type:' #string
-                                        #'comboList:' #listOfDefaultSizes
-                                    )
-                                  )
-                              )
-                              #'label:' 'Size'
-                              #'labelPosition:' #topLeft
-                              #'style:' #(#FontDescription #helvetica #medium #roman 12)
-                          )
-                           #(#FramedBoxSpec
-                              #'name:' 'framedBox2'
-                              #'layout:' #(#LayoutFrame 0 0.4 1 0.0 -1 1.0 55 0)
-                              #'component:' 
-                               #(#SpecCollection
-                                  #'collection:' 
-                                   #(
-                                     #(#ComboListSpec
-                                        #'name:' 'colorMapComboBox'
-                                        #'layout:' #(#LayoutFrame 15 0.0 16 0.0 15 1.0 16 1.0)
-                                        #'model:' #selectionOfColorMap
-                                        #'comboList:' #listOfColorMaps
-                                        #'useIndex:' false
-                                    )
-                                  )
-                              )
-                              #'label:' 'Color Map'
-                              #'labelPosition:' #topLeft
-                              #'style:' #(#FontDescription #helvetica #medium #roman 12)
-                          )
-                        )
-                    )
-                    #'level:' 1
-                )
-                 #(#HorizontalPanelViewSpec
-                    #'name:' 'horizontalPanelView1'
-                    #'layout:' #(#LayoutFrame 0 0.0 -38 1 0 1.0 0 1.0)
-                    #'component:' 
-                     #(#SpecCollection
-                        #'collection:' 
-                         #(
-                           #(#ActionButtonSpec
-                              #'name:' 'actionButton2'
-                              #'label:' 'Cancel'
-                              #'model:' #cancel
-                              #'extent:' #(#Point 100 22)
-                          )
-                           #(#ActionButtonSpec
-                              #'name:' 'actionButton1'
-                              #'label:' 'OK'
-                              #'model:' #accept
-                              #'isDefault:' true
-                              #'extent:' #(#Point 100 22)
-                          )
-                        )
-                    )
-                    #'horizontalLayout:' #center
-                    #'verticalLayout:' #center
-                    #'horizontalSpace:' 2
-                    #'verticalSpace:' 1
-                )
-              )
-          )
-      )
 ! !
 
 !ImageEditor class methodsFor:'resources'!