UISelectionPanel.st
changeset 671 3e3d7f168024
parent 670 c77522d9e388
child 677 aa0b1c1ebfe6
equal deleted inserted replaced
670:c77522d9e388 671:3e3d7f168024
    90                             #('Boxes'                   standardBoxes)
    90                             #('Boxes'                   standardBoxes)
    91                             #('Misc'                    standardMisc)
    91                             #('Misc'                    standardMisc)
    92                          )
    92                          )
    93          )
    93          )
    94 
    94 
    95         #( 'Clip Board'  #(
    95         #( 'Clipboard'  #(
    96                             #('Copy & Paste Buffer'     clipBoardSpec)
    96                             #('Copy & Paste Buffer'     clipBoardSpec)
    97                           )
    97                           )
    98          )
    98          )
    99 
    99 
   100         #( 'User Def.'   #userDefined )
   100         #( 'User Def.'   #userDefined )
   265     ^
   265     ^
   266      
   266      
   267        #(#FullSpec
   267        #(#FullSpec
   268           #'window:' 
   268           #'window:' 
   269            #(#WindowSpec
   269            #(#WindowSpec
   270               #'name:' 'Component Gallery'
   270               #'name:' 'Widget Gallery'
   271               #'layout:' #(#LayoutFrame 78 0 70 0 598 0 352 0)
   271               #'layout:' #(#LayoutFrame 78 0 70 0 598 0 352 0)
   272               #'label:' 'Component Gallery'
   272               #'label:' 'Widget Gallery'
   273               #'min:' #(#Point 100 280)
   273               #'min:' #(#Point 100 280)
   274               #'max:' #(#Point 1160 870)
   274               #'max:' #(#Point 1160 870)
   275               #'bounds:' #(#Rectangle 78 70 599 353)
   275               #'bounds:' #(#Rectangle 78 70 599 353)
   276           )
   276           )
   277           #'component:' 
   277           #'component:' 
   620      
   620      
   621        #(#FullSpec
   621        #(#FullSpec
   622           #window: 
   622           #window: 
   623            #(#WindowSpec
   623            #(#WindowSpec
   624               #name: 'Buttons'
   624               #name: 'Buttons'
   625               #layout: #(#LayoutFrame 40 0 280 0 518 0 479 0)
   625               #layout: #(#LayoutFrame 197 0 172 0 675 0 371 0)
   626               #label: 'Buttons'
   626               #label: 'Buttons'
   627               #min: #(#Point 10 10)
   627               #min: #(#Point 10 10)
   628               #max: #(#Point 1280 1024)
   628               #max: #(#Point 1280 1024)
   629               #bounds: #(#Rectangle 40 280 519 480)
   629               #bounds: #(#Rectangle 197 172 676 372)
   630               #usePreferredExtent: false
   630               #usePreferredExtent: false
   631           )
   631           )
   632           #component: 
   632           #component: 
   633            #(#SpecCollection
   633            #(#SpecCollection
   634               #collection: 
   634               #collection: 
   684                     #stop: 100
   684                     #stop: 100
   685                     #step: 1
   685                     #step: 1
   686                 )
   686                 )
   687                  #(#LabelSpec
   687                  #(#LabelSpec
   688                     #name: 'SliderLabel'
   688                     #name: 'SliderLabel'
   689                     #layout: #(#AlignmentOrigin 185 0 83 0 0 0)
   689                     #layout: #(#AlignmentOrigin 196 0 83 0 0 0)
   690                     #label: 'Slider'
   690                     #label: 'Slider'
   691                     #style: #(#FontDescription #helvetica #medium #roman 10)
   691                     #style: #(#FontDescription #helvetica #medium #roman 10)
   692                     #adjust: #left
       
   693                     #resizeForLabel: true
   692                     #resizeForLabel: true
   694                     #canUIDrag: false
   693                     #canUIDrag: false
   695                 )
   694                 )
   696                  #(#LabelSpec
   695                  #(#LabelSpec
   697                     #name: 'ThumbWheelLabel'
   696                     #name: 'ThumbWheelLabel'
   698                     #layout: #(#AlignmentOrigin 151 0 121 0 0 0)
   697                     #layout: #(#AlignmentOrigin 151 0 121 0 0 0)
   699                     #label: 'ThumbWheel'
   698                     #label: 'ThumbWheel'
   700                     #style: #(#FontDescription #helvetica #medium #roman 10)
   699                     #style: #(#FontDescription #helvetica #medium #roman 10)
   701                     #adjust: #left
       
   702                     #resizeForLabel: true
   700                     #resizeForLabel: true
   703                     #canUIDrag: false
   701                     #canUIDrag: false
   704                 )
   702                 )
   705                  #(#ThumbWheelSpec
   703                  #(#ThumbWheelSpec
   706                     #name: 'ThumbWheel'
   704                     #name: 'ThumbWheel'
   747                     #layout: #(#LayoutFrame 330 0 47 0 445 0 69 0)
   745                     #layout: #(#LayoutFrame 330 0 47 0 445 0 69 0)
   748                     #label: 'CheckBox'
   746                     #label: 'CheckBox'
   749                 )
   747                 )
   750                  #(#CheckToggleSpec
   748                  #(#CheckToggleSpec
   751                     #name: 'CheckToggle'
   749                     #name: 'CheckToggle'
   752                     #layout: #(#LayoutFrame 332 0 79 0 352 0 98 0)
   750                     #layout: #(#LayoutFrame 332 0 79 0 351 0 98 0)
   753                     #isTriggerOnDown: true
   751                     #isTriggerOnDown: true
   754                     #showLamp: false
   752                     #showLamp: false
   755                     #lampColor: #(#Color 100.0 100.0 0.0)
   753                     #lampColor: #(#Color 100.0 100.0 0.0)
   756                 )
   754                 )
   757                  #(#LabelSpec
   755                  #(#LabelSpec
   763                     #resizeForLabel: true
   761                     #resizeForLabel: true
   764                     #canUIDrag: false
   762                     #canUIDrag: false
   765                 )
   763                 )
   766                  #(#UpDownButtonSpec
   764                  #(#UpDownButtonSpec
   767                     #name: 'UpDownButton'
   765                     #name: 'UpDownButton'
   768                     #layout: #(#LayoutFrame 330 0 111 0 354 0 127 0)
   766                     #layout: #(#LayoutFrame 330 0 111 0 346 0 123 0)
   769                     #orientation: #horizontal
   767                     #orientation: #horizontal
   770                 )
   768                 )
   771                  #(#LabelSpec
   769                  #(#LabelSpec
   772                     #name: 'UpDownButtonLabel'
   770                     #name: 'UpDownButtonLabel'
   773                     #layout: #(#AlignmentOrigin 361 0 112 0 0 0)
   771                     #layout: #(#AlignmentOrigin 361 0 112 0 0 0)
   896      
   894      
   897        #(#FullSpec
   895        #(#FullSpec
   898           #window: 
   896           #window: 
   899            #(#WindowSpec
   897            #(#WindowSpec
   900               #name: 'Menus'
   898               #name: 'Menus'
   901               #layout: #(#LayoutFrame 197 0 172 0 768 0 543 0)
   899               #layout: #(#LayoutFrame 43 0 175 0 614 0 546 0)
   902               #label: 'Menus'
   900               #label: 'Menus'
   903               #min: #(#Point 10 10)
   901               #min: #(#Point 10 10)
   904               #max: #(#Point 1280 1024)
   902               #max: #(#Point 1280 1024)
   905               #bounds: #(#Rectangle 197 172 769 544)
   903               #bounds: #(#Rectangle 43 175 615 547)
   906               #usePreferredExtent: false
   904               #usePreferredExtent: false
   907           )
   905           )
   908           #component: 
   906           #component: 
   909            #(#SpecCollection
   907            #(#SpecCollection
   910               #collection: 
   908               #collection: 
   935                     #layout: #(#LayoutFrame 15 0 94 0 140 0 114 0)
   933                     #layout: #(#LayoutFrame 15 0 94 0 140 0 114 0)
   936                     #useIndex: false
   934                     #useIndex: false
   937                 )
   935                 )
   938                  #(#LabelSpec
   936                  #(#LabelSpec
   939                     #name: 'ComboListLabel'
   937                     #name: 'ComboListLabel'
   940                     #layout: #(#LayoutFrame 18 0 96 0 117 0 114 0)
   938                     #layout: #(#LayoutFrame 17 0 96 0 95 0 114 0)
   941                     #label: 'ComboListView'
   939                     #label: 'ComboListView'
   942                     #style: #(#FontDescription #helvetica #medium #roman 10)
   940                     #style: #(#FontDescription #helvetica #medium #roman 10)
   943                     #adjust: #left
   941                     #adjust: #left
   944                     #resizeForLabel: true
   942                     #resizeForLabel: true
   945                     #canUIDrag: false
   943                     #canUIDrag: false
   948                     #name: 'ComboBoxView'
   946                     #name: 'ComboBoxView'
   949                     #layout: #(#LayoutFrame 15 0 130 0 140 0 150 0)
   947                     #layout: #(#LayoutFrame 15 0 130 0 140 0 150 0)
   950                 )
   948                 )
   951                  #(#LabelSpec
   949                  #(#LabelSpec
   952                     #name: 'ComboBoxLabel'
   950                     #name: 'ComboBoxLabel'
   953                     #layout: #(#LayoutFrame 18 0 132 0 111 0 150 0)
   951                     #layout: #(#LayoutFrame 17 0 132 0 96 0 150 0)
   954                     #label: 'ComboBoxView'
   952                     #label: 'ComboBoxView'
   955                     #style: #(#FontDescription #helvetica #medium #roman 10)
   953                     #style: #(#FontDescription #helvetica #medium #roman 10)
   956                     #adjust: #left
   954                     #adjust: #left
   957                     #resizeForLabel: true
   955                     #resizeForLabel: true
   958                     #canUIDrag: false
   956                     #canUIDrag: false
  1426         topView := builder window topView.
  1424         topView := builder window topView.
  1427 
  1425 
  1428         (label := channel value) notNil ifTrue:[
  1426         (label := channel value) notNil ifTrue:[
  1429             topView label:label name, ' '.
  1427             topView label:label name, ' '.
  1430         ] ifFalse:[
  1428         ] ifFalse:[
  1431             topView label:'Component Gallery '
  1429             topView label:'Widget Gallery '
  1432         ]
  1430         ]
  1433     ].
  1431     ].
  1434 
  1432 
  1435     super update:something with:aParameter from:changedObject.
  1433     super update:something with:aParameter from:changedObject.
  1436 
  1434 
  1645 ! !
  1643 ! !
  1646 
  1644 
  1647 !UISelectionPanel::UserDefinedGallery class methodsFor:'defaults'!
  1645 !UISelectionPanel::UserDefinedGallery class methodsFor:'defaults'!
  1648 
  1646 
  1649 defaultListOfLabels
  1647 defaultListOfLabels
  1650     ^ #( 'clocks' )
  1648     ^ #( 'Clocks' )
  1651 
  1649 
  1652     "Created: / 8.12.1997 / 18:50:06 / cg"
  1650     "Created: / 8.12.1997 / 18:50:06 / cg"
  1653 !
  1651 !
  1654 
  1652 
  1655 defaultListOfSelectors
  1653 defaultListOfSelectors