lists.squeakfoundation.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Packages
April 2015
----- 2024 -----
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
packages@lists.squeakfoundation.org
2 participants
1358 discussions
Start a n
N
ew thread
The Trunk: Morphic-mt.950.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.950.mcz
==================== Summary ==================== Name: Morphic-mt.950 Author: mt Time: 29 April 2015, 7:25:04.297 pm UUID: 54cdcc0b-9f1f-f84c-9d8d-7a47a1f82885 Ancestors: Morphic-mt.949 Add some useful defaults for layoutInset and cellInset to support non-Toolbuilder tools and their system windows. =============== Diff against Morphic-mt.949 =============== Item was changed: ----- Method: SystemWindow>>initialize (in category 'initialization') ----- initialize "Initialize a system window. Add label, stripes, etc., if desired" super initialize. self layoutPolicy: ProportionalLayout new. + self wantsPaneSplitters: true. + self layoutInset: ProportionalSplitterMorph gripThickness. + self cellInset: ProportionalSplitterMorph gripThickness. + self initializeLabelArea. self addCornerGrips. self setDefaultParameters. allowReframeHandles := true. isCollapsed := false. activeOnlyOnTop := true. paneMorphs := Array new. mustNotClose := false. updatablePanes := Array new.!
1
0
0
0
The Trunk: Morphic-mt.950.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.950.mcz
==================== Summary ==================== Name: Morphic-mt.950 Author: mt Time: 29 April 2015, 7:25:04.297 pm UUID: 54cdcc0b-9f1f-f84c-9d8d-7a47a1f82885 Ancestors: Morphic-mt.949 Add some useful defaults for layoutInset and cellInset to support non-Toolbuilder tools and their system windows. =============== Diff against Morphic-mt.949 =============== Item was changed: ----- Method: SystemWindow>>initialize (in category 'initialization') ----- initialize "Initialize a system window. Add label, stripes, etc., if desired" super initialize. self layoutPolicy: ProportionalLayout new. + self wantsPaneSplitters: true. + self layoutInset: ProportionalSplitterMorph gripThickness. + self cellInset: ProportionalSplitterMorph gripThickness. + self initializeLabelArea. self addCornerGrips. self setDefaultParameters. allowReframeHandles := true. isCollapsed := false. activeOnlyOnTop := true. paneMorphs := Array new. mustNotClose := false. updatablePanes := Array new.!
1
0
0
0
The Trunk: Morphic-mt.950.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.950.mcz
==================== Summary ==================== Name: Morphic-mt.950 Author: mt Time: 29 April 2015, 7:25:04.297 pm UUID: 54cdcc0b-9f1f-f84c-9d8d-7a47a1f82885 Ancestors: Morphic-mt.949 Add some useful defaults for layoutInset and cellInset to support non-Toolbuilder tools and their system windows. =============== Diff against Morphic-mt.949 =============== Item was changed: ----- Method: SystemWindow>>initialize (in category 'initialization') ----- initialize "Initialize a system window. Add label, stripes, etc., if desired" super initialize. self layoutPolicy: ProportionalLayout new. + self wantsPaneSplitters: true. + self layoutInset: ProportionalSplitterMorph gripThickness. + self cellInset: ProportionalSplitterMorph gripThickness. + self initializeLabelArea. self addCornerGrips. self setDefaultParameters. allowReframeHandles := true. isCollapsed := false. activeOnlyOnTop := true. paneMorphs := Array new. mustNotClose := false. updatablePanes := Array new.!
1
0
0
0
The Trunk: ToolBuilder-Morphic-mt.142.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.142.mcz
==================== Summary ==================== Name: ToolBuilder-Morphic-mt.142 Author: mt Time: 29 April 2015, 6:11:35.977 pm UUID: e9144d76-2044-f848-974b-c1dbfbed17b3 Ancestors: ToolBuilder-Morphic-mt.141 Fixed some minor layout issues when building panes or windows. =============== Diff against ToolBuilder-Morphic-mt.141 =============== Item was changed: ----- Method: MorphicToolBuilder>>add:to: (in category 'private') ----- add: aMorph to: aParent + + aMorph layoutFrame + ifNotNil: [aParent addMorph: aMorph fullFrame: aMorph layoutFrame] + ifNil: [aParent addMorphBack: aMorph].! - aParent addMorphBack: aMorph. - aParent isSystemWindow ifTrue:[ - aParent addPaneMorph: aMorph. - ].! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggablePanel: (in category 'widgets required') ----- buildPluggablePanel: aSpec + + | widget | - | widget children frame | widget := self panelClass new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [false]). + widget layoutInset: (aSpec padding ifNil: [0]). + widget cellInset: (aSpec spacing ifNil: [ + widget wantsPaneSplitters + ifTrue: [ProportionalSplitterMorph gripThickness] + ifFalse: [2]]). + + "Now create the children." + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + - widget color: Color transparent. - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. - self buildAll: children in: widget. - self buildHelpFor: widget spec: aSpec. self setFrame: aSpec frame in: widget. - parent ifNotNil:[self add: widget to: parent]. self setLayout: aSpec layout in: widget. + self setLayoutHintsFor: widget spec: aSpec. + + parent ifNotNil:[self add: widget to: parent]. + - widget layoutInset: 0. widget borderWidth: 0. + self buildHelpFor: widget spec: aSpec. - widget submorphsDo:[:sm| - (frame := sm layoutFrame) ifNotNil:[ - (frame rightFraction = 0 or:[frame rightFraction = 1]) - ifFalse:[frame rightOffset:1]. - (frame bottomFraction = 0 or:[frame bottomFraction = 1]) - ifFalse:[frame bottomOffset: 1]]]. widget color: Color transparent. - self setLayoutHintsFor: widget spec: aSpec. + ^ widget! - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggableWindow: (in category 'widgets required') ----- buildPluggableWindow: aSpec + | widget | + - | widget children | aSpec layout == #proportional ifFalse:[ "This needs to be implemented - probably by adding a single pane and then the rest" ^self error: 'Not implemented'. ]. + widget := (self windowClassFor: aSpec) new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [true]). + widget layoutInset: (aSpec padding ifNil: [ProportionalSplitterMorph gripThickness]). + widget cellInset: (aSpec spacing ifNil: [ProportionalSplitterMorph gripThickness]). + + "Now create the children." + panes := OrderedCollection new. + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + widget setUpdatablePanesFrom: panes. + + aSpec label ifNotNil: [:label| - aSpec label ifNotNil: - [:label| label isSymbol ifTrue:[widget getLabelSelector: label] ifFalse:[widget setLabel: label]]. + aSpec multiWindowStyle notNil ifTrue: [widget savedMultiWindowState: (SavedMultiWindowState on: aSpec model)]. + - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. widget closeWindowSelector: aSpec closeAction. - panes := OrderedCollection new. - self buildAll: children in: widget. self buildHelpFor: widget spec: aSpec. + widget bounds: (RealEstateAgent initialFrameFor: widget initialExtent: (aSpec extent ifNil:[widget initialExtent]) world: self currentWorld). - self setLayoutHintsFor: widget spec: aSpec. + + ^ widget! - - widget setUpdatablePanesFrom: panes. - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>setLayout:in: (in category 'private') ----- setLayout: layout in: widget layout == #proportional ifTrue:[ widget layoutPolicy: ProportionalLayout new. ^self]. layout == #horizontal ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #leftToRight. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. layout == #vertical ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #topToBottom. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. ^self error: 'Unknown layout: ', layout.!
1
0
0
0
The Trunk: ToolBuilder-Morphic-mt.142.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.142.mcz
==================== Summary ==================== Name: ToolBuilder-Morphic-mt.142 Author: mt Time: 29 April 2015, 6:11:35.977 pm UUID: e9144d76-2044-f848-974b-c1dbfbed17b3 Ancestors: ToolBuilder-Morphic-mt.141 Fixed some minor layout issues when building panes or windows. =============== Diff against ToolBuilder-Morphic-mt.141 =============== Item was changed: ----- Method: MorphicToolBuilder>>add:to: (in category 'private') ----- add: aMorph to: aParent + + aMorph layoutFrame + ifNotNil: [aParent addMorph: aMorph fullFrame: aMorph layoutFrame] + ifNil: [aParent addMorphBack: aMorph].! - aParent addMorphBack: aMorph. - aParent isSystemWindow ifTrue:[ - aParent addPaneMorph: aMorph. - ].! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggablePanel: (in category 'widgets required') ----- buildPluggablePanel: aSpec + + | widget | - | widget children frame | widget := self panelClass new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [false]). + widget layoutInset: (aSpec padding ifNil: [0]). + widget cellInset: (aSpec spacing ifNil: [ + widget wantsPaneSplitters + ifTrue: [ProportionalSplitterMorph gripThickness] + ifFalse: [2]]). + + "Now create the children." + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + - widget color: Color transparent. - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. - self buildAll: children in: widget. - self buildHelpFor: widget spec: aSpec. self setFrame: aSpec frame in: widget. - parent ifNotNil:[self add: widget to: parent]. self setLayout: aSpec layout in: widget. + self setLayoutHintsFor: widget spec: aSpec. + + parent ifNotNil:[self add: widget to: parent]. + - widget layoutInset: 0. widget borderWidth: 0. + self buildHelpFor: widget spec: aSpec. - widget submorphsDo:[:sm| - (frame := sm layoutFrame) ifNotNil:[ - (frame rightFraction = 0 or:[frame rightFraction = 1]) - ifFalse:[frame rightOffset:1]. - (frame bottomFraction = 0 or:[frame bottomFraction = 1]) - ifFalse:[frame bottomOffset: 1]]]. widget color: Color transparent. - self setLayoutHintsFor: widget spec: aSpec. + ^ widget! - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggableWindow: (in category 'widgets required') ----- buildPluggableWindow: aSpec + | widget | + - | widget children | aSpec layout == #proportional ifFalse:[ "This needs to be implemented - probably by adding a single pane and then the rest" ^self error: 'Not implemented'. ]. + widget := (self windowClassFor: aSpec) new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [true]). + widget layoutInset: (aSpec padding ifNil: [ProportionalSplitterMorph gripThickness]). + widget cellInset: (aSpec spacing ifNil: [ProportionalSplitterMorph gripThickness]). + + "Now create the children." + panes := OrderedCollection new. + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + widget setUpdatablePanesFrom: panes. + + aSpec label ifNotNil: [:label| - aSpec label ifNotNil: - [:label| label isSymbol ifTrue:[widget getLabelSelector: label] ifFalse:[widget setLabel: label]]. + aSpec multiWindowStyle notNil ifTrue: [widget savedMultiWindowState: (SavedMultiWindowState on: aSpec model)]. + - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. widget closeWindowSelector: aSpec closeAction. - panes := OrderedCollection new. - self buildAll: children in: widget. self buildHelpFor: widget spec: aSpec. + widget bounds: (RealEstateAgent initialFrameFor: widget initialExtent: (aSpec extent ifNil:[widget initialExtent]) world: self currentWorld). - self setLayoutHintsFor: widget spec: aSpec. + + ^ widget! - - widget setUpdatablePanesFrom: panes. - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>setLayout:in: (in category 'private') ----- setLayout: layout in: widget layout == #proportional ifTrue:[ widget layoutPolicy: ProportionalLayout new. ^self]. layout == #horizontal ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #leftToRight. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. layout == #vertical ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #topToBottom. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. ^self error: 'Unknown layout: ', layout.!
1
0
0
0
The Trunk: ToolBuilder-Morphic-mt.142.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.142.mcz
==================== Summary ==================== Name: ToolBuilder-Morphic-mt.142 Author: mt Time: 29 April 2015, 6:11:35.977 pm UUID: e9144d76-2044-f848-974b-c1dbfbed17b3 Ancestors: ToolBuilder-Morphic-mt.141 Fixed some minor layout issues when building panes or windows. =============== Diff against ToolBuilder-Morphic-mt.141 =============== Item was changed: ----- Method: MorphicToolBuilder>>add:to: (in category 'private') ----- add: aMorph to: aParent + + aMorph layoutFrame + ifNotNil: [aParent addMorph: aMorph fullFrame: aMorph layoutFrame] + ifNil: [aParent addMorphBack: aMorph].! - aParent addMorphBack: aMorph. - aParent isSystemWindow ifTrue:[ - aParent addPaneMorph: aMorph. - ].! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggablePanel: (in category 'widgets required') ----- buildPluggablePanel: aSpec + + | widget | - | widget children frame | widget := self panelClass new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [false]). + widget layoutInset: (aSpec padding ifNil: [0]). + widget cellInset: (aSpec spacing ifNil: [ + widget wantsPaneSplitters + ifTrue: [ProportionalSplitterMorph gripThickness] + ifFalse: [2]]). + + "Now create the children." + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + - widget color: Color transparent. - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. - self buildAll: children in: widget. - self buildHelpFor: widget spec: aSpec. self setFrame: aSpec frame in: widget. - parent ifNotNil:[self add: widget to: parent]. self setLayout: aSpec layout in: widget. + self setLayoutHintsFor: widget spec: aSpec. + + parent ifNotNil:[self add: widget to: parent]. + - widget layoutInset: 0. widget borderWidth: 0. + self buildHelpFor: widget spec: aSpec. - widget submorphsDo:[:sm| - (frame := sm layoutFrame) ifNotNil:[ - (frame rightFraction = 0 or:[frame rightFraction = 1]) - ifFalse:[frame rightOffset:1]. - (frame bottomFraction = 0 or:[frame bottomFraction = 1]) - ifFalse:[frame bottomOffset: 1]]]. widget color: Color transparent. - self setLayoutHintsFor: widget spec: aSpec. + ^ widget! - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>buildPluggableWindow: (in category 'widgets required') ----- buildPluggableWindow: aSpec + | widget | + - | widget children | aSpec layout == #proportional ifFalse:[ "This needs to be implemented - probably by adding a single pane and then the rest" ^self error: 'Not implemented'. ]. + widget := (self windowClassFor: aSpec) new. self register: widget id: aSpec name. + widget model: aSpec model. + + "Set child dependent layout properties." + widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [true]). + widget layoutInset: (aSpec padding ifNil: [ProportionalSplitterMorph gripThickness]). + widget cellInset: (aSpec spacing ifNil: [ProportionalSplitterMorph gripThickness]). + + "Now create the children." + panes := OrderedCollection new. + aSpec children isSymbol + ifTrue: [ + widget getChildrenSelector: aSpec children. + widget update: aSpec children] + ifFalse: [ + self buildAll: aSpec children in: widget]. + widget setUpdatablePanesFrom: panes. + + aSpec label ifNotNil: [:label| - aSpec label ifNotNil: - [:label| label isSymbol ifTrue:[widget getLabelSelector: label] ifFalse:[widget setLabel: label]]. + aSpec multiWindowStyle notNil ifTrue: [widget savedMultiWindowState: (SavedMultiWindowState on: aSpec model)]. + - children := aSpec children. - children isSymbol ifTrue:[ - widget getChildrenSelector: children. - widget update: children. - children := #(). - ]. widget closeWindowSelector: aSpec closeAction. - panes := OrderedCollection new. - self buildAll: children in: widget. self buildHelpFor: widget spec: aSpec. + widget bounds: (RealEstateAgent initialFrameFor: widget initialExtent: (aSpec extent ifNil:[widget initialExtent]) world: self currentWorld). - self setLayoutHintsFor: widget spec: aSpec. + + ^ widget! - - widget setUpdatablePanesFrom: panes. - ^widget! Item was changed: ----- Method: MorphicToolBuilder>>setLayout:in: (in category 'private') ----- setLayout: layout in: widget layout == #proportional ifTrue:[ widget layoutPolicy: ProportionalLayout new. ^self]. layout == #horizontal ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #leftToRight. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. layout == #vertical ifTrue:[ widget layoutPolicy: TableLayout new. widget listDirection: #topToBottom. widget submorphsDo:[:m| m hResizing: #spaceFill; vResizing: #spaceFill]. + "widget cellInset: 1@1. + widget layoutInset: 1@1." - widget cellInset: 1@1. - widget layoutInset: 1@1. widget color: Color transparent. "and then some..." ^self]. ^self error: 'Unknown layout: ', layout.!
1
0
0
0
The Trunk: Morphic-mt.949.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.949.mcz
==================== Summary ==================== Name: Morphic-mt.949 Author: mt Time: 29 April 2015, 6:10:07.123 pm UUID: ae7e2d05-a8ce-1b43-90d8-cfd0913be43b Ancestors: Morphic-mt.948 Fixed minor glitches in buttons. =============== Diff against Morphic-mt.948 =============== Item was changed: ----- Method: PluggableButtonMorph>>drawBackgroundOn: (in category 'drawing') ----- drawBackgroundOn: aCanvas | cc gradient borderColor fill | cc := self color. cc isTransparent ifTrue:[cc := Color gray: 0.9]. self enabled ifFalse:[cc := Color lightGray]. cc brightness > 0.9 ifTrue:[cc := cc adjustBrightness: 0.9 - cc brightness]. showSelectionFeedback ifTrue:[ borderColor := cc muchDarker. gradient := GradientFillStyle ramp: { 0.0 -> cc muchDarker. 0.1-> (cc adjustBrightness: -0.2). 0.5 -> cc. 0.9-> (cc adjustBrightness: -0.1). 1 -> cc muchDarker}. cc := cc muchDarker. ] ifFalse:[ borderColor := Color lightGray. gradient := GradientFillStyle ramp: { 0.0 -> Color white. 0.1-> (cc adjustBrightness: 0.05). 0.6 -> (cc darker)}. ]. gradient origin: bounds topLeft. gradient direction: 0@self height. PluggableButtonMorph gradientButton ifFalse: [fill := SolidFillStyle color: cc] ifTrue: [fill := gradient]. ^ self wantsRoundedCorners ifTrue: [aCanvas + frameAndFillRoundRect: self bounds - frameAndFillRoundRect: bounds radius: self class preferredCornerRadius fillStyle: fill borderWidth: 1 borderColor: borderColor] ifFalse: [aCanvas + frameAndFillRectangle: self bounds - frameAndFillRectangle: self innerBounds fillColor: fill asColor borderWidth: 1 borderColor: borderColor darker; + fillRectangle: self innerBounds - fillRectangle: (self innerBounds insetBy: 1) fillStyle: fill]! Item was changed: ----- Method: PluggableButtonMorph>>drawLabelOn: (in category 'drawing') ----- drawLabelOn: aCanvas + | fontToUse labelToUse labelWidth layoutBounds drawBlock | - | fontToUse labelToUse labelWidth | self label ifNil: [^ self]. + layoutBounds := self layoutBounds. - self label isMorph ifTrue: [ - self label privateFullMoveBy: (self center - self label center). - aCanvas fullDrawMorph: self label. - ^ self]. - labelToUse := self label asString. fontToUse := self font. + "Support very narrow buttons. Shrink text to monogram then." + (layoutBounds width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ - "Support very narrow buttons." - (self width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ labelToUse := labelToUse first asString. "Show first character only." fontToUse := fontToUse emphasized: (TextEmphasis bold) emphasisCode]. labelWidth := fontToUse widthOfString: labelToUse. + drawBlock := [:c | c + drawString: labelToUse + at: (layoutBounds center x - (labelWidth // 2) max: (layoutBounds left)) + @ (layoutBounds center y - (fontToUse height // 2)) + font: fontToUse + color: Color black]. + + self clipSubmorphs + ifTrue: [aCanvas clipBy: layoutBounds during: drawBlock] + ifFalse: [drawBlock value: aCanvas]! - aCanvas - drawString: labelToUse - at: (self center x - (labelWidth //2) max: (self left + 2)) @ (self center y - (fontToUse height //2)) - font: fontToUse - color: Color black.! Item was added: + ----- Method: PluggableButtonMorph>>drawMorphLabelOn: (in category 'drawing') ----- + drawMorphLabelOn: aCanvas + + | layoutBounds | + layoutBounds := self layoutBounds. + + self label privateFullMoveBy: (layoutBounds center - self label center). + + self clipSubmorphs + ifTrue: [aCanvas + clipBy: layoutBounds + during: [:c | c fullDrawMorph: self label]] + ifFalse: [aCanvas fullDrawMorph: self label].! Item was changed: ----- Method: PluggableButtonMorph>>drawOn: (in category 'drawing') ----- drawOn: aCanvas self drawBackgroundOn: aCanvas. + self label isMorph + ifTrue: [self drawMorphLabelOn: aCanvas] + ifFalse: [self drawLabelOn: aCanvas].! - aCanvas - clipBy: (self bounds insetBy: self layoutInset) - during: [:c | self drawLabelOn: c].! Item was changed: ----- Method: PluggableButtonMorph>>initialize (in category 'initialize-release') ----- initialize + - "initialize the state of the receiver" super initialize. + + "Layout properties." + self + extent: 20 @ 15; + hResizing: #shrinkWrap; + vResizing: #shrinkWrap; + layoutInset: (4@0 corner: 4@0); + clipSubmorphs: true; + wrapCentering: #center; + cellPositioning: #topCenter. + + "Visuals." - "" - self listDirection: #topToBottom. - self hResizing: #shrinkWrap. - "<--so naked buttons work right" - self vResizing: #shrinkWrap. - self layoutInset: 2. - self wrapCentering: #center; - cellPositioning: #topCenter. self borderStyle: BorderStyle thinGray. + + "Initialize instance variables." model := nil. label := nil. getStateSelector := nil. actionSelector := nil. getLabelSelector := nil. getMenuSelector := nil. shortcutCharacter := nil. askBeforeChanging := false. triggerOnMouseDown := false. onColor := self color darker. offColor := self color. feedbackColor := Color red. showSelectionFeedback := false. allButtons := nil. argumentsProvider := nil. + argumentsSelector := nil.! - argumentsSelector := nil. - self extent: 20 @ 15! Item was changed: ----- Method: PluggableButtonMorph>>labelShrinkThreshold (in category 'drawing') ----- labelShrinkThreshold "Determines the minimum width for labels not to be shrunk down to their first character." + ^ (self font widthOf: $m)*3! - ^ (self font widthOf: $m)*4! Item was changed: (PackageInfo named: 'Morphic') postscript: '"Initialize the key bindings and menus" Editor initialize. "apply the new icons" MenuIcons initializeIcons. TheWorldMainDockingBar updateInstances. "Fix missing inset of open windows." SystemWindow allSubInstancesDo: [:ea | ea wantsPaneSplitters: true; layoutInset: ProportionalSplitterMorph gripThickness; + cellInset: ProportionalSplitterMorph gripThickness]. + + "Update minimum extents and clipping." + PluggableButtonMorph allSubInstancesDo: [:ea | + ea + clipSubmorphs: true; + updateMinimumExtent].'! - cellInset: ProportionalSplitterMorph gripThickness].'!
1
0
0
0
The Trunk: Morphic-mt.949.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.949.mcz
==================== Summary ==================== Name: Morphic-mt.949 Author: mt Time: 29 April 2015, 6:10:07.123 pm UUID: ae7e2d05-a8ce-1b43-90d8-cfd0913be43b Ancestors: Morphic-mt.948 Fixed minor glitches in buttons. =============== Diff against Morphic-mt.948 =============== Item was changed: ----- Method: PluggableButtonMorph>>drawBackgroundOn: (in category 'drawing') ----- drawBackgroundOn: aCanvas | cc gradient borderColor fill | cc := self color. cc isTransparent ifTrue:[cc := Color gray: 0.9]. self enabled ifFalse:[cc := Color lightGray]. cc brightness > 0.9 ifTrue:[cc := cc adjustBrightness: 0.9 - cc brightness]. showSelectionFeedback ifTrue:[ borderColor := cc muchDarker. gradient := GradientFillStyle ramp: { 0.0 -> cc muchDarker. 0.1-> (cc adjustBrightness: -0.2). 0.5 -> cc. 0.9-> (cc adjustBrightness: -0.1). 1 -> cc muchDarker}. cc := cc muchDarker. ] ifFalse:[ borderColor := Color lightGray. gradient := GradientFillStyle ramp: { 0.0 -> Color white. 0.1-> (cc adjustBrightness: 0.05). 0.6 -> (cc darker)}. ]. gradient origin: bounds topLeft. gradient direction: 0@self height. PluggableButtonMorph gradientButton ifFalse: [fill := SolidFillStyle color: cc] ifTrue: [fill := gradient]. ^ self wantsRoundedCorners ifTrue: [aCanvas + frameAndFillRoundRect: self bounds - frameAndFillRoundRect: bounds radius: self class preferredCornerRadius fillStyle: fill borderWidth: 1 borderColor: borderColor] ifFalse: [aCanvas + frameAndFillRectangle: self bounds - frameAndFillRectangle: self innerBounds fillColor: fill asColor borderWidth: 1 borderColor: borderColor darker; + fillRectangle: self innerBounds - fillRectangle: (self innerBounds insetBy: 1) fillStyle: fill]! Item was changed: ----- Method: PluggableButtonMorph>>drawLabelOn: (in category 'drawing') ----- drawLabelOn: aCanvas + | fontToUse labelToUse labelWidth layoutBounds drawBlock | - | fontToUse labelToUse labelWidth | self label ifNil: [^ self]. + layoutBounds := self layoutBounds. - self label isMorph ifTrue: [ - self label privateFullMoveBy: (self center - self label center). - aCanvas fullDrawMorph: self label. - ^ self]. - labelToUse := self label asString. fontToUse := self font. + "Support very narrow buttons. Shrink text to monogram then." + (layoutBounds width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ - "Support very narrow buttons." - (self width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ labelToUse := labelToUse first asString. "Show first character only." fontToUse := fontToUse emphasized: (TextEmphasis bold) emphasisCode]. labelWidth := fontToUse widthOfString: labelToUse. + drawBlock := [:c | c + drawString: labelToUse + at: (layoutBounds center x - (labelWidth // 2) max: (layoutBounds left)) + @ (layoutBounds center y - (fontToUse height // 2)) + font: fontToUse + color: Color black]. + + self clipSubmorphs + ifTrue: [aCanvas clipBy: layoutBounds during: drawBlock] + ifFalse: [drawBlock value: aCanvas]! - aCanvas - drawString: labelToUse - at: (self center x - (labelWidth //2) max: (self left + 2)) @ (self center y - (fontToUse height //2)) - font: fontToUse - color: Color black.! Item was added: + ----- Method: PluggableButtonMorph>>drawMorphLabelOn: (in category 'drawing') ----- + drawMorphLabelOn: aCanvas + + | layoutBounds | + layoutBounds := self layoutBounds. + + self label privateFullMoveBy: (layoutBounds center - self label center). + + self clipSubmorphs + ifTrue: [aCanvas + clipBy: layoutBounds + during: [:c | c fullDrawMorph: self label]] + ifFalse: [aCanvas fullDrawMorph: self label].! Item was changed: ----- Method: PluggableButtonMorph>>drawOn: (in category 'drawing') ----- drawOn: aCanvas self drawBackgroundOn: aCanvas. + self label isMorph + ifTrue: [self drawMorphLabelOn: aCanvas] + ifFalse: [self drawLabelOn: aCanvas].! - aCanvas - clipBy: (self bounds insetBy: self layoutInset) - during: [:c | self drawLabelOn: c].! Item was changed: ----- Method: PluggableButtonMorph>>initialize (in category 'initialize-release') ----- initialize + - "initialize the state of the receiver" super initialize. + + "Layout properties." + self + extent: 20 @ 15; + hResizing: #shrinkWrap; + vResizing: #shrinkWrap; + layoutInset: (4@0 corner: 4@0); + clipSubmorphs: true; + wrapCentering: #center; + cellPositioning: #topCenter. + + "Visuals." - "" - self listDirection: #topToBottom. - self hResizing: #shrinkWrap. - "<--so naked buttons work right" - self vResizing: #shrinkWrap. - self layoutInset: 2. - self wrapCentering: #center; - cellPositioning: #topCenter. self borderStyle: BorderStyle thinGray. + + "Initialize instance variables." model := nil. label := nil. getStateSelector := nil. actionSelector := nil. getLabelSelector := nil. getMenuSelector := nil. shortcutCharacter := nil. askBeforeChanging := false. triggerOnMouseDown := false. onColor := self color darker. offColor := self color. feedbackColor := Color red. showSelectionFeedback := false. allButtons := nil. argumentsProvider := nil. + argumentsSelector := nil.! - argumentsSelector := nil. - self extent: 20 @ 15! Item was changed: ----- Method: PluggableButtonMorph>>labelShrinkThreshold (in category 'drawing') ----- labelShrinkThreshold "Determines the minimum width for labels not to be shrunk down to their first character." + ^ (self font widthOf: $m)*3! - ^ (self font widthOf: $m)*4! Item was changed: (PackageInfo named: 'Morphic') postscript: '"Initialize the key bindings and menus" Editor initialize. "apply the new icons" MenuIcons initializeIcons. TheWorldMainDockingBar updateInstances. "Fix missing inset of open windows." SystemWindow allSubInstancesDo: [:ea | ea wantsPaneSplitters: true; layoutInset: ProportionalSplitterMorph gripThickness; + cellInset: ProportionalSplitterMorph gripThickness]. + + "Update minimum extents and clipping." + PluggableButtonMorph allSubInstancesDo: [:ea | + ea + clipSubmorphs: true; + updateMinimumExtent].'! - cellInset: ProportionalSplitterMorph gripThickness].'!
1
0
0
0
The Trunk: Morphic-mt.949.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.949.mcz
==================== Summary ==================== Name: Morphic-mt.949 Author: mt Time: 29 April 2015, 6:10:07.123 pm UUID: ae7e2d05-a8ce-1b43-90d8-cfd0913be43b Ancestors: Morphic-mt.948 Fixed minor glitches in buttons. =============== Diff against Morphic-mt.948 =============== Item was changed: ----- Method: PluggableButtonMorph>>drawBackgroundOn: (in category 'drawing') ----- drawBackgroundOn: aCanvas | cc gradient borderColor fill | cc := self color. cc isTransparent ifTrue:[cc := Color gray: 0.9]. self enabled ifFalse:[cc := Color lightGray]. cc brightness > 0.9 ifTrue:[cc := cc adjustBrightness: 0.9 - cc brightness]. showSelectionFeedback ifTrue:[ borderColor := cc muchDarker. gradient := GradientFillStyle ramp: { 0.0 -> cc muchDarker. 0.1-> (cc adjustBrightness: -0.2). 0.5 -> cc. 0.9-> (cc adjustBrightness: -0.1). 1 -> cc muchDarker}. cc := cc muchDarker. ] ifFalse:[ borderColor := Color lightGray. gradient := GradientFillStyle ramp: { 0.0 -> Color white. 0.1-> (cc adjustBrightness: 0.05). 0.6 -> (cc darker)}. ]. gradient origin: bounds topLeft. gradient direction: 0@self height. PluggableButtonMorph gradientButton ifFalse: [fill := SolidFillStyle color: cc] ifTrue: [fill := gradient]. ^ self wantsRoundedCorners ifTrue: [aCanvas + frameAndFillRoundRect: self bounds - frameAndFillRoundRect: bounds radius: self class preferredCornerRadius fillStyle: fill borderWidth: 1 borderColor: borderColor] ifFalse: [aCanvas + frameAndFillRectangle: self bounds - frameAndFillRectangle: self innerBounds fillColor: fill asColor borderWidth: 1 borderColor: borderColor darker; + fillRectangle: self innerBounds - fillRectangle: (self innerBounds insetBy: 1) fillStyle: fill]! Item was changed: ----- Method: PluggableButtonMorph>>drawLabelOn: (in category 'drawing') ----- drawLabelOn: aCanvas + | fontToUse labelToUse labelWidth layoutBounds drawBlock | - | fontToUse labelToUse labelWidth | self label ifNil: [^ self]. + layoutBounds := self layoutBounds. - self label isMorph ifTrue: [ - self label privateFullMoveBy: (self center - self label center). - aCanvas fullDrawMorph: self label. - ^ self]. - labelToUse := self label asString. fontToUse := self font. + "Support very narrow buttons. Shrink text to monogram then." + (layoutBounds width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ - "Support very narrow buttons." - (self width < self labelShrinkThreshold and: [labelToUse size > 3]) ifTrue: [ labelToUse := labelToUse first asString. "Show first character only." fontToUse := fontToUse emphasized: (TextEmphasis bold) emphasisCode]. labelWidth := fontToUse widthOfString: labelToUse. + drawBlock := [:c | c + drawString: labelToUse + at: (layoutBounds center x - (labelWidth // 2) max: (layoutBounds left)) + @ (layoutBounds center y - (fontToUse height // 2)) + font: fontToUse + color: Color black]. + + self clipSubmorphs + ifTrue: [aCanvas clipBy: layoutBounds during: drawBlock] + ifFalse: [drawBlock value: aCanvas]! - aCanvas - drawString: labelToUse - at: (self center x - (labelWidth //2) max: (self left + 2)) @ (self center y - (fontToUse height //2)) - font: fontToUse - color: Color black.! Item was added: + ----- Method: PluggableButtonMorph>>drawMorphLabelOn: (in category 'drawing') ----- + drawMorphLabelOn: aCanvas + + | layoutBounds | + layoutBounds := self layoutBounds. + + self label privateFullMoveBy: (layoutBounds center - self label center). + + self clipSubmorphs + ifTrue: [aCanvas + clipBy: layoutBounds + during: [:c | c fullDrawMorph: self label]] + ifFalse: [aCanvas fullDrawMorph: self label].! Item was changed: ----- Method: PluggableButtonMorph>>drawOn: (in category 'drawing') ----- drawOn: aCanvas self drawBackgroundOn: aCanvas. + self label isMorph + ifTrue: [self drawMorphLabelOn: aCanvas] + ifFalse: [self drawLabelOn: aCanvas].! - aCanvas - clipBy: (self bounds insetBy: self layoutInset) - during: [:c | self drawLabelOn: c].! Item was changed: ----- Method: PluggableButtonMorph>>initialize (in category 'initialize-release') ----- initialize + - "initialize the state of the receiver" super initialize. + + "Layout properties." + self + extent: 20 @ 15; + hResizing: #shrinkWrap; + vResizing: #shrinkWrap; + layoutInset: (4@0 corner: 4@0); + clipSubmorphs: true; + wrapCentering: #center; + cellPositioning: #topCenter. + + "Visuals." - "" - self listDirection: #topToBottom. - self hResizing: #shrinkWrap. - "<--so naked buttons work right" - self vResizing: #shrinkWrap. - self layoutInset: 2. - self wrapCentering: #center; - cellPositioning: #topCenter. self borderStyle: BorderStyle thinGray. + + "Initialize instance variables." model := nil. label := nil. getStateSelector := nil. actionSelector := nil. getLabelSelector := nil. getMenuSelector := nil. shortcutCharacter := nil. askBeforeChanging := false. triggerOnMouseDown := false. onColor := self color darker. offColor := self color. feedbackColor := Color red. showSelectionFeedback := false. allButtons := nil. argumentsProvider := nil. + argumentsSelector := nil.! - argumentsSelector := nil. - self extent: 20 @ 15! Item was changed: ----- Method: PluggableButtonMorph>>labelShrinkThreshold (in category 'drawing') ----- labelShrinkThreshold "Determines the minimum width for labels not to be shrunk down to their first character." + ^ (self font widthOf: $m)*3! - ^ (self font widthOf: $m)*4! Item was changed: (PackageInfo named: 'Morphic') postscript: '"Initialize the key bindings and menus" Editor initialize. "apply the new icons" MenuIcons initializeIcons. TheWorldMainDockingBar updateInstances. "Fix missing inset of open windows." SystemWindow allSubInstancesDo: [:ea | ea wantsPaneSplitters: true; layoutInset: ProportionalSplitterMorph gripThickness; + cellInset: ProportionalSplitterMorph gripThickness]. + + "Update minimum extents and clipping." + PluggableButtonMorph allSubInstancesDo: [:ea | + ea + clipSubmorphs: true; + updateMinimumExtent].'! - cellInset: ProportionalSplitterMorph gripThickness].'!
1
0
0
0
The Trunk: Morphic-mt.948.mcz
by commits@source.squeak.org
29 Apr '15
29 Apr '15
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.948.mcz
==================== Summary ==================== Name: Morphic-mt.948 Author: mt Time: 29 April 2015, 6:08:09.041 pm UUID: 5f2bc0e4-93cb-4841-b724-e03b107d5fcf Ancestors: Morphic-kfr.947 Fixed several layouting issues regarding splitters, grips, panes, and windows. =============== Diff against Morphic-kfr.947 =============== Item was changed: + ----- Method: BorderedMorph>>addCornerGrips (in category 'resize handling') ----- - ----- Method: BorderedMorph>>addCornerGrips (in category 'lookenhancements') ----- addCornerGrips self addMorphBack: (TopLeftGripMorph new target: self; position: self position). self addMorphBack: (TopRightGripMorph new target: self; position: self position). self addMorphBack: (BottomLeftGripMorph new target: self;position: self position). self addMorphBack: (BottomRightGripMorph new target: self;position: self position)! Item was changed: + ----- Method: BorderedMorph>>addEdgeGrips (in category 'resize handling') ----- - ----- Method: BorderedMorph>>addEdgeGrips (in category 'lookenhancements') ----- addEdgeGrips "Add resizers along the four edges of the receiver" self addMorphBack: (TopGripMorph new target: self;position: self position). self addMorphBack: (BottomGripMorph new target: self;position: self position). self addMorphBack: (RightGripMorph new target: self;position: self position). self addMorphBack: (LeftGripMorph new target: self;position: self position).! Item was added: + ----- Method: BorderedMorph>>addMorph:fullFrame: (in category 'resize handling') ----- + addMorph: aMorph fullFrame: aLayoutFrame + "Add aMorph according to aLayoutFrame." + + self cellInset > 0 ifTrue: [ + | left right bottom top spacing | + + spacing := self cellInset. + left := aLayoutFrame leftOffset ifNil: [0]. + right := aLayoutFrame rightOffset ifNil: [0]. + + bottom := aLayoutFrame bottomOffset ifNil: [0]. + top := aLayoutFrame topOffset ifNil: [0]. + + "Add a spacing to the frame if it is not top or leftmost." + aLayoutFrame leftFraction = 0 + ifFalse: [left := left + spacing] + ifTrue: [ + "Expect another, resizable widget besides me if I have a fixed width." + aLayoutFrame hasFixedWidth ifTrue: [right := right - spacing]]. + aLayoutFrame topFraction = 0 + ifFalse: [top := top + spacing] + ifTrue: [ + "Expect another, resizable widget besides me if I have a fixed height." + aLayoutFrame hasFixedHeight ifTrue: [bottom := bottom - spacing]]. + + aLayoutFrame + topOffset: top; + bottomOffset: bottom; + leftOffset: left; + rightOffset: right]. + + super addMorph: aMorph fullFrame: aLayoutFrame. + + self wantsPaneSplitters ifTrue: [self addPaneSplitters].! Item was changed: + ----- Method: BorderedMorph>>addPaneHSplitterBetween:and: (in category 'resize handling') ----- - ----- Method: BorderedMorph>>addPaneHSplitterBetween:and: (in category 'lookenhancements') ----- addPaneHSplitterBetween: topMorph and: bottomMorphs | targetY minX maxX splitter | targetY := topMorph layoutFrame bottomFraction. minX := (bottomMorphs detectMin: [:each | each layoutFrame leftFraction]) layoutFrame leftFraction. maxX := (bottomMorphs detectMax: [:each | each layoutFrame rightFraction]) layoutFrame rightFraction. splitter := ProportionalSplitterMorph new beSplitsTopAndBottom; yourself. splitter layoutFrame: (LayoutFrame fractions: (minX @ targetY corner: maxX @ targetY) + offsets: (((topMorph layoutFrame leftOffset ifNil: [0]) @ 0 + corner: (topMorph layoutFrame rightOffset ifNil: [0]) @ AbstractResizerMorph gripThickness) + translateBy: 0 @ (topMorph layoutFrame bottomOffset ifNil: [0]))). - offsets: (((topMorph layoutFrame leftOffset ifNil: [0]) @ 0 corner: (topMorph layoutFrame rightOffset ifNil: [0]) @ AbstractResizerMorph gripThickness) translateBy: 0 @ (topMorph layoutFrame bottomOffset ifNil: [0]))). self addMorphBack: (splitter position: self position).! Item was added: + ----- Method: BorderedMorph>>addPaneHSplitters (in category 'resize handling') ----- + addPaneHSplitters + + | remaining targetY sameY | + remaining := self paneMorphs reject: [:each | + each layoutFrame bottomFraction = 1 + or: [each layoutFrame hasFixedHeight]]. + [remaining notEmpty] whileTrue: + [targetY := remaining first layoutFrame bottomFraction. + sameY := self paneMorphs select: [:each | each layoutFrame bottomFraction = targetY]. + self addPaneHSplitterBetween: remaining first and: sameY. + remaining := remaining copyWithoutAll: sameY]! Item was changed: + ----- Method: BorderedMorph>>addPaneSplitters (in category 'resize handling') ----- - ----- Method: BorderedMorph>>addPaneSplitters (in category 'lookenhancements') ----- addPaneSplitters + - | splitter remaining target targetX sameX minY maxY targetY sameY minX maxX | self removePaneSplitters. + + self addPaneVSplitters. + self addPaneHSplitters. - self removeCornerGrips. + self linkSubmorphsToSplitters! - remaining := submorphs reject: [:each | each layoutFrame rightFraction = 1]. - [remaining notEmpty] whileTrue: - [target := remaining first. - targetX := target layoutFrame rightFraction. - sameX := submorphs select: [:each | each layoutFrame rightFraction = targetX]. - minY := (sameX detectMin: [:each | each layoutFrame topFraction]) layoutFrame topFraction. - maxY := (sameX detectMax: [:each | each layoutFrame bottomFraction]) layoutFrame bottomFraction. - splitter := ProportionalSplitterMorph new. - splitter layoutFrame: (LayoutFrame - fractions: (targetX @ minY corner: targetX @ maxY) - offsets: ((0 @ (target layoutFrame topOffset ifNil: [0]) corner: 4 @ (target layoutFrame bottomOffset ifNil: [0])) translateBy: (target layoutFrame rightOffset ifNil: [0]) @ 0)). - self addMorphBack: (splitter position: self position). - remaining := remaining copyWithoutAll: sameX]. - - remaining := submorphs copy reject: [:each | each layoutFrame bottomFraction = 1]. - [remaining notEmpty] - whileTrue: [target := remaining first. - targetY := target layoutFrame bottomFraction. - sameY := submorphs select: [:each | each layoutFrame bottomFraction = targetY]. - minX := (sameY detectMin: [:each | each layoutFrame leftFraction]) layoutFrame leftFraction. - maxX := (sameY detectMax: [:each | each layoutFrame rightFraction]) layoutFrame rightFraction. - splitter := ProportionalSplitterMorph new beSplitsTopAndBottom; yourself. - splitter layoutFrame: (LayoutFrame - fractions: (minX @ targetY corner: maxX @ targetY) - offsets: (((target layoutFrame leftOffset ifNil: [0]) @ 0 corner: (target layoutFrame rightOffset ifNil: [0]) @ 4) translateBy: 0 @ (target layoutFrame bottomOffset ifNil: [0]))). - self addMorphBack: (splitter position: self position). - remaining := remaining copyWithoutAll: sameY]. - - self linkSubmorphsToSplitters. - self splitters do: [:each | each comeToFront]. - ! Item was changed: + ----- Method: BorderedMorph>>addPaneVSplitterBetween:and: (in category 'resize handling') ----- - ----- Method: BorderedMorph>>addPaneVSplitterBetween:and: (in category 'lookenhancements') ----- addPaneVSplitterBetween: leftMorph and: rightMorphs | targetX minY maxY splitter | targetX := leftMorph layoutFrame rightFraction. minY := (rightMorphs detectMin: [:each | each layoutFrame topFraction]) layoutFrame topFraction. maxY := (rightMorphs detectMax: [:each | each layoutFrame bottomFraction]) layoutFrame bottomFraction. splitter := ProportionalSplitterMorph new. splitter layoutFrame: (LayoutFrame fractions: (targetX @ minY corner: targetX @ maxY) offsets: ((0 @ (leftMorph layoutFrame topOffset ifNil: [0]) corner: (AbstractResizerMorph gripThickness@ (leftMorph layoutFrame bottomOffset ifNil: [0]))) translateBy: (leftMorph layoutFrame rightOffset ifNil: [0]) @ 0)). self addMorphBack: (splitter position: self position).! Item was added: + ----- Method: BorderedMorph>>addPaneVSplitters (in category 'resize handling') ----- + addPaneVSplitters + + | remaining targetX sameX | + remaining := self paneMorphs reject: [:each | + each layoutFrame rightFraction = 1 + or: [each layoutFrame hasFixedWidth]]. + [remaining notEmpty] whileTrue: + [targetX := remaining first layoutFrame rightFraction. + sameX := self paneMorphs select: [:each | each layoutFrame rightFraction = targetX]. + self addPaneVSplitterBetween: remaining first and: sameX. + remaining := remaining copyWithoutAll: sameX]! Item was changed: + ----- Method: BorderedMorph>>linkSubmorphsToSplitters (in category 'resize handling') ----- - ----- Method: BorderedMorph>>linkSubmorphsToSplitters (in category 'lookenhancements') ----- linkSubmorphsToSplitters + self splitters do: [:splitter | + splitter splitsTopAndBottom ifTrue: [ + self submorphsDo: [:morph | + ((morph ~= splitter + and: [morph layoutFrame bottomFraction = splitter layoutFrame topFraction]) + and: [morph layoutFrame hasFixedHeight not + or: [(morph layoutFrame topOffset ifNil: [0]) < 0]]) + ifTrue: [splitter addLeftOrTop: morph]. + ((morph ~= splitter + and: [morph layoutFrame topFraction = splitter layoutFrame bottomFraction]) + and: [morph layoutFrame hasFixedHeight not + or: [(morph layoutFrame bottomOffset ifNil: [0]) > 0]]) + ifTrue: [splitter addRightOrBottom: morph]]]. + splitter splitsLeftAndRight ifTrue: [ + self submorphsDo: [:morph | + ((morph ~= splitter + and: [morph layoutFrame rightFraction = splitter layoutFrame leftFraction]) + and: [morph layoutFrame hasFixedWidth not + or: [(morph layoutFrame leftOffset ifNil: [0]) < 0]]) + ifTrue: [splitter addLeftOrTop: morph]. + ((morph ~= splitter + and: [morph layoutFrame leftFraction = splitter layoutFrame rightFraction]) + and: [morph layoutFrame hasFixedWidth not + or: [(morph layoutFrame rightOffset ifNil: [0]) > 0]]) + ifTrue: [splitter addRightOrBottom: morph]]]]! - self splitters do: - [:each | - each splitsTopAndBottom - ifTrue: - [self submorphsDo: - [:eachMorph | - (eachMorph ~= each and: [eachMorph layoutFrame bottomFraction = each layoutFrame topFraction]) ifTrue: [each addLeftOrTop: eachMorph]. - (eachMorph ~= each and: [eachMorph layoutFrame topFraction = each layoutFrame bottomFraction]) ifTrue: [each addRightOrBottom: eachMorph]]] - ifFalse: - [self submorphsDo: - [:eachMorph | - (eachMorph ~= each and: [eachMorph layoutFrame rightFraction = each layoutFrame leftFraction]) ifTrue: [each addLeftOrTop: eachMorph]. - (eachMorph ~= each and: [eachMorph layoutFrame leftFraction = each layoutFrame rightFraction]) ifTrue: [each addRightOrBottom: eachMorph]]]]! Item was added: + ----- Method: BorderedMorph>>paneMorphs (in category 'resize handling') ----- + paneMorphs + + ^ self submorphs copyWithoutAll: self splitters! Item was changed: + ----- Method: BorderedMorph>>removeCornerGrips (in category 'resize handling') ----- - ----- Method: BorderedMorph>>removeCornerGrips (in category 'lookenhancements') ----- removeCornerGrips | corners | corners := self submorphsSatisfying: [:each | each isKindOf: CornerGripMorph]. corners do: [:each | each delete]! Item was changed: + ----- Method: BorderedMorph>>removePaneSplitters (in category 'resize handling') ----- - ----- Method: BorderedMorph>>removePaneSplitters (in category 'lookenhancements') ----- removePaneSplitters self splitters do: [:each | each delete]! Item was changed: + ----- Method: BorderedMorph>>splitters (in category 'resize handling') ----- - ----- Method: BorderedMorph>>splitters (in category 'lookenhancements') ----- splitters ^ self submorphsSatisfying: [:each | each isKindOf: ProportionalSplitterMorph]! Item was added: + ----- Method: BorderedMorph>>wantsPaneSplitters (in category 'resize handling') ----- + wantsPaneSplitters + + ^ self valueOfProperty: #allowPaneSplitters ifAbsent: [false]! Item was added: + ----- Method: BorderedMorph>>wantsPaneSplitters: (in category 'resize handling') ----- + wantsPaneSplitters: aBoolean + + self setProperty: #allowPaneSplitters toValue: aBoolean.! Item was changed: ----- Method: BottomGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (0 @ 1 corner: 1 @ 1) + offsets: (0 @ 0 negated corner: 0@ self defaultHeight)! - offsets: (0 @ self defaultHeight negated corner: 0@ 0)! Item was changed: ----- Method: BottomLeftGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (0 @ 1 corner: 0 @ 1) + offsets: (self class gripThickness negated @ (self defaultHeight negated + self class gripThickness) + corner: 0 @ 0)! - offsets: (0 @ (0 - self defaultHeight) corner: self defaultWidth @ 0)! Item was changed: ----- Method: BottomRightGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (1 @ 1 corner: 1 @ 1) + offsets: ((self defaultWidth negated + self class gripThickness) @ (self defaultHeight negated + self class gripThickness) + corner: 0@0)! - offsets: (0 - self defaultWidth @ (0 - self defaultHeight) corner: 0 @ 0)! Item was changed: ----- Method: LeftGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (0 @ 0 corner: 0 @ 1) + offsets: (self defaultWidth negated @ 0 corner: 0 @ 0)! - offsets: (0 @ 0 negated corner: self defaultWidth @ 0)! Item was changed: ----- Method: ProportionalLayout>>minExtentOf:in: (in category 'layout') ----- minExtentOf: aMorph in: newBounds "Return the minimal size aMorph's children would require given the new bounds" | min | min := 0@0. aMorph submorphsDo:[:m| | extent frame | "Map the minimal size of the child through the layout frame. Note: This is done here and not in the child because its specific for proportional layouts. Perhaps we'll generalize this for table layouts but I'm not sure how and when." extent := m minExtent. + "frame := m layoutFrame. + frame ifNotNil:[extent := frame minExtentFrom: extent]." - frame := m layoutFrame. - frame ifNotNil:[extent := frame minExtentFrom: extent]. min := min max: extent]. ^min! Item was changed: ----- Method: ProportionalSplitterMorph>>minimumHeightOf: (in category 'boundaries') ----- minimumHeightOf: aCollection + "Answer the minimum height needed to display any of the morphs in aCollection. + See ProportionalLayout >> #minExtentOf:in:." - "Answer the minimum height needed to display any of the morphs in aCollection." ^ aCollection inject: 0 into: [ :height :morph | + | minHeight | + minHeight := morph minHeight. + "morph layoutFrame ifNotNil: [:frame | + minHeight := frame minHeightFrom: minHeight]." + minHeight + self height max: height]! - (morph minHeight + self height) max: height]! Item was changed: ----- Method: ProportionalSplitterMorph>>minimumWidthOf: (in category 'boundaries') ----- minimumWidthOf: aCollection + "Answer the minimum width needed to display any of the morphs in aCollection. + See ProportionalLayout >> #minExtentOf:in:." + - "Answer the minimum width needed to display any of the morphs in aCollection." - ^ aCollection inject: 0 into: [ :width :morph | + | minWidth | + minWidth := morph minWidth. + "morph layoutFrame ifNotNil: [:frame | + minWidth := frame minWidthFrom: minWidth]." + minWidth + self width max: width]! - (morph minWidth + self width) max: width]! Item was changed: ----- Method: ProportionalSplitterMorph>>repositionBy: (in category 'layout') ----- repositionBy: delta | selfTop selfBottom selfLeft selfRight | leftOrTop do: + [ : each | | firstRight firstBottom firstLeft firstTop | - [ : each | | firstRight firstBottom | firstRight := each layoutFrame rightOffset ifNil: [ 0 ]. firstBottom := each layoutFrame bottomOffset ifNil: [ 0 ]. each layoutFrame rightOffset: firstRight + delta x. + each layoutFrame bottomOffset: firstBottom + delta y. + each layoutFrame hasFixedHeight ifTrue: [ + firstTop := each layoutFrame topOffset ifNil: [ 0 ]. + each layoutFrame topOffset: firstTop + delta y ]. + each layoutFrame hasFixedWidth ifTrue: [ + firstLeft := each layoutFrame leftOffset ifNil: [ 0 ]. + each layoutFrame leftOffset: firstLeft + delta x. ] ]. - each layoutFrame bottomOffset: firstBottom + delta y ]. rightOrBottom do: + [ : each | | secondLeft secondTop secondRight secondBottom | - [ : each | | secondLeft secondTop | secondLeft := each layoutFrame leftOffset ifNil: [ 0 ]. secondTop := each layoutFrame topOffset ifNil: [ 0 ]. each layoutFrame leftOffset: secondLeft + delta x. + each layoutFrame topOffset: secondTop + delta y. + each layoutFrame hasFixedHeight ifTrue: [ + secondBottom := each layoutFrame bottomOffset ifNil: [ 0 ]. + each layoutFrame bottomOffset: secondBottom + delta y. ]. + each layoutFrame hasFixedWidth ifTrue: [ + secondRight := each layoutFrame rightOffset ifNil: [ 0 ]. + each layoutFrame rightOffset: secondRight + delta x. ] ]. + - each layoutFrame topOffset: secondTop + delta y ]. selfTop := self layoutFrame topOffset ifNil: [ 0 ]. selfBottom := self layoutFrame bottomOffset ifNil: [ 0 ]. selfLeft := self layoutFrame leftOffset ifNil: [ 0 ]. selfRight := self layoutFrame rightOffset ifNil: [ 0 ]. self layoutFrame topOffset: selfTop + delta y ; bottomOffset: selfBottom + delta y ; leftOffset: selfLeft + delta x ; rightOffset: selfRight + delta x. self owner layoutChanged. self movements removeFirst; add: (splitsTopAndBottom ifTrue: [ delta y sign ] ifFalse: [ delta x sign ])! Item was changed: ----- Method: ProportionalSplitterMorph>>rightBoundary (in category 'boundaries') ----- rightBoundary "Answer the rightmost x position the receiver could be moved to." | splitter morphs | splitter := self splitterRight. morphs := self commonNeighbours: rightOrBottom with: splitter. + ^ (splitter ifNil: [owner isSystemWindow ifTrue: [owner panelRect right] ifFalse: [owner innerBounds right]] ifNotNil: [splitter left]) - (self minimumWidthOf: morphs)! Item was added: + ----- Method: ProportionalSplitterMorph>>splitsLeftAndRight (in category 'direction') ----- + splitsLeftAndRight + + ^ self splitsTopAndBottom not! Item was changed: ----- Method: ProportionalSplitterMorph>>topBoundary (in category 'boundaries') ----- topBoundary "Answer the topmost x position the receiver could be moved to." | splitter morphs | splitter := self splitterAbove. morphs := self commonNeighbours: leftOrTop with: splitter. + ^ (splitter + ifNil: [owner isSystemWindow ifTrue: [owner panelRect top] - ifNil: [owner isSystemWindow ifTrue: [owner panelRect top + owner labelArea height + 3 ] ifFalse: [owner innerBounds top]] ifNotNil: [splitter bottom]) + (self minimumHeightOf: morphs)! Item was changed: ----- Method: RightGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (1 @ 0 corner: 1 @ 1) + offsets: (0 @ self defaultHeight negated corner: self defaultWidth @ 0)! - offsets: (self defaultWidth negated @ self defaultHeight negated corner: 0@ 0)! Item was changed: ----- Method: SystemWindow>>addMorph:fullFrame: (in category 'panes') ----- addMorph: aMorph fullFrame: aLayoutFrame "Add aMorph according to aLayoutFrame." - | windowBorderWidth | - windowBorderWidth := self class borderWidth. - "If the property #allowPaneSplitters is set to false, do *not* inset morphs by the borderWidth - to make room for splitters. This allows windows with non-traditional contents to avoid their - component morphs from being clipped. Do *NOT* remove this code please!! Just because - there may be no setters of allowPaneSplitters to false in the image doesn't mean they're not - out there. Thanks!! eem 6/13/2013" - (self valueOfProperty: #allowPaneSplitters ifAbsent: [true]) ifTrue: - [| left right bottom top | - left := aLayoutFrame leftOffset ifNil: [0]. - right := aLayoutFrame rightOffset ifNil: [0]. - - bottom := aLayoutFrame bottomOffset ifNil: [0]. - top := aLayoutFrame topOffset ifNil: [0]. - - aLayoutFrame rightFraction = 1 ifTrue: [aLayoutFrame rightOffset: right - windowBorderWidth]. - aLayoutFrame leftFraction = 0 - ifTrue: [aLayoutFrame leftOffset: left + windowBorderWidth] - ifFalse: [aLayoutFrame leftOffset: left + ProportionalSplitterMorph gripThickness]. - - aLayoutFrame bottomFraction = 1 ifTrue: [aLayoutFrame bottomOffset: bottom - windowBorderWidth]. - aLayoutFrame topFraction = 0 - ifTrue: [aLayoutFrame topOffset: top + windowBorderWidth] - ifFalse: [aLayoutFrame topOffset: top + ProportionalSplitterMorph gripThickness]]. - - "this code should not be here!!!! As of 6/13/2013 there aren't even any users of BrowserCommentTextMorph." - (aMorph class name = #BrowserCommentTextMorph) ifTrue: - [aLayoutFrame rightOffset: windowBorderWidth negated. - aLayoutFrame leftOffset: windowBorderWidth. - aLayoutFrame bottomOffset: windowBorderWidth negated. - aLayoutFrame topOffset: (windowBorderWidth negated) + 4]. - super addMorph: aMorph fullFrame: aLayoutFrame. paneMorphs := paneMorphs copyReplaceFrom: 1 to: 0 with: (Array with: aMorph). aMorph isImageMorph ifFalse: [aMorph adoptPaneColor: self paneColor]. Preferences scrollBarsOnRight ifTrue:"reorder panes so flop-out right-side scrollbar is visible" + [self addMorphBack: aMorph].! - [self addMorphBack: aMorph]. - - self addPaneSplitters! Item was removed: - ----- Method: SystemWindow>>addPaneHSplitters (in category 'initialization') ----- - addPaneHSplitters - - | remaining targetY sameY | - remaining := paneMorphs copy reject: [:each | each layoutFrame bottomFraction = 1]. - [remaining notEmpty] whileTrue: - [targetY := remaining first layoutFrame bottomFraction. - sameY := paneMorphs select: [:each | each layoutFrame bottomFraction = targetY]. - self addPaneHSplitterBetween: remaining first and: sameY. - remaining := remaining copyWithoutAll: sameY]! Item was changed: ----- Method: SystemWindow>>addPaneSplitters (in category 'initialization') ----- addPaneSplitters - self removePaneSplitters. self removeCornerGrips. - - self addCornerGrips. - self addPaneVSplitters. - self addPaneHSplitters. + super addPaneSplitters. + + self addCornerGrips.! - self linkSubmorphsToSplitters! Item was removed: - ----- Method: SystemWindow>>addPaneVSplitters (in category 'initialization') ----- - addPaneVSplitters - - | remaining targetX sameX | - remaining := paneMorphs copy reject: [:each | each layoutFrame rightFraction = 1]. - [remaining notEmpty] whileTrue: - [targetX := remaining first layoutFrame rightFraction. - sameX := paneMorphs select: [:each | each layoutFrame rightFraction = targetX]. - self addPaneVSplitterBetween: remaining first and: sameX. - remaining := remaining copyWithoutAll: sameX]! Item was changed: ----- Method: SystemWindow>>setFramesForLabelArea (in category 'initialization') ----- setFramesForLabelArea "an aid to converting old instances, but then I found convertAlignment (jesse welton's note)" + | frame | - | frame windowBorderWidth | labelArea ifNil: [^ self]. labelArea layoutPolicy: TableLayout new; listDirection: #leftToRight; hResizing: #spaceFill; layoutInset: 0. label hResizing: #spaceFill. labelArea ifNotNil: [frame := LayoutFrame new. frame leftFraction: 0; topFraction: 0; rightFraction: 1; bottomFraction: 0; topOffset: self labelHeight negated. - windowBorderWidth := self class borderWidth. - frame leftOffset: windowBorderWidth; - rightOffset: windowBorderWidth negated; - topOffset: self labelHeight negated + windowBorderWidth; - bottomOffset: windowBorderWidth negated. labelArea layoutFrame: frame]! Item was changed: ----- Method: TopGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (0 @ 0 corner: 1 @ 0) + offsets: (0 @ (-40 - self defaultHeight) corner: 0@ 0)! - offsets: (0 @ -40 corner: 0@ 0)! Item was changed: ----- Method: TopLeftGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame fractions: (0 @ 0 corner: 0 @ 0) + offsets: (0 @ 0 corner: 0 @ 0)! - offsets: (0 @ 0 corner: self defaultWidth @ 0)! Item was changed: ----- Method: TopRightGripMorph>>gripLayoutFrame (in category 'accessing') ----- gripLayoutFrame ^ LayoutFrame + fractions: (1 @ 0 corner: 1 @ 0) + offsets: (0 @ 0 corner: 0 @ 0)! - fractions: (1 @ 0 corner: 1 @ nil) - offsets: (0 - self defaultWidth @ 0 corner: 0 @ nil)! Item was changed: (PackageInfo named: 'Morphic') postscript: '"Initialize the key bindings and menus" Editor initialize. "apply the new icons" MenuIcons initializeIcons. TheWorldMainDockingBar updateInstances. + + "Fix missing inset of open windows." + SystemWindow allSubInstancesDo: [:ea | + ea + wantsPaneSplitters: true; + layoutInset: ProportionalSplitterMorph gripThickness; + cellInset: ProportionalSplitterMorph gripThickness].'! - - "Update minimum extents." - PluggableButtonMorph allSubInstancesDo: [:ea | - ea updateMinimumExtent].'!
1
0
0
0
← Newer
1
2
3
4
5
6
7
...
136
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
Results per page:
10
25
50
100
200