renamed canvas into palette
authorClaus Gittinger <cg@exept.de>
Wed, 10 Jun 2009 22:33:37 +0200
changeset 2563c2298d24621d
parent 2562 fc0a53ce6152
child 2564 595b56327446
renamed canvas into palette
It does not do any drawing and therefore, canvas was the wrong word
(I never found it and had to use the window-fly-by-help to find it)
UIGalleryView.st
     1.1 --- a/UIGalleryView.st	Wed Jun 10 22:13:48 2009 +0200
     1.2 +++ b/UIGalleryView.st	Wed Jun 10 22:33:37 2009 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  	category:'Interface-UIPainter'
     1.5  !
     1.6  
     1.7 -View subclass:#Canvas
     1.8 +View subclass:#Palette
     1.9  	instanceVariableNames:'clientSpecHolder selection specification lastClickPoint
    1.10  		menuSelector uiBuilder hiddenCounter showBorders
    1.11  		didWarnAboutUnknownSpecs'
    1.12 @@ -31,7 +31,7 @@
    1.13  	instanceVariableNames:''
    1.14  	classVariableNames:''
    1.15  	poolDictionaries:''
    1.16 -	privateIn:UIGalleryView::Canvas
    1.17 +	privateIn:UIGalleryView::Palette
    1.18  !
    1.19  
    1.20  !UIGalleryView class methodsFor:'documentation'!
    1.21 @@ -277,7 +277,7 @@
    1.22  initialize
    1.23      "setup default attributes
    1.24      "
    1.25 -    canvas := Canvas in:self.
    1.26 +    canvas := Palette in:self.
    1.27  
    1.28      super initialize.
    1.29  
    1.30 @@ -292,18 +292,18 @@
    1.31      super release.
    1.32  ! !
    1.33  
    1.34 -!UIGalleryView::Canvas class methodsFor:'documentation'!
    1.35 +!UIGalleryView::Palette class methodsFor:'documentation'!
    1.36  
    1.37  documentation
    1.38  "
    1.39 -    I am the canvas of a gallery. Most of what I do is to allow dragging of widget out
    1.40 +    I am the palette of a gallery. Most of what I do is to allow dragging of a widget out
    1.41      of myself and to care for the drawing of the selection.
    1.42      The arrangement into multiple pages is done by my container, which holds me
    1.43      in a subcanvas.
    1.44  "
    1.45  ! !
    1.46  
    1.47 -!UIGalleryView::Canvas methodsFor:'accessing'!
    1.48 +!UIGalleryView::Palette methodsFor:'accessing'!
    1.49  
    1.50  builder
    1.51      "get the builder used to setup a window from a specification (or nil in case
    1.52 @@ -390,6 +390,7 @@
    1.53      (builder := uiBuilder) isNil ifTrue:[
    1.54          builder := UIBuilder new isEditing:true.
    1.55          builder showDefaults:true.
    1.56 +        builder application:self application. "/ for resources like images
    1.57      ].
    1.58  
    1.59      specification buildViewFor:builder in:self.
    1.60 @@ -407,7 +408,7 @@
    1.61      ].
    1.62  ! !
    1.63  
    1.64 -!UIGalleryView::Canvas methodsFor:'building'!
    1.65 +!UIGalleryView::Palette methodsFor:'building'!
    1.66  
    1.67  recursiveBuildSpecFromSpecPrototype:aSpec
    1.68      "build spec out of spec prototype"
    1.69 @@ -446,7 +447,7 @@
    1.70      ^ spec
    1.71  ! !
    1.72  
    1.73 -!UIGalleryView::Canvas methodsFor:'drag & drop'!
    1.74 +!UIGalleryView::Palette methodsFor:'drag & drop'!
    1.75  
    1.76  startDragFrom:evView
    1.77      "start drag at lastClickPoint"
    1.78 @@ -479,7 +480,7 @@
    1.79          display:nil.
    1.80  ! !
    1.81  
    1.82 -!UIGalleryView::Canvas methodsFor:'event handling'!
    1.83 +!UIGalleryView::Palette methodsFor:'event handling'!
    1.84  
    1.85  processEvent:anEvent
    1.86      "filter keyboard events.
    1.87 @@ -543,7 +544,7 @@
    1.88      ^ true
    1.89  ! !
    1.90  
    1.91 -!UIGalleryView::Canvas methodsFor:'focus handling'!
    1.92 +!UIGalleryView::Palette methodsFor:'focus handling'!
    1.93  
    1.94  subviewsInFocusOrder
    1.95      "returns none views - focus not handled within buildin canvas"
    1.96 @@ -551,7 +552,7 @@
    1.97      ^ #()
    1.98  ! !
    1.99  
   1.100 -!UIGalleryView::Canvas methodsFor:'initialization'!
   1.101 +!UIGalleryView::Palette methodsFor:'initialization'!
   1.102  
   1.103  destroy
   1.104      |winGrp|
   1.105 @@ -580,7 +581,7 @@
   1.106     ].
   1.107  ! !
   1.108  
   1.109 -!UIGalleryView::Canvas methodsFor:'searching'!
   1.110 +!UIGalleryView::Palette methodsFor:'searching'!
   1.111  
   1.112  findObjectAt:aPoint
   1.113      |seeIfWidgetIsHit p x y|
   1.114 @@ -624,7 +625,7 @@
   1.115      "Modified: / 18.5.1999 / 14:47:25 / cg"
   1.116  ! !
   1.117  
   1.118 -!UIGalleryView::Canvas methodsFor:'selection'!
   1.119 +!UIGalleryView::Palette methodsFor:'selection'!
   1.120  
   1.121  handlesOf:aComponent do:aOneArgBlock
   1.122      "evaluate the block on each handle; the argument to the block is a rectangle"
   1.123 @@ -729,7 +730,7 @@
   1.124      ].
   1.125  ! !
   1.126  
   1.127 -!UIGalleryView::Canvas::DropSpec class methodsFor:'instance creation'!
   1.128 +!UIGalleryView::Palette::DropSpec class methodsFor:'instance creation'!
   1.129  
   1.130  for:aWidget specification:aSpec
   1.131      "create drop object for a widget derived from a specification"