DirectoryView.st
author tz
Sun, 15 Feb 1998 21:00:42 +0100
changeset 640 56a4339cbdbe
parent 638 a82372d61cf8
child 644 3a1a1cae7428
permissions -rw-r--r--
inst var #specClass is the name of the spec class and nothing else
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
     1
"
502
624dc714fd69 copyright changed
tz
parents: 474
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
     3
              All Rights Reserved
2137dff405f0 initial checkin
tz
parents:
diff changeset
     4
2137dff405f0 initial checkin
tz
parents:
diff changeset
     5
 This software is furnished under a license and may be used
2137dff405f0 initial checkin
tz
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
2137dff405f0 initial checkin
tz
parents:
diff changeset
     7
 inclusion of the above copyright notice. This software may not
2137dff405f0 initial checkin
tz
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
2137dff405f0 initial checkin
tz
parents:
diff changeset
     9
 other person. No title to or ownership of the software is
2137dff405f0 initial checkin
tz
parents:
diff changeset
    10
 hereby transferred.
2137dff405f0 initial checkin
tz
parents:
diff changeset
    11
"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    12
2137dff405f0 initial checkin
tz
parents:
diff changeset
    13
2137dff405f0 initial checkin
tz
parents:
diff changeset
    14
ApplicationModel subclass:#DirectoryView
2137dff405f0 initial checkin
tz
parents:
diff changeset
    15
	instanceVariableNames:'directory selectedFileFilter readTask monitoring
2137dff405f0 initial checkin
tz
parents:
diff changeset
    16
		monitoringTimeBlock fileDoubleClickAction fileSelectAction
2137dff405f0 initial checkin
tz
parents:
diff changeset
    17
		fileFilterSelectAction fileAttributes'
2137dff405f0 initial checkin
tz
parents:
diff changeset
    18
	classVariableNames:''
2137dff405f0 initial checkin
tz
parents:
diff changeset
    19
	poolDictionaries:''
620
03e969ddd336 class category changed
tz
parents: 614
diff changeset
    20
	category:'Interface-Support'
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    21
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    22
2137dff405f0 initial checkin
tz
parents:
diff changeset
    23
Object subclass:#FileRow
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
    24
	instanceVariableNames:'fileName size modified iconKey imageFromFile group owner
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
    25
		permissions baseName'
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    26
	classVariableNames:''
2137dff405f0 initial checkin
tz
parents:
diff changeset
    27
	poolDictionaries:''
2137dff405f0 initial checkin
tz
parents:
diff changeset
    28
	privateIn:DirectoryView
2137dff405f0 initial checkin
tz
parents:
diff changeset
    29
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    30
2137dff405f0 initial checkin
tz
parents:
diff changeset
    31
!DirectoryView class methodsFor:'documentation'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    32
2137dff405f0 initial checkin
tz
parents:
diff changeset
    33
copyright
2137dff405f0 initial checkin
tz
parents:
diff changeset
    34
"
502
624dc714fd69 copyright changed
tz
parents: 474
diff changeset
    35
 COPYRIGHT (c) 1997 by eXept Software AG
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    36
              All Rights Reserved
2137dff405f0 initial checkin
tz
parents:
diff changeset
    37
2137dff405f0 initial checkin
tz
parents:
diff changeset
    38
 This software is furnished under a license and may be used
2137dff405f0 initial checkin
tz
parents:
diff changeset
    39
 only in accordance with the terms of that license and with the
2137dff405f0 initial checkin
tz
parents:
diff changeset
    40
 inclusion of the above copyright notice. This software may not
2137dff405f0 initial checkin
tz
parents:
diff changeset
    41
 be provided or otherwise made available to, or used by, any
2137dff405f0 initial checkin
tz
parents:
diff changeset
    42
 other person. No title to or ownership of the software is
2137dff405f0 initial checkin
tz
parents:
diff changeset
    43
 hereby transferred.
2137dff405f0 initial checkin
tz
parents:
diff changeset
    44
"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    45
2137dff405f0 initial checkin
tz
parents:
diff changeset
    46
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    47
2137dff405f0 initial checkin
tz
parents:
diff changeset
    48
documentation
2137dff405f0 initial checkin
tz
parents:
diff changeset
    49
"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    50
    documentation to be added.
502
624dc714fd69 copyright changed
tz
parents: 474
diff changeset
    51
624dc714fd69 copyright changed
tz
parents: 474
diff changeset
    52
    [author:]
624dc714fd69 copyright changed
tz
parents: 474
diff changeset
    53
        Thomas Zwick
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    54
"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    55
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
    56
2137dff405f0 initial checkin
tz
parents:
diff changeset
    57
!DirectoryView class methodsFor:'instance creation'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    58
516
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    59
openOnDirectory: aDirectoryString
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    60
    "open a DirectoryView for a aDirectoryString"
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    61
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    62
    ^ (self new directory: aDirectoryString) open
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    63
516
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    64
    "
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    65
     self openOnDirectory: '/etc'
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    66
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    67
516
d336effde882 Fix #openOnDirectory: and copyright.
Stefan Vogel <sv@exept.de>
parents: 502
diff changeset
    68
    "Modified: / 28.1.1998 / 15:44:53 / stefan"
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    69
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
    70
2137dff405f0 initial checkin
tz
parents:
diff changeset
    71
!DirectoryView class methodsFor:'interface specs'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
    72
2137dff405f0 initial checkin
tz
parents:
diff changeset
    73
windowSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
    74
    "this window spec was automatically generated by the ST/X UIPainter"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    75
2137dff405f0 initial checkin
tz
parents:
diff changeset
    76
    "do not manually edit this - the painter/builder may not be able to
2137dff405f0 initial checkin
tz
parents:
diff changeset
    77
     handle the specification if its corrupted."
2137dff405f0 initial checkin
tz
parents:
diff changeset
    78
2137dff405f0 initial checkin
tz
parents:
diff changeset
    79
    "
2137dff405f0 initial checkin
tz
parents:
diff changeset
    80
     UIPainter new openOnClass:DirectoryView andSelector:#windowSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
    81
     DirectoryView new openInterface:#windowSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
    82
    "
2137dff405f0 initial checkin
tz
parents:
diff changeset
    83
    "DirectoryView open"
2137dff405f0 initial checkin
tz
parents:
diff changeset
    84
2137dff405f0 initial checkin
tz
parents:
diff changeset
    85
    <resource: #canvas>
2137dff405f0 initial checkin
tz
parents:
diff changeset
    86
2137dff405f0 initial checkin
tz
parents:
diff changeset
    87
    ^
2137dff405f0 initial checkin
tz
parents:
diff changeset
    88
     
2137dff405f0 initial checkin
tz
parents:
diff changeset
    89
       #(#FullSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
    90
          #'window:' 
2137dff405f0 initial checkin
tz
parents:
diff changeset
    91
           #(#WindowSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
    92
              #'name:' 'Directory View'
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
    93
              #'layout:' #(#LayoutFrame 64 0 703 0 463 0 1002 0)
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    94
              #'label:' 'Directory View'
2137dff405f0 initial checkin
tz
parents:
diff changeset
    95
              #'min:' #(#Point 10 10)
2137dff405f0 initial checkin
tz
parents:
diff changeset
    96
              #'max:' #(#Point 1152 900)
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
    97
              #'bounds:' #(#Rectangle 64 703 464 1003)
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
    98
              #'usePreferredExtent:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
    99
          )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   100
          #'component:' 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   101
           #(#SpecCollection
2137dff405f0 initial checkin
tz
parents:
diff changeset
   102
              #'collection:' 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   103
               #(
2137dff405f0 initial checkin
tz
parents:
diff changeset
   104
                 #(#DataSetSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   105
                    #'name:' 'filesDataSetView'
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   106
                    #'layout:' #(#LayoutFrame 0 0.0 24 0.0 -2 1.0 0 1.0)
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   107
                    #'model:' #selectionOfFile
2137dff405f0 initial checkin
tz
parents:
diff changeset
   108
                    #'hasHorizontalScrollBar:' true
2137dff405f0 initial checkin
tz
parents:
diff changeset
   109
                    #'hasVerticalScrollBar:' true
2137dff405f0 initial checkin
tz
parents:
diff changeset
   110
                    #'miniScrollerHorizontal:' true
2137dff405f0 initial checkin
tz
parents:
diff changeset
   111
                    #'dataList:' #listOfFiles
2137dff405f0 initial checkin
tz
parents:
diff changeset
   112
                    #'useIndex:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   113
                    #'doubleClickSelector:' #fileDoubleClicked
2137dff405f0 initial checkin
tz
parents:
diff changeset
   114
                    #'columnHolder:' #fileAttributeColumns
2137dff405f0 initial checkin
tz
parents:
diff changeset
   115
                    #'valueChangeSelector:' #fileSelected
2137dff405f0 initial checkin
tz
parents:
diff changeset
   116
                    #'verticalSpacing:' 1
2137dff405f0 initial checkin
tz
parents:
diff changeset
   117
                )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   118
                 #(#ComboBoxSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   119
                    #'name:' 'formatComboBox'
2137dff405f0 initial checkin
tz
parents:
diff changeset
   120
                    #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 22 0)
2137dff405f0 initial checkin
tz
parents:
diff changeset
   121
                    #'model:' #selectionOfFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   122
                    #'immediateAccept:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   123
                    #'acceptOnTab:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   124
                    #'comboList:' #listOfFileFilters
2137dff405f0 initial checkin
tz
parents:
diff changeset
   125
                )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   126
              )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   127
          )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   128
      )
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   129
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   130
    "Modified: / 6.2.1998 / 03:42:15 / cg"
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   131
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   132
2137dff405f0 initial checkin
tz
parents:
diff changeset
   133
windowSpecOfFileAttributeColumns
2137dff405f0 initial checkin
tz
parents:
diff changeset
   134
2137dff405f0 initial checkin
tz
parents:
diff changeset
   135
    ^
2137dff405f0 initial checkin
tz
parents:
diff changeset
   136
     #(
2137dff405f0 initial checkin
tz
parents:
diff changeset
   137
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   138
          #'label:' ''
2137dff405f0 initial checkin
tz
parents:
diff changeset
   139
          #'width:' 30
2137dff405f0 initial checkin
tz
parents:
diff changeset
   140
          #'height:' 22
2137dff405f0 initial checkin
tz
parents:
diff changeset
   141
          #'printSelector:' #'iconOn:'
2137dff405f0 initial checkin
tz
parents:
diff changeset
   142
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   143
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   144
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   145
          #'label:' 'File name'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   146
          #'labelAlignment:' #left
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   147
          #'minWidth:' 150
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   148
          #'model:' #baseName
2137dff405f0 initial checkin
tz
parents:
diff changeset
   149
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   150
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   151
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   152
          #'label:' 'Size'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   153
          #'labelAlignment:' #left
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   154
          #'width:' 70
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   155
          #'model:' #size
2137dff405f0 initial checkin
tz
parents:
diff changeset
   156
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   157
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   158
       #(#DataSetColumnSpec
593
17f3d679fa72 better size info
tz
parents: 591
diff changeset
   159
          #'label:' 'Modified'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   160
          #'labelAlignment:' #left
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   161
          #'model:' #modified
2137dff405f0 initial checkin
tz
parents:
diff changeset
   162
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   163
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   164
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   165
          #'label:' 'Permissions'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   166
          #'labelAlignment:' #left
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   167
          #'width:' 85
2137dff405f0 initial checkin
tz
parents:
diff changeset
   168
          #'model:' #permissions
2137dff405f0 initial checkin
tz
parents:
diff changeset
   169
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   170
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   171
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   172
          #'label:' 'Owner'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   173
          #'labelAlignment:' #left
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   174
          #'width:' 50
2137dff405f0 initial checkin
tz
parents:
diff changeset
   175
          #'model:' #owner
2137dff405f0 initial checkin
tz
parents:
diff changeset
   176
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   177
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   178
       #(#DataSetColumnSpec
2137dff405f0 initial checkin
tz
parents:
diff changeset
   179
          #'label:' 'Group'
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   180
          #'labelAlignment:' #left
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   181
          #'width:' 50
2137dff405f0 initial checkin
tz
parents:
diff changeset
   182
          #'model:' #group
2137dff405f0 initial checkin
tz
parents:
diff changeset
   183
          #'canSelect:' false
2137dff405f0 initial checkin
tz
parents:
diff changeset
   184
      )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   185
    )
2137dff405f0 initial checkin
tz
parents:
diff changeset
   186
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   187
    "Modified: / 6.2.1998 / 03:40:16 / cg"
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   188
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   189
2137dff405f0 initial checkin
tz
parents:
diff changeset
   190
!DirectoryView methodsFor:'accessing'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   191
2137dff405f0 initial checkin
tz
parents:
diff changeset
   192
directory: aDirectory
2137dff405f0 initial checkin
tz
parents:
diff changeset
   193
2137dff405f0 initial checkin
tz
parents:
diff changeset
   194
    directory := aDirectory asFilename asAbsoluteFilename name
2137dff405f0 initial checkin
tz
parents:
diff changeset
   195
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   196
2137dff405f0 initial checkin
tz
parents:
diff changeset
   197
fileAttributes: anArray
2137dff405f0 initial checkin
tz
parents:
diff changeset
   198
2137dff405f0 initial checkin
tz
parents:
diff changeset
   199
    fileAttributes := anArray
2137dff405f0 initial checkin
tz
parents:
diff changeset
   200
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   201
2137dff405f0 initial checkin
tz
parents:
diff changeset
   202
fileDoubleClickAction: anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   203
2137dff405f0 initial checkin
tz
parents:
diff changeset
   204
    fileDoubleClickAction := anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   205
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   206
2137dff405f0 initial checkin
tz
parents:
diff changeset
   207
fileFilterSelectAction: anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   208
2137dff405f0 initial checkin
tz
parents:
diff changeset
   209
    fileFilterSelectAction := anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   210
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   211
2137dff405f0 initial checkin
tz
parents:
diff changeset
   212
fileSelectAction: anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   213
2137dff405f0 initial checkin
tz
parents:
diff changeset
   214
    fileSelectAction := anActionBlock
2137dff405f0 initial checkin
tz
parents:
diff changeset
   215
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   216
2137dff405f0 initial checkin
tz
parents:
diff changeset
   217
listOfFileFilters: aCollection
2137dff405f0 initial checkin
tz
parents:
diff changeset
   218
2137dff405f0 initial checkin
tz
parents:
diff changeset
   219
    self listOfFileFilters contents: aCollection.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   220
    self selectionOfFileFilter value: (self listOfFileFilters at: 1 ifAbsent: [nil]).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   221
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   222
2137dff405f0 initial checkin
tz
parents:
diff changeset
   223
monitoring: aBoolean
2137dff405f0 initial checkin
tz
parents:
diff changeset
   224
2137dff405f0 initial checkin
tz
parents:
diff changeset
   225
    aBoolean
2137dff405f0 initial checkin
tz
parents:
diff changeset
   226
    ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   227
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   228
        monitoringTimeBlock := [self readDirectory].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   229
        self readDirectory.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   230
    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   231
    ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   232
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   233
        monitoring ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   234
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   235
            Processor removeTimedBlock:monitoringTimeBlock.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   236
            monitoringTimeBlock := nil
2137dff405f0 initial checkin
tz
parents:
diff changeset
   237
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   238
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   239
2137dff405f0 initial checkin
tz
parents:
diff changeset
   240
    monitoring := aBoolean.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   241
2137dff405f0 initial checkin
tz
parents:
diff changeset
   242
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   243
2137dff405f0 initial checkin
tz
parents:
diff changeset
   244
!DirectoryView methodsFor:'aspects'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   245
2137dff405f0 initial checkin
tz
parents:
diff changeset
   246
fileAttributeColumns
2137dff405f0 initial checkin
tz
parents:
diff changeset
   247
2137dff405f0 initial checkin
tz
parents:
diff changeset
   248
    |holder|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   249
    (holder := builder bindingAt:#fileAttributeColumns) isNil ifTrue:[
2137dff405f0 initial checkin
tz
parents:
diff changeset
   250
        |fileAttributeColumns|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   251
        builder aspectAt:#fileAttributeColumns put:(holder := List new).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   252
        fileAttributeColumns := self class windowSpecOfFileAttributeColumns collect: [:i| i decodeAsLiteralArray].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   253
        holder add: fileAttributeColumns first.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   254
        fileAttributeColumns do:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   255
        [:col|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   256
            (fileAttributes includes: col label) ifTrue: [holder add: col]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   257
        ].
591
efb80a288277 labels inseted
tz
parents: 590
diff changeset
   258
        holder do: [:col| col label: ' ', col label]
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   259
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   260
    ^ holder
2137dff405f0 initial checkin
tz
parents:
diff changeset
   261
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   262
2137dff405f0 initial checkin
tz
parents:
diff changeset
   263
listOfFileFilters
2137dff405f0 initial checkin
tz
parents:
diff changeset
   264
2137dff405f0 initial checkin
tz
parents:
diff changeset
   265
    |holder|          
2137dff405f0 initial checkin
tz
parents:
diff changeset
   266
    (holder := builder bindingAt:#listOfFileFilters) isNil ifTrue:[
2137dff405f0 initial checkin
tz
parents:
diff changeset
   267
        builder aspectAt:#listOfFileFilters put:(holder :=  List with: '*').
2137dff405f0 initial checkin
tz
parents:
diff changeset
   268
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   269
    ^ holder
2137dff405f0 initial checkin
tz
parents:
diff changeset
   270
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   271
2137dff405f0 initial checkin
tz
parents:
diff changeset
   272
listOfFiles
2137dff405f0 initial checkin
tz
parents:
diff changeset
   273
2137dff405f0 initial checkin
tz
parents:
diff changeset
   274
    |holder|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   275
    (holder := builder bindingAt:#listOfFiles) isNil ifTrue:[
2137dff405f0 initial checkin
tz
parents:
diff changeset
   276
        builder aspectAt:#listOfFiles put:(holder :=  List new).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   277
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   278
    ^ holder
2137dff405f0 initial checkin
tz
parents:
diff changeset
   279
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   280
2137dff405f0 initial checkin
tz
parents:
diff changeset
   281
selectionOfFile
2137dff405f0 initial checkin
tz
parents:
diff changeset
   282
2137dff405f0 initial checkin
tz
parents:
diff changeset
   283
    |holder|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   284
    (holder := builder bindingAt:#selectionOfFile) isNil ifTrue:[
2137dff405f0 initial checkin
tz
parents:
diff changeset
   285
        builder aspectAt:#selectionOfFile put:(holder :=  ValueHolder new).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   286
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   287
    ^ holder
2137dff405f0 initial checkin
tz
parents:
diff changeset
   288
2137dff405f0 initial checkin
tz
parents:
diff changeset
   289
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   290
2137dff405f0 initial checkin
tz
parents:
diff changeset
   291
selectionOfFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   292
2137dff405f0 initial checkin
tz
parents:
diff changeset
   293
    |holder|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   294
    (holder := builder bindingAt:#selectionOfFileFilter) isNil ifTrue:[
2137dff405f0 initial checkin
tz
parents:
diff changeset
   295
        builder aspectAt:#selectionOfFileFilter put:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   296
        (holder := AspectAdaptor new subject:self; forAspect:#selectedFileFilter).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   297
        selectedFileFilter := '*'.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   298
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   299
    ^ holder
2137dff405f0 initial checkin
tz
parents:
diff changeset
   300
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   301
2137dff405f0 initial checkin
tz
parents:
diff changeset
   302
!DirectoryView methodsFor:'callbacks'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   303
2137dff405f0 initial checkin
tz
parents:
diff changeset
   304
fileDoubleClicked
2137dff405f0 initial checkin
tz
parents:
diff changeset
   305
      
473
396ab247a5af be sure that file is selected
tz
parents: 451
diff changeset
   306
    (fileDoubleClickAction notNil and: [self selectionOfFile value notNil]) 
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   307
    ifTrue: 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   308
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   309
        fileDoubleClickAction numArgs = 0
2137dff405f0 initial checkin
tz
parents:
diff changeset
   310
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   311
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   312
            fileDoubleClickAction value
2137dff405f0 initial checkin
tz
parents:
diff changeset
   313
        ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   314
        fileDoubleClickAction numArgs = 1
2137dff405f0 initial checkin
tz
parents:
diff changeset
   315
        ifTrue:
451
a8da4f1924a4 evaluate actions with complete path
tz
parents: 424
diff changeset
   316
        [                
a8da4f1924a4 evaluate actions with complete path
tz
parents: 424
diff changeset
   317
            fileDoubleClickAction value: (directory asFilename construct: self selectionOfFile value baseName) name
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   318
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   319
    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   320
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   321
2137dff405f0 initial checkin
tz
parents:
diff changeset
   322
fileSelected
2137dff405f0 initial checkin
tz
parents:
diff changeset
   323
      
473
396ab247a5af be sure that file is selected
tz
parents: 451
diff changeset
   324
    (fileSelectAction notNil and: [self selectionOfFile value notNil]) 
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   325
    ifTrue: 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   326
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   327
        fileSelectAction numArgs = 0
2137dff405f0 initial checkin
tz
parents:
diff changeset
   328
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   329
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   330
            fileSelectAction value
2137dff405f0 initial checkin
tz
parents:
diff changeset
   331
        ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   332
        fileSelectAction numArgs = 1
2137dff405f0 initial checkin
tz
parents:
diff changeset
   333
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   334
        [
451
a8da4f1924a4 evaluate actions with complete path
tz
parents: 424
diff changeset
   335
            fileSelectAction value: (directory asFilename construct: self selectionOfFile value baseName) name
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   336
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   337
    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   338
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   339
2137dff405f0 initial checkin
tz
parents:
diff changeset
   340
!DirectoryView methodsFor:'initialization'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   341
2137dff405f0 initial checkin
tz
parents:
diff changeset
   342
initialize
2137dff405f0 initial checkin
tz
parents:
diff changeset
   343
2137dff405f0 initial checkin
tz
parents:
diff changeset
   344
    super initialize.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   345
2137dff405f0 initial checkin
tz
parents:
diff changeset
   346
    directory :=  directory ? '.' asFilename asAbsoluteFilename directoryName.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   347
    monitoring := false.
593
17f3d679fa72 better size info
tz
parents: 591
diff changeset
   348
    fileAttributes := #('File name' 'Size' 'Modified').
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   349
    self selectionOfFileFilter value: (self listOfFileFilters at: 1 ifAbsent: [nil]).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   350
2137dff405f0 initial checkin
tz
parents:
diff changeset
   351
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   352
2137dff405f0 initial checkin
tz
parents:
diff changeset
   353
!DirectoryView methodsFor:'private'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   354
2137dff405f0 initial checkin
tz
parents:
diff changeset
   355
readDirectory
2137dff405f0 initial checkin
tz
parents:
diff changeset
   356
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   357
    |foundFiles list|    
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   358
    foundFiles := OrderedCollection new.
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   359
    list := self listOfFileFilters value.
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   360
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   361
    Cursor wait showWhile: 
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   362
    [ 
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   363
        (DirectoryContents directoryNamed: directory) filesAndBasenamesDo: 
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   364
        [:file :name|      
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   365
            list do:
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   366
            [:filter|
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   367
                ((filter match: name) and: [(foundFiles includes: file) not])
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   368
                ifTrue:
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   369
                [
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   370
                    foundFiles add: file
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   371
                ].
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   372
            ].
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   373
        ].
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   374
        self listOfFiles contents: (foundFiles collect: [:file| FileRow new fileName: file])
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   375
    ]
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   376
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   377
!
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   378
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   379
readMonitoringDirectory
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   380
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   381
    |readBlock|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   382
    readTask notNil ifTrue: [readTask terminate].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   383
    readBlock :=
2137dff405f0 initial checkin
tz
parents:
diff changeset
   384
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   385
        |dir currentFilenames oldListOfFiles|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   386
        dir := directory asFilename.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   387
        currentFilenames := OrderedCollection new.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   388
        (dir isReadable and:[dir isExecutable]) ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   389
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   390
            self listOfFileFilters value do:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   391
            [:filter|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   392
                (dir filesMatchingWithoutDotDirs: filter) do:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   393
                [:aFileName|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   394
                    |file|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   395
                    (file := dir construct: aFileName) isDirectory
2137dff405f0 initial checkin
tz
parents:
diff changeset
   396
                    ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   397
                    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   398
                        currentFilenames add: file
2137dff405f0 initial checkin
tz
parents:
diff changeset
   399
                    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   400
                ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   401
            ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   402
        ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   403
        oldListOfFiles := self listOfFiles copy.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   404
        (currentFilenames asSortedCollection: [:f1 :f2| f1 baseName < f2 baseName]) asSet do: 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   405
        [:fileName| 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   406
            (oldListOfFiles detect: [:fileRow| fileRow fileName = fileName] ifNone: nil) isNil
2137dff405f0 initial checkin
tz
parents:
diff changeset
   407
            ifTrue:                                                                             
2137dff405f0 initial checkin
tz
parents:
diff changeset
   408
            [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   409
                |nearestFileRow r|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   410
                nearestFileRow := self listOfFiles indexOf: (self listOfFiles detect: [:fileRow| fileRow baseName > fileName baseName] ifNone: nil).
2137dff405f0 initial checkin
tz
parents:
diff changeset
   411
                nearestFileRow = 0
2137dff405f0 initial checkin
tz
parents:
diff changeset
   412
                ifTrue: [self listOfFiles add: (r := FileRow new fileName: fileName asFilename)]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   413
                ifFalse: [self listOfFiles add: (r := FileRow new fileName: fileName asFilename) beforeIndex: nearestFileRow].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   414
                monitoring ifTrue: [self selectionOfFile value: r].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   415
            ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   416
        ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   417
        self listOfFiles reverseDo:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   418
        [:fileRow|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   419
            (currentFilenames includes: fileRow fileName)
2137dff405f0 initial checkin
tz
parents:
diff changeset
   420
            ifFalse: [self listOfFiles remove: fileRow]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   421
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   422
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   423
2137dff405f0 initial checkin
tz
parents:
diff changeset
   424
    monitoring
2137dff405f0 initial checkin
tz
parents:
diff changeset
   425
    ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   426
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   427
        readTask := readBlock forkAt: Processor userBackgroundPriority.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   428
        Processor addTimedBlock: monitoringTimeBlock afterSeconds: 1
2137dff405f0 initial checkin
tz
parents:
diff changeset
   429
    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   430
    ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   431
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   432
        Cursor wait showWhile: [readBlock value]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   433
    ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   434
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   435
2137dff405f0 initial checkin
tz
parents:
diff changeset
   436
!DirectoryView methodsFor:'selection'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   437
2137dff405f0 initial checkin
tz
parents:
diff changeset
   438
selectedFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   439
2137dff405f0 initial checkin
tz
parents:
diff changeset
   440
    ^selectedFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   441
2137dff405f0 initial checkin
tz
parents:
diff changeset
   442
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   443
2137dff405f0 initial checkin
tz
parents:
diff changeset
   444
selectedFileFilter: aString
2137dff405f0 initial checkin
tz
parents:
diff changeset
   445
2137dff405f0 initial checkin
tz
parents:
diff changeset
   446
    aString size = 0 ifTrue: [self listOfFileFilters remove: selectedFileFilter ifAbsent: nil].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   447
    selectedFileFilter := aString.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   448
    (self listOfFileFilters includes: selectedFileFilter) not &
2137dff405f0 initial checkin
tz
parents:
diff changeset
   449
    selectedFileFilter notEmpty
2137dff405f0 initial checkin
tz
parents:
diff changeset
   450
    ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   451
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   452
        self listOfFileFilters addFirst: selectedFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   453
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   454
    (self listOfFileFilters includes: selectedFileFilter) &
2137dff405f0 initial checkin
tz
parents:
diff changeset
   455
    fileFilterSelectAction notNil 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   456
    ifTrue: 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   457
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   458
        fileFilterSelectAction numArgs = 0
2137dff405f0 initial checkin
tz
parents:
diff changeset
   459
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   460
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   461
            fileFilterSelectAction value
2137dff405f0 initial checkin
tz
parents:
diff changeset
   462
        ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   463
        fileFilterSelectAction numArgs = 1
2137dff405f0 initial checkin
tz
parents:
diff changeset
   464
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   465
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   466
            fileFilterSelectAction value: selectedFileFilter
2137dff405f0 initial checkin
tz
parents:
diff changeset
   467
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   468
    ].       
2137dff405f0 initial checkin
tz
parents:
diff changeset
   469
    self readDirectory.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   470
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   471
2137dff405f0 initial checkin
tz
parents:
diff changeset
   472
!DirectoryView methodsFor:'startup / release'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   473
2137dff405f0 initial checkin
tz
parents:
diff changeset
   474
closeRequest
2137dff405f0 initial checkin
tz
parents:
diff changeset
   475
2137dff405f0 initial checkin
tz
parents:
diff changeset
   476
    self release.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   477
2137dff405f0 initial checkin
tz
parents:
diff changeset
   478
    super closeRequest
2137dff405f0 initial checkin
tz
parents:
diff changeset
   479
2137dff405f0 initial checkin
tz
parents:
diff changeset
   480
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   481
2137dff405f0 initial checkin
tz
parents:
diff changeset
   482
release
2137dff405f0 initial checkin
tz
parents:
diff changeset
   483
2137dff405f0 initial checkin
tz
parents:
diff changeset
   484
    monitoring ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   485
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   486
        Processor removeTimedBlock:monitoringTimeBlock.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   487
        monitoringTimeBlock := nil
2137dff405f0 initial checkin
tz
parents:
diff changeset
   488
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   489
2137dff405f0 initial checkin
tz
parents:
diff changeset
   490
    super release
2137dff405f0 initial checkin
tz
parents:
diff changeset
   491
2137dff405f0 initial checkin
tz
parents:
diff changeset
   492
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   493
2137dff405f0 initial checkin
tz
parents:
diff changeset
   494
!DirectoryView::FileRow class methodsFor:'resources'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   495
2137dff405f0 initial checkin
tz
parents:
diff changeset
   496
HFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   497
2137dff405f0 initial checkin
tz
parents:
diff changeset
   498
    ^self hFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   499
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   500
2137dff405f0 initial checkin
tz
parents:
diff changeset
   501
MakefileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   502
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   503
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   504
    ImageEditor openOnClass:self andSelector:#MakefileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   505
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   506
2137dff405f0 initial checkin
tz
parents:
diff changeset
   507
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   508
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   509
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   510
        constantNamed:#'DirectoryView::FileRow MakefileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   511
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8 @@0 @@0 @@0)IV0/U$0)]&0)UT;)UV4 @@0 @@0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   512
2137dff405f0 initial checkin
tz
parents:
diff changeset
   513
binaryFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   514
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   515
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   516
    ImageEditor openOnClass:self andSelector:#binaryFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   517
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   518
2137dff405f0 initial checkin
tz
parents:
diff changeset
   519
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   520
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   521
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   522
        constantNamed:#'DirectoryView::FileRow binaryFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   523
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???3 @_7 @W4#&S0&6Q0&6_3&6O5&6@0#&@9 @@0&\@2&6@0&6@0&6@1&6@8&\@0 @@0???0???1'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   524
2137dff405f0 initial checkin
tz
parents:
diff changeset
   525
cFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   526
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   527
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   528
    ImageEditor openOnClass:self andSelector:#cFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   529
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   530
2137dff405f0 initial checkin
tz
parents:
diff changeset
   531
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   532
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   533
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   534
        constantNamed:#'DirectoryView::FileRow cFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   535
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8 @@0 @@0 \@0 "@0  @0  @0&"@;&\@4 @@0 @@0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   536
2137dff405f0 initial checkin
tz
parents:
diff changeset
   537
exeFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   538
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   539
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   540
    ImageEditor openOnClass:self andSelector:#exeFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   541
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   542
2137dff405f0 initial checkin
tz
parents:
diff changeset
   543
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   544
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   545
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   546
        constantNamed:#'DirectoryView::FileRow exeFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   547
        ifAbsentPut:[(Depth2Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUU@@@@UUT@@@AEUP@@@DEU@@@@PETEUUUUUPZ**)UUAUUUUATG???4EP_???PUA???=ATG???4EP_???PUA???=ATEUUUTEP@@@@@U@@@@@AUUUUUUUUUUUUUTb'); colorMap:(((Array new:4) at:1 put:((Color white)); at:2 put:((Color black)); at:3 put:((Color red:0.0 green:49.9977 blue:49.9977)); at:4 put:((Color grey:66.9978)); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   548
2137dff405f0 initial checkin
tz
parents:
diff changeset
   549
fileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   550
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   551
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   552
    ImageEditor openOnClass:self andSelector:#fileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   553
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   554
2137dff405f0 initial checkin
tz
parents:
diff changeset
   555
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   556
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   557
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   558
        constantNamed:#'DirectoryView::FileRow fileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   559
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8 @@0 @@0 @@0 @@0 @@0 @@0 @@; @@4 @@0 @@0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   560
2137dff405f0 initial checkin
tz
parents:
diff changeset
   561
hFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   562
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   563
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   564
    ImageEditor openOnClass:self andSelector:#hFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   565
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   566
2137dff405f0 initial checkin
tz
parents:
diff changeset
   567
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   568
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   569
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   570
        constantNamed:#'DirectoryView::FileRow hFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   571
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8  @0  @0 ,@0 2@0 "@0 "@0&"@;&"@4 @@0 @@0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   572
2137dff405f0 initial checkin
tz
parents:
diff changeset
   573
imageFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   574
    "ImageEditor openOnClass:self andSelector:#imageFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   575
2137dff405f0 initial checkin
tz
parents:
diff changeset
   576
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   577
    ^(Depth4Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(#[0 0 0 0 0 0 0 0 0 0 1 17 17 17 17 17 16 0 0 0 1 17 17 17 17 17 16 16 0 0 1 17 17 17 17 17 16 17 0 0 1 17 17 17 17 17 16 17 16 0 1 17 17 17 17 17 16 0 0 0 1 68 71 119 74 71 215 0 0 0 1 68 71 119 164 173 125 17 17 0 1 68 71 119 74 71 215 17 17 0 1 51 54 102 57 54 198 17 17 0 1 51 54 102 147 156 108 17 17 0 1 51 54 102 57 54 198 17 17 0 1 34 37 85 40 37 181 17 17 0 1 34 37 85 130 139 91 17 17 0 1 34 37 85 40 37 181 17 17 0 1 17 17 17 17 17 17 17 17 0 1 17 17 17 17 17 17 17 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]) ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9992 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9992 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9992); add:(Color red:0.0 green:49.9992 blue:49.9992); add:(Color red:49.9992 green:49.9992 blue:0.0); add:(Color red:49.9992 green:0.0 blue:49.9992); add:(Color grey:49.9992); add:(Color grey:66.9993); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   578
2137dff405f0 initial checkin
tz
parents:
diff changeset
   579
imgFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   580
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   581
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   582
    ImageEditor openOnClass:self andSelector:#imgFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   583
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   584
2137dff405f0 initial checkin
tz
parents:
diff changeset
   585
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   586
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   587
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   588
        constantNamed:#'DirectoryView::FileRow imgFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   589
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8  @0 @@0!!-F0 **0 **0 **0&**;&*&4 @B0 @N0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   590
2137dff405f0 initial checkin
tz
parents:
diff changeset
   591
linkedFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   592
    "ImageEditor openOnClass:self andSelector:#linkedFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   593
2137dff405f0 initial checkin
tz
parents:
diff changeset
   594
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   595
    ^(Depth2Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(#[85 85 85 85 85 64 0 0 21 85 64 0 0 17 85 64 0 0 16 85 64 0 0 16 21 64 0 0 21 85 64 0 0 5 85 64 0 0 0 5 64 0 0 8 5 64 0 0 10 5 64 0 10 170 133 64 0 42 170 133 64 0 160 10 5 66 170 128 8 5 66 170 0 0 5 64 0 0 0 5 64 0 0 0 5 85 85 85 85 85 85 85 85 85 85]) ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:100.0 green:0.0 blue:0.0); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   596
2137dff405f0 initial checkin
tz
parents:
diff changeset
   597
lockedFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   598
    "ImageEditor openOnClass:self andSelector:#lockedFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   599
2137dff405f0 initial checkin
tz
parents:
diff changeset
   600
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   601
    ^(Depth2Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(#[85 85 85 85 85 104 0 0 21 85 74 0 0 17 85 66 128 0 16 85 64 160 0 16 21 64 40 0 149 85 64 10 2 133 85 64 2 138 0 5 64 0 168 0 5 64 0 168 0 5 64 2 138 0 5 64 10 2 128 5 64 40 0 160 5 64 160 0 40 5 66 128 0 10 5 74 0 0 2 133 104 0 0 0 165 85 85 85 85 85 85 85 85 85 85]) ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   602
2137dff405f0 initial checkin
tz
parents:
diff changeset
   603
protoFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   604
2137dff405f0 initial checkin
tz
parents:
diff changeset
   605
    ^self MakefileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   606
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   607
2137dff405f0 initial checkin
tz
parents:
diff changeset
   608
rcFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   609
    "ImageEditor openOnClass:self andSelector:#rcFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   610
2137dff405f0 initial checkin
tz
parents:
diff changeset
   611
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   612
    ^(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 255 249 128 7 240 128 5 242 128 4 240 128 4 112 128 7 240 128 3 248 128 0 48 128 0 48 130 152 48 131 36 48 130 32 48 130 32 48 154 36 59 154 24 52 128 0 48 128 0 48 255 255 240 255 255 240]) ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   613
2137dff405f0 initial checkin
tz
parents:
diff changeset
   614
sFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   615
    "ImageEditor openOnClass:self andSelector:#sFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   616
2137dff405f0 initial checkin
tz
parents:
diff changeset
   617
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   618
    ^(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 255 249 128 7 240 128 5 242 128 4 240 128 4 112 128 7 240 128 3 248 128 0 48 128 0 48 129 128 48 130 0 48 131 0 48 129 128 48 152 128 59 155 0 52 128 0 48 128 0 48 255 255 240 255 255 240]) ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   619
2137dff405f0 initial checkin
tz
parents:
diff changeset
   620
stFileIcon
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   621
    "Generated by the Image Editor"
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   622
    "
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   623
    ImageEditor openOnClass:self andSelector:#stFileIcon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   624
    "
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   625
2137dff405f0 initial checkin
tz
parents:
diff changeset
   626
    <resource: #image>
590
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   627
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   628
    ^Icon
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   629
        constantNamed:#'DirectoryView::FileRow stFileIcon'
c2f5cd223be2 read routine changed (monitoring will be added later)
tz
parents: 516
diff changeset
   630
        ifAbsentPut:[(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???9 @_0 @W2 @S0 @Q0 @_0 @O8 A@0 A@0 [00 !!@0 1@0 Y@0&I@;&004 @@0 @@0???0???0'); colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??0@??8@??<@??>@???@??? ???0???0???0???0???0???0???0???0???0???0???0???0_??0'); yourself); yourself]!
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   631
2137dff405f0 initial checkin
tz
parents:
diff changeset
   632
stcFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   633
    "ImageEditor openOnClass:self andSelector:#stcFileIcon"
2137dff405f0 initial checkin
tz
parents:
diff changeset
   634
2137dff405f0 initial checkin
tz
parents:
diff changeset
   635
    <resource: #image>
2137dff405f0 initial checkin
tz
parents:
diff changeset
   636
    ^(Depth1Image new) width: 20; height: 19; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 255 249 128 7 240 128 5 242 128 4 240 128 4 112 128 7 240 128 3 248 128 32 48 128 32 48 129 243 48 130 36 176 131 36 48 129 164 48 152 164 187 155 51 52 128 0 48 128 0 48 255 255 240 255 255 240]) ; colorMap:((OrderedCollection new add:(Color white); add:(Color black); yourself)); mask:((ImageMask new) width: 20; height: 19; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[255 252 0 255 254 0 255 255 0 255 255 128 255 255 192 255 255 224 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 255 255 240 127 255 240]) ; yourself); yourself! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   637
2137dff405f0 initial checkin
tz
parents:
diff changeset
   638
!DirectoryView::FileRow methodsFor:'accessing'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   639
2137dff405f0 initial checkin
tz
parents:
diff changeset
   640
baseName
2137dff405f0 initial checkin
tz
parents:
diff changeset
   641
2137dff405f0 initial checkin
tz
parents:
diff changeset
   642
    ^baseName ? (baseName := fileName baseName)
2137dff405f0 initial checkin
tz
parents:
diff changeset
   643
2137dff405f0 initial checkin
tz
parents:
diff changeset
   644
2137dff405f0 initial checkin
tz
parents:
diff changeset
   645
2137dff405f0 initial checkin
tz
parents:
diff changeset
   646
2137dff405f0 initial checkin
tz
parents:
diff changeset
   647
2137dff405f0 initial checkin
tz
parents:
diff changeset
   648
2137dff405f0 initial checkin
tz
parents:
diff changeset
   649
2137dff405f0 initial checkin
tz
parents:
diff changeset
   650
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   651
2137dff405f0 initial checkin
tz
parents:
diff changeset
   652
fileName
2137dff405f0 initial checkin
tz
parents:
diff changeset
   653
2137dff405f0 initial checkin
tz
parents:
diff changeset
   654
    ^fileName
2137dff405f0 initial checkin
tz
parents:
diff changeset
   655
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   656
2137dff405f0 initial checkin
tz
parents:
diff changeset
   657
fileName: aFileName
2137dff405f0 initial checkin
tz
parents:
diff changeset
   658
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   659
    fileName := aFileName
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   660
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   661
2137dff405f0 initial checkin
tz
parents:
diff changeset
   662
group
2137dff405f0 initial checkin
tz
parents:
diff changeset
   663
2137dff405f0 initial checkin
tz
parents:
diff changeset
   664
    ^group
2137dff405f0 initial checkin
tz
parents:
diff changeset
   665
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   666
2137dff405f0 initial checkin
tz
parents:
diff changeset
   667
iconOn:aGC
2137dff405f0 initial checkin
tz
parents:
diff changeset
   668
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   669
    |icon|
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   670
    iconKey isNil 
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   671
    ifTrue: 
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   672
    [
614
41cd940faa45 faster dir reading
tz
parents: 607
diff changeset
   673
        self validateAttributes.
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   674
        (imageFromFile isNil and: [iconKey == #imageFileIcon])
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   675
            ifTrue:  [icon := self retrieveImageFromFileAndRegisterOn: aGC]
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   676
    ].
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   677
    imageFromFile
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   678
        ifFalse: [icon := aGC registerImage: (self class perform: iconKey) key: iconKey]
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   679
        ifTrue:  [icon := aGC registeredImageAt: iconKey].
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   680
    ^icon
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   681
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   682
2137dff405f0 initial checkin
tz
parents:
diff changeset
   683
modified
2137dff405f0 initial checkin
tz
parents:
diff changeset
   684
2137dff405f0 initial checkin
tz
parents:
diff changeset
   685
    ^modified
2137dff405f0 initial checkin
tz
parents:
diff changeset
   686
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   687
2137dff405f0 initial checkin
tz
parents:
diff changeset
   688
owner
2137dff405f0 initial checkin
tz
parents:
diff changeset
   689
2137dff405f0 initial checkin
tz
parents:
diff changeset
   690
    ^owner
2137dff405f0 initial checkin
tz
parents:
diff changeset
   691
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   692
2137dff405f0 initial checkin
tz
parents:
diff changeset
   693
permissions
2137dff405f0 initial checkin
tz
parents:
diff changeset
   694
2137dff405f0 initial checkin
tz
parents:
diff changeset
   695
    ^permissions
2137dff405f0 initial checkin
tz
parents:
diff changeset
   696
!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   697
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   698
retrieveImageFromFileAndRegisterOn: aGC
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   699
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   700
    |image|
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   701
    imageFromFile := false.       
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   702
    (image := aGC registeredImageAt: fileName name asSymbol) isNil
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   703
    ifTrue:
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   704
    [            
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   705
        size < 5000
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   706
        ifTrue:
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   707
        [     
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   708
            Object errorSignal handle: [:ex|]
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   709
            do:
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   710
            [   
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   711
                (image := Image fromFile: fileName name) notNil
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   712
                ifTrue:
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   713
                [
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   714
                    image extent y > 22
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   715
                    ifTrue:
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   716
                    [         
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   717
                        image := image magnifiedBy: 22/image extent y
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   718
                    ].
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   719
                    image := aGC registerImage: image key: fileName name asSymbol.
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   720
                ]
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   721
            ] 
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   722
        ].
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   723
    ].
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   724
    image notNil ifTrue: [imageFromFile := true. iconKey := fileName name asSymbol].
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   725
    ^image
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   726
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   727
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   728
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   729
!
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   730
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   731
size
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   732
    size isNumber ifFalse:[^ size].
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   733
    size < 1000        ifTrue: [^ size printString].
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   734
    size < (100*1024)  ifTrue: [^(((size/1024) * 10) asInteger/10) asFloat printString, ' Kb'].
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   735
    size < (1000*1024) ifTrue: [^(((size/1024)) asInteger) printString, ' Kb'].
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   736
    ^(((size/1048576) * 10) asInteger/10) asFloat printString, ' Mb'
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   737
607
8b6cd53f93b8 geometry
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   738
    "Modified: / 6.2.1998 / 03:38:45 / cg"
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   739
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   740
2137dff405f0 initial checkin
tz
parents:
diff changeset
   741
!DirectoryView::FileRow methodsFor:'private'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   742
2137dff405f0 initial checkin
tz
parents:
diff changeset
   743
validateAttributes
2137dff405f0 initial checkin
tz
parents:
diff changeset
   744
638
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   745
    |info mode| 
a82372d61cf8 avoid rereading of file images + multiple listings of same filter matching files
tz
parents: 620
diff changeset
   746
424
2137dff405f0 initial checkin
tz
parents:
diff changeset
   747
    permissions := String new:9 withAll:$-.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   748
2137dff405f0 initial checkin
tz
parents:
diff changeset
   749
    (info := fileName info) isNil
2137dff405f0 initial checkin
tz
parents:
diff changeset
   750
    ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   751
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   752
        iconKey := #lockedFileIcon.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   753
        size    := owner := group := '?'.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   754
      ^ self
2137dff405f0 initial checkin
tz
parents:
diff changeset
   755
    ].        
2137dff405f0 initial checkin
tz
parents:
diff changeset
   756
    size   := info size.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   757
    modified := info modified printString.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   758
    owner  := OperatingSystem getUserNameFromID: info uid.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   759
    group  := OperatingSystem getGroupNameFromID: info gid.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   760
    mode   := info mode.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   761
2137dff405f0 initial checkin
tz
parents:
diff changeset
   762
    1 to:9 by:3 do:[:i|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   763
        #((0 $x) (1 $w) (2 $r)) do:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   764
        [:m|
2137dff405f0 initial checkin
tz
parents:
diff changeset
   765
            (mode bitAt:i + m first) == 1 ifTrue:[permissions at: 10 - m first - i put: m last]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   766
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   767
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   768
2137dff405f0 initial checkin
tz
parents:
diff changeset
   769
    fileName isReadable
2137dff405f0 initial checkin
tz
parents:
diff changeset
   770
    ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   771
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   772
        info type == #symbolicLink
2137dff405f0 initial checkin
tz
parents:
diff changeset
   773
        ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   774
        [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   775
            ^iconKey := #linkedFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   776
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   777
        ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   778
        [       
2137dff405f0 initial checkin
tz
parents:
diff changeset
   779
            ((DirectoryView::FileRow class implements: (iconKey := (fileName suffix, 'FileIcon') asSymbol))
2137dff405f0 initial checkin
tz
parents:
diff changeset
   780
            or:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   781
            [DirectoryView::FileRow class implements: (iconKey := (fileName baseName, 'Icon') asSymbol)])
2137dff405f0 initial checkin
tz
parents:
diff changeset
   782
            ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   783
            [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   784
                iconKey := #fileIcon.
2137dff405f0 initial checkin
tz
parents:
diff changeset
   785
                (Image isImageFileSuffix:fileName suffix)
2137dff405f0 initial checkin
tz
parents:
diff changeset
   786
                ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   787
                [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   788
                    ^iconKey := #imageFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   789
                ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   790
                (fileName suffix = 'o') | (fileName suffix = 'so')
2137dff405f0 initial checkin
tz
parents:
diff changeset
   791
                ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   792
                [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   793
                    ^iconKey := #binaryFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   794
                ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   795
2137dff405f0 initial checkin
tz
parents:
diff changeset
   796
                fileName isExecutableProgram
2137dff405f0 initial checkin
tz
parents:
diff changeset
   797
                ifTrue:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   798
                [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   799
                    ^iconKey := #exeFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   800
                ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   801
            ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   802
        ]
2137dff405f0 initial checkin
tz
parents:
diff changeset
   803
    ] 
2137dff405f0 initial checkin
tz
parents:
diff changeset
   804
    ifFalse:
2137dff405f0 initial checkin
tz
parents:
diff changeset
   805
    [
2137dff405f0 initial checkin
tz
parents:
diff changeset
   806
        ^iconKey := #lockedFileIcon
2137dff405f0 initial checkin
tz
parents:
diff changeset
   807
    ].
2137dff405f0 initial checkin
tz
parents:
diff changeset
   808
2137dff405f0 initial checkin
tz
parents:
diff changeset
   809
2137dff405f0 initial checkin
tz
parents:
diff changeset
   810
! !
2137dff405f0 initial checkin
tz
parents:
diff changeset
   811
2137dff405f0 initial checkin
tz
parents:
diff changeset
   812
!DirectoryView class methodsFor:'documentation'!
2137dff405f0 initial checkin
tz
parents:
diff changeset
   813
2137dff405f0 initial checkin
tz
parents:
diff changeset
   814
version
2137dff405f0 initial checkin
tz
parents:
diff changeset
   815
    ^ '$Header$'
2137dff405f0 initial checkin
tz
parents:
diff changeset
   816
! !