Patrick Rein uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-pre.180.mcz
==================== Summary ====================
Name: MorphicExtras-pre.180
Author: pre
Time: 4 August 2016, 12:43:42.582407 pm
UUID: 0c786ccd-27d9-4a44-a5be-d488104568ae
Ancestors: MorphicExtras-eem.179
Fixes a test by re-ordering the way the trashcanmorph images are set. Otherwise, through unexpected side effects it would try to get the extent of the offimage which is not yet set.
=============== Diff against MorphicExtras-eem.179 ===============
Item was changed:
----- Method: TrashCanMorph>>initialize (in category 'initialization') -----
initialize
"Initialize the receiver's graphics, name, and balloon-help"
super initialize.
+ self offImage: TrashPic;
+ pressedImage: TrashPicOn;
+ image: TrashPicOn.
- self image: TrashPicOn;
- offImage: TrashPic;
- pressedImage: TrashPicOn.
self setNameTo: 'Trash' translated.
self setBalloonText:
'To remove an object, drop it on any trash can. To view, and maybe retrieve, items that have been thrown away, double-click on any trash-can. Things are retained in the trash-can if the "preserveTrash" preference is set, otherwise they are purged immediately' translated.
!
Patrick Rein uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-pre.1229.mcz
==================== Summary ====================
Name: Morphic-pre.1229
Author: pre
Time: 4 August 2016, 12:40:48.215407 pm
UUID: 4d9cc4e1-e64b-f946-8a54-1e329d9e4d5a
Ancestors: Morphic-mt.1228
Fixes the handling of block provided answers to send out the message instead of the window title and to deal with a request for the default value.
=============== Diff against Morphic-mt.1228 ===============
Item was changed:
----- Method: DialogWindow>>getUserResponse (in category 'running') -----
getUserResponse
| hand world |
+ (ProvideAnswerNotification signal: self message asString)
+ ifNotNil: [:answer|
+ ^ answer = #default
+ ifTrue: [result]
+ ifFalse: [answer]].
- (ProvideAnswerNotification signal: self title asString) ifNotNil: [:answer| ^ answer].
self message ifEmpty: [messageMorph delete]. "Do not waste space."
self paneMorph submorphs ifEmpty: [self paneMorph delete]. "Do not waste space."
hand := self currentHand.
world := self currentWorld.
self fullBounds.
self center: preferredPosition.
self bounds: (self bounds translatedToBeWithin: world bounds).
self openInWorld: world.
hand keyboardFocus in: [:priorKeyboardFocus |
hand mouseFocus in: [:priorMouseFocus |
self exclusive ifTrue: [hand newMouseFocus: self].
hand newKeyboardFocus: self.
[self isInWorld] whileTrue:[world doOneSubCycle].
hand newKeyboardFocus: priorKeyboardFocus.
self exclusive ifTrue: [
hand newMouseFocus: priorMouseFocus]]].
^ result!
Eliot Miranda uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-eem.179.mcz
==================== Summary ====================
Name: MorphicExtras-eem.179
Author: eem
Time: 3 August 2016, 7:42:04.74973 pm
UUID: 7e0dd147-e862-4ad7-9218-8de41bb8b81b
Ancestors: MorphicExtras-tfel.178
Use allInsyancesDo: instead of someInstance/nextInstance to remove grab commands from MorphExtensions.
P.S. to improve start-up time we might consider moving these to snapshot time, if at all possible.
=============== Diff against MorphicExtras-tfel.178 ===============
Item was removed:
- ----- Method: CommandHistory class>>forgetAllGrabCommandsFrom: (in category 'system startup') -----
- forgetAllGrabCommandsFrom: starterInstance
- "Forget all the commands that might be held on to in the properties dicitonary of various morphs for various reasons."
-
- | object |
- object := starterInstance.
- [
- [nil == object] whileFalse: [
- object removeProperty: #undoGrabCommand.
- object := object nextInstance].
- ] ifError: [:err :rcvr | "object is obsolete"
- self forgetAllGrabCommandsFrom: object nextInstance].
-
- "CommandHistory forgetAllGrabCommandsFrom: MorphExtension someInstance"
- !
Item was changed:
----- Method: CommandHistory class>>resetAllHistory (in category 'system startup') -----
resetAllHistory
"Reset all command histories, and make all morphs that might be holding on to undo-grab-commands forget them"
self allInstancesDo: [:c | c resetCommandHistory].
MorphExtension withAllSubclassesDo:
+ [:morphExtensionClass|
+ morphExtensionClass allInstancesDo:
+ [:object| object removeProperty: #undoGrabCommand]]
- [:mexc|
- self forgetAllGrabCommandsFrom: mexc someInstance]
"CommandHistory resetAllHistory"
!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.861.mcz
==================== Summary ====================
Name: System-mt.861
Author: mt
Time: 3 August 2016, 3:48:48.221245 pm
UUID: 74e725aa-ea12-df48-b3cf-730dba8dccc6
Ancestors: System-cmm.860
Provide progress indication when applying a new UI theme. Use 1000-ms updates to not slow-down the process unnecessarily.
=============== Diff against System-cmm.860 ===============
Item was changed:
----- Method: UserInterfaceTheme>>apply (in category 'actions') -----
apply
"Apply this theme to all affected objects. Let classes decide on how to iterate and call their instances."
UserInterfaceTheme current: self.
self class clientClassesToReapply in: [:cc |
cc do: [:eachClass | eachClass applyUserInterfaceTheme].
+ (cc select: [:eachClass | eachClass canApplyThemeToInstances])
+ do: [:eachClass | eachClass applyThemeToInstances]
+ displayingProgress: [:eachClass | 'Applying {1} to instances of {2}' format: {self name. eachClass name}]
+ every: 1000 ].
- cc
- select: [:eachClass | eachClass canApplyThemeToInstances]
- thenDo: [:eachClass | eachClass applyThemeToInstances]].
Project current restoreDisplay.!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.178.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.178
Author: mt
Time: 3 August 2016, 3:07:56.004992 pm
UUID: d001b249-3b74-334f-a7d8-8b799779efe5
Ancestors: ToolBuilder-Morphic-mt.177
For disabled buttons, still draw a border to make them still look like buttons, not like labels.
=============== Diff against ToolBuilder-Morphic-mt.177 ===============
Item was changed:
----- Method: PluggableButtonMorphPlus>>updateFillStylePressing:hovering: (in category 'initialize-release') -----
updateFillStylePressing: isPressing hovering: isHovering
enabled ifFalse: [
self color: (disabledColor ifNil: [Color transparent]).
+ self borderStyle color: disabledTextColor.
- self borderStyle color: Color transparent.
^ self].
super updateFillStylePressing: isPressing hovering: isHovering.!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1227.mcz
==================== Summary ====================
Name: Morphic-mt.1227
Author: mt
Time: 3 August 2016, 2:52:07.812041 pm
UUID: 428a55a4-6204-174c-b4b0-14b8dc1a297d
Ancestors: Morphic-mt.1226
Fixes a small regression where the text cursor did not show up on a simple mouse down when it was invisible due to its blinking animation.
=============== Diff against Morphic-mt.1226 ===============
Item was changed:
----- Method: TextMorph>>mouseDown: (in category 'event handling') -----
mouseDown: evt
"Make this TextMorph be the keyboard input focus, if it isn't
already, and repond to the text selection gesture."
evt yellowButtonPressed ifTrue: [
"First check for option (menu) click"
^ self yellowButtonActivity: evt shiftPressed].
+ "Show the caret immediately on mouse down to give user feedback."
+ self resetBlinkCursor.
+
"If focus does not follow the mouse cursor and we click below everything, just grab the focus to not destroy the selection."
((self hasKeyboardFocus: evt hand) not and: [(self bounds containsPoint: evt position) not])
ifTrue: [evt hand newKeyboardFocus: self]
ifFalse: [
evt hand newKeyboardFocus: self.
self
handleInteraction: [editor mouseDown: evt]
fromEvent: evt].!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1226.mcz
==================== Summary ====================
Name: Morphic-mt.1226
Author: mt
Time: 3 August 2016, 2:16:23.039041 pm
UUID: 2258c988-1152-4940-9a2b-a95241a3e1d3
Ancestors: Morphic-mt.1225
Fixes retractable scroll bars, which did not work properly of mouseOverForKeyboardFocus was disabled. Note that #hasFocus is ancient and not needed anymore for controlling keyboard focus here. See also #hIsScrollbarNeeded and #vIsScrollbarNeeded and maybe other senders of #hasFocus.
=============== Diff against Morphic-mt.1225 ===============
Item was changed:
----- Method: ScrollPane>>mouseEnter: (in category 'event handling') -----
mouseEnter: event
+ hasFocus := true.
- Preferences mouseOverForKeyboardFocus ifTrue: [hasFocus := true].
owner isSystemWindow ifTrue: [owner paneTransition: event].
retractableScrollBar ifTrue: [self hideOrShowScrollBars].!
Item was changed:
----- Method: ScrollPane>>mouseLeave: (in category 'event handling') -----
mouseLeave: event
+ hasFocus := false.
- Preferences mouseOverForKeyboardFocus ifTrue: [hasFocus := false].
retractableScrollBar ifTrue: [self hideScrollBars].
owner isSystemWindow ifTrue: [owner paneTransition: event].!