|
1 " |
|
2 COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick |
|
3 All Rights Reserved |
|
4 |
|
5 This software is furnished under a license and may be used |
|
6 only in accordance with the terms of that license and with the |
|
7 inclusion of the above copyright notice. This software may not |
|
8 be provided or otherwise made available to, or used by, any |
|
9 other person. No title to or ownership of the software is |
|
10 hereby transferred. |
|
11 " |
|
12 |
|
13 |
|
14 |
|
15 SimpleDialog subclass:#SelectionBrowser |
|
16 instanceVariableNames:'title' |
|
17 classVariableNames:'' |
|
18 poolDictionaries:'' |
|
19 category:'Interface-Advanced-Tools' |
|
20 ! |
|
21 |
|
22 SelectionBrowser class instanceVariableNames:'lastSelection' |
|
23 |
|
24 " |
|
25 The following class instance variables are inherited by this class: |
|
26 |
|
27 SimpleDialog - |
|
28 ApplicationModel - ClassResources |
|
29 Model - |
|
30 Object - |
|
31 " |
|
32 ! |
|
33 |
|
34 !SelectionBrowser class methodsFor:'documentation'! |
|
35 |
|
36 copyright |
|
37 " |
|
38 COPYRIGHT (c) 1997 by eXept Software AG / Thomas Zwick |
|
39 All Rights Reserved |
|
40 |
|
41 This software is furnished under a license and may be used |
|
42 only in accordance with the terms of that license and with the |
|
43 inclusion of the above copyright notice. This software may not |
|
44 be provided or otherwise made available to, or used by, any |
|
45 other person. No title to or ownership of the software is |
|
46 hereby transferred. |
|
47 " |
|
48 |
|
49 |
|
50 ! |
|
51 |
|
52 documentation |
|
53 " |
|
54 documentation to be added. |
|
55 " |
|
56 ! |
|
57 |
|
58 history |
|
59 "Created: / 10.1.1998 / 11:00:51 / tz" |
|
60 ! ! |
|
61 |
|
62 !SelectionBrowser class methodsFor:'accessing'! |
|
63 |
|
64 label |
|
65 |
|
66 |label| |
|
67 label := ''. |
|
68 self name do: |
|
69 [:c| |
|
70 c isUppercase ifTrue: [label := label, $ ]. |
|
71 label := label, c |
|
72 ]. |
|
73 ^label trimBlanks |
|
74 |
|
75 ! |
|
76 |
|
77 lastSelection |
|
78 |
|
79 ^lastSelection |
|
80 ! |
|
81 |
|
82 lastSelection: aString |
|
83 |
|
84 lastSelection := aString |
|
85 ! ! |
|
86 |
|
87 !SelectionBrowser methodsFor:'accessing'! |
|
88 |
|
89 title: aString |
|
90 |
|
91 title := aString |
|
92 |
|
93 ! ! |
|
94 |
|
95 !SelectionBrowser methodsFor:'initialization'! |
|
96 |
|
97 postBuildWith:aBuilder |
|
98 |
|
99 builder window label: title ? self class label. |
|
100 |
|
101 ^super postBuildWith:aBuilder |
|
102 |
|
103 ! ! |
|
104 |
|
105 !SelectionBrowser class methodsFor:'documentation'! |
|
106 |
|
107 version |
|
108 ^ '$Header$' |
|
109 ! ! |