UIPainter.st
changeset 1626 f6384e64f9a7
parent 1621 112670159075
child 1661 5c0f73b1bd07
equal deleted inserted replaced
1625:4dc8b595e92f 1626:f6384e64f9a7
   614 	constantNamed:#'UIPainter iconAlignTB'
   614 	constantNamed:#'UIPainter iconAlignTB'
   615 	ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself]
   615 	ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself]
   616 ! !
   616 ! !
   617 
   617 
   618 !UIPainter class methodsFor:'interface specs'!
   618 !UIPainter class methodsFor:'interface specs'!
       
   619 
       
   620 XXwindowSpec
       
   621     "This resource specification was automatically generated
       
   622      by the UIPainter of ST/X."
       
   623 
       
   624     "Do not manually edit this!! If it is corrupted,
       
   625      the UIPainter may not be able to read the specification."
       
   626 
       
   627     "
       
   628      UIPainter new openOnClass:UIPainter andSelector:#windowSpec
       
   629      UIPainter new openInterface:#windowSpec
       
   630      UIPainter open
       
   631     "
       
   632 
       
   633     <resource: #canvas>
       
   634 
       
   635     ^ 
       
   636      #(#FullSpec
       
   637         #name: #windowSpec
       
   638         #window: 
       
   639        #(#WindowSpec
       
   640           #label: 'GUI Painter'
       
   641           #name: 'GUI Painter'
       
   642           #min: #(#Point 560 460)
       
   643           #max: #(#Point 1160 870)
       
   644           #bounds: #(#Rectangle 343 100 951 623)
       
   645           #menu: #menu
       
   646         )
       
   647         #component: 
       
   648        #(#SpecCollection
       
   649           #collection: #(
       
   650            #(#MenuPanelSpec
       
   651               #name: 'menuToolbarView'
       
   652               #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
       
   653               #level: 1
       
   654               #tabable: true
       
   655               #menu: #menuToolbar
       
   656             )
       
   657            #(#VariableHorizontalPanelSpec
       
   658               #name: 'hpanel'
       
   659               #layout: #(#LayoutFrame 0 0.0 32 0.0 0 1.0 -26 1.0)
       
   660               #level: 1
       
   661               #component: 
       
   662              #(#SpecCollection
       
   663                 #collection: #(
       
   664                  #(#ArbitraryComponentSpec
       
   665                     #name: 'treeView'
       
   666                     #tabable: true
       
   667                     #menu: #menuEdit
       
   668                     #hasHorizontalScrollBar: true
       
   669                     #hasVerticalScrollBar: true
       
   670                     #miniScrollerHorizontal: true
       
   671                     #miniScrollerVertical: true
       
   672                     #hasBorder: false
       
   673                     #component: #treeView
       
   674                   )
       
   675                  #(#ViewSpec
       
   676                     #name: 'specHolderView'
       
   677                     #level: 0
       
   678                     #component: 
       
   679                    #(#SpecCollection
       
   680                       #collection: #(
       
   681                        #(#MenuPanelSpec
       
   682                           #name: 'menuToolbar2View'
       
   683                           #layout: #(#LayoutFrame 2 0.0 2 0 -2 1.0 32 0)
       
   684                           #level: 0
       
   685                           #tabable: true
       
   686                           #menu: #menuToolbar2
       
   687                         )
       
   688                        #(#NoteBookViewSpec
       
   689                           #name: 'noteBook'
       
   690                           #layout: #(#LayoutFrame 2 0.0 34 0.0 -2 1.0 -28 1.0)
       
   691                           #level: 0
       
   692                           #enableChannel: #enableChannel
       
   693                           #tabable: true
       
   694                           #model: #tabModel
       
   695                           #menu: #tabList
       
   696                           #canvas: #noteBookView
       
   697                           #tabTopMargin: 0
       
   698                         )
       
   699                        #(#HorizontalPanelViewSpec
       
   700                           #name: 'HorizontalPanel1'
       
   701                           #layout: #(#LayoutFrame 2 0 -26 1 -2 1 -2 1)
       
   702                           #horizontalLayout: #fit
       
   703                           #verticalLayout: #fit
       
   704                           #horizontalSpace: 3
       
   705                           #verticalSpace: 3
       
   706                           #reverseOrderIfOKAtLeft: true
       
   707                           #component: 
       
   708                          #(#SpecCollection
       
   709                             #collection: #(
       
   710                              #(#ActionButtonSpec
       
   711                                 #label: 'Cancel'
       
   712                                 #name: 'cancelButton'
       
   713                                 #activeHelpKey: #commitCancel
       
   714                                 #tabable: true
       
   715                                 #model: #cancel
       
   716                                 #enableChannel: #modifiedChannel
       
   717                                 #extent: #(#Point 200 24)
       
   718                               )
       
   719                              #(#ActionButtonSpec
       
   720                                 #label: 'OK'
       
   721                                 #name: 'acceptButton'
       
   722                                 #activeHelpKey: #commitOK
       
   723                                 #tabable: true
       
   724                                 #model: #accept
       
   725                                 #enableChannel: #modifiedChannel
       
   726                                 #extent: #(#Point 201 24)
       
   727                               )
       
   728                              )
       
   729                            
       
   730                           )
       
   731                         )
       
   732                        )
       
   733                      
       
   734                     )
       
   735                   )
       
   736                  )
       
   737                
       
   738               )
       
   739               #handles: #(#Any 0.318868 1.0)
       
   740             )
       
   741            #(#UISubSpecification
       
   742               #name: 'infoBarSubSpec'
       
   743               #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
       
   744               #majorKey: #ToolApplicationModel
       
   745               #minorKey: #windowSpecForInfoBar
       
   746             )
       
   747            )
       
   748          
       
   749         )
       
   750       )
       
   751 !
   619 
   752 
   620 dialogSpecForDefiningClassAndSelector
   753 dialogSpecForDefiningClassAndSelector
   621     "This resource specification was automatically generated
   754     "This resource specification was automatically generated
   622      by the UIPainter of ST/X."
   755      by the UIPainter of ST/X."
   623 
   756 
   840        #(#WindowSpec
   973        #(#WindowSpec
   841           #label: 'GUI Painter'
   974           #label: 'GUI Painter'
   842           #name: 'GUI Painter'
   975           #name: 'GUI Painter'
   843           #min: #(#Point 560 460)
   976           #min: #(#Point 560 460)
   844           #max: #(#Point 1160 870)
   977           #max: #(#Point 1160 870)
   845           #bounds: #(#Rectangle 9 298 617 821)
   978           #bounds: #(#Rectangle 174 290 782 813)
   846           #menu: #menu
   979           #menu: #menu
   847         )
   980         )
   848         #component: 
   981         #component: 
   849        #(#SpecCollection
   982        #(#SpecCollection
   850           #collection: #(
   983           #collection: #(
   851            #(#MenuPanelSpec
   984            #(#MenuPanelSpec
   852               #name: 'menuToolbarView'
   985               #name: 'menuToolbarView'
   853               #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
   986               #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
       
   987               #level: 1
   854               #tabable: true
   988               #tabable: true
   855               #menu: #menuToolbar
   989               #menu: #menuToolbar
   856             )
   990             )
   857            #(#VariableHorizontalPanelSpec
   991            #(#VariableHorizontalPanelSpec
   858               #name: 'hpanel'
   992               #name: 'hpanel'
   859               #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
   993               #layout: #(#LayoutFrame 0 0.0 32 0.0 0 1.0 -24 1.0)
   860               #level: 1
   994               #level: 1
   861               #component: 
   995               #component: 
   862              #(#SpecCollection
   996              #(#SpecCollection
   863                 #collection: #(
   997                 #collection: #(
   864                  #(#ArbitraryComponentSpec
   998                  #(#ArbitraryComponentSpec
   872                     #hasBorder: false
  1006                     #hasBorder: false
   873                     #component: #treeView
  1007                     #component: #treeView
   874                   )
  1008                   )
   875                  #(#ViewSpec
  1009                  #(#ViewSpec
   876                     #name: 'specHolderView'
  1010                     #name: 'specHolderView'
   877                     #borderWidth: 1
  1011                     #level: 0
   878                     #component: 
  1012                     #component: 
   879                    #(#SpecCollection
  1013                    #(#SpecCollection
   880                       #collection: #(
  1014                       #collection: #(
   881                        #(#MenuPanelSpec
  1015                        #(#MenuPanelSpec
   882                           #name: 'menuToolbar2View'
  1016                           #name: 'menuToolbar2View'
   883                           #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
  1017                           #layout: #(#LayoutFrame 2 0.0 2 0 -2 1.0 32 0)
       
  1018                           #level: 0
   884                           #tabable: true
  1019                           #tabable: true
   885                           #menu: #menuToolbar2
  1020                           #menu: #menuToolbar2
   886                         )
  1021                         )
   887                        #(#NoteBookViewSpec
  1022                        #(#NoteBookViewSpec
   888                           #name: 'noteBook'
  1023                           #name: 'noteBook'
   889                           #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
  1024                           #layout: #(#LayoutFrame 2 0.0 32 0.0 -2 1.0 -28 1.0)
       
  1025                           #level: 0
   890                           #enableChannel: #enableChannel
  1026                           #enableChannel: #enableChannel
   891                           #tabable: true
  1027                           #tabable: true
   892                           #model: #tabModel
  1028                           #model: #tabModel
   893                           #menu: #tabList
  1029                           #menu: #tabList
   894                           #canvas: #noteBookView
  1030                           #canvas: #noteBookView
   895                         )
  1031                         )
   896                        #(#HorizontalPanelViewSpec
  1032                        #(#HorizontalPanelViewSpec
   897                           #name: 'HorizontalPanel1'
  1033                           #name: 'HorizontalPanel1'
   898                           #layout: #(#LayoutFrame 2 0 -28 1 -2 1 -2 1)
  1034                           #layout: #(#LayoutFrame 2 0 -26 1 -2 1 -2 1)
   899                           #horizontalLayout: #center
  1035                           #horizontalLayout: #fit
   900                           #verticalLayout: #center
  1036                           #verticalLayout: #fit
   901                           #horizontalSpace: 3
  1037                           #horizontalSpace: 3
   902                           #verticalSpace: 3
  1038                           #verticalSpace: 3
   903                           #reverseOrderIfOKAtLeft: true
  1039                           #reverseOrderIfOKAtLeft: true
   904                           #component: 
  1040                           #component: 
   905                          #(#SpecCollection
  1041                          #(#SpecCollection
   909                                 #name: 'cancelButton'
  1045                                 #name: 'cancelButton'
   910                                 #activeHelpKey: #commitCancel
  1046                                 #activeHelpKey: #commitCancel
   911                                 #tabable: true
  1047                                 #tabable: true
   912                                 #model: #cancel
  1048                                 #model: #cancel
   913                                 #enableChannel: #modifiedChannel
  1049                                 #enableChannel: #modifiedChannel
   914                                 #extent: #(#Point 201 24)
  1050                                 #extent: #(#Point 200 24)
   915                               )
  1051                               )
   916                              #(#ActionButtonSpec
  1052                              #(#ActionButtonSpec
   917                                 #label: 'OK'
  1053                                 #label: 'OK'
   918                                 #name: 'acceptButton'
  1054                                 #name: 'acceptButton'
   919                                 #activeHelpKey: #commitOK
  1055                                 #activeHelpKey: #commitOK
   936               #handles: #(#Any 0.318868 1.0)
  1072               #handles: #(#Any 0.318868 1.0)
   937             )
  1073             )
   938            #(#UISubSpecification
  1074            #(#UISubSpecification
   939               #name: 'infoBarSubSpec'
  1075               #name: 'infoBarSubSpec'
   940               #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
  1076               #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
       
  1077               #level: 1
   941               #majorKey: #ToolApplicationModel
  1078               #majorKey: #ToolApplicationModel
   942               #minorKey: #windowSpecForInfoBar
  1079               #minorKey: #windowSpecForInfoBar
   943             )
  1080             )
   944            )
  1081            )
   945          
  1082