[squeak-dev] The Inbox: ToolBuilder-Kernel-ct.135.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 24 17:34:44 UTC 2020


Christoph Thiede uploaded a new version of ToolBuilder-Kernel to project The Inbox:
http://source.squeak.org/inbox/ToolBuilder-Kernel-ct.135.mcz

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

Name: ToolBuilder-Kernel-ct.135
Author: ct
Time: 24 January 2020, 6:34:43.604574 pm
UUID: 3ec2613e-56d3-2d41-b5c3-799a66a986e9
Ancestors: ToolBuilder-Kernel-mt.134

Provides fallback implementations for some UIManager messages

=============== Diff against ToolBuilder-Kernel-mt.134 ===============

Item was changed:
  ----- Method: UIManager>>chooseFrom:values:lines:title: (in category 'ui requests') -----
  chooseFrom: labelList values: valueList lines: linesArray title: aString
+ 	"Choose an item from the given list. Answer the corresponding value."
+ 	| result |
+ 	result := self chooseFrom: labelList lines: linesArray title: aString.
+ 	(result isNil or: [result isZero]) ifTrue: [^ nil].
+ 	^ valueList at: result!
- 	"Choose an item from the given list. Answer the selected item."
- 	^self subclassResponsibility!

Item was changed:
  ----- Method: UIManager>>confirm:orCancel: (in category 'ui requests') -----
  confirm: aString orCancel: cancelBlock
+ 	"Put up a yes/no/cancel menu with caption aString. Answer true if the response is yes, false if no. If cancel is chosen, evaluate cancelBlock. This is a modal question--the user must respond yes or no."
+ 	^ (self confirm: aString)
+ 		ifFalse: [cancelBlock value];
+ 		yourself!
- 	"Put up a yes/no/cancel menu with caption aString. Answer true if  
- 	the response is yes, false if no. If cancel is chosen, evaluate  
- 	cancelBlock. This is a modal question--the user must respond yes or no."
- 	^self subclassResponsibility!

Item was changed:
  ----- Method: UIManager>>confirm:orCancel:title: (in category 'ui requests') -----
  confirm: aString orCancel: cancelBlock title: titleString
+ 	"Put up a yes/no/cancel menu with caption aString, and titleString to label the dialog. Answer true if the response is yes, false if no. If cancel is chosen, evaluate cancelBlock. This is a modal question--the user must respond yes or no."
+ 	^ (self confirm: aString title: titleString)
+ 		ifFalse: [cancelBlock value];
+ 		yourself!
- 	"Put up a yes/no/cancel menu with caption aString, and titleString to label the dialog.
- 	Answer true if  the response is yes, false if no. If cancel is chosen, evaluate cancelBlock.
- 	This is a modal question--the user must respond yes or no."
- 	^self subclassResponsibility!

Item was changed:
  ----- Method: UIManager>>request:initialAnswer:centerAt: (in category 'ui requests - text') -----
  request: queryString initialAnswer: defaultAnswer centerAt: aPoint 
+ 	"Create an instance of me whose question is queryString with the given initial answer. Invoke it centered at the given point, and answer the string the user accepts. Answer the empty string if the user cancels."
- 	"Create an instance of me whose question is queryString with the given
- 	initial answer. Invoke it centered at the given point, and answer the
- 	string the user accepts. Answer the empty string if the user cancels."
  
+ 	^ self request: queryString initialAnswer: defaultAnswer!
- 	^self subclassResponsibility!



More information about the Squeak-dev mailing list