FilenameWidgetWithHistory.st
author Claus Gittinger <cg@exept.de>
Thu, 22 Aug 2013 15:54:50 +0200
changeset 4330 69a2cba2229e
parent 4084 5738fc3ced77
child 4708 adabb83e93bf
permissions -rw-r--r--
aboutToOpenBoxNotificationSignal semantic change (for Jan)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3318
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     1
"
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     2
 COPYRIGHT (c) 2007 by eXept Software AG
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     3
              All Rights Reserved
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     4
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     5
 This software is furnished under a license and may be used
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     6
 only in accordance with the terms of that license and with the
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     8
 be provided or otherwise made available to, or used by, any
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
     9
 other person.  No title to or ownership of the software is
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    10
 hereby transferred.
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    11
"
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libwidg2' }"
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
SimpleView subclass:#FilenameWidgetWithHistory
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    15
	instanceVariableNames:'fileNameEntryField browseButton history directoriesOnly filesOnly
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    16
		dialogTitle initialDirectoryHolder baseDirectory'
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	category:'Views-Interactors'
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!FilenameWidgetWithHistory class methodsFor:'documentation'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
3318
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    24
copyright
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    25
"
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    26
 COPYRIGHT (c) 2007 by eXept Software AG
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    27
              All Rights Reserved
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    28
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    29
 This software is furnished under a license and may be used
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    30
 only in accordance with the terms of that license and with the
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    32
 be provided or otherwise made available to, or used by, any
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    33
 other person.  No title to or ownership of the software is
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    34
 hereby transferred.
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    35
"
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    36
!
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    37
3471
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    38
documentation
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    39
"
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    40
    A Filename InputField with history-list and a browse-button, which opens a file dialog.
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    41
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    42
    [author:]
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    43
        Claus Gittinger
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    44
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    45
    [see also:]
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    46
        ComboBoxView
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    47
        FilenameEditField
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    48
        FilenameComboBoxView
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    49
"
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    50
!
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    51
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
examples
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
"
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
                                                                        [exBegin]
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
     |top b|
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
     top := StandardSystemView new.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
     top extent:(300 @ 200).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
     b := FilenameWidgetWithHistory in:top.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
     b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     b bottomInset:(b preferredExtent y negated).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     top open.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
                                                                        [exEnd]
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
"
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
!FilenameWidgetWithHistory methodsFor:'accessing'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
3950
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    71
acceptOnExpand:aBoolean
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    72
    fileNameEntryField acceptOnExpand:aBoolean
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    73
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    74
    "Created: / 20-10-2010 / 17:49:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    75
!
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    76
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    77
baseDirectory
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    78
    ^ baseDirectory
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    79
!
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    80
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    81
baseDirectory:something
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    82
    baseDirectory := something.
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    83
!
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
    84
3950
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    85
contents
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    86
    ^ fileNameEntryField contents
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    87
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    88
    "Created: / 20-10-2010 / 17:51:07 / cg"
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    89
!
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
    90
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    91
dialogTitle:something
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    92
    "set the dialogs title"
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    93
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    94
    dialogTitle := something.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    95
!
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    96
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    97
directoriesOnly:aBoolean
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    98
    "if true, directories are selectable only.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
    99
     If both filesOnly and directoriesOnly are false, which is the default, 
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   100
     anything is selectable."
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   101
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   102
    directoriesOnly := aBoolean.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   103
    directoriesOnly ifTrue:[
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   104
        filesOnly := false.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   105
    ].
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   106
    fileNameEntryField notNil ifTrue:[
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   107
        fileNameEntryField directoriesOnly:aBoolean
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   108
    ].
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   109
!
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   110
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   111
filesOnly:aBoolean
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   112
    "if true, files are selectable only.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   113
     If both filesOnly and directoriesOnly are false, which is the default, 
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   114
     anything is selectable."
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   115
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   116
    filesOnly := aBoolean.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   117
    filesOnly ifTrue:[
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   118
        directoriesOnly := false.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   119
    ].
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   120
    fileNameEntryField notNil ifTrue:[
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   121
        fileNameEntryField filesOnly:aBoolean
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   122
    ].
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   123
!
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   124
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
historyList
3474
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
   126
    history isNil ifTrue:[
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
   127
        history := nil asValue
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
   128
    ].
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
   129
    ^ history
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
3593
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   132
historyList:aList
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   133
    "set the history - useful when two or more such fields shall share a common history"
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   134
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   135
    history := aList
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   136
!
f11c5a41d4a9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3590
diff changeset
   137
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   138
initialDirectoryHolder
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   139
    "can be used to force the file-dialog into some initial directory"
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   140
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   141
    ^ initialDirectoryHolder
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   142
!
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   143
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
model
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
    ^ fileNameEntryField model
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
model:aFilenameHolder
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
    fileNameEntryField model:aFilenameHolder.
3950
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   150
!
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   151
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   152
selectAllInitially
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   153
    fileNameEntryField selectAllInitially
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   154
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   155
    "Created: / 20-10-2010 / 17:50:23 / cg"
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
3546
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   158
!FilenameWidgetWithHistory methodsFor:'accessing-channels'!
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   159
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   160
enableChannel:aValueHolder
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   161
    fileNameEntryField enableChannel:aValueHolder.
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   162
    browseButton enableChannel:aValueHolder.
4084
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   163
!
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   164
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   165
modifiedChannel:aValueHolder
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   166
    fileNameEntryField modifiedChannel:aValueHolder.
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   167
5738fc3ced77 added: #modifiedChannel:
Claus Gittinger <cg@exept.de>
parents: 4019
diff changeset
   168
    "Created: / 05-10-2011 / 14:59:48 / cg"
3546
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   169
! !
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   170
b3269a9dec19 +enableChannel
Claus Gittinger <cg@exept.de>
parents: 3474
diff changeset
   171
!FilenameWidgetWithHistory methodsFor:'accessing-editField attributes'!
3472
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   172
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   173
acceptIfUnchanged:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   174
    fileNameEntryField acceptIfUnchanged:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   175
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   176
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   177
acceptOnLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   178
    fileNameEntryField acceptOnLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   179
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   180
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   181
acceptOnLostFocus:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   182
    fileNameEntryField acceptOnLostFocus:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   183
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   184
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   185
acceptOnPointerLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   186
    fileNameEntryField acceptOnPointerLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   187
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   188
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   189
acceptOnReturn:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   190
    fileNameEntryField acceptOnReturn:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   191
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   192
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   193
acceptOnTab:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   194
    fileNameEntryField acceptOnTab:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   195
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   196
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   197
contents:aString
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   198
    fileNameEntryField contents:aString
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   199
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   200
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   201
immediateAccept:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   202
    fileNameEntryField immediateAccept:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   203
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   204
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   205
maxChars:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   206
    fileNameEntryField maxChars:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   207
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   208
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   209
readOnly:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   210
    fileNameEntryField readOnly:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   211
! !
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   212
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
!FilenameWidgetWithHistory methodsFor:'initialization'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
initialize
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
    super initialize.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   218
    directoriesOnly := filesOnly := false.
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   219
    initialDirectoryHolder := nil asValue.
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   220
3940
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   221
    self initializeFilenameField.
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    fileNameEntryField layout:(LayoutFrame
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
                                  leftFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
                                  rightFraction:1 offset:-22 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                                  topFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                                  bottomFraction:1 offset:0).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   228
    self initializeBrowseButton.
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    browseButton layout:(LayoutFrame
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
                                  leftFraction:1 offset:-22 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
                                  rightFraction:1 offset:-2 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
                                  topFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
                                  bottomFraction:1 offset:0).
3940
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   234
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   235
    "Modified: / 02-11-2010 / 19:50:33 / cg"
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   236
!
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   237
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   238
initializeBrowseButton
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   239
    browseButton := Button in:self.
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   240
    browseButton label:'...'.
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   241
    browseButton action:[ self browseForFileOrDirectory ].
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   242
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   243
    "Created: / 02-11-2010 / 19:50:21 / cg"
3940
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   244
!
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   245
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   246
initializeFilenameField
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   247
    fileNameEntryField := FilenameComboBoxView in:self.
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   248
    fileNameEntryField listHolder:(self historyList).
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   249
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   250
    "Created: / 19-10-2010 / 16:20:09 / cg"
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
!FilenameWidgetWithHistory methodsFor:'queries'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
preferredExtent
3568
2f293d1e2eef changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3546
diff changeset
   256
    "/ If I have an explicit preferredExtent..
2f293d1e2eef changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3546
diff changeset
   257
    explicitExtent notNil ifTrue:[
2f293d1e2eef changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3546
diff changeset
   258
        ^ explicitExtent
2f293d1e2eef changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3546
diff changeset
   259
    ].
2f293d1e2eef changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3546
diff changeset
   260
    "/ If I have a cached preferredExtent value..
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
    preferredExtent notNil ifTrue:[
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
        ^ preferredExtent
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
    ].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
3427
9927e4970fce added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
   265
    preferredExtent := (fileNameEntryField preferredWidth + browseButton preferredWidth)
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
                       @
3427
9927e4970fce added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
   267
                       (fileNameEntryField preferredHeight "max: browseButton preferredExtent y").
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    ^ preferredExtent
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
!FilenameWidgetWithHistory methodsFor:'user actions'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
browseForDestinationDirectory
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   274
    <resource: #obsolete>
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   275
    self obsoleteMethodWarning.
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   276
    self browseForFileOrDirectory
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   277
!
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   278
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   279
browseForFileOrDirectory
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   280
    |path |
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
    Dialog aboutToOpenBoxNotificationSignal handle:[:ex |
4330
69a2cba2229e aboutToOpenBoxNotificationSignal semantic change (for Jan)
Claus Gittinger <cg@exept.de>
parents: 4084
diff changeset
   283
        ex box perform:#browseVisibleHolder with:true ifNotUnderstood:[].
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    ] do:[
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   285
        |title defaultPath defaultDir|
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   286
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   287
        title := dialogTitle notNil 
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   288
                    ifTrue:[ dialogTitle ]
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   289
                    ifFalse:[
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   290
                        resources string:(
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   291
                            directoriesOnly 
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   292
                                ifTrue:[ 'Select Directory' ]
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   293
                                ifFalse:[ 
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   294
                                    filesOnly
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   295
                                        ifTrue:[ 'Select File' ]
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   296
                                        ifFalse:[ 'Select Path' ]])].
3590
c3c778e11564 fixes (thanx to bretts info)
Claus Gittinger <cg@exept.de>
parents: 3568
diff changeset
   297
3950
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   298
        defaultPath := (self model notNil)
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   299
                            ifTrue:[ self model value ]
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   300
                            ifFalse:[ fileNameEntryField contents ].
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   301
4019
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   302
        defaultPath notEmptyOrNil ifTrue:[
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   303
            defaultPath asFilename isAbsolute ifFalse:[
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   304
                baseDirectory notNil ifTrue:[
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   305
                    defaultPath := baseDirectory asFilename construct:defaultPath.
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   306
                ].
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   307
            ].
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   308
            defaultDir := defaultPath asFilename directory.
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   309
        ] ifFalse:[     
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   310
            defaultDir := initialDirectoryHolder value.
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   311
        ].
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   312
        path := Dialog 
3954
e28b5c4fe0c9 comment/format in: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3953
diff changeset
   313
                    requestFileName:title
e28b5c4fe0c9 comment/format in: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3953
diff changeset
   314
                    default:defaultPath
e28b5c4fe0c9 comment/format in: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3953
diff changeset
   315
                    fromDirectory:defaultDir.
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    ].
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   317
    path isEmptyOrNil ifTrue:[ ^ self ].
3953
370687d1030b changed: #browseForFileOrDirectory
Stefan Vogel <sv@exept.de>
parents: 3950
diff changeset
   318
    path := path asFilename.
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
3959
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   320
    baseDirectory notNil ifTrue:[
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   321
        (path pathName startsWith:baseDirectory asFilename pathName) ifTrue:[
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   322
            path := (path pathName copyFrom:(baseDirectory asFilename pathName size + 2)) asFilename.
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   323
        ].
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   324
    ].        
5b7ff23ff724 baseDirectory
Claus Gittinger <cg@exept.de>
parents: 3954
diff changeset
   325
3953
370687d1030b changed: #browseForFileOrDirectory
Stefan Vogel <sv@exept.de>
parents: 3950
diff changeset
   326
    initialDirectoryHolder value:path directory.
370687d1030b changed: #browseForFileOrDirectory
Stefan Vogel <sv@exept.de>
parents: 3950
diff changeset
   327
    path := path pathName.
370687d1030b changed: #browseForFileOrDirectory
Stefan Vogel <sv@exept.de>
parents: 3950
diff changeset
   328
3594
8bdad6d9c51a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3593
diff changeset
   329
    "/ lastDirectoryHolder value:path directory.
3950
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   330
    self model notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   331
        self model value:path.
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   332
    ].
Claus Gittinger <cg@exept.de>
parents: 3940
diff changeset
   333
    fileNameEntryField contents:path.
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
4019
33b8c1b762cb changed: #browseForFileOrDirectory
Claus Gittinger <cg@exept.de>
parents: 3959
diff changeset
   335
    "Modified: / 08-02-2011 / 09:24:51 / cg"
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
!FilenameWidgetWithHistory class methodsFor:'documentation'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
version
4330
69a2cba2229e aboutToOpenBoxNotificationSignal semantic change (for Jan)
Claus Gittinger <cg@exept.de>
parents: 4084
diff changeset
   341
    ^ '$Header: /cvs/stx/stx/libwidg2/FilenameWidgetWithHistory.st,v 1.21 2013-08-22 13:54:50 cg Exp $'
3940
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   342
!
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   343
705b77e37f67 added: #initializeFilenameField
Claus Gittinger <cg@exept.de>
parents: 3700
diff changeset
   344
version_CVS
4330
69a2cba2229e aboutToOpenBoxNotificationSignal semantic change (for Jan)
Claus Gittinger <cg@exept.de>
parents: 4084
diff changeset
   345
    ^ '$Header: /cvs/stx/stx/libwidg2/FilenameWidgetWithHistory.st,v 1.21 2013-08-22 13:54:50 cg Exp $'
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
! !
4330
69a2cba2229e aboutToOpenBoxNotificationSignal semantic change (for Jan)
Claus Gittinger <cg@exept.de>
parents: 4084
diff changeset
   347