Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.791.mcz
==================== Summary ====================
Name: Morphic-mt.791
Author: mt
Time: 30 March 2015, 11:15:05.11 am
UUID: 2477a56b-ef43-7746-a965-0fbd71e8cb99
Ancestors: Morphic-mt.790
Defer line-breaking in balloon-texts until actual display time. Having this, even text objects can be stored as balloon-texts and an appropriate renderer may display that.
=============== Diff against Morphic-mt.790 ===============
Item was changed:
----- Method: Morph>>balloonText (in category 'accessing') -----
balloonText
"Answer balloon help text or nil, if no help is available.
NB: subclasses may override such that they programatically
construct the text, for economy's sake, such as model phrases in
a Viewer"
| result |
extension ifNil: [^nil].
extension balloonText
ifNotNil: [:balloonText | result := balloonText]
ifNil: [extension balloonTextSelector
ifNotNil: [:balloonSelector |
result := ScriptingSystem helpStringOrNilFor: balloonSelector.
(result isNil and: [balloonSelector == #methodComment])
ifTrue: [result := self methodCommentAsBalloonHelp].
((result isNil and: [balloonSelector numArgs = 0])
and: [self respondsTo: balloonSelector])
ifTrue: [result := self perform: balloonSelector]]].
+ ^ result!
-
- ^ result ifNotNil: [:balloonText |
- balloonText asString withNoLineLongerThan: Preferences maxBalloonHelpLineLength]!
Item was changed:
----- Method: Morph>>setBalloonText: (in category 'halos and balloon help') -----
setBalloonText: stringOrText
"Set receiver's balloon help text. Pass nil to remove the help."
self flag: #deprecated. "mt: Use #balloonText:."
+ self balloonText: stringOrText.!
- self setBalloonText: stringOrText maxLineLength: Preferences maxBalloonHelpLineLength!
Item was changed:
----- Method: Morph>>showBalloon:hand: (in category 'halos and balloon help') -----
showBalloon: msgString hand: aHand
"Pop up a balloon containing the given string,
first removing any existing BalloonMorphs in the world."
| w balloon h |
(w := self world) ifNil: [^ self].
h := aHand.
h ifNil:[
h := w activeHand].
+ balloon := BalloonMorph
+ string: (msgString asString withNoLineLongerThan: Preferences maxBalloonHelpLineLength)
+ for: self balloonHelpAligner.
- balloon := BalloonMorph string: msgString for: self balloonHelpAligner.
balloon popUpFor: self hand: h.!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.107.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.107
Author: mt
Time: 30 March 2015, 11:05:54.366 am
UUID: 6b98b55a-8662-944b-baab-7166bf663019
Ancestors: ToolBuilder-Morphic-mt.106
Fix drawing of balloonText in text fields to consider the actual bounds.
=============== Diff against ToolBuilder-Morphic-mt.106 ===============
Item was changed:
----- Method: PluggableTextMorphPlus>>drawBalloonTextOn: (in category 'drawing') -----
drawBalloonTextOn: aCanvas
"Show balloon text in the text morph if it has no contents."
textMorph contents ifNotEmpty: [^ self].
self balloonText ifNotNil: [:text |
aCanvas
drawString: text
+ in: (self innerBounds insetBy: (5@2 corner: 0@0))
- at: self innerBounds topLeft + (5@2)
font: textMorph textStyle defaultFont
color: (Color gray: 0.7)].!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.105.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.105
Author: mt
Time: 30 March 2015, 9:52:15.9 am
UUID: 90b7acde-6e7e-f14d-8e79-037ee8428da1
Ancestors: ToolBuilder-Morphic-dtl.104
Custom #balloonText in pluggable text morphs to use model data.
=============== Diff against ToolBuilder-Morphic-dtl.104 ===============
Item was added:
+ ----- Method: PluggableTextMorphPlus>>balloonText (in category 'accessing') -----
+ balloonText
+ "Overridden to send selector to model and not self. Do not use #perform:orSendTo: because super does more than just the send.."
+
+ self balloonTextSelector ifNotNil: [:selector |
+ (self model respondsTo: selector) ifTrue: [
+ ^ self model perform: selector]].
+
+ ^ super balloonText!
Marcel Taeumel uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-mt.72.mcz
==================== Summary ====================
Name: ToolBuilder-Kernel-mt.72
Author: mt
Time: 30 March 2015, 9:49:25.642 am
UUID: 010594ce-f5e2-684e-9675-7915430cce4d
Ancestors: ToolBuilder-Kernel-dtl.71
Revert #helpText because #help was already there.
=============== Diff against ToolBuilder-Kernel-dtl.71 ===============
Item was changed:
PluggableTextSpec subclass: #PluggableInputFieldSpec
+ instanceVariableNames: ''
- instanceVariableNames: 'helpText'
classVariableNames: ''
poolDictionaries: ''
category: 'ToolBuilder-Kernel'!
!PluggableInputFieldSpec commentStamp: 'ar 2/12/2005 23:13' prior: 0!
PluggableInputField is intended as a HINT for the builder that this widget will be used as a single line input field. Unless explicitly supported it will be automatically substituted by PluggableText.!
Item was removed:
- ----- Method: PluggableInputFieldSpec>>helpText (in category 'accessing') -----
- helpText
-
- ^ helpText!
Item was removed:
- ----- Method: PluggableInputFieldSpec>>helpText: (in category 'accessing') -----
- helpText: aSelectorOrString
-
- helpText := aSelectorOrString.!