FilenameEnterBox.st
changeset 3589 1ae6aa4bafbe
parent 566 11ca5c6ba3d8
child 3645 ccfe65dc83bb
equal deleted inserted replaced
3588:c2756cb017ae 3589:1ae6aa4bafbe
     7  inclusion of the above copyright notice.   This software may not
     7  inclusion of the above copyright notice.   This software may not
     8  be provided or otherwise made available to, or used by, any
     8  be provided or otherwise made available to, or used by, any
     9  other person.  No title to or ownership of the software is
     9  other person.  No title to or ownership of the software is
    10  hereby transferred.
    10  hereby transferred.
    11 "
    11 "
    12 
    12 "{ Package: 'stx:libwidg2' }"
    13 'From Smalltalk/X, Version:3.2.1 on 18-oct-1997 at 3:25:44 pm'                  !
       
    14 
    13 
    15 EnterBox subclass:#FilenameEnterBox
    14 EnterBox subclass:#FilenameEnterBox
    16 	instanceVariableNames:''
    15 	instanceVariableNames:''
    17 	classVariableNames:''
    16 	classVariableNames:''
    18 	poolDictionaries:''
    17 	poolDictionaries:''
    35 "
    34 "
    36 !
    35 !
    37 
    36 
    38 documentation
    37 documentation
    39 "
    38 "
    40     like a normal enterBox, but does filename-completion when TAB is
    39     like a normal enterBox, but does filename-completion when TAB is pressed.
    41     pressed.
    40 
       
    41     [warning:]
       
    42     This is too-simple a dialog, and has been obsoleted by a much better Dialog 
       
    43     with tree-like file selection.
       
    44     Please use 
       
    45         Dialog requestFileName:'...'
       
    46     or:
       
    47         Dialog requestDirectoryName:'...'
       
    48     instead.
    42 
    49 
    43     [author:]
    50     [author:]
    44         Claus Gittinger
    51         Claus Gittinger
    45 
    52 
    46     [see also:]
    53     [see also:]
    47         EnterBox FileSelectionBox FileSaveBox
    54         EnterBox FileSelectionBox FileSaveBox
    48         DialogBox
    55         DialogBox Dialog
    49 "
    56 "
    50 !
    57 !
    51 
    58 
    52 examples 
    59 examples 
    53 "
    60 "
    66 !FilenameEnterBox methodsFor:'accessing'!
    73 !FilenameEnterBox methodsFor:'accessing'!
    67 
    74 
    68 directoriesOnly
    75 directoriesOnly
    69     "set to expand names for directories only"
    76     "set to expand names for directories only"
    70 
    77 
       
    78     self obsoleteMethodWarning.
    71     enterField directoriesOnly
    79     enterField directoriesOnly
       
    80 !
       
    81 
       
    82 directoriesOnly:aBoolean
       
    83     "set/clear for directories only"
       
    84 
       
    85     enterField directoriesOnly:aBoolean
    72 !
    86 !
    73 
    87 
    74 directory:aFilename
    88 directory:aFilename
    75     "set the directory"
    89     "set the directory"
    76 
    90 
    80 !
    94 !
    81 
    95 
    82 filesOnly
    96 filesOnly
    83     "set to expand names for files only"
    97     "set to expand names for files only"
    84 
    98 
       
    99     self obsoleteMethodWarning.
    85     enterField filesOnly
   100     enterField filesOnly
       
   101 !
       
   102 
       
   103 filesOnly:aBoolean
       
   104     "set/clear for files only"
       
   105 
       
   106     enterField filesOnly:aBoolean
    86 ! !
   107 ! !
    87 
   108 
    88 !FilenameEnterBox methodsFor:'initialization'!
   109 !FilenameEnterBox methodsFor:'initialization'!
    89 
   110 
    90 createEnterField
   111 createEnterField
   100 ! !
   121 ! !
   101 
   122 
   102 !FilenameEnterBox class methodsFor:'documentation'!
   123 !FilenameEnterBox class methodsFor:'documentation'!
   103 
   124 
   104 version
   125 version
   105     ^ '$Header: /cvs/stx/stx/libwidg2/FilenameEnterBox.st,v 1.13 1997-10-21 18:33:08 cg Exp $'
   126     ^ '$Header: /cvs/stx/stx/libwidg2/FilenameEnterBox.st,v 1.14 2008-11-12 12:38:26 cg Exp $'
   106 ! !
   127 ! !