ImageEditor.st
changeset 2155 bfc839d08928
parent 2136 bb10485fa455
child 2174 7beca4d9c93a
equal deleted inserted replaced
2154:7104c1c4ad3a 2155:bfc839d08928
   459     <resource: #image>
   459     <resource: #image>
   460 
   460 
   461     ^Icon
   461     ^Icon
   462         constantNamed:#'ImageEditor class copyIcon'
   462         constantNamed:#'ImageEditor class copyIcon'
   463         ifAbsentPut:[(Depth2Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@** @@J)UUTB*Z*)@*&**PJ)**$B*Z*)@*&**PJ)**$@@Z*)@@F**P@AUUT@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@C? O>@??3??O?<??3??O?<??3??@_<A?0@@@@a') ; yourself); yourself]
   463         ifAbsentPut:[(Depth2Image new) width: 14; height: 14; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@** @@J)UUTB*Z*)@*&**PJ)**$B*Z*)@*&**PJ)**$@@Z*)@@F**P@AUUT@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 128 255 255 255]; mask:((Depth1Image new) width: 14; height: 14; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@C? O>@??3??O?<??3??O?<??3??@_<A?0@@@@a') ; yourself); yourself]
       
   464 !
       
   465 
       
   466 defaultIcon
       
   467     <resource: #programImage>
       
   468 
       
   469     ^ ToolbarIconLibrary startImageEditorIcon
   464 !
   470 !
   465 
   471 
   466 fillIcon
   472 fillIcon
   467     "This resource specification was automatically generated
   473     "This resource specification was automatically generated
   468      by the ImageEditor of ST/X."
   474      by the ImageEditor of ST/X."
  1345           label: 'Image Editor'
  1351           label: 'Image Editor'
  1346           name: 'Image Editor'
  1352           name: 'Image Editor'
  1347           min: (Point 400 320)
  1353           min: (Point 400 320)
  1348           bounds: (Rectangle 0 0 450 350)
  1354           bounds: (Rectangle 0 0 450 350)
  1349           menu: menu
  1355           menu: menu
       
  1356           icon: defaultIcon
  1350         )
  1357         )
  1351         component: 
  1358         component: 
  1352        (SpecCollection
  1359        (SpecCollection
  1353           collection: (
  1360           collection: (
  1354            (MenuPanelSpec
  1361            (MenuPanelSpec
  1404                                       miniScrollerVertical: true
  1411                                       miniScrollerVertical: true
  1405                                       dataList: listOfColors
  1412                                       dataList: listOfColors
  1406                                       has3Dseparators: true
  1413                                       has3Dseparators: true
  1407                                       columnHolder: colorTableColumns
  1414                                       columnHolder: colorTableColumns
  1408                                       verticalSpacing: 1
  1415                                       verticalSpacing: 1
  1409 "/                                      columns: 
       
  1410 "/                                     (OrderedCollection
       
  1411 "/                                        
       
  1412 "/                                       (DataSetColumnSpec
       
  1413 "/                                          labelButtonType: Button
       
  1414 "/                                          rendererType: rowSelector
       
  1415 "/                                          backgroundSelector: theColorItSelf:
       
  1416 "/                                        ) 
       
  1417 "/                                       (DataSetColumnSpec
       
  1418 "/                                          label: 'R'
       
  1419 "/                                          labelAlignment: left
       
  1420 "/                                          labelButtonType: Button
       
  1421 "/                                          columnAlignment: right
       
  1422 "/                                          editorType: InputField
       
  1423 "/                                          type: number
       
  1424 "/                                          model: redFromColor:
       
  1425 "/                                          writeSelector: redAtColor:put:
       
  1426 "/                                          selectSelector: canSelectRedInColor:
       
  1427 "/                                        )
       
  1428 "/                                        
       
  1429 "/                                       (DataSetColumnSpec
       
  1430 "/                                          label: 'G'
       
  1431 "/                                          labelAlignment: left
       
  1432 "/                                          labelButtonType: Button
       
  1433 "/                                          columnAlignment: right
       
  1434 "/                                          editorType: InputField
       
  1435 "/                                          type: number
       
  1436 "/                                          model: greenFromColor:
       
  1437 "/                                          writeSelector: greenAtColor:put:
       
  1438 "/                                          selectSelector: canSelectGreenInColor:
       
  1439 "/                                        ) 
       
  1440 "/                                       (DataSetColumnSpec
       
  1441 "/                                          label: 'B'
       
  1442 "/                                          labelAlignment: left
       
  1443 "/                                          labelButtonType: Button
       
  1444 "/                                          columnAlignment: right
       
  1445 "/                                          editorType: InputField
       
  1446 "/                                          type: number
       
  1447 "/                                          model: blueFromColor:
       
  1448 "/                                          writeSelector: blueAtColor:put:
       
  1449 "/                                          selectSelector: canSelectBlueInColor:
       
  1450 "/                                        )
       
  1451 "/                                      )
       
  1452                                       columnAdaptor: colorColumnAdaptor
  1416                                       columnAdaptor: colorColumnAdaptor
  1453                                     )
  1417                                     )
  1454                                    )
  1418                                    )
  1455                                  
  1419                                  
  1456                                 )
  1420                                 )