Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.801.mcz
==================== Summary ====================
Name: Collections-cmm.801
Author: cmm
Time: 15 July 2018, 4:33:18.797462 pm
UUID: dbaa6e91-604d-4f66-aef8-9c1900c499a7
Ancestors: Collections-ul.800
It turns out better and more consistent for String>>#condensedIntoOneLine to do a uniform conversion than trimBlanks.
=============== Diff against Collections-ul.800 ===============
Item was changed:
----- Method: String>>condensedIntoOneLine (in category 'converting') -----
condensedIntoOneLine
"Return a copy of the receiver with all separators converted to spaces, and with no consecutive spaces. A formatting tool."
^ String streamContents:
[ : stream | | prior |
+ prior := $X. "some non-separator"
+ self do:
- prior := $X. "any non-blank"
- self withBlanksTrimmed do:
[ : char | char isSeparator ifTrue: [ prior isSeparator ifFalse: [stream space]] ifFalse: [ stream nextPut: char ].
prior := char ] ]!
David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-dtl.802.mcz
==================== Summary ====================
Name: Collections-dtl.802
Author: dtl
Time: 14 July 2018, 1:05:13.618064 pm
UUID: 0dc423d0-032d-4f0c-8b93-97f32605c1ea
Ancestors: Collections-ul.800
Bypass Collections.kks.801.mcz for now because it leads to a problem opening the help browser.
=============== Diff against Collections-ul.800 ===============
Patrick Rein uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-pre.243.mcz
==================== Summary ====================
Name: MorphicExtras-pre.243
Author: pre
Time: 10 July 2018, 3:31:38.952363 pm
UUID: 38e65aea-ec4c-f34b-8c99-417bc929e15c
Ancestors: MorphicExtras-pre.242
Adds theme properties to the tool
=============== Diff against MorphicExtras-pre.242 ===============
Item was added:
+ ----- Method: ObjectsTool class>>themeProperties (in category 'preferences') -----
+ themeProperties
+
+ ^ super themeProperties, {
+ { #borderColor. 'Colors'. 'Color of the tools'' border.' }.
+ { #borderWidth. 'Borders'. 'Width of the tools'' border.' }.
+ { #borderStyle. 'Borders'. 'Whether to use a plain border, inset, or outset.' }.
+ { #color. 'Colors'. 'Background color of the tool.' }.
+ { #textColor. 'Colors'. 'Color for the category button labels.' }.
+ { #selectionTextColor. 'Colors'. 'Color used for the button of the selected category.' }.
+ }!
Patrick Rein uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-pre.243.mcz
==================== Summary ====================
Name: MorphicExtras-pre.243
Author: pre
Time: 10 July 2018, 3:31:38.952363 pm
UUID: 38e65aea-ec4c-f34b-8c99-417bc929e15c
Ancestors: MorphicExtras-pre.242
Adds theme properties to the tool
=============== Diff against MorphicExtras-pre.242 ===============
Item was added:
+ ----- Method: ObjectsTool class>>themeProperties (in category 'preferences') -----
+ themeProperties
+
+ ^ super themeProperties, {
+ { #borderColor. 'Colors'. 'Color of the tools'' border.' }.
+ { #borderWidth. 'Borders'. 'Width of the tools'' border.' }.
+ { #borderStyle. 'Borders'. 'Whether to use a plain border, inset, or outset.' }.
+ { #color. 'Colors'. 'Background color of the tool.' }.
+ { #textColor. 'Colors'. 'Color for the category button labels.' }.
+ { #selectionTextColor. 'Colors'. 'Color used for the button of the selected category.' }.
+ }!
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-kks.801.mcz
==================== Summary ====================
Name: Collections-kks.801
Author: kks
Time: 9 July 2018, 8:20:57.318092 pm
UUID: ad558efb-0fea-41e7-9f20-ef7477b20704
Ancestors: Collections-ul.800
Attempt to retain as much styling as possible while filing in text from streams where the runs may fall short or extend beyond the string.
Based on Bob's suggestions at http://lists.squeakfoundation.org/pipermail/squeak-dev/2018-July/199530.html
=============== Diff against Collections-ul.800 ===============
Item was changed:
----- Method: Text>>setString:setRunsChecking: (in category 'private') -----
setString: aString setRunsChecking: aRunArray
+ | stringSize runsSize |
- "Check runs and do the best you can to make them fit..."
-
string := aString.
- "check the runs"
aRunArray ifNil: [^ aString asText].
- (aRunArray isKindOf: RunArray) ifFalse: [^ aString asText].
- aRunArray runs size = aRunArray values size ifFalse: [^ aString asText].
- aRunArray size = aString size ifFalse: [^ aString asText].
+ "Check runs and do the best you can to make them fit..."
+ runsSize := aRunArray runs size.
+ runsSize = aRunArray values size ifFalse: [^ aString asText]. "raise error here?"
+ stringSize := string size.
+ runs := stringSize = runsSize
+ ifTrue: [aRunArray]
+ ifFalse: [ stringSize > runsSize
+ ifTrue: [aRunArray addLast: {} times: stringSize - runsSize]
+ ifFalse: [aRunArray copyFrom: 1 to: stringSize]].!
- runs := aRunArray.!