The Trunk: ToolBuilder-Morphic-dtl.104.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: ToolBuilder-Morphic-dtl.104.mcz

commits-2
David T. Lewis uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-dtl.104.mcz

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

Name: ToolBuilder-Morphic-dtl.104
Author: dtl
Time: 29 March 2015, 5:09:47.52 pm
UUID: da56cb58-02d6-4ed0-89f6-ecb2b7bafce2
Ancestors: ToolBuilder-Morphic-mt.103

Allow the UIManager to specify titles for confirm dialogs. In Morphic, this is the text of the title bar. In MVC, it is a line of text added to the top of the dialog prompt.

#confirm:title replaces #confirm:label: which was defined previously in UIManager, but not implemented for Morphic or MVC. #title is consistent with other UIManager method naming and matches the implementation in UserDialogBoxMorph.

=============== Diff against ToolBuilder-Morphic-mt.103 ===============

Item was added:
+ ----- Method: MorphicUIManager>>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."
+ ^ UserDialogBoxMorph
+ confirm: aString
+ orCancel: cancelBlock
+ title: titleString
+ at: nil!

Item was added:
+ ----- Method: MorphicUIManager>>confirm:title: (in category 'ui requests') -----
+ confirm: queryString title: titleString
+ "Put up a yes/no menu with caption queryString, and titleString to label the dialog.
+ Answer true if the response is yes, false if no. This is a modal question--the user
+ must respond yes or no."
+ ^UserDialogBoxMorph confirm: queryString title: titleString!

Item was added:
+ ----- Method: MorphicUIManager>>confirm:title:trueChoice:falseChoice: (in category 'ui requests') -----
+ confirm: queryString title: titleString trueChoice: trueChoice falseChoice: falseChoice
+ "Put up a yes/no menu with caption queryString, and titleString to label the dialog.
+ The actual wording for the two choices will be as provided in the trueChoice and
+ falseChoice parameters. Answer true if the response is the true-choice, false if it
+ is the false-choice. This is a modal question -- the user must respond one way or
+ the other."
+ ^ UserDialogBoxMorph confirm: queryString title: titleString trueChoice: trueChoice falseChoice: falseChoice !