The Trunk: MorphicExtras-nice.136.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: MorphicExtras-nice.136.mcz

commits-2
Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.136.mcz

==================== Summary ====================

Name: MorphicExtras-nice.136
Author: nice
Time: 12 December 2013, 2:35:20.979 am
UUID: 84e247ca-8197-4640-aa55-e9c52037613c
Ancestors: MorphicExtras-nice.135

Fix: PaintBoxMorph prototype requires a currentBrush

=============== Diff against MorphicExtras-nice.135 ===============

Item was changed:
  ImageMorph subclass: #PaintBoxMorph
  instanceVariableNames: 'action tool currentCursor thumbnail currentColor currentBrush colorMemory colorPatch stampHolder rotationTabForm scaleTabForm colorMemoryThin brushes focusMorph weakDependents recentColors'
+ classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors UseLargeColorPicker'
- classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors ScaleTabImage UseLargeColorPicker'
  poolDictionaries: ''
  category: 'MorphicExtras-Support'!

Item was changed:
  ----- Method: PaintBoxMorph>>buildAPrototype (in category 'initialization') -----
  buildAPrototype
  | onImage |
  self initialize.
  self image: self class paletteImage.
  rotationTabForm := self class rotationTabImage.
  scaleTabForm := self class scaleTabImage.
  (colorMemoryThin := self class colorMemoryThinImage asMorph)
  setNamePropertyTo: 'ColorPickerClosed';
  position: self position + (11@150);
  on: #mouseEnter send: #showColorPalette: to: self.
  self addMorph: colorMemoryThin.
  (colorMemory := PaintBoxColorPicker new image: self class colorMemoryImage)
  setNamePropertyTo: 'ColorPickerOpened';
  on: #mouseDown send: #takeColorEvt:from: to: self.
 
  onImage := self class paletteOnImage.
  self
  addToolsOffImage: image onImage: onImage;
  addBrushesOffImage: image onImage: onImage;
  addActionsOffImage: image onImage: onImage;
  addStampsAndShapes;
  addShapeButtonsOffImage: self class shapesImage onImage: self class shapesOnImage;
  addStampButtonsOffImage: self class stampsImage onImage: self class stampsOnImage.
+ stampHolder := ScrollingToolHolder newPrototypeFor: self.
+ currentBrush := brushes at: 1.!
- stampHolder := ScrollingToolHolder newPrototypeFor: self!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: MorphicExtras-nice.136.mcz

Chris Muller-3
Looks like the brush-width selector in the paint toolbox has gone solid blue, which looks bad.​​
Inline image 1


On Wed, Dec 11, 2013 at 7:35 PM, <[hidden email]> wrote:
Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.136.mcz

==================== Summary ====================

Name: MorphicExtras-nice.136
Author: nice
Time: 12 December 2013, 2:35:20.979 am
UUID: 84e247ca-8197-4640-aa55-e9c52037613c
Ancestors: MorphicExtras-nice.135

Fix: PaintBoxMorph prototype requires a currentBrush

=============== Diff against MorphicExtras-nice.135 ===============

Item was changed:
  ImageMorph subclass: #PaintBoxMorph
        instanceVariableNames: 'action tool currentCursor thumbnail currentColor currentBrush colorMemory colorPatch stampHolder rotationTabForm scaleTabForm colorMemoryThin brushes focusMorph weakDependents recentColors'
+       classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors UseLargeColorPicker'
-       classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors ScaleTabImage UseLargeColorPicker'
        poolDictionaries: ''
        category: 'MorphicExtras-Support'!

Item was changed:
  ----- Method: PaintBoxMorph>>buildAPrototype (in category 'initialization') -----
  buildAPrototype
        | onImage |
        self initialize.
        self image: self class paletteImage.
        rotationTabForm := self class rotationTabImage.
        scaleTabForm := self class scaleTabImage.
        (colorMemoryThin := self class colorMemoryThinImage asMorph)
                setNamePropertyTo: 'ColorPickerClosed';
                position: self position + (11@150);
                on: #mouseEnter send: #showColorPalette: to: self.
        self addMorph: colorMemoryThin.
        (colorMemory := PaintBoxColorPicker new image: self class colorMemoryImage)
                setNamePropertyTo: 'ColorPickerOpened';
                on: #mouseDown send: #takeColorEvt:from: to: self.

        onImage := self class paletteOnImage.
        self
                addToolsOffImage: image onImage: onImage;
                addBrushesOffImage: image onImage: onImage;
                addActionsOffImage: image onImage: onImage;
                addStampsAndShapes;
                addShapeButtonsOffImage: self class shapesImage onImage: self class shapesOnImage;
                addStampButtonsOffImage: self class stampsImage onImage: self class stampsOnImage.
+       stampHolder := ScrollingToolHolder newPrototypeFor: self.
+       currentBrush := brushes at: 1.!
-       stampHolder := ScrollingToolHolder newPrototypeFor: self!





Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: MorphicExtras-nice.136.mcz

Nicolas Cellier
Oh, and my face would be all red if I ever commited such crime of lese-brush-button.
But in an older image (MorphicExtras-fbs.118, 18 version behind), I opened a sketchEditor with same blue buttons...
No idea how that could happen though...
If you recreate the Prototype (execute Prototype := self newPrototype) things are getting better...


2013/12/12 Chris Muller <[hidden email]>
Looks like the brush-width selector in the paint toolbox has gone solid blue, which looks bad.
Inline image 1


On Wed, Dec 11, 2013 at 7:35 PM, <[hidden email]> wrote:
Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.136.mcz

==================== Summary ====================

Name: MorphicExtras-nice.136
Author: nice
Time: 12 December 2013, 2:35:20.979 am
UUID: 84e247ca-8197-4640-aa55-e9c52037613c
Ancestors: MorphicExtras-nice.135

Fix: PaintBoxMorph prototype requires a currentBrush

=============== Diff against MorphicExtras-nice.135 ===============

Item was changed:
  ImageMorph subclass: #PaintBoxMorph
        instanceVariableNames: 'action tool currentCursor thumbnail currentColor currentBrush colorMemory colorPatch stampHolder rotationTabForm scaleTabForm colorMemoryThin brushes focusMorph weakDependents recentColors'
+       classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors UseLargeColorPicker'
-       classVariableNames: 'AllOffImage AllOnImage AllPressedImage ColorChart ImageLibrary OriginalBounds Prototype RecentColors ScaleTabImage UseLargeColorPicker'
        poolDictionaries: ''
        category: 'MorphicExtras-Support'!

Item was changed:
  ----- Method: PaintBoxMorph>>buildAPrototype (in category 'initialization') -----
  buildAPrototype
        | onImage |
        self initialize.
        self image: self class paletteImage.
        rotationTabForm := self class rotationTabImage.
        scaleTabForm := self class scaleTabImage.
        (colorMemoryThin := self class colorMemoryThinImage asMorph)
                setNamePropertyTo: 'ColorPickerClosed';
                position: self position + (11@150);
                on: #mouseEnter send: #showColorPalette: to: self.
        self addMorph: colorMemoryThin.
        (colorMemory := PaintBoxColorPicker new image: self class colorMemoryImage)
                setNamePropertyTo: 'ColorPickerOpened';
                on: #mouseDown send: #takeColorEvt:from: to: self.

        onImage := self class paletteOnImage.
        self
                addToolsOffImage: image onImage: onImage;
                addBrushesOffImage: image onImage: onImage;
                addActionsOffImage: image onImage: onImage;
                addStampsAndShapes;
                addShapeButtonsOffImage: self class shapesImage onImage: self class shapesOnImage;
                addStampButtonsOffImage: self class stampsImage onImage: self class stampsOnImage.
+       stampHolder := ScrollingToolHolder newPrototypeFor: self.
+       currentBrush := brushes at: 1.!
-       stampHolder := ScrollingToolHolder newPrototypeFor: self!









Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: MorphicExtras-nice.136.mcz

Chris Muller-3
If you recreate the Prototype (execute Prototype := self newPrototype) things are getting better...

When I do that, the paint selectors look better -- are no longer blue, but the image locks as soon as I try to start drawing..