UISelectionPanel.st
changeset 135 8f4b6117ccaa
parent 125 8d408045b018
child 139 dc64ad7c0267
equal deleted inserted replaced
134:d5ab85ec27fd 135:8f4b6117ccaa
    69 
    69 
    70 ! !
    70 ! !
    71 
    71 
    72 !UISelectionPanel class methodsFor:'instance creation'!
    72 !UISelectionPanel class methodsFor:'instance creation'!
    73 
    73 
    74 open
    74 newDefault
    75     |appl|
    75     |appl|
    76 
    76 
    77     appl := self new.
    77     appl := self new.
    78 
    78 
    79     appl labels:#( 'Button & Toggle'
    79     appl labels:#( 'Button & Toggle'
    91                    #menuComboSpec
    91                    #menuComboSpec
    92                    #sliderSpec
    92                    #sliderSpec
    93                  )
    93                  )
    94        receiver:self.
    94        receiver:self.
    95 
    95 
       
    96   ^ appl.
       
    97 !
       
    98 
       
    99 open
       
   100     |appl|
       
   101 
       
   102     appl := self newDefault.
    96     appl open.
   103     appl open.
    97   ^ appl.
   104     ^ appl.
    98 ! !
   105 ! !
    99 
   106 
   100 !UISelectionPanel class methodsFor:'default specs'!
   107 !UISelectionPanel class methodsFor:'default specs'!
   101 
   108 
   102 buttonToggleSpec
   109 buttonToggleSpec
   619               #'collection:' 
   626               #'collection:' 
   620                #(
   627                #(
   621                  #(#InputFieldSpec
   628                  #(#InputFieldSpec
   622                     #'name:' 'EditField'
   629                     #'name:' 'EditField'
   623                     #'layout:' #(#LayoutFrame 20 0 20 0 115 0 42 0)
   630                     #'layout:' #(#LayoutFrame 20 0 20 0 115 0 42 0)
   624                     #'immediateAccept:' false
   631                     #'immediateAccept:' true
   625                     #'acceptOnLeave:' true
       
   626                     #'acceptOnReturn:' true
       
   627                     #'acceptOnTab:' true
       
   628                     #'acceptOnLostFocus:' true
       
   629                     #'hasBorder:' false
       
   630                 )
   632                 )
   631                  #(#LabelSpec
   633                  #(#LabelSpec
   632                     #'name:' 'Text Label'
   634                     #'name:' 'Text Label'
   633                     #'layout:' #(#LayoutFrame 20 0 50 0 115 0 66 0)
   635                     #'layout:' #(#LayoutFrame 20 0 50 0 115 0 66 0)
   634                     #'label:' 'Text Label'
   636                     #'label:' 'Text Label'
   702     "
   704     "
   703 
   705 
   704     <resource: #canvas>
   706     <resource: #canvas>
   705 
   707 
   706     ^
   708     ^
   707 
   709      
   708        #(#FullSpec
   710        #(#FullSpec
   709           #'window:' 
   711           #'window:' 
   710            #(#WindowSpec
   712            #(#WindowSpec
   711               #'name:' 'uIPainterView'
   713               #'name:' 'uIPainterView'
   712               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   714               #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
   717            #(#SpecCollection
   719            #(#SpecCollection
   718               #'collection:' 
   720               #'collection:' 
   719                #(
   721                #(
   720                  #(#FramedBoxSpec
   722                  #(#FramedBoxSpec
   721                     #'name:' 'FramedBox'
   723                     #'name:' 'FramedBox'
   722                     #'layout:' #(#LayoutFrame 20 0 20 0 122 0 95 0)
   724                     #'layout:' #(#LayoutFrame 8 0 20 0 110 0 85 0)
   723                     #'label:' 'FramedBox'
   725                     #'label:' 'FramedBox'
   724                     #'labelPosition:' #topCenter
   726                     #'labelPosition:' #topCenter
   725                     #'showFrame:' true
   727                     #'showFrame:' true
   726                 )
   728                 )
   727                  #(#ViewSpec
   729                  #(#ViewSpec
   728                     #'name:' 'View'
   730                     #'name:' 'View'
   729                     #'layout:' #(#LayoutFrame 134 0 20 0 236 0 95 0)
   731                     #'layout:' #(#LayoutFrame 124 0 20 0 206 0 85 0)
   730                 )
   732                 )
   731                  #(#SubCanvasSpec
   733                  #(#SubCanvasSpec
   732                     #'name:' 'SubCanvas'
   734                     #'name:' 'SubCanvas'
   733                     #'layout:' #(#LayoutFrame 250 0 20 0 352 0 95 0)
   735                     #'layout:' #(#LayoutFrame 218 0 20 0 311 0 85 0)
   734                 )
   736                 )
   735                  #(#LabelSpec
   737                  #(#LabelSpec
   736                     #'name:' 'subCanvasLabel'
   738                     #'name:' 'subCanvasLabel'
   737                     #'layout:' #(#LayoutFrame 266 0 25 0 337 0 42 0)
   739                     #'layout:' #(#LayoutFrame 230 0 25 0 301 0 42 0)
   738                     #'label:' 'SubCanvas'
   740                     #'label:' 'SubCanvas'
   739                     #'level:' 0
   741                     #'level:' 0
   740                     #'adjust:' #center
   742                     #'adjust:' #center
   741                     #'hasCharacterOrientedLabel:' true
   743                     #'hasCharacterOrientedLabel:' true
   742                     #'canUIDrag:' false
   744                     #'canUIDrag:' false
   743                 )
   745                 )
   744                  #(#DividerSpec
   746                  #(#DividerSpec
   745                     #'name:' 'Horizontal Seperator'
   747                     #'name:' 'Horizontal Seperator'
   746                     #'layout:' #(#LayoutFrame 20 0 111 0 353 0 128 0)
   748                     #'layout:' #(#LayoutFrame 8 0 93 0 110 0 110 0)
   747                     #'orientation:' #horizontal
   749                     #'orientation:' #horizontal
   748                 )
   750                 )
   749                  #(#DividerSpec
   751                  #(#DividerSpec
   750                     #'name:' 'Vertical Seperator'
   752                     #'name:' 'Vertical Seperator'
   751                     #'layout:' #(#LayoutFrame 364 0 20 0 383 0 128 0)
   753                     #'layout:' #(#LayoutFrame 124 0 93 0 143 0 171 0)
   752                     #'orientation:' #vertical
   754                     #'orientation:' #vertical
   753                 )
   755                 )
   754                  #(#LabelSpec
   756                  #(#LabelSpec
   755                     #'name:' 'viewLabel'
   757                     #'name:' 'viewLabel'
   756                     #'layout:' #(#LayoutFrame 160 0 25 0 211 0 42 0)
   758                     #'layout:' #(#LayoutFrame 138 0 25 0 189 0 42 0)
   757                     #'label:' 'View'
   759                     #'label:' 'View'
   758                     #'level:' 0
   760                     #'level:' 0
   759                     #'adjust:' #center
   761                     #'adjust:' #center
   760                     #'hasCharacterOrientedLabel:' true
   762                     #'hasCharacterOrientedLabel:' true
   761                     #'canUIDrag:' false
   763                     #'canUIDrag:' false
   762                 )
   764                 )
       
   765                  #(#HTMLViewSpec
       
   766                     #'name:' 'HTMLView'
       
   767                     #'layout:' #(#LayoutFrame 324 0 20 0 449 0 85 0)
       
   768                     #'hasHorizontalScrollBar:' false
       
   769                     #'hasVerticalScrollBar:' true
       
   770                     #'miniScrollerHorizontal:' false
       
   771                     #'miniScrollerVertical:' false
       
   772                 )
       
   773                  #(#LabelSpec
       
   774                     #'name:' 'HTMLViewLabel'
       
   775                     #'layout:' #(#LayoutFrame 355 0 25 0 436 0 42 0)
       
   776                     #'label:' 'HTML View'
       
   777                     #'level:' 0
       
   778                     #'adjust:' #center
       
   779                     #'hasCharacterOrientedLabel:' true
       
   780                     #'canUIDrag:' false
       
   781                 )
   763               )
   782               )
   764           )
   783           )
   765       )
   784       )
   766 
       
   767 ! !
   785 ! !
   768 
   786 
   769 !UISelectionPanel class methodsFor:'interface specs'!
   787 !UISelectionPanel class methodsFor:'interface specs'!
   770 
   788 
   771 windowSpec
   789 windowSpec