18
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
43
|
3 |
All Rights Reserved
|
18
|
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 |
EnterBox subclass:#FilenameEnterBox
|
43
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Views-DialogBoxes'
|
18
|
18 |
!
|
|
19 |
|
|
20 |
FilenameEnterBox comment:'
|
|
21 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
43
|
22 |
All Rights Reserved
|
18
|
23 |
|
45
|
24 |
$Header: /cvs/stx/stx/libwidg2/FilenameEnterBox.st,v 1.3 1995-03-26 20:16:56 claus Exp $
|
18
|
25 |
'!
|
|
26 |
|
|
27 |
!FilenameEnterBox class methodsFor:'documentation'!
|
|
28 |
|
|
29 |
copyright
|
|
30 |
"
|
|
31 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
43
|
32 |
All Rights Reserved
|
18
|
33 |
|
|
34 |
This software is furnished under a license and may be used
|
|
35 |
only in accordance with the terms of that license and with the
|
|
36 |
inclusion of the above copyright notice. This software may not
|
|
37 |
be provided or otherwise made available to, or used by, any
|
|
38 |
other person. No title to or ownership of the software is
|
|
39 |
hereby transferred.
|
|
40 |
"
|
|
41 |
!
|
|
42 |
|
|
43 |
version
|
|
44 |
"
|
45
|
45 |
$Header: /cvs/stx/stx/libwidg2/FilenameEnterBox.st,v 1.3 1995-03-26 20:16:56 claus Exp $
|
18
|
46 |
"
|
|
47 |
!
|
|
48 |
|
|
49 |
documentation
|
|
50 |
"
|
|
51 |
like a normal enterBox, but does filename-completion when TAB is
|
|
52 |
pressed.
|
|
53 |
"
|
|
54 |
! !
|
|
55 |
|
|
56 |
!FilenameEnterBox methodsFor:'initialization'!
|
|
57 |
|
|
58 |
createEnterField
|
|
59 |
"
|
|
60 |
redefined, since we need an editfield for filenames here
|
|
61 |
"
|
|
62 |
|
|
63 |
enterField := FilenameEditField in:self.
|
|
64 |
! !
|
|
65 |
|
43
|
66 |
!FilenameEnterBox methodsFor:'accessing'!
|
|
67 |
|
|
68 |
directoriesOnly
|
|
69 |
"set to expand names for directories only"
|
|
70 |
|
|
71 |
enterField directoriesOnly
|
|
72 |
!
|
|
73 |
|
|
74 |
filesOnly
|
|
75 |
"set to expand names for files only"
|
|
76 |
|
|
77 |
enterField filesOnly
|
|
78 |
! !
|