intitial checkin
authortz
Wed, 03 Dec 1997 22:10:53 +0100
changeset 383 c643ead8ede7
parent 382 2a46018227a1
child 384 395b851346df
intitial checkin
SelectionBrowser.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SelectionBrowser.st	Wed Dec 03 22:10:53 1997 +0100
@@ -0,0 +1,65 @@
+SimpleDialog subclass:#SelectionBrowser
+	instanceVariableNames:'title'
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Interface-Advanced-Tools'
+!
+
+SelectionBrowser class instanceVariableNames:'lastSelection'
+
+"
+ The following class instance variables are inherited by this class:
+
+	SimpleDialog - 
+	ApplicationModel - ClassResources
+	Model - 
+	Object - 
+"
+!
+
+
+!SelectionBrowser class methodsFor:'accessing'!
+
+label
+
+    |label|
+    label := ''.
+    self name do:
+    [:c|
+        c isUppercase ifTrue: [label := label, $ ].
+        label := label, c
+    ].
+    ^label trimBlanks
+
+!
+
+lastSelection
+
+    ^lastSelection
+!
+
+lastSelection: aString
+
+    lastSelection := aString
+! !
+
+!SelectionBrowser methodsFor:'initialization'!
+
+postBuildWith:aBuilder
+
+    self setLabel.
+    ^super postBuildWith:aBuilder
+
+!
+
+setLabel
+
+    builder window label: title ? self class label
+
+! !
+
+!SelectionBrowser class methodsFor:'documentation'!
+
+version
+    ^ '$Header$'
+! !