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 class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
43
|
25 |
All Rights Reserved
|
18
|
26 |
|
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
|
34 |
!
|
|
35 |
|
|
36 |
documentation
|
|
37 |
"
|
|
38 |
like a normal enterBox, but does filename-completion when TAB is
|
|
39 |
pressed.
|
|
40 |
"
|
96
|
41 |
! !
|
|
42 |
|
|
43 |
!FilenameEnterBox methodsFor:'accessing'!
|
|
44 |
|
|
45 |
directoriesOnly
|
|
46 |
"set to expand names for directories only"
|
|
47 |
|
|
48 |
enterField directoriesOnly
|
|
49 |
!
|
|
50 |
|
|
51 |
directory:aFilename
|
|
52 |
"set the directory"
|
|
53 |
|
|
54 |
enterField directory:aFilename
|
|
55 |
|
|
56 |
"Modified: 7.9.1995 / 10:33:00 / claus"
|
|
57 |
!
|
|
58 |
|
|
59 |
filesOnly
|
|
60 |
"set to expand names for files only"
|
|
61 |
|
|
62 |
enterField filesOnly
|
18
|
63 |
! !
|
|
64 |
|
|
65 |
!FilenameEnterBox methodsFor:'initialization'!
|
|
66 |
|
|
67 |
createEnterField
|
51
|
68 |
"redefined, since we need an editfield for filenames here
|
|
69 |
(if the class has not been compiled in, use a dump default field)"
|
18
|
70 |
|
51
|
71 |
FilenameEditField notNil ifTrue:[
|
|
72 |
^ FilenameEditField new.
|
|
73 |
].
|
|
74 |
^ super createEnterField
|
18
|
75 |
! !
|
|
76 |
|
106
|
77 |
!FilenameEnterBox class methodsFor:'documentation'!
|
|
78 |
|
|
79 |
version
|
|
80 |
^ '$Header: /cvs/stx/stx/libwidg2/Attic/FNmEntrBox.st,v 1.9 1995-12-07 22:22:52 cg Exp $'
|
|
81 |
! !
|