UIPainter.st
changeset 1317 49d6dac15a57
parent 1316 d66f0b84aa6b
child 1319 6a245b972637
equal deleted inserted replaced
1316:d66f0b84aa6b 1317:49d6dac15a57
   687 
   687 
   688     <resource: #canvas>
   688     <resource: #canvas>
   689 
   689 
   690     ^ 
   690     ^ 
   691      #(#FullSpec
   691      #(#FullSpec
   692 	#name: #windowSpec
   692         #name: #windowSpec
   693 	#window: 
   693         #window: 
   694        #(#WindowSpec
   694        #(#WindowSpec
   695 	  #label: 'GUI Painter'
   695           #label: 'GUI Painter'
   696 	  #name: 'GUI Painter'
   696           #name: 'GUI Painter'
   697 	  #layout: #(#LayoutFrame 220 0 200 0 827 0 722 0)
   697           #min: #(#Point 560 460)
   698 	  #min: #(#Point 560 460)
   698           #max: #(#Point 1160 870)
   699 	  #max: #(#Point 1160 870)
   699           #bounds: #(#Rectangle 12 22 620 545)
   700 	  #bounds: #(#Rectangle 220 200 828 723)
   700           #menu: #menu
   701 	  #menu: #menu
   701         )
   702 	)
   702         #component: 
   703 	#component: 
       
   704        #(#SpecCollection
   703        #(#SpecCollection
   705 	  #collection: #(
   704           #collection: #(
   706 	   #(#MenuPanelSpec
   705            #(#MenuPanelSpec
   707 	      #name: 'menuToolbarView'
   706               #attributes: 
   708 	      #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
   707              #(#tabable
   709 	      #tabable: true
   708                 true
   710 	      #menu: #menuToolbar
   709               )
   711 	    )
   710               #name: 'menuToolbarView'
   712 	   #(#VariableHorizontalPanelSpec
   711               #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
   713 	      #name: 'hpanel'
   712               #tabable: true
   714 	      #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
   713               #menu: #menuToolbar
   715 	      #level: 1
   714             )
   716 	      #handles: #(#Any 0.318868 1.0)
   715            #(#VariableHorizontalPanelSpec
   717 	      #component: 
   716               #name: 'hpanel'
   718 	     #(#SpecCollection
   717               #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
   719 		#collection: #(
   718               #level: 1
   720 		 #(#ArbitraryComponentSpec
   719               #component: 
   721 		    #name: 'treeView'
   720              #(#SpecCollection
   722 		    #tabable: true
   721                 #collection: #(
   723 		    #menu: #menuEdit
   722                  #(#ArbitraryComponentSpec
   724 		    #hasHorizontalScrollBar: true
   723                     #name: 'treeView'
   725 		    #hasVerticalScrollBar: true
   724                     #tabable: true
   726 		    #miniScrollerHorizontal: true
   725                     #menu: #menuEdit
   727 		    #miniScrollerVertical: true
   726                     #hasHorizontalScrollBar: true
   728 		    #hasBorder: false
   727                     #hasVerticalScrollBar: true
   729 		    #component: #treeView
   728                     #miniScrollerHorizontal: true
   730 		  )
   729                     #miniScrollerVertical: true
   731 		 #(#ViewSpec
   730                     #hasBorder: false
   732 		    #name: 'specHolderView'
   731                     #component: #treeView
   733 		    #borderWidth: 1
   732                   )
   734 		    #component: 
   733                  #(#ViewSpec
   735 		   #(#SpecCollection
   734                     #name: 'specHolderView'
   736 		      #collection: #(
   735                     #borderWidth: 1
   737 		       #(#MenuPanelSpec
   736                     #component: 
   738 			  #name: 'menuToolbar2View'
   737                    #(#SpecCollection
   739 			  #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
   738                       #collection: #(
   740 			  #enableChannel: #canMoveOrAlignSelection
   739                        #(#MenuPanelSpec
   741 			  #tabable: true
   740                           #attributes: 
   742 			  #menu: #menuToolbar2
   741                          #(#tabable
   743 			)
   742                             true
   744 		       #(#NoteBookViewSpec
   743                           )
   745 			  #name: 'noteBook'
   744                           #name: 'menuToolbar2View'
   746 			  #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
   745                           #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
   747 			  #enableChannel: #enableChannel
   746                           #enableChannel: #canMoveOrAlignSelection
   748 			  #tabable: true
   747                           #tabable: true
   749 			  #model: #tabModel
   748                           #menu: #menuToolbar2
   750 			  #menu: #tabList
   749                         )
   751 			  #canvas: #noteBookView
   750                        #(#HorizontalPanelViewSpec
   752 			)
   751                           #name: 'horizontalPanelView1'
   753 		       #(#HorizontalPanelViewSpec
   752                           #layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 28 0)
   754 			  #name: 'horizontalPanelView1'
   753                           #horizontalLayout: #fit
   755 			  #layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 28 0)
   754                           #verticalLayout: #fit
   756 			  #horizontalLayout: #fit
   755                           #horizontalSpace: 0
   757 			  #verticalLayout: #fit
   756                           #verticalSpace: 0
   758 			  #horizontalSpace: 0
   757                           #component: 
   759 			  #verticalSpace: 0
   758                          #(#SpecCollection
   760 			  #component: 
   759                             #collection: #(
   761 			 #(#SpecCollection
   760                              #(#ArrowButtonSpec
   762 			    #collection: #(
   761                                 #attributes: 
   763 			     #(#ArrowButtonSpec
   762                                #(#tabable
   764 				#name: 'MoveLeftButton'
   763                                   true
   765 				#activeHelpKey: #changePositionLeft
   764                                 )
   766 				#tabable: true
   765                                 #name: 'MoveLeftButton'
   767 				#model: #moveSelectionLeft
   766                                 #activeHelpKey: #changePositionLeft
   768 				#enableChannel: #canMoveOrAlignSelection
   767                                 #tabable: true
   769 				#isTriggerOnDown: true
   768                                 #model: #moveSelectionLeft
   770 				#direction: #left
   769                                 #enableChannel: #canMoveOrAlignSelection
   771 				#useDefaultExtent: true
   770                                 #isTriggerOnDown: true
   772 			      )
   771                                 #direction: #left
   773 			     #(#ArrowButtonSpec
   772                                 #useDefaultExtent: true
   774 				#name: 'MoveRightButton'
   773                               )
   775 				#activeHelpKey: #changePositionRight
   774                              #(#ArrowButtonSpec
   776 				#model: #moveSelectionRight
   775                                 #attributes: 
   777 				#enableChannel: #canMoveOrAlignSelection
   776                                #(#tabable
   778 				#isTriggerOnDown: true
   777                                   true
   779 				#direction: #right
   778                                 )
   780 				#useDefaultExtent: true
   779                                 #name: 'MoveRightButton'
   781 			      )
   780                                 #activeHelpKey: #changePositionRight
   782 			     #(#ArrowButtonSpec
   781                                 #tabable: true
   783 				#name: 'MoveDownButton'
   782                                 #model: #moveSelectionRight
   784 				#activeHelpKey: #changePositionDown
   783                                 #enableChannel: #canMoveOrAlignSelection
   785 				#model: #moveSelectionDown
   784                                 #isTriggerOnDown: true
   786 				#enableChannel: #canMoveOrAlignSelection
   785                                 #actionValue: ''
   787 				#isTriggerOnDown: true
   786                                 #direction: #right
   788 				#direction: #down
   787                                 #useDefaultExtent: true
   789 				#useDefaultExtent: true
   788                               )
   790 			      )
   789                              #(#ArrowButtonSpec
   791 			     #(#ArrowButtonSpec
   790                                 #attributes: 
   792 				#name: 'MoveUpButton'
   791                                #(#tabable
   793 				#activeHelpKey: #changePositionUp
   792                                   true
   794 				#model: #moveSelectionUp
   793                                 )
   795 				#enableChannel: #canMoveOrAlignSelection
   794                                 #name: 'MoveDownButton'
   796 				#isTriggerOnDown: true
   795                                 #activeHelpKey: #changePositionDown
   797 				#direction: #up
   796                                 #tabable: true
   798 				#useDefaultExtent: true
   797                                 #model: #moveSelectionDown
   799 			      )
   798                                 #enableChannel: #canMoveOrAlignSelection
   800 			     )
   799                                 #isTriggerOnDown: true
       
   800                                 #actionValue: ''
       
   801                                 #direction: #down
       
   802                                 #useDefaultExtent: true
       
   803                               )
       
   804                              #(#ArrowButtonSpec
       
   805                                 #attributes: 
       
   806                                #(#tabable
       
   807                                   true
       
   808                                 )
       
   809                                 #name: 'MoveUpButton'
       
   810                                 #activeHelpKey: #changePositionUp
       
   811                                 #tabable: true
       
   812                                 #model: #moveSelectionUp
       
   813                                 #enableChannel: #canMoveOrAlignSelection
       
   814                                 #isTriggerOnDown: true
       
   815                                 #actionValue: ''
       
   816                                 #direction: #up
       
   817                                 #useDefaultExtent: true
       
   818                               )
       
   819                              )
   801                            
   820                            
   802 			  )
   821                           )
   803 			)
   822                         )
   804 		       #(#ActionButtonSpec
   823                        #(#ActionButtonSpec
   805 			  #label: 'helpIcon'
   824                           #attributes: 
   806 			  #name: 'openWidgetDocumentationButton'
   825                          #(#tabable
   807 			  #layout: #(#LayoutFrame -28 1 -1 0 0 1 28 0)
   826                             true
   808 			  #activeHelpKey: #editOpenSpecDocumentation
   827                           )
   809 			  #hasCharacterOrientedLabel: false
   828                           #label: 'helpIcon'
   810 			  #model: #doOpenWidgetDocumentation
   829                           #name: 'openWidgetDocumentationButton'
   811 			)
   830                           #layout: #(#LayoutFrame -28 1 -1 0 0 1 28 0)
   812 		       #(#ActionButtonSpec
   831                           #activeHelpKey: #editOpenSpecDocumentation
   813 			  #label: 'Cancel'
   832                           #hasCharacterOrientedLabel: false
   814 			  #name: 'cancelButton'
   833                           #tabable: true
   815 			  #layout: #(#LayoutFrame 2 0 -26 1 -1 0.5 -2 1)
   834                           #model: #doOpenWidgetDocumentation
   816 			  #activeHelpKey: #commitCancel
   835                         )
   817 			  #tabable: true
   836                        #(#NoteBookViewSpec
   818 			  #model: #cancel
   837                           #attributes: 
   819 			  #enableChannel: #modifiedChannel
   838                          #(#tabable
   820 			)
   839                             true
   821 		       #(#ActionButtonSpec
   840                           )
   822 			  #label: 'OK'
   841                           #name: 'noteBook'
   823 			  #name: 'acceptButton'
   842                           #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
   824 			  #layout: #(#LayoutFrame 1 0.5 -26 1 -2 1 -2 1)
   843                           #enableChannel: #enableChannel
   825 			  #activeHelpKey: #commitOK
   844                           #tabable: true
   826 			  #tabable: true
   845                           #model: #tabModel
   827 			  #model: #accept
   846                           #menu: #tabList
   828 			  #enableChannel: #modifiedChannel
   847                           #canvas: #noteBookView
   829 			)
   848                         )
   830 		       )
   849                        #(#ActionButtonSpec
       
   850                           #attributes: 
       
   851                          #(#tabable
       
   852                             true
       
   853                           )
       
   854                           #label: 'Cancel'
       
   855                           #name: 'cancelButton'
       
   856                           #layout: #(#LayoutFrame 2 0 -26 1 -1 0.5 -2 1)
       
   857                           #activeHelpKey: #commitCancel
       
   858                           #tabable: true
       
   859                           #model: #cancel
       
   860                           #enableChannel: #modifiedChannel
       
   861                         )
       
   862                        #(#ActionButtonSpec
       
   863                           #attributes: 
       
   864                          #(#tabable
       
   865                             true
       
   866                           )
       
   867                           #label: 'OK'
       
   868                           #name: 'acceptButton'
       
   869                           #layout: #(#LayoutFrame 1 0.5 -26 1 -2 1 -2 1)
       
   870                           #activeHelpKey: #commitOK
       
   871                           #tabable: true
       
   872                           #model: #accept
       
   873                           #enableChannel: #modifiedChannel
       
   874                         )
       
   875                        )
   831                      
   876                      
   832 		    )
   877                     )
   833 		  )
   878                   )
   834 		 )
   879                  )
   835                
   880                
   836 	      )
   881               )
   837 	    )
   882               #handles: #(#Any 0.318868 1.0)
   838 	   #(#UISubSpecification
   883             )
   839 	      #name: 'infoBarSubSpec'
   884            #(#UISubSpecification
   840 	      #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
   885               #name: 'infoBarSubSpec'
   841 	      #majorKey: #ToolApplicationModel
   886               #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
   842 	      #minorKey: #windowSpecForInfoBar
   887               #majorKey: #ToolApplicationModel
   843 	    )
   888               #minorKey: #windowSpecForInfoBar
   844 	   )
   889             )
       
   890            )
   845          
   891          
   846 	)
   892         )
   847       )
   893       )
   848 ! !
   894 ! !
   849 
   895 
   850 !UIPainter class methodsFor:'menu specs'!
   896 !UIPainter class methodsFor:'menu specs'!
   851 
   897