#OTHER by mawalch
authormawalch
Thu, 06 Oct 2016 23:14:36 +0200
changeset 5895 81e95a291980
parent 5894 317a89cd0996
child 5896 7556ba06cc7e
#OTHER by mawalch Spelling fixes.
YesNoBox.st
--- a/YesNoBox.st	Thu Oct 06 23:14:35 2016 +0200
+++ b/YesNoBox.st	Thu Oct 06 23:14:36 2016 +0200
@@ -11,6 +11,8 @@
 "
 "{ Package: 'stx:libwidg' }"
 
+"{ NameSpace: Smalltalk }"
+
 WarningBox subclass:#YesNoBox
 	instanceVariableNames:''
 	classVariableNames:'RequestBitmap'
@@ -40,7 +42,7 @@
         originally, ST/X had separate classes for the various entry methods;
         there were YesNoBox, EnterBox, InfoBox and so on.
         In the meantime, the DialogBox class (and therefore its alias: Dialog)
-        is going to duplicate most funcionality found in these classes.
+        is going to duplicate most functionality found in these classes.
 
         In the future, those existing subclasses' functionality is going to
         be moved fully into Dialog, and the subclasses will be replaced by dummy
@@ -71,7 +73,7 @@
     Since implemented in Object, everyone understands confirm. You can pass
     a question message (but not change the buttons labels).
     Use is:
-        self confirm:'some question'  
+        self confirm:'some question'
     and will return true or false.
 
     For compatibility with ST-80, use:
@@ -90,7 +92,7 @@
 examples
 "
     Notice, the preferred use is via the DialogBox class messages,
-    such as 
+    such as
                                                                         [exBegin]
         Dialog confirm:'Coffee ?'
         Dialog confirmWithCancel:'Coffee ?'
@@ -117,7 +119,7 @@
         |aBox|
 
         aBox := YesNoBox new.
-        aBox title:'Coffee or Tee ?' 
+        aBox title:'Coffee or Tee?'
              yesAction:[Transcript showCR:'make coffee']
              noAction:[Transcript showCR:'make tee'].
         aBox yesText:'Coffee' noText:'Tee'.
@@ -129,7 +131,7 @@
 
     If the box is needed to ask for a simple boolean, you can also use the
     #confirm method, to bring up a box, let it ask for something and return
-    true or false. 
+    true or false.
     Example:
                                                                         [exBegin]
         |box value|
@@ -238,7 +240,7 @@
     ^ false
 !
 
-preferredExtent 
+preferredExtent
     "compute the boxes preferredExtent from the components' sizes"
 
     |w h max mm|
@@ -301,14 +303,14 @@
     ^ self confirm
 
     "
-     YesNoBox new confirm:'really ?'
-     YesNoBox confirm:'really ?'
-     self confirm:'really ?'
+     YesNoBox new confirm:'really?'
+     YesNoBox confirm:'really?'
+     self confirm:'really?'
 
     for ST-80 compatibility, you should use Dialogs confirm
     (which simply forwards the request to the YesNoBox anyway):
 
-     Dialog confirm:'really ?'    
+     Dialog confirm:'really?'
     "
 
     "Modified: 13.12.1995 / 16:20:01 / cg"
@@ -327,5 +329,6 @@
 !YesNoBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/YesNoBox.st,v 1.58 2008-10-26 20:14:03 stefan Exp $'
+    ^ '$Header$'
 ! !
+