FilenameWidgetWithHistory.st
author Claus Gittinger <cg@exept.de>
Fri, 11 Jul 2008 21:40:24 +0200
changeset 3474 cde8a45f74f0
parent 3473 6bc7203cb7b7
child 3546 b3269a9dec19
permissions -rw-r--r--
*** empty log message ***
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
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:'fileNameEntryField browseButton history'
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Views-Interactors'
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!FilenameWidgetWithHistory class methodsFor:'documentation'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
3318
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    23
copyright
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    24
"
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    25
 COPYRIGHT (c) 2007 by eXept Software AG
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    26
              All Rights Reserved
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    27
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    28
 This software is furnished under a license and may be used
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    29
 only in accordance with the terms of that license and with the
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    31
 be provided or otherwise made available to, or used by, any
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    32
 other person.  No title to or ownership of the software is
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    33
 hereby transferred.
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    34
"
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    35
!
5a0aff0fd23a copyright
Claus Gittinger <cg@exept.de>
parents: 3251
diff changeset
    36
3471
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    37
documentation
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    38
"
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    39
    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
    40
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    41
    [author:]
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    42
        Claus Gittinger
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    43
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    44
    [see also:]
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    45
        ComboBoxView
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    46
        FilenameEditField
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    47
        FilenameComboBoxView
f3cde37d9d53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3427
diff changeset
    48
"
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
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
examples
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
"
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
                                                                        [exBegin]
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
     |top b|
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
     top := StandardSystemView new.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
     top extent:(300 @ 200).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
     b := FilenameWidgetWithHistory in:top.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
     b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
     b bottomInset:(b preferredExtent y negated).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
     top open.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
                                                                        [exEnd]
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
"
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
!FilenameWidgetWithHistory methodsFor:'accessing'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
historyList
3474
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
    71
    history isNil ifTrue:[
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
    72
        history := nil asValue
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
    73
    ].
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
    74
    ^ history
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
model
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    ^ fileNameEntryField model
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
model:aFilenameHolder
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    fileNameEntryField model:aFilenameHolder.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
3472
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    85
!FilenameWidgetWithHistory methodsFor:'accessing - editField attributes'!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    86
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    87
acceptIfUnchanged:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    88
    fileNameEntryField acceptIfUnchanged:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    89
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    90
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    91
acceptOnLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    92
    fileNameEntryField acceptOnLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    93
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    94
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    95
acceptOnLostFocus:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    96
    fileNameEntryField acceptOnLostFocus:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    97
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    98
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
    99
acceptOnPointerLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   100
    fileNameEntryField acceptOnPointerLeave:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   101
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   102
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   103
acceptOnReturn:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   104
    fileNameEntryField acceptOnReturn:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   105
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   106
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   107
acceptOnTab:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   108
    fileNameEntryField acceptOnTab:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   109
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   110
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   111
contents:aString
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   112
    fileNameEntryField contents:aString
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   113
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   114
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   115
immediateAccept:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   116
    fileNameEntryField immediateAccept:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   117
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   118
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   119
maxChars:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   120
    fileNameEntryField maxChars:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   121
!
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   122
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   123
readOnly:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   124
    fileNameEntryField readOnly:aBoolean
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   125
! !
20087c3d9dda *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3471
diff changeset
   126
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
!FilenameWidgetWithHistory methodsFor:'initialization'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
initialize
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
    super initialize.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
    fileNameEntryField := FilenameComboBoxView in:self.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
    fileNameEntryField layout:(LayoutFrame
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
                                  leftFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
                                  rightFraction:1 offset:-22 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
                                  topFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
                                  bottomFraction:1 offset:0).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    fileNameEntryField listHolder:(self historyList).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
    browseButton := Button in:self.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    browseButton label:'...'.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
    browseButton action:[self browseForDestinationDirectory].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
    browseButton layout:(LayoutFrame
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                                  leftFraction:1 offset:-22 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
                                  rightFraction:1 offset:-2 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
                                  topFraction:0 offset:0 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
                                  bottomFraction:1 offset:0).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
!FilenameWidgetWithHistory methodsFor:'queries'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
preferredExtent
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    preferredExtent notNil ifTrue:[
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
        ^ preferredExtent
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    ].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
3427
9927e4970fce added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
   157
    preferredExtent := (fileNameEntryField preferredWidth + browseButton preferredWidth)
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
                       @
3427
9927e4970fce added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3318
diff changeset
   159
                       (fileNameEntryField preferredHeight "max: browseButton preferredExtent y").
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
    ^ preferredExtent
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
!FilenameWidgetWithHistory methodsFor:'user actions'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
browseForDestinationDirectory
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
    |dir|
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
    Dialog aboutToOpenBoxNotificationSignal handle:[:ex |
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
        |dialog|
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
        dialog := ex parameter.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
        dialog perform:#browseVisibleHolder with:true ifNotUnderstood:[].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
        ex proceed.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
    ] do:[
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
        dir := Dialog 
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                requestDirectoryName:'Destination Directory'
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                default:(self model value ? '.' asFilename pathName).
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    ].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
    dir isEmptyOrNil ifTrue:[ ^ self ].
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
    self model value:dir.
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
    "Modified: / 02-10-2006 / 14:45:54 / cg"
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
! !
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
!FilenameWidgetWithHistory class methodsFor:'documentation'!
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
version
3474
cde8a45f74f0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3473
diff changeset
   189
    ^ '$Header: /cvs/stx/stx/libwidg2/FilenameWidgetWithHistory.st,v 1.7 2008-07-11 19:40:24 cg Exp $'
3251
29b44f456526 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
! !