# HG changeset patch # User tz # Date 884427955 -3600 # Node ID 246e36541b1bbdf2c704c0e6133540c508ac1cd1 # Parent 30ecf82e3ae7c9404ab3b894308110ed6990d83e intitial checkin diff -r 30ecf82e3ae7 -r 246e36541b1b SelectionBrowser.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SelectionBrowser.st Sat Jan 10 11:25:55 1998 +0100 @@ -0,0 +1,109 @@ +" + COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick + All Rights Reserved + + This software is furnished under a license and may be used + only in accordance with the terms of that license and with the + inclusion of the above copyright notice. This software may not + be provided or otherwise made available to, or used by, any + other person. No title to or ownership of the software is + hereby transferred. +" + + + +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:'documentation'! + +copyright +" + COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick + All Rights Reserved + + This software is furnished under a license and may be used + only in accordance with the terms of that license and with the + inclusion of the above copyright notice. This software may not + be provided or otherwise made available to, or used by, any + other person. No title to or ownership of the software is + hereby transferred. +" + + +! + +documentation +" + documentation to be added. +" +! + +history + "Created: / 10.1.1998 / 11:00:51 / tz" +! ! + +!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:'accessing'! + +title: aString + + title := aString + +! ! + +!SelectionBrowser methodsFor:'initialization'! + +postBuildWith:aBuilder + + builder window label: title ? self class label. + + ^super postBuildWith:aBuilder + +! ! + +!SelectionBrowser class methodsFor:'documentation'! + +version + ^ '$Header$' +! !