author | Claus Gittinger <cg@exept.de> |
Mon, 27 Jan 2003 14:49:24 +0100 | |
changeset 4491 | b5f8412a83e2 |
parent 4486 | 8656068aaefb |
child 4496 | 513e99a8621b |
permissions | -rw-r--r-- |
3892 | 1 |
"{ Package: 'stx:libtool' }" |
2 |
||
3 |
ApplicationModel subclass:#AbstractFileBrowser |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
4 |
instanceVariableNames:'aspects' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
5 |
classVariableNames:'DirectoryHistory DefaultCommandPerMIME RuntimeAspects |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
6 |
DirectoryBookmarks LastEnforcedNameSpace CommandHistory |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
7 |
DefaultCommandPerSuffix CommandHistorySize LastFileDiffFile |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
8 |
DefaultFilters CurrentSelection RootHolder' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
9 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
10 |
category:'Interface-Tools-File' |
3892 | 11 |
! |
12 |
||
13 |
AbstractFileBrowser class instanceVariableNames:'DisabledCursorImage EnabledCursorImage' |
|
14 |
||
15 |
" |
|
16 |
The following class instance variables are inherited by this class: |
|
17 |
||
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
18 |
ApplicationModel - ClassResources |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
19 |
Model - |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
20 |
Object - |
3892 | 21 |
" |
22 |
! |
|
23 |
||
24 |
Object subclass:#Clipboard |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
25 |
instanceVariableNames:'method files' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
26 |
classVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
27 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
28 |
privateIn:AbstractFileBrowser |
3892 | 29 |
! |
30 |
||
31 |
Object subclass:#CodeExecutionLock |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
32 |
instanceVariableNames:'locked' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
33 |
classVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
34 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
35 |
privateIn:AbstractFileBrowser |
3892 | 36 |
! |
37 |
||
4366 | 38 |
List subclass:#DirectoryHistory |
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
39 |
instanceVariableNames:'forwardList backList lastWasForwardPath lastBackPath lastAddPath |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
40 |
backForwardList backForwardIndex' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
41 |
classVariableNames:'HistorySize' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
42 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
43 |
privateIn:AbstractFileBrowser |
3952 | 44 |
! |
45 |
||
46 |
Object subclass:#DirectoryHistoryItem |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
47 |
instanceVariableNames:'path position' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
48 |
classVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
49 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
50 |
privateIn:AbstractFileBrowser::DirectoryHistory |
3892 | 51 |
! |
52 |
||
53 |
OrderedSet subclass:#FilenameHistory |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
54 |
instanceVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
55 |
classVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
56 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
57 |
privateIn:AbstractFileBrowser |
3892 | 58 |
! |
59 |
||
60 |
Object subclass:#SaveAspectItem |
|
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
61 |
instanceVariableNames:'value isHolder' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
62 |
classVariableNames:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
63 |
poolDictionaries:'' |
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
64 |
privateIn:AbstractFileBrowser |
3892 | 65 |
! |
66 |
||
67 |
||
68 |
!AbstractFileBrowser class methodsFor:'classAccess'! |
|
69 |
||
3952 | 70 |
directoryHistoryClass |
71 |
||
72 |
^ AbstractFileBrowser::DirectoryHistory |
|
73 |
! |
|
74 |
||
3892 | 75 |
filenameHistoryClass |
76 |
||
77 |
^ FilenameHistory |
|
78 |
! ! |
|
79 |
||
3952 | 80 |
!AbstractFileBrowser class methodsFor:'classVarAccess'! |
81 |
||
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
82 |
currentSelection |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
83 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
84 |
CurrentSelection isNil ifTrue:[ |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
85 |
CurrentSelection := #(). |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
86 |
]. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
87 |
^ CurrentSelection |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
88 |
! |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
89 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
90 |
currentSelection:aFilenameCol |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
91 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
92 |
CurrentSelection := aFilenameCol |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
93 |
! |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
94 |
|
3952 | 95 |
directoryHistory |
96 |
||
97 |
DirectoryHistory isNil ifTrue:[ |
|
4414 | 98 |
DirectoryHistory := self directoryHistoryClass new. |
3964 | 99 |
"/ DirectoryHistory inspect. |
3952 | 100 |
]. |
101 |
^ DirectoryHistory |
|
102 |
! |
|
103 |
||
104 |
resetClassVars |
|
105 |
||
106 |
DirectoryHistory := nil. |
|
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
107 |
CurrentSelection := nil. |
3952 | 108 |
" |
109 |
AbstractFileBrowser resetClassVars |
|
110 |
" |
|
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
111 |
! |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
112 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
113 |
rootHolder |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
114 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
115 |
^ RootHolder |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
116 |
! |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
117 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
118 |
rootHolder:aRoot |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
119 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
120 |
RootHolder := aRoot |
3952 | 121 |
! ! |
122 |
||
3892 | 123 |
!AbstractFileBrowser class methodsFor:'defaults'! |
124 |
||
125 |
commandHistory |
|
126 |
||
127 |
CommandHistory isNil ifTrue:[ |
|
4414 | 128 |
CommandHistory := OrderedCollection new. |
3892 | 129 |
]. |
130 |
^ CommandHistory |
|
131 |
! |
|
132 |
||
133 |
commandHistorySize |
|
134 |
||
4190 | 135 |
"max no of entries in the HistoryList " |
3892 | 136 |
CommandHistorySize isNil ifTrue:[ |
4414 | 137 |
CommandHistorySize := 50 |
3892 | 138 |
]. |
139 |
^ CommandHistorySize |
|
140 |
! |
|
141 |
||
142 |
defaultCommandPerMIME |
|
143 |
||
144 |
DefaultCommandPerMIME isNil ifTrue:[ |
|
4414 | 145 |
self initializeDefaultCommands |
3892 | 146 |
]. |
147 |
^ DefaultCommandPerMIME |
|
148 |
! |
|
149 |
||
150 |
defaultFilterList |
|
151 |
||
152 |
DefaultFilters isNil ifTrue:[ |
|
4414 | 153 |
DefaultFilters := #( '*' |
154 |
'*.st' |
|
155 |
'*.htm*' |
|
156 |
'*.txt' |
|
157 |
'*.gif' |
|
158 |
'*.xpm' |
|
159 |
'*.jpg' |
|
160 |
'*.[h,c]*' |
|
161 |
) |
|
3892 | 162 |
]. |
163 |
^ DefaultFilters. |
|
164 |
! |
|
165 |
||
166 |
directoryBookmarks |
|
167 |
||
168 |
DirectoryBookmarks isNil ifTrue:[ |
|
4414 | 169 |
DirectoryBookmarks := OrderedCollection new. |
170 |
DirectoryBookmarks add:Filename homeDirectory asAbsoluteFilename. |
|
171 |
DirectoryBookmarks add:Filename tempDirectory. |
|
172 |
DirectoryBookmarks add:Filename currentDirectory asAbsoluteFilename. |
|
173 |
Smalltalk systemPath do:[:path | |
|
174 |
((path ~= '.') and:[path asFilename exists]) ifTrue:[ |
|
175 |
DirectoryBookmarks add:path asFilename. |
|
176 |
] |
|
177 |
] |
|
3892 | 178 |
]. |
179 |
^ DirectoryBookmarks |
|
180 |
||
181 |
"/ DirectoryBookmarks := nil |
|
182 |
! |
|
183 |
||
184 |
initializeDefaultCommands |
|
185 |
DefaultCommandPerMIME := Dictionary new. |
|
186 |
||
187 |
DefaultCommandPerMIME at:'application/x-tar-compressed' put:'gunzip < %1 | tar tvf -'. |
|
188 |
DefaultCommandPerMIME at:'application/pdf' put:'acroread -display %2 %1'. |
|
189 |
||
190 |
" |
|
191 |
self initializeDefaultCommands |
|
192 |
" |
|
193 |
! |
|
194 |
||
195 |
listOfRuntimeValuesToRemark |
|
196 |
||
4201 | 197 |
" list of all aspects that will be saved after close of FileBrowserV2" |
3892 | 198 |
|
199 |
^ #( |
|
4201 | 200 |
#filterModel |
201 |
#enableFileHistory |
|
202 |
#fileHistory |
|
203 |
#currentSortOrder |
|
204 |
#sortBlockProperty |
|
3892 | 205 |
) |
206 |
! |
|
207 |
||
208 |
resetAspects |
|
209 |
||
210 |
RuntimeAspects := nil. |
|
211 |
||
212 |
" |
|
213 |
self resetAspects |
|
214 |
" |
|
215 |
! |
|
216 |
||
217 |
runtimeAspects |
|
218 |
||
219 |
RuntimeAspects isNil ifTrue:[ |
|
4414 | 220 |
RuntimeAspects := Dictionary new. |
3892 | 221 |
]. |
222 |
^ RuntimeAspects |
|
223 |
! |
|
224 |
||
4201 | 225 |
userPreferencesAspectList |
226 |
||
227 |
" list of all aspects that will be saved with save settings |
|
228 |
that aspects will be image consistent if the settings are saved in Launcher |
|
229 |
dont forget to add a access methos in Userpreferences if you add a aspect here |
|
230 |
" |
|
231 |
||
232 |
^ #( |
|
233 |
#viewDirsInContentsBrowser |
|
234 |
#showDirectoryTree |
|
235 |
#showHiddenFiles |
|
236 |
#viewDescription |
|
237 |
#viewDetails |
|
238 |
#viewDirectoryDescription |
|
239 |
#viewFilesInDirectoryTree |
|
240 |
#viewGroup |
|
241 |
#viewOwner |
|
242 |
#viewPermissions |
|
243 |
#viewPreview |
|
244 |
#viewSize |
|
245 |
#viewTime |
|
246 |
#viewType |
|
247 |
#openMultipleApplicationsForType |
|
248 |
#filenameEntryFieldVisibleHolder |
|
249 |
#toolBarVisibleHolder |
|
250 |
#sortDirectoriesBeforeFiles |
|
251 |
#openAlwaysInTextEditor |
|
252 |
#sortCaseless |
|
253 |
) |
|
3892 | 254 |
! ! |
255 |
||
256 |
!AbstractFileBrowser class methodsFor:'image'! |
|
257 |
||
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
258 |
disabledCursorImage |
3892 | 259 |
|
260 |
DisabledCursorImage isNil ifTrue:[ |
|
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
261 |
DisabledCursorImage := Image fromFile:'xpmBitmaps/cursors/no_entry.xpm' |
3892 | 262 |
]. |
263 |
^ DisabledCursorImage |
|
264 |
! |
|
265 |
||
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
266 |
enabledCursorImage |
3892 | 267 |
|
268 |
EnabledCursorImage isNil ifTrue:[ |
|
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
269 |
EnabledCursorImage := Image fromFile:'xpmBitmaps/cursors/double_crossHair.xpm' |
3892 | 270 |
]. |
271 |
^ EnabledCursorImage |
|
272 |
! ! |
|
273 |
||
274 |
!AbstractFileBrowser class methodsFor:'image specs'! |
|
275 |
||
276 |
clearHistoryIcon |
|
277 |
^ Icon deleteIcon |
|
278 |
! |
|
279 |
||
280 |
closeIcon |
|
281 |
"This resource specification was automatically generated |
|
282 |
by the ImageEditor of ST/X." |
|
283 |
||
284 |
"Do not manually edit this!! If it is corrupted, |
|
285 |
the ImageEditor may not be able to read the specification." |
|
286 |
||
287 |
" |
|
288 |
self closeIcon inspect |
|
289 |
ImageEditor openOnClass:self andSelector:#closeIcon |
|
290 |
" |
|
291 |
||
292 |
<resource: #image> |
|
293 |
||
294 |
^Icon |
|
4414 | 295 |
constantNamed:#'AbstractFileBrowser class closeIcon' |
296 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 297 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ H@@@@@@@@@@@@B@ @@@@@@@@@@@@HB@ @@@@@@@@@B@ H@@@@@@@@@@@@@@ HB@@@@@@@B@ H@@@@@@@@@ |
298 |
@@@@@@@B@ H@@@@B@ H@@@@@@@@@@@@@@@@@@@HB@ @B@ H@@@@@@@@@@@@@@@@@@@@@@ HB@ H@@@@@@@@@@@@@@@@@@@@@@@@B@ H@@@@@@@@@@@@@@@@@ |
|
299 |
@@@@@@@B@ HB@ @@@@@@@@@@@@@@@@@@@@@B@ H@@ HB@@@@@@@@@@@@@@@@@@@B@ H@@@@B@ H@@@@@@@@A@@@@@@@B@ H@@@@@@@HB@ @@@@@@@@@@@@@B |
|
300 |
@ H@@@@@@@@@@ HB@@@@@@@@@@@@@ H@@@@@@@@@@@@B@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@PD@@P@@ |
|
301 |
@@DA@@@@@PD@@@DA@@@@@P@@@@D@@@D@@@D@@P@@@@D@@@D@@@D@@@@A@@@A@@@A@@@A@@@A@PDA@@@A@@@@@P@@@P@@@P@@@@D@@P@@@@@@@@DA@@DA@@@A |
|
302 |
@P@@@PD@@@@A@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[255 255 255 0 0 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@A C@A0G@@8N@@\\@@N8@@G0@@C @@G0@@N8@@\\B@8N@A0G@A C@@@@@A@@@MFL0QIQHQII8QIE@M&X0@@@@') ; yourself); yourself] |
|
303 |
! |
|
304 |
||
305 |
copyIcon |
|
306 |
<resource: #programImage> |
|
307 |
||
308 |
^ ToolbarIconLibrary copy20x20Icon "copy28x28Icon" |
|
309 |
! |
|
310 |
||
311 |
cutIcon |
|
312 |
<resource: #programImage> |
|
313 |
||
314 |
^ ToolbarIconLibrary cut20x20Icon2 "cut28x28Icon" |
|
315 |
! |
|
316 |
||
317 |
deleteIcon |
|
318 |
<resource: #programImage> |
|
319 |
||
320 |
^ ToolbarIconLibrary erase20x20Icon "/ delete28x28Icon |
|
321 |
! |
|
322 |
||
323 |
diffIcon |
|
324 |
"This resource specification was automatically generated |
|
325 |
by the ImageEditor of ST/X." |
|
326 |
||
327 |
"Do not manually edit this!! If it is corrupted, |
|
328 |
the ImageEditor may not be able to read the specification." |
|
329 |
||
330 |
" |
|
331 |
self diffIcon inspect |
|
332 |
ImageEditor openOnClass:self andSelector:#diffIcon |
|
333 |
" |
|
334 |
||
335 |
<resource: #image> |
|
336 |
||
337 |
^Icon |
|
4414 | 338 |
constantNamed:#'AbstractFileBrowser class diffIcon' |
339 |
ifAbsentPut:[(Depth8Image new) width: 26; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 340 |
@@@@@@@@A@PDA@PDA@PD@@@@@@@@@@@@@@@@@@@@@@@DA XFA XFA P@@@@@@@@@@@@@@@@@@@@@@@PFA XF@@@@@@@@@@@@@@@@@@@@@@@@@@@@A@XFA @F |
341 |
A XD@@@@@@@@@@@@@@@@@@@@@@@DA X@A XFA P@@@@@@@@@@@@@@@@@@@@@@@PFA @FA XFA@@@@@@@@@@@@@@@@@@@@@@@A@XF@@XFA XD@@@@@@@@@@@@ |
|
342 |
@@@@@@@@@@@DA X@A XFA P@@@@@@@@@@@@@@@@@@@@@@@PFA X@A XFA@@@@@@@@@@@@@@@@@@@@@@@A@XFA X@@@@@@@@@@@@@@@@@@@@@@@@@@@@DA XF |
|
343 |
A XFA P@@@@@@@@@@@@@@@@@@@@@@@PFA XFA XFA@@@@@@@@@@@@@@@@@@@@@@@A@PDA@PDA@PD@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
344 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
345 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
346 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 129 129 129 0 0 0 194 194 194 132 132 132 198 198 198 255 255 255]; mask:((Depth1Image new) width: 26; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@?8@@@O>@@@C? @@@?<@@@O> @@C?(@@@?:@@@O> @@C?8@@@??@@@O>8@@C?''@@@?80@@@@@@@@T[@@@DI@@@GSX@@BT$@@@%I@@@IRP@@A4$@@@@@@@@@@a') ; yourself); yourself] |
|
347 |
! |
|
348 |
||
349 |
fileInIcon |
|
350 |
<resource: #programImage> |
|
351 |
||
4094 | 352 |
^ ToolbarIconLibrary fileIn20x20Icon3 |
3892 | 353 |
! |
354 |
||
355 |
goHomeIcon |
|
356 |
"This resource specification was automatically generated |
|
357 |
by the ImageEditor of ST/X." |
|
358 |
||
359 |
"Do not manually edit this!! If it is corrupted, |
|
360 |
the ImageEditor may not be able to read the specification." |
|
361 |
||
362 |
" |
|
363 |
self goHomeIcon inspect |
|
364 |
ImageEditor openOnClass:self andSelector:#goHomeIcon |
|
4084 | 365 |
Icon flushCachedIcons |
3892 | 366 |
" |
367 |
||
368 |
<resource: #image> |
|
369 |
||
370 |
^Icon |
|
4414 | 371 |
constantNamed:#'AbstractFileBrowser class goHomeIcon' |
372 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
4093 | 373 |
@@@@@@@@@@@@@@@@@@@@@@D@@@@@@@@@@@@@DQ@@@@@@@@@@@@DQDP@@@@@@@@@@DQ@QD@@@@@@@@@DQH2DQ@@@@@@@@DQH4L!!DP@@@@@@DQH4QCHQD@@@@@ |
374 |
DQH4QDP2DQ@@@@DQH4QDQDL!!DP@@DQH4QDQDQCHQD@D"H4QBH"ADP0@A@RH#QBH"H QC@@D@@@MDIUUUADL@@@@@@4P%UUTDP0@@@@@CQBUUUPQC@@@@@@MD |
|
375 |
IUUUADL@@@@@@4P%UUTDP0@@@@@CQBUUUPQC@@@@@@MDIUUUADL@@@@@@4P%UUTDP0@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 192 0 0 64 0 0 128 128 128 192 192 192 100 128 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@A@@@C @A''0@A/8@A?<@A?>@A??@C?? G??0O??8_??<_??<_??<C?? C?? C?? C?? C?? C?? C?? C?? C?? ') ; yourself); yourself] |
|
3892 | 376 |
! |
377 |
||
378 |
hexToggle22x22Icon |
|
379 |
"This resource specification was automatically generated |
|
380 |
by the ImageEditor of ST/X." |
|
381 |
||
382 |
"Do not manually edit this!! If it is corrupted, |
|
383 |
the ImageEditor may not be able to read the specification." |
|
384 |
||
385 |
" |
|
386 |
self hexToggle22x22Icon inspect |
|
387 |
ImageEditor openOnClass:self andSelector:#hexToggle22x22Icon |
|
388 |
" |
|
389 |
||
390 |
<resource: #image> |
|
391 |
||
392 |
^Icon |
|
4414 | 393 |
constantNamed:#'AbstractFileBrowser class hexToggle22x22Icon' |
394 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 395 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EAPTEAPTEAPTE@@@@@@@@@@@@@@@@AP@@@@T@@@@EAP@@@@@@@@@@ |
396 |
@@@@@@TEAP@E@@TEAPT@@@@@@@@@@@@@@@@EAP@@AP@@APTE@@@@@@@@@@@@@@@@APTE@@T@APTEAP@@@@@@@@@@@@@@@@T@@@@E@@TEAPT@@@@@@@@@@@@@ |
|
397 |
@@@EAPTEAPTEAPTE@@@@@@@@@@@@@@@@AP@@@@T@@@@EAP@@@@@@@@@@@@@@@@T@AP@E@@T@APT@@@@@@@@@@@@@@@@E@@@@AP@@@@TE@@@@@@@@@@@@@@@@ |
|
398 |
AP@E@@T@AP@EAP@@@@@@@@@@@@@@@@T@AP@E@@@@APT@@@@@@@@@@@@@@@@EAPTEAPTEAPTE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
399 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
400 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 105 133 190 129 129 129 194 194 194 255 0 0 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@A?>@@@@@B''Q@B$J@C&D@B$J@B''Q@') ; yourself); yourself] |
|
401 |
! |
|
402 |
||
403 |
historyIcon |
|
404 |
<resource: #programImage> |
|
405 |
||
406 |
^ ToolbarIconLibrary history20x20Icon "/ history28x28Icon |
|
407 |
! |
|
408 |
||
409 |
homeIcon |
|
410 |
<resource: #programImage> |
|
411 |
||
412 |
^ ToolbarIconLibrary home28x28Icon |
|
413 |
! |
|
414 |
||
415 |
htmlReloadIcon |
|
416 |
"This resource specification was automatically generated |
|
417 |
by the ImageEditor of ST/X." |
|
418 |
||
419 |
"Do not manually edit this!! If it is corrupted, |
|
420 |
the ImageEditor may not be able to read the specification." |
|
421 |
||
422 |
" |
|
423 |
self htmlReloadIcon inspect |
|
424 |
ImageEditor openOnClass:self andSelector:#htmlReloadIcon |
|
425 |
" |
|
426 |
||
427 |
<resource: #image> |
|
428 |
||
429 |
^Icon |
|
4414 | 430 |
constantNamed:#'AbstractFileBrowser class htmlReloadIcon' |
431 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 432 |
@@@@@@@@@@@UT@@@@@EU@D@@@@UT@@@H@AUP@@@@@EU@@@@@@EU@@@@E@EU@@@@@@EU@@@@@AUUT@@@@@UUP@@@@@EU@@@@@@AT@@@@@@@P@@@@H@@@@@@@@ |
433 |
@@@@@@@@@@@@@@@H@@@@@@@@@@@@@@@G@@@@@@@J@@@@@@@I@@@@@@@@') ; colorMapFromArray:#[0 0 0 0 129 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@G<C@_?C@??#A?C3C>@;G<@KG<@CG<@C??$C_?NCO>_CG<?#C9?3A3?;@''??@@?#P@?C\A?COC>CG?<CC?8C@? C') ; yourself); yourself] |
|
434 |
! |
|
435 |
||
436 |
leftArrow |
|
437 |
"This resource specification was automatically generated |
|
438 |
by the ImageEditor of ST/X." |
|
439 |
||
440 |
"Do not manually edit this!! If it is corrupted, |
|
441 |
the ImageEditor may not be able to read the specification." |
|
442 |
||
443 |
" |
|
444 |
self leftArrow inspect |
|
445 |
ImageEditor openOnClass:self andSelector:#leftArrow |
|
446 |
" |
|
447 |
||
448 |
<resource: #image> |
|
449 |
||
450 |
^Icon |
|
4414 | 451 |
constantNamed:#'AbstractFileBrowser class leftArrow' |
452 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 453 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
454 |
@@@@@@@@@@@@@@@@@@@A@0D@@@@@@@@@@@@@@@@@@@@@@@@@@@DDAPH@@@@@@@@@@@@@@@@@@@@@@@@@@PX@A0D@@@@@@@@@@@@@@@@@@@@@@@@AB@@IB HK |
|
455 |
@0LA@PDK@@@@@@@@@@@@@@DL@@@MC <P@@@@DPLR@@@@@@@@@@@@@PX@@ALTEP8PDQDVE0\R@@@@@@@@@@@AAADQD1PUEQTNF@$SFP(R@@@@@@@@@@@KB!!P[ |
|
456 |
GAPUEQT]GQ4]GP(R@@@@@@@@@@@@D (TG!!0TEA,_G1<[H@(R@@@@@@@@@@@@@AHJC!!< GQ4JB (JB"DK@@@@@@@@@@@@@@@RB 8^B DRD!!HRD!!HK@@@@@@@@ |
|
457 |
@@@@@@@@D (]H H@@@@@@@@@@@@@@@@@@@@@@@@@@AHJHPD@@@@@@@@@@@@@@@@@@@@@@@@@@@@K@PH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B0D@@@@@@@@@ |
|
458 |
@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
459 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 32 96 32 64 96 96 128 160 64 96 128 128 160 192 32 96 128 128 160 160 160 192 224 0 96 128 0 0 0 128 128 160 64 192 192 32 160 192 64 128 192 128 192 224 192 224 224 0 0 32 96 192 224 0 160 192 0 128 192 160 224 224 96 160 192 128 192 192 64 160 192 192 192 192 32 192 192 0 192 224 0 128 160 32 192 224 64 192 224 0 192 192 0 64 96 0 64 128]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@B@@@F@@@N@@@^@@@>@@A??@C??@G??@O??@O??@G??@C??@A??@@>@@@^@@@N@@@F@@@B@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
|
460 |
! |
|
461 |
||
462 |
leftArrow20x20Icon |
|
463 |
"This resource specification was automatically generated |
|
464 |
by the ImageEditor of ST/X." |
|
465 |
||
466 |
"Do not manually edit this!! If it is corrupted, |
|
467 |
the ImageEditor may not be able to read the specification." |
|
468 |
||
469 |
" |
|
470 |
self leftArrow20x20Icon inspect |
|
471 |
ImageEditor openOnClass:self andSelector:#leftArrow20x20Icon |
|
472 |
Icon flushCachedIcons |
|
473 |
" |
|
474 |
||
475 |
<resource: #image> |
|
476 |
||
477 |
^Icon |
|
4414 | 478 |
constantNamed:#'AbstractFileBrowser class leftArrow20x20Icon' |
479 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
4093 | 480 |
@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@@HB@ HB@ HB@ HB@ HB@ HB@ @@@ HB@ HB@ HB@ HB@ HB@ H@@ @B@ HB@ HB@ HB@ HB@ HB@@HA |
481 |
@@HB@ HB@ HB@ HB@ HB@ @B@PD@@ HB@ HB@ HB@ HB@ H@@ DA@P@@@@@@@@@@@ HB@ HB@@HA@PDA@ HB@ HB@ @B@ HB@ @B@PDA@PDA@PDA@PDB@@HB |
|
482 |
@ H@@ DA@PDA@PDA@PDA@PH@@ HB@ @B@PDA@PDA@PDA@PDA@ @B@ HB@ @B@PDA@PDA@PDA@PDB@@HB@ HB@ @B@PDA@PHB@ HB@ H@@ HB@ HB@ @B@PDA |
|
483 |
@@@@@@@@@@@B@ HB@ HB@ @B@PD@@ HB@ HB@ HB@ HB@ HB@ @B@P@B@ HB@ HB@ HB@ HB@ HB@ @B@@HB@ HB@ HB@ HB@ HB@ HB@ @@@ HB@ HB@ HB |
|
484 |
@ HB@ HB@ HB@ @B@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ @a') ; colorMapFromArray:#[0 0 0 100 128 255 128 128 128]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@M@B@@@F@J@N@@@^@J@>@@A??@C??@G??OO??@O??@G??@C??@A??E@>@H@^@@@N@@@F@N@B@A@@@@') ; yourself); yourself] |
|
3892 | 485 |
! |
486 |
||
487 |
leftArrow20x20PlusMenuIcon |
|
488 |
"This resource specification was automatically generated |
|
489 |
by the ImageEditor of ST/X." |
|
490 |
||
491 |
"Do not manually edit this!! If it is corrupted, |
|
492 |
the ImageEditor may not be able to read the specification." |
|
493 |
||
494 |
" |
|
495 |
self leftArrow20x20PlusMenuIcon inspect |
|
496 |
ImageEditor openOnClass:self andSelector:#leftArrow20x20PlusMenuIcon |
|
497 |
Icon flushCachedIcons |
|
498 |
" |
|
499 |
||
500 |
<resource: #image> |
|
501 |
||
502 |
^Icon |
|
4414 | 503 |
constantNamed:#'AbstractFileBrowser class leftArrow20x20PlusMenuIcon' |
504 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 505 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@@@@@@@@@@@@@@@@@@@@@A@ @@@@@@@@@@@@@@@@@@@@@@@PLA@@@@@@@@@@@@@@@@@@@@@@DD |
506 |
APH@@@@@@@@@@@@@@@@@@@@AA @G@P@@@@@@@@@@@@@@@@@@@P @BP(BB0LC@PDAB0@@@@@@@@DL@@@MC <P@@@@DPLR@@@@@@@AA @@D1PUC!!@QDQXWA1H@ |
|
507 |
@@@@@PPQDQLTEQTUC!! ID1$JD @@@@@KB!!P[GAPUEQT]GQ4]GP(R@@@@@@@RB!!P^GAPTF1<_G1, B!!H@@@@@@@@RB 8_HA4]B (JB (!!B0@@@@@@@@@RB 8^ |
|
508 |
B DRD!!HRD!!HK@@@@@@@@@@@RB!!4"@ @@@@@@@@@@@@@@@@@@@@@RB"DA@@@@@@@@@@@KB0,KB0,K@@@K@PH@@@@@@@@@@@@KB0,KB0@@@@@K@P@@@@@@@@@@ |
|
509 |
@@@KB0,@@@@@@@@K@@@@@@@@@@@@@@@K@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[224 224 224 0 32 64 0 32 96 32 64 96 96 128 160 64 96 128 128 160 192 32 96 128 128 160 160 160 192 224 0 96 128 0 0 0 128 128 160 64 192 192 32 160 192 64 128 192 128 192 224 192 224 224 0 0 32 96 192 224 0 160 192 0 128 192 160 224 224 96 160 192 128 192 192 64 160 192 192 192 192 32 192 192 0 192 224 0 128 160 32 192 224 64 192 224 0 192 192 0 64 96 0 64 128]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@A@@@C@@@G@@@O@@@_@@@?? A?? C?? G?? G?? C?? A?? @?? @_@@@O@@?''@@_C@@NA@@D@@@') ; yourself); yourself] |
|
510 |
! |
|
511 |
||
4094 | 512 |
leftArrowIcon |
513 |
^ self leftArrow20x20Icon |
|
514 |
! |
|
515 |
||
3892 | 516 |
leftArrowPlusMenu |
517 |
"This resource specification was automatically generated |
|
518 |
by the ImageEditor of ST/X." |
|
519 |
||
520 |
"Do not manually edit this!! If it is corrupted, |
|
521 |
the ImageEditor may not be able to read the specification." |
|
522 |
||
523 |
" |
|
524 |
self leftArrowPlusMenu inspect |
|
525 |
ImageEditor openOnClass:self andSelector:#leftArrowPlusMenu |
|
526 |
" |
|
527 |
||
528 |
<resource: #image> |
|
529 |
||
530 |
^Icon |
|
4414 | 531 |
constantNamed:#'AbstractFileBrowser class leftArrowPlusMenu' |
532 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 533 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
534 |
@@@@@@@@@@@@@@@@@@@A@0D@@@@@@@@@@@@@@@@@@@@@@@@@@@DDAPH@@@@@@@@@@@@@@@@@@@@@@@@@@PX@A0D@@@@@@@@@@@@@@@@@@@@@@@@AB@@IB HK |
|
535 |
@0LA@PDK@@@@@@@@@@@@@@DL@@@MC <P@@@@DPLR@@@@@@@@@@@@@PX@@ALTEP8PDQDVE0\R@@@@@@@@@@@AAADQD1PUEQTNF@$SFP(R@@@@@@@@@@@KB!!P[ |
|
536 |
GAPUEQT]GQ4]GP(R@@@@@@@@@@@@D (TG!!0TEA,_G1<[H@(R@@@@@@@@@@@@@AHJC!!< GQ4JB (JB"DK@@@@@@@@@@@@@@@RB 8^B DRD!!HRD!!HK@@@@@@@@ |
|
537 |
@@@@@@@@D (]H H@@@@@@@@@@@@@@@@@@@@@@@@@@AHJHPD@@@@@@@@@@@@@@@@@@@@@@@@@@@@K@PH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B0D@@@@@@@@@ |
|
538 |
@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@KB0,KB0,K@@@@@@@@@@@@@@@@@@@@@@@@B0,KB0,@@@@@@@@@@@@@@@@@@@@@@@@@@@,KB0@@@@@@@@@@@@@@@@@@ |
|
539 |
@@@@@@@@@@@K@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 32 96 32 64 96 96 128 160 64 96 128 128 160 192 32 96 128 128 160 160 160 192 224 0 96 128 0 0 0 128 128 160 64 192 192 32 160 192 64 128 192 128 192 224 192 224 224 0 0 32 96 192 224 0 160 192 0 128 192 160 224 224 96 160 192 128 192 192 64 160 192 192 192 192 32 192 192 0 192 224 0 128 160 32 192 224 64 192 224 0 192 192 0 64 96 0 64 128]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@B@@@F@@@N@@@^@@@>@@A??@C??@G??@O??@O??@G??@C??@A??@@>@@@^@@@N@@@F@@@BA?@@@>@@@\@@@H@@@@') ; yourself); yourself] |
|
540 |
! |
|
541 |
||
542 |
leftDownIcon |
|
543 |
"This resource specification was automatically generated |
|
544 |
by the ImageEditor of ST/X." |
|
545 |
||
546 |
"Do not manually edit this!! If it is corrupted, |
|
547 |
the ImageEditor may not be able to read the specification." |
|
548 |
||
549 |
" |
|
550 |
self leftDownIcon inspect |
|
551 |
ImageEditor openOnClass:self andSelector:#leftDownIcon |
|
552 |
" |
|
553 |
||
554 |
<resource: #image> |
|
555 |
||
556 |
^Icon |
|
4414 | 557 |
constantNamed:#'AbstractFileBrowser class leftDownIcon' |
558 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 559 |
UUUUUUUUUUUPAUUUUUUUP@UUUUUUUPB!!UUUUUU@B*AUUUUU@B*(UUUUUPB** UUUUPB***AUUUTB***(EUUUB****%UUUR*****UUUUU@*%UUUUUUPJ)UUUU |
560 |
UUTB*UUUUUUU@*%UUUUUUPJ)UUUUUUTB*UUUUUUU@*%UUUUUUPJ)UUUUUUTB*UUUUUUU@*$@@@@AUPJ*****)UTB******UU@******%UPJ*****)UTAUUUU |
|
561 |
UUUU@@@@@@@AUUUUUUUUUP@a') ; colorMapFromArray:#[255 255 255 0 0 0 40 40 100 255 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
562 |
@@@@@@@@@@@@ @@@@\@@@@O @@@G<@@@C? @@A?<@@@?? @@_?<@@G?? @@C<@@@@?@@@@O0@@@C<@@@@?@@@@O0@@@C<@@@@?@@@@O0@@@C??? @???8@O? |
|
563 |
?>@C??? @???8@O??>@@@@@@@@@@@@@a') ; yourself); yourself] |
|
564 |
! |
|
565 |
||
566 |
leftIcon |
|
567 |
"This resource specification was automatically generated |
|
568 |
by the ImageEditor of ST/X." |
|
569 |
||
570 |
"Do not manually edit this!! If it is corrupted, |
|
571 |
the ImageEditor may not be able to read the specification." |
|
572 |
||
573 |
" |
|
574 |
self leftIcon inspect |
|
575 |
ImageEditor openOnClass:self andSelector:#leftIcon |
|
576 |
" |
|
577 |
||
578 |
<resource: #image> |
|
579 |
||
580 |
^Icon |
|
4414 | 581 |
constantNamed:#'AbstractFileBrowser class leftIcon' |
582 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 583 |
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUPUUUUUUUUPUUUUUUUUP%UUUUUUUP)UUUUUUUP*P@@@@@AP*$@@@@@@P******* |
584 |
*P********$********)J********U********%V*%UUUUUUUZ)UUUUUUUP*UUUUUUUUV%UUUUUUUUYUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU |
|
585 |
UUUUUUUUUUUUUUUUUUUUUP@a') ; colorMapFromArray:#[255 255 255 0 0 0 40 40 100 255 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
586 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@@@@F@@@@C @@@A8@@@@>@@@@_???0O???<G????C????0_???<C????@_???0C8@@@@^@@@@C @@@@X@@@@@@ |
|
587 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
588 |
! |
|
589 |
||
4230 | 590 |
makeIcon |
591 |
"This resource specification was automatically generated |
|
592 |
by the ImageEditor of ST/X." |
|
593 |
||
594 |
"Do not manually edit this!! If it is corrupted, |
|
595 |
the ImageEditor may not be able to read the specification." |
|
596 |
||
597 |
" |
|
598 |
self makeIcon inspect |
|
599 |
ImageEditor openOnClass:self andSelector:#makeIcon |
|
600 |
Icon flushCachedIcons |
|
601 |
" |
|
602 |
||
603 |
<resource: #image> |
|
604 |
||
605 |
^Icon |
|
606 |
constantNamed:#'AbstractFileBrowser class makeIcon' |
|
607 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
608 |
@@@@@@@@@@@@@@XF@@@@@@@@@@@@@@@@@@@FA X@@@XJB X@@@@FA @@@@@@@@@FB (JA XJB (JA XEB \F@@@@@@@@A (JB (JB (JB (JB (GA @@@@@@ |
|
609 |
@@DAB (JB (JB (JB (GAPT@@@@@A XFA XJB (GAPDAB (JAPTFA X@A \JB (JB (GAPD@@@DJB (JB (JA XJB (JB (JA0DEA0DAB (JB (JB TAA XF |
|
610 |
B (JB (EAPTEA0(JB TEAPTA@PDA@PXJB (JB (JB (JB TE@PDA@PDA@PXJB (JB (JB (JB (JA0TA@PD@@PXJB (JB (JB (JB (JB (JA D@@@HDB (J |
|
611 |
@ HJB (JB PDA@(JB X@@@@@@P\G@PDAA (JB XA@PDFA XA@@@@@@DA@PDA@PXJB (F@PDA@PDA@P@@@@@A@PDA@PDFA0(GA D@@PDA@PD@@@@@@@DA@P@@ |
|
612 |
@PXFA D@@@@A@PD@@@@@@@@@@@@@@@DA@PDA@@@@@@@@@@@@@@@@@@@@@@@A@PDA@P@@@@@@@@@@@@@@@@@@@@@@@@DA@P@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 48 48 48 56 59 56 64 68 64 88 92 88 128 128 128 160 160 160 192 192 192 216 219 216 239 244 239 248 252 248]; mask:((Depth1Image new) width: 22; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@C@@C''#@G?? G?? G?? _??8???<???<???<???<???<_??8_??0O??0O??0O?70GO# @O @@O @@G@@') ; yourself); yourself] |
|
613 |
! |
|
614 |
||
3892 | 615 |
menuHistoryList9x20Icon |
616 |
"This resource specification was automatically generated |
|
617 |
by the ImageEditor of ST/X." |
|
618 |
||
619 |
"Do not manually edit this!! If it is corrupted, |
|
620 |
the ImageEditor may not be able to read the specification." |
|
621 |
||
622 |
" |
|
623 |
self menuHistoryList9x20Icon inspect |
|
624 |
ImageEditor openOnClass:self andSelector:#menuHistoryList9x20Icon |
|
625 |
Icon flushCachedIcons |
|
626 |
" |
|
627 |
||
628 |
<resource: #image> |
|
629 |
||
630 |
^Icon |
|
4414 | 631 |
constantNamed:#'AbstractFileBrowser class menuHistoryList9x20Icon' |
632 |
ifAbsentPut:[(Depth1Image new) width: 9; height: 20; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@A0@G@@\@A0@G@@\@A0@G@@\@A0@G@A?@C8@G@@H@G<@@@@@@@@a') ; colorMapFromArray:#[255 255 255 0 0 0]; mask:((Depth1Image new) width: 9; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@A0@G@@\@A0@G@@\@A0@G@@\@A0@G@A?@C8@G@@H@G<@@@@@@@@a') ; yourself); yourself] |
|
3892 | 633 |
! |
634 |
||
635 |
menuHistoryListIcon |
|
636 |
"This resource specification was automatically generated |
|
637 |
by the ImageEditor of ST/X." |
|
638 |
||
639 |
"Do not manually edit this!! If it is corrupted, |
|
640 |
the ImageEditor may not be able to read the specification." |
|
641 |
||
642 |
" |
|
643 |
self menuHistoryListIcon inspect |
|
644 |
ImageEditor openOnClass:self andSelector:#menuHistoryListIcon |
|
645 |
" |
|
646 |
||
647 |
<resource: #image> |
|
648 |
||
649 |
^Icon |
|
4414 | 650 |
constantNamed:#'AbstractFileBrowser class menuHistoryListIcon' |
651 |
ifAbsentPut:[(Depth1Image new) width: 12; height: 12; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??S?<O?0??C?<O?0??/?=_?0??C?<O?0') ; colorMapFromArray:#[255 255 255 0 0 0]; mask:((Depth1Image new) width: 12; height: 12; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@O@@<@C0A?8C?@G8@O@@X@@@A?8@@@') ; yourself); yourself] |
|
3892 | 652 |
! |
653 |
||
3923 | 654 |
newDirectory20x20Icon |
655 |
"This resource specification was automatically generated |
|
656 |
by the ImageEditor of ST/X." |
|
657 |
||
658 |
"Do not manually edit this!! If it is corrupted, |
|
659 |
the ImageEditor may not be able to read the specification." |
|
660 |
||
661 |
" |
|
662 |
self newDirectory20x20Icon inspect |
|
663 |
ImageEditor openOnClass:self andSelector:#newDirectory20x20Icon |
|
664 |
Icon flushCachedIcons |
|
665 |
" |
|
666 |
||
667 |
<resource: #image> |
|
668 |
||
669 |
^Icon |
|
4414 | 670 |
constantNamed:#'AbstractFileBrowser class newDirectory20x20Icon' |
671 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3923 | 672 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PDA@PDA@P@@@@@@@@@@@@@@@@@A@ HB@ HA@@@@@@@@@@@@@@@@@PHB@ HB@ HA |
673 |
@@@@@@@@@@@@@@DA@PDA@PDA@P@@@@@@@@@@@@D@@PHB@ HB@ HB@ HB@@@@@ HB@P@A@ HB@ HB@ HB@ @B@@H@@ HA@@DB@ HB@ HB@ H@@ H@@ H@@ D@ |
|
674 |
@PHB@ HB@ HB@@HB@ @B@ H@@P@A@ HB@ HB@ HB@ HB@ HB@ HA@@DB@ HB@ HB@ HB@ HB@ HB@ D@@PHB@ HB@ HB@ HB@ HB@ HB@P@A@ HB@ HB@ HB |
|
675 |
@ HB@ HB@ HA@@DB@ HB@ HB@ HB@ HB@ HB@ D@@PHB@ HB@ HB@ HB@ HB@ HB@P@A@ HB@ HB@ HB@ HB@ HB@ HA@@DA@PDA@PDA@PDA@PDA@PDA@PD@ |
|
676 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[255 0 0 0 0 0 255 255 0]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@DQ@O:R@O9T@_<8@??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? @@@@@@@@') ; yourself); yourself] |
|
677 |
! |
|
678 |
||
3892 | 679 |
pasteIcon |
680 |
<resource: #programImage> |
|
681 |
||
682 |
^ ToolbarIconLibrary paste20x20Icon "/ paste28x28Icon |
|
683 |
! |
|
684 |
||
685 |
rightArrow |
|
686 |
"This resource specification was automatically generated |
|
687 |
by the ImageEditor of ST/X." |
|
688 |
||
689 |
"Do not manually edit this!! If it is corrupted, |
|
690 |
the ImageEditor may not be able to read the specification." |
|
691 |
||
692 |
" |
|
693 |
self rightArrow inspect |
|
694 |
ImageEditor openOnClass:self andSelector:#rightArrow |
|
695 |
" |
|
696 |
||
697 |
<resource: #image> |
|
698 |
||
699 |
^Icon |
|
4414 | 700 |
constantNamed:#'AbstractFileBrowser class rightArrow' |
701 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 702 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
703 |
@@@@@@@@@@@@@@@@@@@@@0PB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PTF@ @@@@@@@@@@@@@@@@@@@@@@@@@@@0\@A@H@@@@@@@@@@@@@@@@A@PDA@PDH@P\I |
|
704 |
@@XB@@@@@@@@@@@@@@@AA0(@@@@@B ,LB @D@ @@@@@@@@@@@@@MB \NB ,ODADRD0(@A H@@@@@@@@@@@@M@@TTEQLQE!!\WD 0K@@PB@@@@@@@@@@@MB <W |
|
705 |
E1\WD!!\WD!!LYDQ(B@@@@@@@@@@@AB <[D10[GQ8QG!!$QF H@@@@@@@@@@@@AA!!(ZF!!(ZE1H^FQDZ@ @@@@@@@@@@@@@A@ HB@ HB@1DYDQ(B@@@@@@@@@@@@ |
|
706 |
@@@@@@@@@@@@@QXQF H@@@@@@@@@@@@@@@@@@@@@@@@@@0PZ@ @@@@@@@@@@@@@@@@@@@@@@@@@@@Q(B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0H@@@@@@@@@ |
|
707 |
@@@@@@@@@@@@@@@@@@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
708 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 0 64 96 32 128 160 128 160 192 32 96 128 128 192 192 0 64 64 160 192 192 192 224 224 160 192 224 96 192 224 32 64 96 160 224 224 128 192 224 96 160 192 0 160 192 0 128 192 64 192 192 64 160 192 96 192 192 32 160 192 0 128 160 192 192 192 64 224 224 0 96 128 32 192 192 64 192 224 0 192 224 0 192 192]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@D@@@F@@@G@@@G @@G0@O?8@O?<@O?>@O??@O??@O?>@O?<@O?8@@G0@@G @@G@@@F@@@D@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
|
709 |
! |
|
710 |
||
711 |
rightArrow20x20Icon |
|
712 |
"This resource specification was automatically generated |
|
713 |
by the ImageEditor of ST/X." |
|
714 |
||
715 |
"Do not manually edit this!! If it is corrupted, |
|
716 |
the ImageEditor may not be able to read the specification." |
|
717 |
||
718 |
" |
|
719 |
self rightArrow20x20Icon inspect |
|
720 |
ImageEditor openOnClass:self andSelector:#rightArrow20x20Icon |
|
721 |
Icon flushCachedIcons |
|
722 |
" |
|
723 |
||
724 |
<resource: #image> |
|
725 |
||
726 |
^Icon |
|
4414 | 727 |
constantNamed:#'AbstractFileBrowser class rightArrow20x20Icon' |
728 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
4093 | 729 |
@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ H@@ HB@ HB@ HB@ HB@ HB@ HB@ @@@ HB@ HB@ HB@ HB@ HB@ HB@@H@@ HB@ HB@ HB@ HB@ HB@ H@ |
730 |
@PH@@ HB@ HB@ HB@ HB@ HB@ @A@PH@@ HB@ HB@ H@@@@@@@@@@@DA@PH@@ HB@ HB@ @B@ HB@ HB@PDA@PH@@ HB@ HB@@HA@PDA@PDA@PDA@PH@@ HB |
|
731 |
@ H@@ DA@PDA@PDA@PDA@PH@@ HB@ @B@PDA@PDA@PDA@PDA@ @B@ HB@@HA@PDA@PDA@PDA@PH@@ HB@ H@@ HB@ HB@ DA@PDB@@HB@ HB@ @@@@@@@@@@ |
|
732 |
@PDA@ @B@ HB@ HB@ HB@ HB@ @A@PH@@ HB@ HB@ HB@ HB@ HB@@DB@@HB@ HB@ HB@ HB@ HB@ H@@ @B@ HB@ HB@ HB@ HB@ HB@ @@@ HB@ HB@ HB |
|
733 |
@ HB@ HB@ HB@@HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ @a') ; colorMapFromArray:#[0 0 0 100 128 255 128 128 128]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@D@@@F@H@G@@@G @@G0@O?8AO?<@O?>@O??@O??DO?>DO?<@O?8@@G0@@G @@G@@@F@@@D@J@@@@') ; yourself); yourself] |
|
3892 | 734 |
! |
735 |
||
4094 | 736 |
rightArrowIcon |
737 |
^ self rightArrow20x20Icon |
|
738 |
! |
|
739 |
||
3892 | 740 |
rightArrowPlusMenu |
741 |
"This resource specification was automatically generated |
|
742 |
by the ImageEditor of ST/X." |
|
743 |
||
744 |
"Do not manually edit this!! If it is corrupted, |
|
745 |
the ImageEditor may not be able to read the specification." |
|
746 |
||
747 |
" |
|
748 |
self rightArrowPlusMenu inspect |
|
749 |
ImageEditor openOnClass:self andSelector:#rightArrowPlusMenu |
|
750 |
" |
|
751 |
||
752 |
<resource: #image> |
|
753 |
||
754 |
^Icon |
|
4414 | 755 |
constantNamed:#'AbstractFileBrowser class rightArrowPlusMenu' |
756 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 757 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
758 |
@@@@@@@@@@@@@@@@@@@@@0PB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PTF@ @@@@@@@@@@@@@@@@@@@@@@@@@@@0\@A@H@@@@@@@@@@@@@@@@A@PDA@PDH@P\I |
|
759 |
@@XB@@@@@@@@@@@@@@@AA0(@@@@@B ,LB @D@ @@@@@@@@@@@@@MB \NB ,ODADRD0(@A H@@@@@@@@@@@@M@@TTEQLQE!!\WD 0K@@PB@@@@@@@@@@@MB <W |
|
760 |
E1\WD!!\WD!!LYDQ(B@@@@@@@@@@@AB <[D10[GQ8QG!!$QF H@@@@@@@@@@@@AA!!(ZF!!(ZE1H^FQDZ@ @@@@@@@@@@@@@A@ HB@ HB@1DYDQ(B@@@@@@@@@@@@ |
|
761 |
@@@@@@@@@@@@@QXQF H@@@@@@@@@@@@@@@@@@@@@@@@@@0PZ@ @@@@@@@@@@@@@@@@@@@@@@@@@@@Q(B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@0H@@@@@@@@@ |
|
762 |
@@@@@@@@@@@@@@@@@@@@@P@@@@@@@@@B@ HB@ HB@@@@@@@@@@@@@@@@@@@@@@@@@ HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@HB@ @@@@@@@@@@@@@@@@@@ |
|
763 |
@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 0 64 96 32 128 160 128 160 192 32 96 128 128 192 192 0 64 64 160 192 192 192 224 224 160 192 224 96 192 224 32 64 96 160 224 224 128 192 224 96 160 192 0 160 192 0 128 192 64 192 192 64 160 192 96 192 192 32 160 192 0 128 160 192 192 192 64 224 224 0 96 128 32 192 192 64 192 224 0 192 224 0 192 192]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@D@@@F@@@G@@@G @@G0@O?8@O?<@O?>@O??@O??@O?>@O?<@O?8@@G0@@G @@G@@@F@@@DA?@@@>@@@\@@@H@@@@') ; yourself); yourself] |
|
764 |
! |
|
765 |
||
766 |
rightArrowPlusMenu20x20Icon |
|
767 |
"This resource specification was automatically generated |
|
768 |
by the ImageEditor of ST/X." |
|
769 |
||
770 |
"Do not manually edit this!! If it is corrupted, |
|
771 |
the ImageEditor may not be able to read the specification." |
|
772 |
||
773 |
" |
|
774 |
self rightArrowPlusMenu20x20Icon inspect |
|
775 |
ImageEditor openOnClass:self andSelector:#rightArrowPlusMenu20x20Icon |
|
776 |
Icon flushCachedIcons |
|
777 |
" |
|
778 |
||
779 |
<resource: #image> |
|
780 |
||
781 |
^Icon |
|
4414 | 782 |
constantNamed:#'AbstractFileBrowser class rightArrowPlusMenu20x20Icon' |
783 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 784 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@@@@@@@@@@@@@@@@CA@H@@@@@@@@@@@@@@@@@@@@@@@DE |
785 |
A H@@@@@@@@@@@@@@@@@@@@@@0\@A@H@@@@@@@@@@@DA@PDA@P AA0$@A H@@@@@@@@@@P\J@@@@@@(KC@(@A@H@@@@@@@@MB \NB ,ODADRD0(@A H@@@@@ |
|
786 |
@@4@AQPUD1DVE1\RC@,@A@H@@@@@CP(OE1\WE1HWE1HSFQDZ@ @@@@@AB <[D10[GQ8QG!!$QF H@@@@@@@DFF!!(ZF!!(WD!!8YDQ(B@@@@@@@@@PHB@ HB@ LQ |
|
787 |
FQDZ@ @@@@@@@@@@@@@@@@@@@QXQF H@@@@@@@@@@@@@@@@@@@@CAA(B@@@@@@@@@@@@@@@@@@@@@@DZ@ @@@ HB@ HB@ @@@@@@@@@@@0H@@@@@@ HB@ H@ |
|
788 |
@@@@@@@@@@@A@@@@@@@@@ HB@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@a') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 0 64 96 32 128 160 128 160 192 32 96 128 128 192 192 0 64 64 160 192 192 192 224 224 160 192 224 96 192 224 32 64 96 160 224 224 128 192 224 96 160 192 0 160 192 0 128 192 64 192 192 64 160 192 96 192 192 32 160 192 0 128 160 192 192 192 64 224 224 0 96 128 32 192 192 64 192 224 0 192 224 0 192 192]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@H@@@L@@@N@@@O@@@O @_?0@_?8@_?<@_?>@_?>@_?<@_?8@_?0@@O @@O@@@N_0@LO @HG@@@B@') ; yourself); yourself] |
|
789 |
! |
|
790 |
||
791 |
rightIcon |
|
792 |
"This resource specification was automatically generated |
|
793 |
by the ImageEditor of ST/X." |
|
794 |
||
795 |
"Do not manually edit this!! If it is corrupted, |
|
796 |
the ImageEditor may not be able to read the specification." |
|
797 |
||
798 |
" |
|
799 |
self rightIcon inspect |
|
800 |
ImageEditor openOnClass:self andSelector:#rightIcon |
|
801 |
" |
|
802 |
||
803 |
<resource: #image> |
|
804 |
||
805 |
^Icon |
|
4414 | 806 |
constantNamed:#'AbstractFileBrowser class rightIcon' |
807 |
ifAbsentPut:[(Depth2Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 808 |
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUTIUUUUUUUUB%UEUUUUUP*EP@@@@@@J)T@@@@@@B*%B******* |
809 |
*P********(J********B********P********PEUUUUUV*QEUUUUUP*PUUUUUUTJQUUUUUUUBQUUUUUUUPQUUUUUUUPAUUUUUUUTUUUUUUUUUUUUUUUUUUU |
|
810 |
UUUUUUUUUUUUUUUUUUUUUP@a') ; colorMapFromArray:#[255 255 255 0 0 0 50 50 100 255 0 0]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
811 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@8@@@@O@@@@C8A????@_???8G????A????0_???<G???>A????@@@@O @@@C0@@@@8@@@@L@@@@ |
|
812 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself] |
|
813 |
! |
|
814 |
||
815 |
searchIcon |
|
816 |
<resource: #programImage> |
|
817 |
||
4094 | 818 |
^ ToolbarIconLibrary search20x20Icon "/ search28x28Icon |
819 |
"/ ^ ToolbarIconLibrary search16x16Icon "/ search28x28Icon |
|
3892 | 820 |
! |
821 |
||
822 |
shellIcon |
|
823 |
<resource: #programImage> |
|
824 |
||
825 |
OperatingSystem isMSDOSlike ifTrue:[ |
|
4414 | 826 |
^ ToolbarIconLibrary dos20x20Icon |
3892 | 827 |
]. |
828 |
^ ToolbarIconLibrary shell20x20Icon |
|
829 |
! |
|
830 |
||
4094 | 831 |
shellWithoutTextIcon |
832 |
<resource: #programImage> |
|
833 |
||
834 |
OperatingSystem isMSDOSlike ifTrue:[ |
|
4414 | 835 |
^ ToolbarIconLibrary dosWithoutText20x20Icon |
4094 | 836 |
]. |
837 |
^ ToolbarIconLibrary shellWithoutText20x20Icon |
|
838 |
! |
|
839 |
||
3892 | 840 |
upArrow |
841 |
"This resource specification was automatically generated |
|
842 |
by the ImageEditor of ST/X." |
|
843 |
||
844 |
"Do not manually edit this!! If it is corrupted, |
|
845 |
the ImageEditor may not be able to read the specification." |
|
846 |
||
847 |
" |
|
848 |
self upArrow inspect |
|
849 |
ImageEditor openOnClass:self andSelector:#upArrow |
|
850 |
" |
|
851 |
||
852 |
<resource: #image> |
|
853 |
||
854 |
^Icon |
|
4414 | 855 |
constantNamed:#'AbstractFileBrowser class upArrow' |
856 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 857 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
858 |
@@@@@@@@@@@@@@@@@@@A@0PE@@@@@@@@@@@@@@@@@@@@@@@@@@DFA0 DAP@@@@@@@@@@@@@@@@@@@@@@@P$@A0(HA@T@@@@@@@@@@@@@@@@@@@@AB0@@C@4N |
|
859 |
C0PE@@@@@@@@@@@@@@@@@@DF@@@LB@ MD@<DAP@@@@@@@@@@@@@@@PLGDQHHD1LHE@8UA@H@@@@@@@@@@@@AE!!\XA@<SD1LHEPPYF DB@@@@@@@@@@D\@Q0A |
|
860 |
GA4OD1LJEPD\@Q0A@ @@@@@@@@@@@@@@@!!8^C1T_A@T@@@@@@@@@@@@@@@@@@@@@E @GHATRA@T@@@@@@@@@@@@@@@@@@@@@E @GDQT_A@T@@@@@@@@@@@@@ |
|
861 |
@@@@@@@@@P@!!H!!TJA@T@@@@@@@@@@@@@@@@@@@@@@P\#IATTA@T@@@@@@@@@@@@@@@@@@@@@@QXXFPPDF H@@@@@@@@@@@@@@@@@@@@@@ TEAPTE@ H@@@@@ |
|
862 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
863 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 96 128 160 0 96 128 0 0 32 128 160 192 192 224 224 0 160 192 128 128 160 32 192 192 128 160 160 96 192 224 0 192 224 32 192 224 32 160 192 64 224 224 160 192 224 64 192 192 0 128 192 0 192 192 0 128 160 32 64 96 64 96 128 32 96 128 0 64 128 0 64 96 192 192 192 0 32 96 32 128 192 128 192 224 64 192 224 128 192 192 160 224 224 96 192 192 96 160 192 64 160 192]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@F@@@O@@@_ @@?0@A?8@C?<@G?>@O??@_?? @?0@@?0@@?0@@?0@@?0@@?0@@?0@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself] |
|
864 |
! |
|
865 |
||
866 |
upArrow20x20Icon |
|
867 |
"This resource specification was automatically generated |
|
868 |
by the ImageEditor of ST/X." |
|
869 |
||
870 |
"Do not manually edit this!! If it is corrupted, |
|
871 |
the ImageEditor may not be able to read the specification." |
|
872 |
||
873 |
" |
|
874 |
self upArrow20x20Icon inspect |
|
875 |
ImageEditor openOnClass:self andSelector:#upArrow20x20Icon |
|
876 |
Icon flushCachedIcons |
|
877 |
" |
|
878 |
||
879 |
<resource: #image> |
|
880 |
||
881 |
^Icon |
|
4414 | 882 |
constantNamed:#'AbstractFileBrowser class upArrow20x20Icon' |
883 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
4093 | 884 |
@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ @@@ HB@ HB@ HB@ HB@ HB@ H@@ H@@ HB@ HB@ HB@ HB@ HB@@HA |
885 |
@PH@@ HB@ HB@ HB@ HB@ @B@PDA@PH@@ HB@ HB@ HB@ H@@ DA@PDA@PH@@ HB@ HB@ HB@@HA@PDA@PDA@PH@@ HB@ HB@ @B@PDA@PDA@PDA@PH@@ HB |
|
886 |
@ H@@ DA@PDA@PDA@PDA@PH@@ HB@@@@@@@@@ DA@PDB@@@@@@@@@ HB@ HB@ @B@PDA@PH@@ HB@ HB@ HB@ HB@@HA@PDA@ @B@ HB@ HB@ HB@ H@@ DA |
|
887 |
@PDB@@HB@ HB@ HB@ HB@ @B@PDA@PH@@ HB@ HB@ HB@ HB@@HA@PDA@ @B@ HB@ HB@ HB@ H@@ HB@ HB@@HB@ HB@ HB@ HB@ @@@@@@@@@@@ HB@ HB |
|
888 |
@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ HB@ @a') ; colorMapFromArray:#[0 0 0 100 128 255 128 128 128]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@J@@@@@F@@@O@@@_ O@?0@A?8@C?<@G?>@O??E_??(@?0@@?0@@?0N@?0A@?0@@?0@@?0K@@@A@@@@') ; yourself); yourself] |
|
4084 | 889 |
! |
890 |
||
891 |
upArrow20x20IconOld |
|
892 |
"This resource specification was automatically generated |
|
893 |
by the ImageEditor of ST/X." |
|
894 |
||
895 |
"Do not manually edit this!! If it is corrupted, |
|
896 |
the ImageEditor may not be able to read the specification." |
|
897 |
||
898 |
" |
|
899 |
self upArrow20x20IconOld inspect |
|
900 |
ImageEditor openOnClass:self andSelector:#upArrow20x20IconOld |
|
901 |
Icon flushCachedIcons |
|
902 |
" |
|
903 |
||
904 |
<resource: #image> |
|
905 |
||
906 |
^Icon |
|
4414 | 907 |
constantNamed:#'AbstractFileBrowser class upArrow20x20IconOld' |
908 |
ifAbsentPut:[(Depth8Image new) width: 20; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 909 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@DB@@@@@@@@@@@@@@@@@@@@@@@A@0PE@@@@@@@@@@@@@@@@@@@@@PXG |
910 |
B@PE@@@@@@@@@@@@@@@@@@DI@@\JB@PE@@@@@@@@@@@@@@@AB0@@C@4NC0PE@@@@@@@@@@@@@PX@@@0HB@4PC0PE@@@@@@@@@@DCA1DRBALSBAPNEPPB@@@@ |
|
911 |
@@@AE!!\XA@<SD1LHEPPYF DB@@@@@Q0AG@D\GP<SD0(U@Q0AG@DB@@@@@@@@@@H^G <UG0PE@@@@@@@@@@@@@@@@E @GHATRA@T@@@@@@@@@@@@@@@@V@@\Q |
|
912 |
EQ<DAP@@@@@@@@@@@@@@@@D@HRHUB PE@@@@@@@@@@@@@@@@@P\#IATTA@T@@@@@@@@@@@@@@@@AE!! YA@PZ@ @@@@@@@@@@@@@@@@HEAPTEAPHB@@@@@@@@ |
|
913 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 96 128 160 0 96 128 0 0 32 128 160 192 192 224 224 0 160 192 128 128 160 32 192 192 128 160 160 96 192 224 0 192 224 32 192 224 32 160 192 64 224 224 160 192 224 64 192 192 0 128 192 0 192 192 0 128 160 32 64 96 64 96 128 32 96 128 0 64 128 0 64 96 192 192 192 0 32 96 32 128 192 128 192 224 64 192 224 128 192 192 160 224 224 96 192 192 96 160 192 64 160 192]; mask:((Depth1Image new) width: 20; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@F@@@O@@@_ @@?0@A?8@C?<@G?>@O??@_?? @?0@@?0@@?0@@?0@@?0@@?0@@?0@@@@@@@@@') ; yourself); yourself] |
|
914 |
! |
|
915 |
||
4094 | 916 |
upArrowIcon |
917 |
^ self upArrow20x20Icon |
|
918 |
! |
|
919 |
||
3892 | 920 |
upArrowPlusMenu |
921 |
"This resource specification was automatically generated |
|
922 |
by the ImageEditor of ST/X." |
|
923 |
||
924 |
"Do not manually edit this!! If it is corrupted, |
|
925 |
the ImageEditor may not be able to read the specification." |
|
926 |
||
927 |
" |
|
928 |
self upArrowPlusMenu inspect |
|
929 |
ImageEditor openOnClass:self andSelector:#upArrowPlusMenu |
|
930 |
" |
|
931 |
||
932 |
<resource: #image> |
|
933 |
||
934 |
^Icon |
|
4414 | 935 |
constantNamed:#'AbstractFileBrowser class upArrowPlusMenu' |
936 |
ifAbsentPut:[(Depth8Image new) width: 24; height: 24; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
3892 | 937 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@PH@@@@@@@@@ |
938 |
@@@@@@@@@@@@@@@@@@@A@0PE@@@@@@@@@@@@@@@@@@@@@@@@@@DFA0 DAP@@@@@@@@@@@@@@@@@@@@@@@P$@A0(HA@T@@@@@@@@@@@@@@@@@@@@AB0@@C@4N |
|
939 |
C0PE@@@@@@@@@@@@@@@@@@DF@@@LB@ MD@<DAP@@@@@@@@@@@@@@@PLGDQHHD1LHE@8UA@H@@@@@@@@@@@@AE!!\XA@<SD1LHEPPYF DB@@@@@@@@@@D\@Q0A |
|
940 |
GA4OD1LJEPD\@Q0A@ @@@@@@@@@@@@@@@!!8^C1T_A@T@@@@@@@@@@@@@@@@@@@@@E @GHATRA@T@@@@@@@@@@@@@@@@@@@@@E @GDQT_A@T@@@@@@@@@@@@@ |
|
941 |
@@@@@@@@@P@!!H!!TJA@T@@@@@@@@@@@@@@@@@@@@@@P\#IATTA@T@@@@@@@@@@@@@@@@@@@@@@QXXFPPDF H@@@@@@@@@@@@@@@@@@@@@@ TEAPTE@ H@@@@@ |
|
942 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@ HB@ HB@@@@@@@@@@@@@@@@@@@@@@@@@ HB@ H@@@@@@@@@@@@@@@@@@@@@@@@@@@HB@ @@@@@@@@@@@@@@@@@@ |
|
943 |
@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[224 224 224 0 32 64 0 0 0 96 128 160 0 96 128 0 0 32 128 160 192 192 224 224 0 160 192 128 128 160 32 192 192 128 160 160 96 192 224 0 192 224 32 192 224 32 160 192 64 224 224 160 192 224 64 192 192 0 128 192 0 192 192 0 128 160 32 64 96 64 96 128 32 96 128 0 64 128 0 64 96 192 192 192 0 32 96 32 128 192 128 192 224 64 192 224 128 192 192 160 224 224 96 192 192 96 160 192 64 160 192]; mask:((Depth1Image new) width: 24; height: 24; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@F@@@O@@@_ @@?0@A?8@C?<@G?>@O??@_?? @?0@@?0@@?0@@?0@@?0@@?0@@?0@@@A?@@@>@@@\@@@H@@@@') ; yourself); yourself] |
|
944 |
! |
|
945 |
||
946 |
vt100Terminal |
|
947 |
<resource: #programImage> |
|
948 |
||
949 |
^ ToolbarIconLibrary shell20x20Icon |
|
950 |
! ! |
|
951 |
||
952 |
!AbstractFileBrowser class methodsFor:'menu specs'! |
|
953 |
||
954 |
baseBookmarksMenuSpec |
|
955 |
"This resource specification was automatically generated |
|
956 |
by the MenuEditor of ST/X." |
|
957 |
||
958 |
"Do not manually edit this!! If it is corrupted, |
|
959 |
the MenuEditor may not be able to read the specification." |
|
960 |
||
961 |
" |
|
962 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#baseBookmarksMenuSpec |
|
963 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser baseBookmarksMenuSpec)) startUp |
|
964 |
" |
|
965 |
||
966 |
<resource: #menu> |
|
967 |
||
968 |
^ |
|
969 |
#(#Menu |
|
4414 | 970 |
#( |
971 |
#(#MenuItem |
|
972 |
#label: 'Add Bookmark' |
|
973 |
#translateLabel: true |
|
974 |
#value: #addBookmark |
|
975 |
#enabled: #currentFilesHasDirectories |
|
976 |
) |
|
977 |
#(#MenuItem |
|
978 |
#label: 'Remove Bookmark' |
|
979 |
#translateLabel: true |
|
980 |
#value: #removeBookmark |
|
981 |
#enabled: #hasBookmarksToRemove |
|
982 |
) |
|
983 |
) |
|
984 |
nil |
|
985 |
nil |
|
3892 | 986 |
) |
987 |
! |
|
988 |
||
4110 | 989 |
browserMenu |
990 |
"This resource specification was automatically generated |
|
991 |
by the MenuEditor of ST/X." |
|
992 |
||
993 |
"Do not manually edit this!! If it is corrupted, |
|
994 |
the MenuEditor may not be able to read the specification." |
|
995 |
||
996 |
" |
|
997 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#browserMenu |
|
998 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser browserMenu)) startUp |
|
999 |
" |
|
1000 |
||
1001 |
<resource: #menu> |
|
1002 |
||
1003 |
^ |
|
1004 |
#(#Menu |
|
4201 | 1005 |
#( |
1006 |
#(#MenuItem |
|
1007 |
#label: 'Spawn' |
|
1008 |
#itemValue: #doSpawn |
|
1009 |
#translateLabel: true |
|
1010 |
) |
|
1011 |
#(#MenuItem |
|
4317
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
1012 |
#label: 'Settings...' |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
1013 |
#itemValue: #doOpenSettings |
4201 | 1014 |
#translateLabel: true |
1015 |
) |
|
1016 |
#(#MenuItem |
|
1017 |
#label: '-' |
|
1018 |
) |
|
1019 |
#(#MenuItem |
|
4392 | 1020 |
#label: 'New Text Editor' |
1021 |
#itemValue: #newTextEditor |
|
1022 |
#translateLabel: true |
|
1023 |
) |
|
1024 |
#(#MenuItem |
|
4201 | 1025 |
#label: 'Search Files' |
1026 |
#itemValue: #doOpenSearchFile |
|
1027 |
#translateLabel: true |
|
1028 |
) |
|
1029 |
#(#MenuItem |
|
1030 |
#label: 'Shell Terminal' |
|
1031 |
#itemValue: #doAddTerminal |
|
1032 |
#translateLabel: true |
|
1033 |
) |
|
1034 |
#(#MenuItem |
|
1035 |
#label: '-' |
|
1036 |
) |
|
1037 |
#(#MenuItem |
|
1038 |
#label: 'Exit' |
|
1039 |
#itemValue: #closeRequest |
|
1040 |
#translateLabel: true |
|
1041 |
) |
|
1042 |
) |
|
1043 |
nil |
|
1044 |
nil |
|
4110 | 1045 |
) |
1046 |
! |
|
1047 |
||
4107 | 1048 |
cvsMenu |
1049 |
"This resource specification was automatically generated |
|
1050 |
by the MenuEditor of ST/X." |
|
1051 |
||
1052 |
"Do not manually edit this!! If it is corrupted, |
|
1053 |
the MenuEditor may not be able to read the specification." |
|
1054 |
||
1055 |
" |
|
1056 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#cvsMenu |
|
1057 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser cvsMenu)) startUp |
|
1058 |
" |
|
1059 |
||
1060 |
<resource: #menu> |
|
1061 |
||
1062 |
^ |
|
1063 |
#(#Menu |
|
4414 | 1064 |
#( |
1065 |
#(#MenuItem |
|
1066 |
#enabled: #hasSelection |
|
1067 |
#label: 'Update selected Files/Directories' |
|
1068 |
#itemValue: #cvsUpdateSelection |
|
1069 |
#translateLabel: true |
|
1070 |
) |
|
1071 |
#(#MenuItem |
|
1072 |
#label: 'Update Directory Local' |
|
1073 |
#itemValue: #cvsUpdateAll |
|
1074 |
#translateLabel: true |
|
1075 |
) |
|
1076 |
#(#MenuItem |
|
1077 |
#label: 'Update Directory Recursive' |
|
1078 |
#itemValue: #cvsUpdateAllRecursive |
|
1079 |
#translateLabel: true |
|
1080 |
) |
|
1081 |
#(#MenuItem |
|
1082 |
#label: '-' |
|
1083 |
) |
|
1084 |
#(#MenuItem |
|
1085 |
#label: 'Commit...' |
|
1086 |
#itemValue: #cvsCommit |
|
1087 |
#translateLabel: true |
|
1088 |
) |
|
1089 |
#(#MenuItem |
|
1090 |
#enabled: #canCvsAddAndCommit |
|
1091 |
#label: 'Add && Commit...' |
|
1092 |
#itemValue: #cvsAddAndCommit |
|
1093 |
#translateLabel: true |
|
1094 |
) |
|
1095 |
#(#MenuItem |
|
1096 |
#label: '-' |
|
1097 |
) |
|
1098 |
#(#MenuItem |
|
1099 |
#enabled: #canRemoveCVSContainer |
|
1100 |
#label: 'Remove File && CVS Container...' |
|
1101 |
#itemValue: #cvsRemoveFileAndCVSContainer |
|
1102 |
#translateLabel: true |
|
1103 |
) |
|
1104 |
) |
|
1105 |
nil |
|
1106 |
nil |
|
4107 | 1107 |
) |
1108 |
! |
|
1109 |
||
3892 | 1110 |
directoryMenu |
1111 |
"This resource specification was automatically generated |
|
1112 |
by the MenuEditor of ST/X." |
|
1113 |
||
1114 |
"Do not manually edit this!! If it is corrupted, |
|
1115 |
the MenuEditor may not be able to read the specification." |
|
1116 |
||
1117 |
" |
|
1118 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#directoryMenu |
|
1119 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser directoryMenu)) startUp |
|
1120 |
" |
|
1121 |
||
1122 |
<resource: #menu> |
|
1123 |
||
1124 |
^ |
|
1125 |
#(#Menu |
|
4414 | 1126 |
#( |
1127 |
#(#MenuItem |
|
1128 |
#label: 'Up' |
|
1129 |
#translateLabel: true |
|
1130 |
#value: #doGoDirectoryUp |
|
1131 |
) |
|
1132 |
#(#MenuItem |
|
1133 |
#label: '-' |
|
1134 |
) |
|
1135 |
#(#MenuItem |
|
1136 |
#label: 'Back' |
|
1137 |
#translateLabel: true |
|
1138 |
#value: #doBack |
|
1139 |
#activeHelpKey: #directoryBack |
|
1140 |
#enabled: #enableBack |
|
1141 |
) |
|
1142 |
#(#MenuItem |
|
1143 |
#label: 'Forward' |
|
1144 |
#translateLabel: true |
|
1145 |
#value: #doForward |
|
1146 |
#activeHelpKey: #directoryBack |
|
1147 |
#enabled: #enableForward |
|
1148 |
) |
|
1149 |
#(#MenuItem |
|
1150 |
#label: '-' |
|
1151 |
) |
|
1152 |
#(#MenuItem |
|
1153 |
#label: 'Default' |
|
1154 |
#translateLabel: true |
|
1155 |
#value: #doGotoDefaultDirectory |
|
1156 |
) |
|
1157 |
#(#MenuItem |
|
1158 |
#label: 'Home' |
|
1159 |
#translateLabel: true |
|
1160 |
#value: #doGotoHomeDirectory |
|
1161 |
) |
|
1162 |
#(#MenuItem |
|
1163 |
#label: 'Visited Directories' |
|
1164 |
#translateLabel: true |
|
1165 |
#submenuChannel: #visitedDirectoriesMenu |
|
1166 |
) |
|
1167 |
#(#MenuItem |
|
1168 |
#label: 'Bookmarks' |
|
1169 |
#translateLabel: true |
|
1170 |
#submenuChannel: #bookmarksMenuSpec |
|
1171 |
) |
|
1172 |
) |
|
1173 |
nil |
|
1174 |
nil |
|
3892 | 1175 |
) |
1176 |
! |
|
1177 |
||
1178 |
editMenu |
|
1179 |
"This resource specification was automatically generated |
|
1180 |
by the MenuEditor of ST/X." |
|
1181 |
||
1182 |
"Do not manually edit this!! If it is corrupted, |
|
1183 |
the MenuEditor may not be able to read the specification." |
|
1184 |
||
1185 |
" |
|
1186 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#editMenu |
|
1187 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser editMenu)) startUp |
|
1188 |
" |
|
1189 |
||
1190 |
<resource: #menu> |
|
1191 |
||
1192 |
^ |
|
1193 |
#(#Menu |
|
4414 | 1194 |
#( |
1195 |
#(#MenuItem |
|
1196 |
#label: 'Copy' |
|
1197 |
#translateLabel: true |
|
4453
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
1198 |
#value: #copyFiles |
4414 | 1199 |
#enabled: #hasSelection |
1200 |
) |
|
1201 |
#(#MenuItem |
|
1202 |
#label: 'Cut' |
|
1203 |
#translateLabel: true |
|
4453
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
1204 |
#value: #cutFiles |
4414 | 1205 |
#enabled: #hasSelection |
1206 |
) |
|
1207 |
#(#MenuItem |
|
1208 |
#label: 'Paste' |
|
1209 |
#translateLabel: true |
|
1210 |
#value: #pasteFiles |
|
1211 |
#enabled: #canPaste |
|
1212 |
) |
|
1213 |
#(#MenuItem |
|
1214 |
#label: 'Delete' |
|
1215 |
#translateLabel: true |
|
4453
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
1216 |
#value: #deleteFiles |
4414 | 1217 |
#enabled: #hasSelection |
1218 |
) |
|
1219 |
#(#MenuItem |
|
1220 |
#label: '-' |
|
1221 |
) |
|
1222 |
#(#MenuItem |
|
1223 |
#label: 'Copy All Filenames' |
|
1224 |
#translateLabel: true |
|
1225 |
#value: #copyFileList |
|
1226 |
#enabled: #fileListIsNotEmpty |
|
1227 |
) |
|
1228 |
#(#MenuItem |
|
1229 |
#label: 'Copy Selected Filenames' |
|
1230 |
#translateLabel: true |
|
1231 |
#value: #copySelectedFilenames |
|
1232 |
#enabled: #hasSelection |
|
1233 |
) |
|
1234 |
) |
|
1235 |
nil |
|
1236 |
nil |
|
3892 | 1237 |
) |
1238 |
! |
|
1239 |
||
1240 |
fileMenu |
|
1241 |
"This resource specification was automatically generated |
|
1242 |
by the MenuEditor of ST/X." |
|
1243 |
||
1244 |
"Do not manually edit this!! If it is corrupted, |
|
1245 |
the MenuEditor may not be able to read the specification." |
|
1246 |
||
1247 |
" |
|
1248 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#fileMenu |
|
1249 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser fileMenu)) startUp |
|
1250 |
" |
|
1251 |
||
1252 |
<resource: #menu> |
|
1253 |
||
1254 |
^ |
|
1255 |
#(#Menu |
|
4414 | 1256 |
#( |
1257 |
#(#MenuItem |
|
1258 |
#label: 'New' |
|
1259 |
#translateLabel: true |
|
1260 |
#submenuChannel: #newMenu |
|
1261 |
) |
|
1262 |
#(#MenuItem |
|
1263 |
#label: 'Rename' |
|
1264 |
#translateLabel: true |
|
1265 |
#value: #renameSelection |
|
1266 |
#enabled: #hasSelection |
|
1267 |
#shortcutKeyCharacter: #Replace |
|
1268 |
) |
|
1269 |
#(#MenuItem |
|
1270 |
#label: '-' |
|
1271 |
) |
|
1272 |
#(#MenuItem |
|
1273 |
#label: 'Open in Text Editor' |
|
1274 |
#translateLabel: true |
|
1275 |
#value: #doShowFileContents |
|
1276 |
) |
|
1277 |
#(#MenuItem |
|
1278 |
#label: 'Properties...' |
|
1279 |
#translateLabel: true |
|
1280 |
#value: #doShowProperties |
|
1281 |
#enabled: #hasSelection |
|
1282 |
) |
|
1283 |
#(#MenuItem |
|
1284 |
#label: '-' |
|
1285 |
#isVisible: #javaSupportLoaded |
|
1286 |
) |
|
1287 |
#(#MenuItem |
|
1288 |
#label: 'File in' |
|
1289 |
#translateLabel: true |
|
1290 |
#value: #fileFileIn |
|
1291 |
#enabled: #hasSelection |
|
1292 |
) |
|
1293 |
#(#MenuItem |
|
1294 |
#label: 'File in to Namespace...' |
|
1295 |
#translateLabel: true |
|
1296 |
#value: #fileFileInToNameSpace |
|
1297 |
#enabled: #hasSelection |
|
1298 |
) |
|
1299 |
#(#MenuItem |
|
1300 |
#label: '-' |
|
1301 |
#isVisible: #javaSupportLoaded |
|
1302 |
) |
|
1303 |
#(#MenuItem |
|
1304 |
#label: 'Add to Java Class Path' |
|
1305 |
#translateLabel: true |
|
1306 |
#isVisible: #javaSupportLoaded |
|
1307 |
#enabled: #canAddToClassPath |
|
1308 |
) |
|
1309 |
#(#MenuItem |
|
1310 |
#label: 'Remove from Java Class Path' |
|
1311 |
#translateLabel: true |
|
1312 |
#isVisible: #javaSupportLoaded |
|
1313 |
#enabled: #canRemoveFromClassPath |
|
1314 |
) |
|
1315 |
#(#MenuItem |
|
1316 |
#label: 'Add to Java Source Path' |
|
1317 |
#translateLabel: true |
|
1318 |
#isVisible: #javaSupportLoaded |
|
1319 |
#enabled: #canAddToSourcePath |
|
1320 |
) |
|
1321 |
#(#MenuItem |
|
1322 |
#label: 'Remove from Java Source Path' |
|
1323 |
#translateLabel: true |
|
1324 |
#isVisible: #javaSupportLoaded |
|
1325 |
#enabled: #canRemoveFromSourcePath |
|
1326 |
) |
|
1327 |
) |
|
1328 |
nil |
|
1329 |
nil |
|
3892 | 1330 |
) |
1331 |
! |
|
1332 |
||
1333 |
newMenu |
|
1334 |
"This resource specification was automatically generated |
|
1335 |
by the MenuEditor of ST/X." |
|
1336 |
||
1337 |
"Do not manually edit this!! If it is corrupted, |
|
1338 |
the MenuEditor may not be able to read the specification." |
|
1339 |
||
1340 |
" |
|
1341 |
MenuEditor new openOnClass:DirectoryTreeBrowser andSelector:#newMenu |
|
1342 |
(Menu new fromLiteralArrayEncoding:(DirectoryTreeBrowser newMenu)) startUp |
|
1343 |
" |
|
1344 |
||
1345 |
<resource: #menu> |
|
1346 |
||
1347 |
^ |
|
1348 |
#(#Menu |
|
4414 | 1349 |
#( |
1350 |
#(#MenuItem |
|
1351 |
#label: 'Directory...' |
|
1352 |
#translateLabel: true |
|
1353 |
#value: #newDirectory |
|
1354 |
) |
|
1355 |
#(#MenuItem |
|
1356 |
#label: 'File...' |
|
1357 |
#translateLabel: true |
|
1358 |
#value: #newFile |
|
1359 |
) |
|
1360 |
#(#MenuItem |
|
1361 |
#label: 'Hard Link...' |
|
1362 |
#translateLabel: true |
|
1363 |
#isVisible: #systemIsUnix |
|
1364 |
#value: #newHardLink |
|
1365 |
) |
|
1366 |
#(#MenuItem |
|
1367 |
#label: 'Symbolic Link...' |
|
1368 |
#translateLabel: true |
|
1369 |
#isVisible: #systemIsUnix |
|
1370 |
#value: #newSoftLink |
|
1371 |
) |
|
1372 |
) |
|
1373 |
nil |
|
1374 |
nil |
|
3892 | 1375 |
) |
3906 | 1376 |
! |
1377 |
||
4201 | 1378 |
showMenuSpec |
1379 |
"This resource specification was automatically generated |
|
1380 |
by the MenuEditor of ST/X." |
|
1381 |
||
1382 |
"Do not manually edit this!! If it is corrupted, |
|
1383 |
the MenuEditor may not be able to read the specification." |
|
1384 |
||
1385 |
" |
|
1386 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#showMenuSpec |
|
1387 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser showMenuSpec)) startUp |
|
1388 |
" |
|
1389 |
||
1390 |
<resource: #menu> |
|
1391 |
||
1392 |
^ |
|
1393 |
#(#Menu |
|
1394 |
#( |
|
1395 |
#(#MenuItem |
|
1396 |
#label: 'Hidden Files' |
|
1397 |
#translateLabel: true |
|
1398 |
#indication: #showHiddenFiles |
|
1399 |
) |
|
1400 |
#(#MenuItem |
|
1401 |
#label: '-' |
|
1402 |
) |
|
1403 |
#(#MenuItem |
|
1404 |
#label: 'Directory Tree' |
|
1405 |
#translateLabel: true |
|
1406 |
#indication: #showDirectoryTree |
|
1407 |
) |
|
1408 |
#(#MenuItem |
|
1409 |
#label: 'Regular Files in TreeView (Left)' |
|
1410 |
#translateLabel: true |
|
1411 |
#indication: #viewFilesInDirectoryTree |
|
1412 |
) |
|
1413 |
#(#MenuItem |
|
1414 |
#label: 'Directories in ContentsView (Right)' |
|
1415 |
#translateLabel: true |
|
1416 |
#indication: #viewDirsInContentsBrowser |
|
1417 |
) |
|
1418 |
#(#MenuItem |
|
1419 |
#enabled: #enableViewNoteBookApplication |
|
1420 |
#label: 'File Applications' |
|
1421 |
#translateLabel: true |
|
1422 |
#indication: #viewNoteBookApplicationHolder |
|
1423 |
) |
|
1424 |
) |
|
1425 |
nil |
|
1426 |
nil |
|
1427 |
) |
|
1428 |
! |
|
1429 |
||
3906 | 1430 |
sortMenu |
1431 |
"This resource specification was automatically generated |
|
1432 |
by the MenuEditor of ST/X." |
|
1433 |
||
1434 |
"Do not manually edit this!! If it is corrupted, |
|
1435 |
the MenuEditor may not be able to read the specification." |
|
1436 |
||
1437 |
" |
|
3907 | 1438 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#sortMenu |
1439 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser sortMenu)) startUp |
|
3906 | 1440 |
" |
1441 |
||
1442 |
<resource: #menu> |
|
1443 |
||
1444 |
^ |
|
1445 |
#(#Menu |
|
4414 | 1446 |
#( |
1447 |
#(#MenuItem |
|
1448 |
#label: 'By Filename' |
|
1449 |
#translateLabel: true |
|
1450 |
#hideMenuOnActivated: false |
|
1451 |
#choice: #sortBlockProperty |
|
1452 |
#choiceValue: #baseName |
|
1453 |
) |
|
1454 |
#(#MenuItem |
|
1455 |
#label: 'By Type' |
|
1456 |
#translateLabel: true |
|
1457 |
#hideMenuOnActivated: false |
|
1458 |
#choice: #sortBlockProperty |
|
1459 |
#choiceValue: #suffix |
|
1460 |
) |
|
1461 |
#(#MenuItem |
|
1462 |
#label: 'By Permissions' |
|
1463 |
#translateLabel: true |
|
1464 |
#hideMenuOnActivated: false |
|
1465 |
#choice: #sortBlockProperty |
|
1466 |
#choiceValue: #permissions |
|
1467 |
) |
|
1468 |
#(#MenuItem |
|
1469 |
#label: 'By Owner' |
|
1470 |
#translateLabel: true |
|
1471 |
#isVisible: #viewOwner |
|
1472 |
#hideMenuOnActivated: false |
|
1473 |
#choice: #sortBlockProperty |
|
1474 |
#choiceValue: #owner |
|
1475 |
) |
|
1476 |
#(#MenuItem |
|
1477 |
#label: 'By Group' |
|
1478 |
#translateLabel: true |
|
1479 |
#isVisible: #viewOwner |
|
1480 |
#hideMenuOnActivated: false |
|
1481 |
#choice: #sortBlockProperty |
|
1482 |
#choiceValue: #group |
|
1483 |
) |
|
1484 |
#(#MenuItem |
|
1485 |
#label: 'By Size' |
|
1486 |
#translateLabel: true |
|
1487 |
#hideMenuOnActivated: false |
|
1488 |
#choice: #sortBlockProperty |
|
1489 |
#choiceValue: #fileSize |
|
1490 |
) |
|
1491 |
#(#MenuItem |
|
1492 |
#label: 'By Date && Time' |
|
1493 |
#translateLabel: true |
|
1494 |
#hideMenuOnActivated: false |
|
1495 |
#choice: #sortBlockProperty |
|
1496 |
#choiceValue: #modificationTime |
|
1497 |
) |
|
1498 |
#(#MenuItem |
|
1499 |
#label: '-' |
|
1500 |
) |
|
1501 |
#(#MenuItem |
|
1502 |
#label: 'Ignore Case in Sort' |
|
1503 |
#translateLabel: true |
|
1504 |
#hideMenuOnActivated: false |
|
1505 |
#indication: #sortCaseless |
|
1506 |
) |
|
1507 |
#(#MenuItem |
|
1508 |
#label: 'Directories before Files' |
|
1509 |
#translateLabel: true |
|
1510 |
#hideMenuOnActivated: false |
|
1511 |
#indication: #sortDirectoriesBeforeFiles |
|
1512 |
) |
|
1513 |
) |
|
1514 |
nil |
|
1515 |
nil |
|
3906 | 1516 |
) |
4018 | 1517 |
! |
1518 |
||
4164
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1519 |
toolsMenuSpec |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1520 |
"This resource specification was automatically generated |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1521 |
by the MenuEditor of ST/X." |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1522 |
|
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1523 |
"Do not manually edit this!! If it is corrupted, |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1524 |
the MenuEditor may not be able to read the specification." |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1525 |
|
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1526 |
" |
4367 | 1527 |
MenuEditor new openOnClass:AbstractFileBrowser andSelector:#toolsMenuSpec |
1528 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser toolsMenuSpec)) startUp |
|
4164
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1529 |
" |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1530 |
|
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1531 |
<resource: #menu> |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1532 |
|
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1533 |
^ |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1534 |
#(#Menu |
4230 | 1535 |
#( |
1536 |
#(#MenuItem |
|
1537 |
#label: 'Execute Command...' |
|
4367 | 1538 |
#itemValue: #doExecuteCommand |
4230 | 1539 |
#translateLabel: true |
1540 |
) |
|
1541 |
#(#MenuItem |
|
4367 | 1542 |
#enabled: #canDoTerminal |
4230 | 1543 |
#label: 'Shell Terminal' |
4367 | 1544 |
#itemValue: #openTerminal |
4230 | 1545 |
#translateLabel: true |
1546 |
#isVisible: #canDoTerminalAndSystemIsUnix |
|
1547 |
) |
|
1548 |
#(#MenuItem |
|
4367 | 1549 |
#enabled: #canDoTerminal |
4230 | 1550 |
#label: 'DOS Terminal' |
4367 | 1551 |
#itemValue: #openTerminal |
4230 | 1552 |
#translateLabel: true |
1553 |
#isVisible: #canDoTerminalAndSystemIsDOS |
|
1554 |
) |
|
1555 |
#(#MenuItem |
|
1556 |
#label: '-' |
|
1557 |
) |
|
1558 |
#(#MenuItem |
|
4367 | 1559 |
#enabled: #hasSelection |
4230 | 1560 |
#label: 'Changes Browser' |
4367 | 1561 |
#itemValue: #openChangesBrowser |
4230 | 1562 |
#translateLabel: true |
1563 |
) |
|
1564 |
#(#MenuItem |
|
4367 | 1565 |
#enabled: #hasSelection |
4230 | 1566 |
#label: 'ChangeSet Browser' |
4367 | 1567 |
#itemValue: #openChangeSetBrowser |
4230 | 1568 |
#translateLabel: true |
1569 |
) |
|
1570 |
#(#MenuItem |
|
4367 | 1571 |
#enabled: #hasSnapshotSelection |
4230 | 1572 |
#label: 'Snapshot Image Browser' |
4367 | 1573 |
#itemValue: #openSnapshotImageBrowser |
4230 | 1574 |
#translateLabel: true |
1575 |
) |
|
1576 |
#(#MenuItem |
|
4367 | 1577 |
#enabled: #canCreateNewProject |
4230 | 1578 |
#label: 'Create Smalltalk Project' |
4367 | 1579 |
#itemValue: #createProjectAndOpenProjectBrowser |
4230 | 1580 |
#translateLabel: true |
1581 |
) |
|
1582 |
#(#MenuItem |
|
4367 | 1583 |
#enabled: #canReadAbbrevFile |
4230 | 1584 |
#label: 'Install Autoloaded' |
4367 | 1585 |
#itemValue: #readAbbrevFile |
4230 | 1586 |
#translateLabel: true |
1587 |
) |
|
1588 |
#(#MenuItem |
|
4367 | 1589 |
#enabled: #anySTFilesPresent |
4230 | 1590 |
#label: 'Install all as Autoloaded' |
4367 | 1591 |
#itemValue: #installAllAsAutoloaded |
4230 | 1592 |
#translateLabel: true |
1593 |
) |
|
1594 |
#(#MenuItem |
|
4367 | 1595 |
#enabled: #hasSelection |
4230 | 1596 |
#label: 'Editor' |
4367 | 1597 |
#itemValue: #openEditor |
4230 | 1598 |
#translateLabel: true |
4367 | 1599 |
) |
1600 |
#(#MenuItem |
|
4230 | 1601 |
#enabled: #hasSelection |
4367 | 1602 |
#label: 'HTML Reader' |
1603 |
#itemValue: #openHTMLReader |
|
1604 |
#translateLabel: true |
|
4230 | 1605 |
) |
1606 |
#(#MenuItem |
|
4367 | 1607 |
#enabled: #hasASN1AndSelection |
4230 | 1608 |
#label: 'ASN1 Browser' |
4367 | 1609 |
#itemValue: #openASN1Browser |
4230 | 1610 |
#translateLabel: true |
1611 |
#isVisible: #hasASN1 |
|
1612 |
) |
|
1613 |
#(#MenuItem |
|
4367 | 1614 |
#enabled: #hasCBrowser |
4230 | 1615 |
#label: 'C Browser' |
4367 | 1616 |
#itemValue: #openCBrowser |
4230 | 1617 |
#translateLabel: true |
1618 |
#isVisible: #hasCBrowser |
|
1619 |
) |
|
1620 |
#(#MenuItem |
|
4367 | 1621 |
#enabled: #hasJavaAndSelection |
4230 | 1622 |
#label: 'Applet Viewer' |
4367 | 1623 |
#itemValue: #openAppletViewer |
4230 | 1624 |
#translateLabel: true |
1625 |
#isVisible: #hasJava |
|
1626 |
) |
|
1627 |
#(#MenuItem |
|
4367 | 1628 |
#enabled: #hasSelection |
1629 |
#label: 'STX Image Inspector' |
|
1630 |
#itemValue: #openImageInspector |
|
4230 | 1631 |
#translateLabel: true |
1632 |
) |
|
1633 |
#(#MenuItem |
|
4367 | 1634 |
#label: 'Image' |
4230 | 1635 |
#translateLabel: true |
4367 | 1636 |
#submenu: |
1637 |
#(#Menu |
|
1638 |
#( |
|
1639 |
#(#MenuItem |
|
1640 |
#enabled: #hasSelection |
|
1641 |
#label: 'Image Editor' |
|
1642 |
#itemValue: #openImageEditor |
|
1643 |
#translateLabel: true |
|
1644 |
) |
|
1645 |
#(#MenuItem |
|
1646 |
#enabled: #hasSelection |
|
1647 |
#label: 'Image Preview' |
|
1648 |
#itemValue: #openImagePreview |
|
1649 |
#translateLabel: true |
|
1650 |
) |
|
1651 |
#(#MenuItem |
|
1652 |
#label: '-' |
|
1653 |
) |
|
1654 |
#(#MenuItem |
|
1655 |
#enabled: #hasSelection |
|
1656 |
#label: 'Convert to GIF' |
|
1657 |
#itemValue: #convertImageToGIF |
|
1658 |
#translateLabel: true |
|
1659 |
) |
|
1660 |
) |
|
1661 |
nil |
|
1662 |
nil |
|
1663 |
) |
|
4230 | 1664 |
) |
1665 |
#(#MenuItem |
|
4367 | 1666 |
#enabled: #hasMP3PlayerAndSelection |
4230 | 1667 |
#label: 'MP3 Player' |
4367 | 1668 |
#itemValue: #openMP3Player |
4230 | 1669 |
#translateLabel: true |
1670 |
#isVisible: #hasMP3Player |
|
1671 |
) |
|
1672 |
#(#MenuItem |
|
4367 | 1673 |
#enabled: #hasZipFileSelected |
4230 | 1674 |
#label: 'ZipFile Tool' |
4367 | 1675 |
#itemValue: #openZipTool |
4230 | 1676 |
#translateLabel: true |
1677 |
) |
|
1678 |
#(#MenuItem |
|
4367 | 1679 |
#enabled: #currentFilesAreInSameDirectory |
4230 | 1680 |
#label: 'Slide Show' |
4367 | 1681 |
#itemValue: #openSlideShow |
4230 | 1682 |
#translateLabel: true |
1683 |
#isVisible: #hasSlideShow |
|
1684 |
) |
|
1685 |
#(#MenuItem |
|
4367 | 1686 |
#label: 'Find' |
4230 | 1687 |
#translateLabel: true |
4367 | 1688 |
#submenu: |
1689 |
#(#Menu |
|
1690 |
#( |
|
1691 |
#(#MenuItem |
|
1692 |
#label: 'Find a File...' |
|
1693 |
#itemValue: #fileFindFile |
|
1694 |
#translateLabel: true |
|
1695 |
) |
|
1696 |
#(#MenuItem |
|
1697 |
#enabled: #hasSelection |
|
1698 |
#label: 'Find All Duplicate Files (Recursive)' |
|
1699 |
#itemValue: #fileFindAllDuplicates |
|
1700 |
#translateLabel: true |
|
1701 |
) |
|
1702 |
#(#MenuItem |
|
1703 |
#label: 'Find Duplicate Files' |
|
1704 |
#itemValue: #fileFindDuplicates |
|
1705 |
#translateLabel: true |
|
1706 |
) |
|
1707 |
) |
|
1708 |
nil |
|
1709 |
nil |
|
1710 |
) |
|
4230 | 1711 |
) |
1712 |
#(#MenuItem |
|
4367 | 1713 |
#enabled: #hasSelection |
1714 |
#label: 'File Differences...' |
|
1715 |
#itemValue: #openDiffView |
|
4230 | 1716 |
#translateLabel: true |
1717 |
) |
|
1718 |
#(#MenuItem |
|
4367 | 1719 |
#enabled: #hasSelection |
1720 |
#label: 'Hex Dump' |
|
1721 |
#itemValue: #fileHexDump |
|
4230 | 1722 |
#translateLabel: true |
1723 |
) |
|
1724 |
) |
|
1725 |
nil |
|
1726 |
nil |
|
4164
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1727 |
) |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1728 |
! |
81154143d447
move toolsMenuSpec from FileBrowserV2 to AbstractFileBrowser
penk
parents:
4163
diff
changeset
|
1729 |
|
4018 | 1730 |
viewDetailsMenuSpec |
1731 |
"This resource specification was automatically generated |
|
1732 |
by the MenuEditor of ST/X." |
|
1733 |
||
1734 |
"Do not manually edit this!! If it is corrupted, |
|
1735 |
the MenuEditor may not be able to read the specification." |
|
1736 |
||
1737 |
" |
|
1738 |
MenuEditor new openOnClass:DirectoryContentsBrowser andSelector:#viewBrowserMenu |
|
1739 |
(Menu new fromLiteralArrayEncoding:(DirectoryContentsBrowser viewBrowserMenu)) startUp |
|
1740 |
" |
|
1741 |
||
1742 |
<resource: #menu> |
|
1743 |
||
1744 |
^ |
|
1745 |
#(#Menu |
|
4414 | 1746 |
#( |
1747 |
#(#MenuItem |
|
1748 |
#label: 'Suffix' |
|
1749 |
#translateLabel: true |
|
1750 |
#hideMenuOnActivated: false |
|
1751 |
#enabled: #viewDetails |
|
1752 |
#indication: #viewType |
|
1753 |
) |
|
1754 |
#(#MenuItem |
|
1755 |
#label: 'Permissions' |
|
1756 |
#translateLabel: true |
|
1757 |
#hideMenuOnActivated: false |
|
1758 |
#enabled: #viewDetails |
|
1759 |
#indication: #viewPermissions |
|
1760 |
) |
|
1761 |
#(#MenuItem |
|
1762 |
#label: 'Owner' |
|
1763 |
#translateLabel: true |
|
1764 |
#hideMenuOnActivated: false |
|
1765 |
#enabled: #viewDetails |
|
1766 |
#indication: #viewOwner |
|
1767 |
) |
|
1768 |
#(#MenuItem |
|
1769 |
#label: 'Group' |
|
1770 |
#translateLabel: true |
|
1771 |
#hideMenuOnActivated: false |
|
1772 |
#enabled: #viewDetails |
|
1773 |
#indication: #viewGroup |
|
1774 |
) |
|
1775 |
#(#MenuItem |
|
1776 |
#label: 'Size' |
|
1777 |
#translateLabel: true |
|
1778 |
#hideMenuOnActivated: false |
|
1779 |
#enabled: #viewDetails |
|
1780 |
#indication: #viewSize |
|
1781 |
) |
|
1782 |
#(#MenuItem |
|
1783 |
#label: 'Date && Time' |
|
1784 |
#translateLabel: true |
|
1785 |
#hideMenuOnActivated: false |
|
1786 |
#enabled: #viewDetails |
|
1787 |
#indication: #viewTime |
|
1788 |
) |
|
1789 |
#(#MenuItem |
|
1790 |
#label: 'File Info' |
|
1791 |
#translateLabel: true |
|
1792 |
#hideMenuOnActivated: false |
|
1793 |
#enabled: #viewDetails |
|
1794 |
#indication: #viewDescription |
|
1795 |
) |
|
1796 |
#(#MenuItem |
|
1797 |
#label: 'Preview' |
|
1798 |
#translateLabel: true |
|
1799 |
#hideMenuOnActivated: false |
|
1800 |
#enabled: #viewDetails |
|
1801 |
#indication: #viewPreview |
|
1802 |
) |
|
1803 |
#(#MenuItem |
|
1804 |
#label: '-' |
|
1805 |
) |
|
1806 |
#(#MenuItem |
|
1807 |
#label: 'Hidden Files' |
|
1808 |
#translateLabel: true |
|
1809 |
#indication: #showHiddenFiles |
|
1810 |
) |
|
1811 |
) |
|
1812 |
nil |
|
1813 |
nil |
|
4018 | 1814 |
) |
3892 | 1815 |
! ! |
1816 |
||
1817 |
!AbstractFileBrowser class methodsFor:'misc'! |
|
1818 |
||
1819 |
newLock |
|
1820 |
^ CodeExecutionLock new |
|
1821 |
! ! |
|
1822 |
||
1823 |
!AbstractFileBrowser methodsFor:'actions'! |
|
1824 |
||
1825 |
askForCommandFor:fileName thenDo:aBlock |
|
1826 |
"setup and launch a querybox to ask for unix command. |
|
1827 |
Then evaluate aBlock passing the command-string as argument." |
|
1828 |
||
1829 |
|box osName| |
|
1830 |
||
1831 |
osName := OperatingSystem platformName. |
|
1832 |
||
1833 |
box := FilenameEnterBox |
|
4414 | 1834 |
title:(resources string:'Execute %1 command:' with:osName) |
1835 |
okText:(resources string:'Execute') |
|
1836 |
action:aBlock. |
|
3892 | 1837 |
|
1838 |
fileName notNil ifTrue:[ |
|
4414 | 1839 |
self initialCommandFor:fileName into:box. |
3892 | 1840 |
]. |
1841 |
box directory:(self getDirWithoutFileName:fileName). |
|
1842 |
box showAtPointer. |
|
1843 |
box destroy. |
|
1844 |
||
1845 |
"Modified: / 7.9.1995 / 10:31:54 / claus" |
|
1846 |
"Modified: / 16.9.1997 / 15:35:10 / stefan" |
|
1847 |
"Modified: / 14.8.1998 / 14:12:52 / cg" |
|
1848 |
! |
|
1849 |
||
1850 |
changeFileBrowserTitleTo:aString |
|
1851 |
||
1852 |
self application:#FileBrowserV2 |
|
4414 | 1853 |
do:#changeFileBrowserTitleTo: |
1854 |
withArg:aString |
|
3892 | 1855 |
! |
1856 |
||
1857 |
copyFileList |
|
1858 |
||
1859 |
| fileList stream| |
|
1860 |
fileList := self application:#DirectoryContentsBrowser do:#descriptions. |
|
1861 |
stream := WriteStream on:''. |
|
1862 |
fileList do:[: item | |
|
4414 | 1863 |
stream nextPutAll:(item fileName asString). |
1864 |
stream cr. |
|
3892 | 1865 |
]. |
1866 |
self window setTextSelection:stream contents. |
|
1867 |
stream close. |
|
1868 |
! |
|
1869 |
||
1870 |
copySelectedFilenames |
|
1871 |
||
1872 |
| fileList stream| |
|
3982 | 1873 |
fileList := self application:#DirectoryContentsBrowser do:#selectedFiles. |
3892 | 1874 |
fileList isEmpty ifTrue:[^ self]. |
1875 |
stream := WriteStream on:''. |
|
1876 |
fileList do:[: file | |
|
4414 | 1877 |
stream nextPutAll:(file asString). |
1878 |
stream cr. |
|
3892 | 1879 |
]. |
1880 |
self window setTextSelection:stream contents. |
|
1881 |
stream close. |
|
1882 |
! |
|
1883 |
||
1884 |
doAddTerminal |
|
1885 |
||
1886 |
| item dir directories| |
|
1887 |
||
1888 |
directories := self currentDirectories value. |
|
1889 |
||
1890 |
directories isEmpty ifTrue:[ |
|
4414 | 1891 |
dir := Filename homeDirectory |
3892 | 1892 |
] ifFalse:[ |
4414 | 1893 |
dir := directories first. |
3892 | 1894 |
]. |
1895 |
||
3982 | 1896 |
item := (DirectoryContentsBrowser itemClass fileName:dir). |
3892 | 1897 |
self fileApplicationDo:#openTerminalApplication: withArg:item. |
1898 |
! |
|
1899 |
||
4431 | 1900 |
doCompareTwoFiles |
4454
c85336c15975
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4453
diff
changeset
|
1901 |
|
c85336c15975
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4453
diff
changeset
|
1902 |
self openDiffView. |
c85336c15975
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4453
diff
changeset
|
1903 |
" |
4431 | 1904 |
|files fileName1 fileName2 stream1 stream2 buffer1 buffer2 n1 n2 idx blockSize blockOffset| |
1905 |
||
1906 |
files := self currentFileNameHolder value. |
|
1907 |
fileName1 := files first. |
|
1908 |
fileName2 := files second. |
|
1909 |
||
1910 |
(fileName1 exists and:[fileName1 isReadable]) ifFalse:[ |
|
1911 |
Dialog warn:(resources string:'Cannot read %1' with:fileName1 pathName allBold). |
|
1912 |
^ self. |
|
1913 |
]. |
|
1914 |
(fileName2 exists and:[fileName2 isReadable]) ifFalse:[ |
|
1915 |
Dialog warn:(resources string:'Cannot read %1' with:fileName2 pathName allBold). |
|
1916 |
^ self. |
|
1917 |
]. |
|
1918 |
[ |
|
1919 |
stream1 := fileName1 readStream. |
|
1920 |
stream2 := fileName2 readStream. |
|
1921 |
||
1922 |
stream1 binary. stream2 binary. |
|
1923 |
||
1924 |
blockSize := 8192. |
|
1925 |
buffer1 := ByteArray new:blockSize. |
|
1926 |
buffer2 := ByteArray new:blockSize. |
|
1927 |
||
1928 |
blockOffset := 0. |
|
1929 |
||
1930 |
[stream1 atEnd] whileFalse:[ |
|
1931 |
n1 := stream1 nextBytes:(buffer1 size) into:buffer1 startingAt:1. |
|
1932 |
n2 := stream2 nextBytes:n1 into:buffer2 startingAt:1. |
|
1933 |
||
1934 |
n1 ~~ n2 ifTrue:[ |
|
1935 |
self halt. |
|
1936 |
] ifFalse:[ |
|
1937 |
buffer1 ~= buffer2 ifTrue:[ |
|
1938 |
idx := (1 to:n1) findFirst:[:idx | (buffer1 at:idx) ~~ (buffer2 at:idx)]. |
|
1939 |
Dialog information:(resources |
|
1940 |
string:'Files differ at position %1 (0x%2 vs. 0x%3)' |
|
1941 |
with:(blockOffset+idx) |
|
1942 |
with:((buffer1 at:idx) hexPrintString:2) |
|
1943 |
with:((buffer2 at:idx) hexPrintString:2) |
|
1944 |
). |
|
1945 |
^ self. |
|
1946 |
] |
|
1947 |
]. |
|
1948 |
blockOffset := blockOffset + n1. |
|
1949 |
]. |
|
1950 |
stream2 atEnd ifFalse:[ |
|
1951 |
self halt. |
|
1952 |
]. |
|
1953 |
] ensure:[ |
|
1954 |
stream1 notNil ifTrue:[stream1 close]. |
|
1955 |
stream2 notNil ifTrue:[stream2 close]. |
|
1956 |
]. |
|
1957 |
||
1958 |
self halt. |
|
4454
c85336c15975
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4453
diff
changeset
|
1959 |
" |
4431 | 1960 |
"/ action := [:command | |
1961 |
"/ self addToCommandHistory:command for:fileName. |
|
1962 |
"/ self executeCommand:command. |
|
1963 |
"/ ]. |
|
1964 |
"/ self askForCommandFor:fileName thenDo:action |
|
1965 |
! |
|
1966 |
||
3892 | 1967 |
doExecuteCommand |
1968 |
||
1969 |
| action fileName| |
|
3982 | 1970 |
fileName := self firstSelectedFile. |
3892 | 1971 |
action := [:command | |
4414 | 1972 |
self addToCommandHistory:command for:fileName. |
1973 |
self executeCommand:command. |
|
1974 |
]. |
|
3892 | 1975 |
self askForCommandFor:fileName thenDo:action |
1976 |
! |
|
1977 |
||
1978 |
doGoDirectoryUp |
|
3906 | 1979 |
| upDir directories rootInTreeView| |
3892 | 1980 |
|
1981 |
self enableDirectoryUp value ifFalse:[ ^ self]. |
|
1982 |
self currentFilesAreInSameDirectory ifTrue:[ |
|
4414 | 1983 |
directories := self currentDirectories value. |
1984 |
upDir := directories first directory. |
|
3906 | 1985 |
] ifFalse:[ |
4414 | 1986 |
rootInTreeView := self application:#DirectoryTreeBrowser do:#rootHolder. |
1987 |
upDir := rootInTreeView value asFilename directory. |
|
3892 | 1988 |
]. |
3906 | 1989 |
self currentFileNameHolder value:(OrderedCollection with:upDir). |
3892 | 1990 |
! |
1991 |
||
1992 |
doGotoDefaultDirectory |
|
1993 |
self gotoFile:(Filename defaultDirectory). |
|
1994 |
! |
|
1995 |
||
1996 |
doGotoHomeDirectory |
|
1997 |
||
1998 |
| home | |
|
1999 |
||
2000 |
home := Filename homeDirectory. |
|
2001 |
self gotoFile:home. |
|
2002 |
! |
|
2003 |
||
2004 |
doOpenSearchFile |
|
2005 |
||
2006 |
|item files| |
|
2007 |
||
4034 | 2008 |
files := self currentFileNameHolder value. |
2009 |
files notEmpty ifTrue:[ |
|
4414 | 2010 |
item := DirectoryContentsBrowser itemClass fileName:(files first). |
4034 | 2011 |
] ifFalse:[ |
4414 | 2012 |
item := DirectoryContentsBrowser itemClass fileName:(Filename homeDirectory asAbsoluteFilename). |
3892 | 2013 |
]. |
2014 |
self openSearchFileOn:item. |
|
2015 |
! |
|
2016 |
||
2017 |
doShowFileContents |
|
2018 |
||
2019 |
^ self application:#DirectoryContentsBrowser do:#doShowFileContents. |
|
2020 |
! |
|
2021 |
||
2022 |
doShowProperties |
|
2023 |
||
2024 |
"show long stat (file)-info" |
|
2025 |
||
2026 |
self fileGetInfo:true |
|
2027 |
! |
|
2028 |
||
2029 |
fileApplicationDo:selector |
|
2030 |
||
2031 |
^ self application:#FileApplicationNoteBook do:selector |
|
2032 |
! |
|
2033 |
||
2034 |
fileApplicationDo:selector withArg:arg |
|
2035 |
^ self application:#FileApplicationNoteBook do:selector withArg:arg |
|
2036 |
! |
|
2037 |
||
2038 |
fileGetInfo:longInfo |
|
2039 |
"get info on selected file - show it in a box" |
|
2040 |
||
2041 |
|string box updater| |
|
2042 |
||
3906 | 2043 |
string := self getFileInfoStringForFirstSelectedFile:longInfo. |
3892 | 2044 |
string notNil ifTrue:[ |
4414 | 2045 |
box := InfoBox title:string. |
2046 |
updater := [ |
|
2047 |
[true] whileTrue:[ |
|
2048 |
Delay waitForSeconds:2. |
|
2049 |
string := self getFileInfoStringForFirstSelectedFile:longInfo. |
|
2050 |
string isNil ifTrue:[ ^ self]. |
|
2051 |
box title:string |
|
2052 |
] |
|
2053 |
] fork. |
|
2054 |
box showAtPointer. |
|
2055 |
updater terminate. |
|
2056 |
box destroy |
|
3892 | 2057 |
] |
2058 |
! |
|
2059 |
||
2060 |
gotoFile:aFilename |
|
2061 |
||
3964 | 2062 |
" select only if the file is not already in selection" |
2063 |
| currentSel | |
|
2064 |
||
2065 |
currentSel := self currentFileNameHolder value. |
|
2066 |
((currentSel findFirst:[:aFile| aFile = aFilename]) == 0) ifTrue:[ |
|
4414 | 2067 |
self currentFileNameHolder value:(OrderedCollection with:(aFilename asAbsoluteFilename)). |
3964 | 2068 |
]. |
3892 | 2069 |
! |
2070 |
||
4392 | 2071 |
newTextEditor |
2072 |
||
2073 |
^ self fileApplicationDo:#newTextEditor |
|
2074 |
! |
|
2075 |
||
3892 | 2076 |
openApplByFileItem:aItem |
2077 |
||
4148 | 2078 |
^ self fileApplicationDo:#openApplByFileItem: withArg:aItem |
3892 | 2079 |
! |
2080 |
||
4392 | 2081 |
openApplForFile:aFilename |
2082 |
^ self openApplByFileItem:(DirectoryContentsBrowser itemClass fileName:aFilename). |
|
2083 |
! |
|
2084 |
||
3892 | 2085 |
openCommandResultApplication |
2086 |
||
2087 |
^ self fileApplicationDo:#openCommandResultApplication |
|
2088 |
! |
|
2089 |
||
2090 |
openSearchFileOn:aItem |
|
2091 |
||
2092 |
^ self fileApplicationDo:#openSearchFileOn: withArg:aItem |
|
2093 |
! |
|
2094 |
||
2095 |
openTextEditorOn:aItem |
|
2096 |
||
2097 |
^ self fileApplicationDo:#openTextEditorOn: withArg:aItem |
|
2098 |
! |
|
2099 |
||
2100 |
updateAndSelect:aColOfFiles |
|
2101 |
||
4420
06c0ac90e2dd
reset cached DirectoryContents to get the new files on remote systems where times are different
penk
parents:
4414
diff
changeset
|
2102 |
DirectoryContents flushCachedDirectoryFor:(self getBestDirectory). |
3892 | 2103 |
self application:#DirectoryContentsBrowser do:#doUpdate. |
2104 |
self application:#DirectoryTreeBrowser do:#doUpdate. |
|
2105 |
||
2106 |
aColOfFiles notNil ifTrue:[ self currentFileNameHolder value:aColOfFiles ]. |
|
2107 |
! |
|
2108 |
||
2109 |
updateCurrentDirectory |
|
2110 |
||
2111 |
self updateAndSelect:nil |
|
4345 | 2112 |
! |
2113 |
||
2114 |
withActivityIndicationDo:aBlock |
|
2115 |
||
2116 |
self activityVisibilityChannel value:true. |
|
2117 |
[ |
|
2118 |
aBlock value. |
|
2119 |
] ensure:[ |
|
2120 |
self activityVisibilityChannel value:false. |
|
2121 |
] |
|
3892 | 2122 |
! ! |
2123 |
||
2124 |
!AbstractFileBrowser methodsFor:'actions bookmarks'! |
|
2125 |
||
2126 |
addBookmark |
|
2127 |
||
2128 |
|directories| |
|
2129 |
||
2130 |
self currentFilesAreInSameDirectory ifFalse:[^ self]. |
|
2131 |
directories := self currentDirectories value. |
|
2132 |
self addBookmark:directories. |
|
2133 |
! |
|
2134 |
||
2135 |
addBookmark:aColOfDirectories |
|
2136 |
|idx bookmarks| |
|
2137 |
||
2138 |
aColOfDirectories do:[ : path | |
|
4414 | 2139 |
bookmarks := self class directoryBookmarks. |
2140 |
idx := bookmarks indexOf:path. |
|
2141 |
idx == 0 ifTrue:[ |
|
2142 |
bookmarks addLast:path. |
|
2143 |
]. |
|
3892 | 2144 |
]. |
2145 |
! |
|
2146 |
||
2147 |
hasBookmarks |
|
2148 |
^ self class directoryBookmarks size > 0 |
|
2149 |
! |
|
2150 |
||
2151 |
hasBookmarksToRemove |
|
2152 |
||
2153 |
|bookmarks directories| |
|
2154 |
||
3982 | 2155 |
directories := self currentSelectedDirectories. |
3892 | 2156 |
bookmarks := self class directoryBookmarks. |
2157 |
^ (bookmarks size > 0 and:[directories notEmpty]) |
|
2158 |
! |
|
2159 |
||
2160 |
removeBookmark |
|
2161 |
||
2162 |
|bookmarks directories| |
|
2163 |
||
2164 |
bookmarks := self class directoryBookmarks. |
|
2165 |
bookmarks isNil ifTrue:[ ^ self]. |
|
3982 | 2166 |
directories := self currentSelectedDirectories. |
3892 | 2167 |
directories isEmpty ifTrue:[^ self]. |
2168 |
directories do:[:dir| |
|
4414 | 2169 |
bookmarks remove:dir ifAbsent:nil. |
3892 | 2170 |
]. |
2171 |
! ! |
|
2172 |
||
2173 |
!AbstractFileBrowser methodsFor:'actions history'! |
|
2174 |
||
2175 |
addToCommandHistory:aCommandString for:aFilename |
|
2176 |
|cmd suffix cmdHist| |
|
2177 |
||
2178 |
cmdHist := self class commandHistory. |
|
2179 |
(aCommandString notNil and:[aCommandString notEmpty]) ifTrue:[ |
|
4414 | 2180 |
cmdHist notNil ifTrue:[ |
2181 |
cmdHist addFirst:aCommandString. |
|
2182 |
cmdHist size > self class commandHistorySize ifTrue:[ |
|
2183 |
cmdHist removeLast |
|
2184 |
] |
|
2185 |
]. |
|
2186 |
aFilename notNil ifTrue:[ |
|
2187 |
cmd := aCommandString copyTo:(aCommandString indexOf:Character space ifAbsent:[aCommandString size + 1])-1. |
|
2188 |
DefaultCommandPerSuffix isNil ifTrue:[ |
|
2189 |
DefaultCommandPerSuffix := Dictionary new. |
|
2190 |
]. |
|
2191 |
suffix := aFilename asFilename suffix. |
|
2192 |
suffix notNil ifTrue:[ |
|
2193 |
DefaultCommandPerSuffix at:suffix put:cmd. |
|
2194 |
] |
|
2195 |
] |
|
3892 | 2196 |
] |
2197 |
! |
|
2198 |
||
2199 |
doBack |
|
2200 |
||
4022 | 2201 |
| fileName| |
2202 |
||
4347 | 2203 |
fileName := self dirHistory goBackward. |
3892 | 2204 |
fileName notNil ifTrue:[ |
4347 | 2205 |
self gotoFile:(fileName asFilename). |
3892 | 2206 |
] |
2207 |
! |
|
2208 |
||
2209 |
doForward |
|
2210 |
||
3964 | 2211 |
| fileName| |
2212 |
||
3952 | 2213 |
fileName := self dirHistory goForward. |
3892 | 2214 |
fileName notNil ifTrue:[ |
4414 | 2215 |
self gotoFile:(fileName asFilename). |
4022 | 2216 |
] ifFalse:[ |
4414 | 2217 |
self enableForward value:false. |
4022 | 2218 |
|
2219 |
]. |
|
3892 | 2220 |
! ! |
2221 |
||
2222 |
!AbstractFileBrowser methodsFor:'applications'! |
|
2223 |
||
2224 |
application:aApplication do:aMethod |
|
2225 |
||
4191 | 2226 |
" perform a Method for a application " |
3892 | 2227 |
|appl| |
2228 |
||
2229 |
appl := self applications at:aApplication ifAbsent:nil. |
|
2230 |
appl notNil ifTrue:[ |
|
4414 | 2231 |
^ appl perform:aMethod. |
3892 | 2232 |
]. |
2233 |
^ nil. |
|
2234 |
! |
|
2235 |
||
2236 |
application:aApplication do:aMethod withArg:arg |
|
2237 |
|appl| |
|
2238 |
||
2239 |
appl := self applications at:aApplication ifAbsent:nil. |
|
2240 |
appl notNil ifTrue:[ |
|
4414 | 2241 |
^ appl perform:aMethod with:arg |
3892 | 2242 |
]. |
2243 |
^ nil |
|
2244 |
! |
|
2245 |
||
2246 |
application:aApplication do:aMethod withArg:arg1 withArg:arg2 |
|
2247 |
|appl| |
|
2248 |
||
2249 |
appl := self applications at:aApplication ifAbsent:nil. |
|
2250 |
appl notNil ifTrue:[ |
|
4414 | 2251 |
(arg1 notNil and:[arg2 notNil]) ifTrue:[ |
2252 |
^ appl perform:aMethod with:arg1 with:arg2 |
|
2253 |
] |
|
3892 | 2254 |
]. |
2255 |
^ nil |
|
4004 | 2256 |
! |
2257 |
||
2258 |
directoryContentsBrowser |
|
2259 |
^ self applications at:#DirectoryContentsBrowser ifAbsent:nil. |
|
3892 | 2260 |
! ! |
2261 |
||
2262 |
!AbstractFileBrowser methodsFor:'aspects'! |
|
2263 |
||
2264 |
applications |
|
2265 |
"returns the list of registered applications |
|
2266 |
" |
|
2267 |
^ aspects at:#applications |
|
2268 |
! |
|
2269 |
||
2270 |
backgroundProcesses |
|
2271 |
||
2272 |
^ self aspectFor:#backgroundProcesses ifAbsent:[List new] |
|
2273 |
! |
|
2274 |
||
4230 | 2275 |
canMake |
2276 |
||
2277 |
^ self aspectFor:#hasSelection ifAbsent:[ false asValue ]. |
|
2278 |
! |
|
2279 |
||
3892 | 2280 |
currentDirectories |
2281 |
||
2282 |
" returns a Ordered Collection of all directories currently selected |
|
2283 |
if only a file is selected currentDirectories holds the directory of the file |
|
2284 |
" |
|
2285 |
||
2286 |
^ self aspectFor:#currentDirectories ifAbsent:[ (OrderedCollection new) asValue ]. |
|
2287 |
! |
|
2288 |
||
2289 |
currentFileNameHolder |
|
2290 |
||
2291 |
" returns a OrderedCollection of all files that are selected |
|
2292 |
if no file but a directory is selected it contains the directories |
|
2293 |
in contrast to currentDirectories wich have only the directories |
|
2294 |
" |
|
4213
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2295 |
^ self aspectFor:#currentFileNameHolder ifAbsent:[ |
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2296 |
self class currentSelection notEmpty ifTrue:[ |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2297 |
self class currentSelection asValue |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2298 |
] ifFalse:[ |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2299 |
(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) asValue |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2300 |
] |
4213
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2301 |
] notPresentDo:[:holder| |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2302 |
| filenames newFilenames| |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2303 |
filenames := holder value. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2304 |
newFilenames := Set new. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2305 |
filenames do:[ : filename | | fn | |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2306 |
fn := filename. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2307 |
[fn exists not] whileTrue:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2308 |
fn := fn directory. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2309 |
]. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2310 |
newFilenames add:fn. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2311 |
]. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2312 |
newFilenames asOrderedCollection. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2313 |
] |
3892 | 2314 |
! |
2315 |
||
2316 |
enableDirectoryUp |
|
2317 |
||
2318 |
^ self aspectFor:#enableDirectoryUp ifAbsent:[false asValue] |
|
2319 |
! |
|
2320 |
||
2321 |
enableHome |
|
2322 |
||
2323 |
^ self aspectFor:#enableHome ifAbsent:[ true asValue ]. |
|
2324 |
! |
|
2325 |
||
2326 |
enableViewNoteBookApplication |
|
2327 |
||
2328 |
^ self aspectFor:#enableViewNoteBookApplication ifAbsent:[false asValue] |
|
2329 |
! |
|
2330 |
||
2331 |
hasSelection |
|
2332 |
||
2333 |
^ self aspectFor:#hasSelection ifAbsent:[ false asValue ]. |
|
2334 |
! |
|
2335 |
||
4414 | 2336 |
hasTwoFilesSelectedHolder |
2337 |
^ self |
|
2338 |
aspectFor:#hasTwoFilesSelectedHolder |
|
2339 |
ifAbsent:[ BlockValue with:[self hasTwoFilesSelected] argument:self currentFileNameHolder]. |
|
2340 |
! |
|
2341 |
||
3892 | 2342 |
notifyChannel |
2343 |
||
2344 |
^ self aspectFor:#notifyChannel ifAbsent:['' asValue] |
|
4071 | 2345 |
! |
2346 |
||
2347 |
rootHolder |
|
2348 |
"holder, which keeps the rootHolder of the treeView |
|
2349 |
" |
|
2350 |
||
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2351 |
^ self aspectFor:#rootHolder ifAbsent:[ |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2352 |
self class rootHolder asValue. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2353 |
]. |
3892 | 2354 |
! ! |
2355 |
||
2356 |
!AbstractFileBrowser methodsFor:'aspects handling'! |
|
2357 |
||
2358 |
aspectFor:something ifAbsent:aBlock |
|
2359 |
"returns the model for an aspect |
|
2360 |
" |
|
4201 | 2361 |
|holder saveAspectItem aspect| |
3892 | 2362 |
|
4213
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2363 |
holder := aspects at:something ifAbsent:[ |
4201 | 2364 |
saveAspectItem := self runtimeAspectValueFor:something. |
2365 |
saveAspectItem notNil ifTrue:[ |
|
2366 |
saveAspectItem isHolder ifTrue:[ |
|
2367 |
holder := ValueHolder with:saveAspectItem value |
|
2368 |
] ifFalse:[ |
|
2369 |
holder := saveAspectItem value |
|
2370 |
]. |
|
2371 |
] ifFalse:[ |
|
2372 |
aspect := self userPreferencesAspectValueFor:something. |
|
2373 |
aspect notNil ifTrue:[ |
|
2374 |
holder := aspect asValue |
|
2375 |
] ifFalse:[ |
|
2376 |
holder := aBlock value. |
|
2377 |
] |
|
2378 |
]. |
|
2379 |
holder notNil ifTrue:[ |
|
2380 |
aspects at:something put:holder |
|
2381 |
] |
|
3892 | 2382 |
]. |
2383 |
^ holder |
|
2384 |
! |
|
2385 |
||
4213
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2386 |
aspectFor:something ifAbsent:aBlock notPresentDo:notPresentBlock |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2387 |
"returns the model for an aspect |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2388 |
" |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2389 |
|holder saveAspectItem aspect| |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2390 |
|
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2391 |
holder := aspects at:something ifAbsent:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2392 |
saveAspectItem := self runtimeAspectValueFor:something. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2393 |
saveAspectItem notNil ifTrue:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2394 |
saveAspectItem isHolder ifTrue:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2395 |
holder := ValueHolder with:saveAspectItem value |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2396 |
] ifFalse:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2397 |
holder := saveAspectItem value |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2398 |
]. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2399 |
] ifFalse:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2400 |
aspect := self userPreferencesAspectValueFor:something. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2401 |
aspect notNil ifTrue:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2402 |
holder := aspect asValue |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2403 |
] ifFalse:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2404 |
holder := aBlock value. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2405 |
] |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2406 |
]. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2407 |
holder notNil ifTrue:[ |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2408 |
holder value:(notPresentBlock value:holder). |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2409 |
aspects at:something put:holder |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2410 |
] |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2411 |
]. |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2412 |
^ holder |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2413 |
! |
b8e7d4276a33
startup if old filename not present - go up to first directory in path
penk
parents:
4203
diff
changeset
|
2414 |
|
3892 | 2415 |
aspects |
2416 |
^ aspects |
|
2417 |
! |
|
2418 |
||
2419 |
runtimeAspectValueFor:something |
|
2420 |
"returns the default aspect item from the class variable RuntimeAspects |
|
2421 |
" |
|
2422 |
^ self class runtimeAspects at:something ifAbsent:nil. |
|
2423 |
! |
|
2424 |
||
4201 | 2425 |
saveAspectValues |
2426 |
|saveAspects aspectValue| |
|
2427 |
||
2428 |
||
2429 |
saveAspects := self class userPreferencesAspectList. |
|
2430 |
saveAspects do:[ : aspectKey | |
|
2431 |
aspectValue := (self perform:aspectKey) value. |
|
2432 |
UserPreferences current perform:((aspectKey asString, ':') asSymbol) with:aspectValue. |
|
2433 |
]. |
|
2434 |
! |
|
2435 |
||
3892 | 2436 |
saveRuntimeAspectValues |
2437 |
|savedAspects dictionary value isHolder aspect| |
|
2438 |
||
2439 |
savedAspects := self class listOfRuntimeValuesToRemark. |
|
2440 |
dictionary := Dictionary new. |
|
2441 |
savedAspects do:[ : aspectKey | |
|
4414 | 2442 |
aspect := self perform:aspectKey. |
2443 |
isHolder := aspect isValueModel. |
|
2444 |
isHolder ifTrue:[value:= aspect value] ifFalse:[ value := aspect]. |
|
2445 |
dictionary at:aspectKey |
|
2446 |
put:(SaveAspectItem withValue:value isHolder:isHolder) |
|
3892 | 2447 |
]. |
2448 |
||
2449 |
RuntimeAspects := dictionary. |
|
2450 |
! |
|
2451 |
||
4201 | 2452 |
userPreferencesAspectValueFor:something |
2453 |
"returns the default aspect from the Userpreferences |
|
3892 | 2454 |
" |
4201 | 2455 |
|
2456 |
(self class userPreferencesAspectList includes:something) not ifTrue:[ ^ nil]. |
|
2457 |
^ UserPreferences current perform:something. |
|
3892 | 2458 |
! ! |
2459 |
||
4011 | 2460 |
!AbstractFileBrowser methodsFor:'aspects-filter'! |
2461 |
||
4018 | 2462 |
filterBackgroundColor |
2463 |
||
2464 |
^ self aspectFor:#filterBackgroundColor ifAbsent:[Color white asValue] |
|
2465 |
! |
|
2466 |
||
4011 | 2467 |
filterBlockHolder |
2468 |
||
2469 |
^ self aspectFor:#filterBlockHolder ifAbsent:[self getFilter asValue] |
|
2470 |
! |
|
2471 |
||
2472 |
filterListModel |
|
2473 |
||
2474 |
^ self aspectFor:#filterListModel ifAbsent:[self class defaultFilterList] |
|
2475 |
! |
|
2476 |
||
2477 |
filterModel |
|
2478 |
||
2479 |
^ self aspectFor:#filterModel ifAbsent:[(self filterListModel at:1) asValue] |
|
2480 |
! |
|
2481 |
||
4018 | 2482 |
filterValueBox |
2483 |
||
2484 |
^ self aspectFor:#filterValueBox ifAbsent:[ValueHolder new] |
|
2485 |
! |
|
2486 |
||
4011 | 2487 |
getFilter |
2488 |
| filter showHidden| |
|
2489 |
||
2490 |
filter := self filterModel value. |
|
2491 |
filter = '' ifTrue:[filter := '*']. |
|
2492 |
showHidden := self showHiddenFiles value. |
|
2493 |
showHidden ifTrue:[ |
|
4414 | 2494 |
^ [: el | filter match:el]. |
4011 | 2495 |
] ifFalse:[ |
4414 | 2496 |
^ [: el | ((el asString startsWith:'.') not) and:[filter match:el]]. |
4011 | 2497 |
] |
4018 | 2498 |
! |
2499 |
||
2500 |
shownFiles |
|
2501 |
||
2502 |
^ self aspectFor:#shownFiles ifAbsent:['-/-' asValue] |
|
4011 | 2503 |
! ! |
2504 |
||
3892 | 2505 |
!AbstractFileBrowser methodsFor:'aspects-history'! |
2506 |
||
2507 |
dirHistory |
|
2508 |
||
3952 | 2509 |
^ self class directoryHistory |
3892 | 2510 |
! |
2511 |
||
2512 |
enableBack |
|
2513 |
||
2514 |
^ self aspectFor:#enableBack ifAbsent:[false asValue] |
|
2515 |
! |
|
2516 |
||
2517 |
enableFileHistory |
|
2518 |
||
2519 |
^ self aspectFor:#enableFileHistory ifAbsent:[false asValue] |
|
2520 |
! |
|
2521 |
||
2522 |
enableForward |
|
2523 |
||
2524 |
^ self aspectFor:#enableForward ifAbsent:[false asValue] |
|
2525 |
! |
|
2526 |
||
2527 |
fileHistory |
|
2528 |
||
2529 |
^ self aspectFor:#fileHistory ifAbsent:[FilenameHistory new] |
|
2530 |
! ! |
|
2531 |
||
2532 |
!AbstractFileBrowser methodsFor:'aspects-visibility'! |
|
2533 |
||
4345 | 2534 |
activityVisibilityChannel |
2535 |
" activityVisibilityChannel switches the activity indicator on/off |
|
2536 |
" |
|
2537 |
||
2538 |
^ self aspectFor:#activityVisibilityChannel ifAbsent:[ false asValue ]. |
|
2539 |
! |
|
2540 |
||
4110 | 2541 |
openAlwaysInTextEditor |
4201 | 2542 |
" aspect for open every file in TextEditor dont use e.g. HtmlEditor for *.html'" |
4110 | 2543 |
|
2544 |
^ self aspectFor:#openAlwaysInTextEditor ifAbsent:[ false asValue ]. |
|
2545 |
! |
|
2546 |
||
3892 | 2547 |
openMultipleApplicationsForType |
2548 |
||
4201 | 2549 |
" aspect for open more applications for e.g. TextEditor and not change the contents of already |
2550 |
open TextEditor " |
|
2551 |
||
3892 | 2552 |
^ self aspectFor:#openMultipleApplicationsForType ifAbsent:[ false asValue ]. |
2553 |
! |
|
2554 |
||
4201 | 2555 |
showDirectoryTree |
2556 |
||
2557 |
^ self aspectFor:#showDirectoryTree ifAbsent:[ true asValue ] |
|
3892 | 2558 |
! |
2559 |
||
2560 |
showHiddenFiles |
|
2561 |
||
2562 |
^ self aspectFor:#showHiddenFiles ifAbsent:[ true asValue ]. |
|
2563 |
! |
|
2564 |
||
2565 |
viewDescription |
|
4201 | 2566 |
"get the user preferences for show file description row in DirectoryContentsBrowser" |
3892 | 2567 |
|
2568 |
^ self aspectFor:#viewDescription ifAbsent:[ false asValue ]. |
|
2569 |
! |
|
2570 |
||
2571 |
viewDetails |
|
4201 | 2572 |
"get the user preferences for view more file properties in rows in DirectoryContentsBrowser |
2573 |
" |
|
3892 | 2574 |
|
2575 |
^ self aspectFor:#viewDetails ifAbsent:[ false asValue ]. |
|
2576 |
! |
|
2577 |
||
2578 |
viewDirectoryDescription |
|
2579 |
||
4201 | 2580 |
" aspect for auto open a TextView for Readme and other see getInfoItem Method files |
2581 |
on change directory " |
|
2582 |
||
3892 | 2583 |
^ self aspectFor:#viewDirectoryDescription ifAbsent:[ true asValue ]. |
2584 |
! |
|
2585 |
||
4201 | 2586 |
viewDirsInContentsBrowser |
2587 |
||
2588 |
^ self aspectFor:#viewDirsInContentsBrowser ifAbsent:[ false asValue ]. |
|
2589 |
! |
|
2590 |
||
3892 | 2591 |
viewFilesInDirectoryTree |
2592 |
||
4201 | 2593 |
" aspect for view files in tree view (not only directories) " |
2594 |
||
3892 | 2595 |
^ self aspectFor:#viewFilesInDirectoryTree ifAbsent:[ false asValue ]. |
2596 |
! |
|
2597 |
||
2598 |
viewGroup |
|
2599 |
||
4201 | 2600 |
" aspect for show group information row in DirectoryContentsBrowser " |
2601 |
||
3892 | 2602 |
^ self aspectFor:#viewGroup ifAbsent:[ false asValue ]. |
2603 |
! |
|
2604 |
||
2605 |
viewNoteBookApplicationHolder |
|
2606 |
||
2607 |
^ self aspectFor:#viewNoteBookApplicationHolder ifAbsent:[ false asValue]. |
|
2608 |
! |
|
2609 |
||
2610 |
viewOwner |
|
2611 |
||
4201 | 2612 |
" aspect for show owner information row in DirectoryContentsBrowser " |
2613 |
||
3892 | 2614 |
^ self aspectFor:#viewOwner ifAbsent:[ false asValue ]. |
2615 |
! |
|
2616 |
||
2617 |
viewPermissions |
|
2618 |
||
4201 | 2619 |
" aspect for show permission information row in DirectoryContentsBrowser " |
2620 |
||
3892 | 2621 |
^ self aspectFor:#viewPermissions ifAbsent:[ false asValue ]. |
2622 |
! |
|
2623 |
||
2624 |
viewPreview |
|
2625 |
||
4201 | 2626 |
" aspect for show image previev row in DirectoryContentsBrowser " |
2627 |
||
3892 | 2628 |
^ self aspectFor:#viewPreview ifAbsent:[ false asValue ]. |
2629 |
! |
|
2630 |
||
2631 |
viewSize |
|
2632 |
||
4201 | 2633 |
" aspect for show size information row in DirectoryContentsBrowser " |
2634 |
||
3892 | 2635 |
^ self aspectFor:#viewSize ifAbsent:[ false asValue ]. |
2636 |
! |
|
2637 |
||
2638 |
viewTime |
|
2639 |
||
4201 | 2640 |
" aspect for show time information row in DirectoryContentsBrowser " |
2641 |
||
3892 | 2642 |
^ self aspectFor:#viewTime ifAbsent:[ false asValue ]. |
2643 |
! |
|
2644 |
||
2645 |
viewType |
|
4201 | 2646 |
" aspect for show suffix (type) information row in DirectoryContentsBrowser " |
3892 | 2647 |
|
2648 |
^ self aspectFor:#viewType ifAbsent:[ false asValue ]. |
|
2649 |
! ! |
|
2650 |
||
2651 |
!AbstractFileBrowser methodsFor:'background processing'! |
|
2652 |
||
2653 |
executeCommand:cmd |
|
2654 |
||
2655 |
self executeCommand:cmd inDirectory:nil |
|
2656 |
! |
|
2657 |
||
2658 |
executeCommand:cmd inDirectory:aDir |
|
2659 |
||
2660 |
| nameString executionBlock| |
|
2661 |
||
2662 |
executionBlock := self getExecutionBlockForCommand:cmd inDirectory:aDir. |
|
2663 |
nameString := 'Command> ', cmd. |
|
2664 |
self makeExecutionResultProcessFor:executionBlock withName:nameString. |
|
2665 |
! |
|
2666 |
||
2667 |
getExecutionBlockForCommand:cmd |
|
2668 |
||
2669 |
^ self getExecutionBlockForCommand:cmd inDirectory:nil |
|
2670 |
! |
|
2671 |
||
2672 |
getExecutionBlockForCommand:cmd inDirectory:aDir |
|
2673 |
||
2674 |
| dir dirs| |
|
2675 |
||
2676 |
dir := aDir. |
|
2677 |
aDir isNil ifTrue:[ |
|
4414 | 2678 |
dirs := self currentSelectedDirectories. |
2679 |
dirs size ~= 1 ifTrue:[ ^ self]. |
|
2680 |
dir := dirs anElement. |
|
3892 | 2681 |
]. |
2682 |
^ [:stream| stream notNil ifTrue:[ |
|
4414 | 2683 |
OperatingSystem |
2684 |
executeCommand:cmd |
|
2685 |
inputFrom:nil |
|
2686 |
outputTo:stream |
|
2687 |
errorTo:stream |
|
2688 |
inDirectory:dir |
|
2689 |
onError:[:status| false]. |
|
2690 |
] |
|
3892 | 2691 |
]. |
2692 |
! |
|
2693 |
||
2694 |
killAllRunningBackgroundProcesses |
|
2695 |
||
2696 |
self backgroundProcesses do:[ : process | |
|
4414 | 2697 |
self notifyChannel value:'kill ', process name. |
2698 |
process terminate. |
|
3892 | 2699 |
]. |
2700 |
! |
|
2701 |
||
2702 |
makeExecutionResultProcessFor:aBlock withName:aString |
|
2703 |
| stream process appl nameString| |
|
2704 |
||
2705 |
appl := self openCommandResultApplication. |
|
2706 |
stream := appl resultStream. |
|
2707 |
nameString := aString ? 'Execution Result'. |
|
2708 |
appl changeTabTo:nameString. |
|
2709 |
process := [ [aBlock value:stream] valueNowOrOnUnwindDo:[ |
|
4414 | 2710 |
self backgroundProcesses remove:process ifAbsent:[]. |
2711 |
appl process value:nil. |
|
3892 | 2712 |
]] newProcess. |
2713 |
process priority:(Processor userBackgroundPriority). |
|
2714 |
process name:nameString. |
|
2715 |
self backgroundProcesses add:process. |
|
2716 |
appl process value:process. |
|
2717 |
process resume. |
|
2718 |
! ! |
|
2719 |
||
2720 |
!AbstractFileBrowser methodsFor:'change & update'! |
|
2721 |
||
4011 | 2722 |
abstractCurrentFileNameHolderChanged |
2723 |
" do here all the things that have to be done for every part of the FileBrowserV2 |
|
2724 |
and the things that have to be done if it runs standalone " |
|
2725 |
||
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2726 |
| newDirectories oldDirectories size rootInTreeView selection | |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2727 |
|
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2728 |
selection := self currentFileNameHolder value. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2729 |
self class currentSelection:selection. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2730 |
self hasSelection value:(selection notEmpty). |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2731 |
newDirectories := self directoriesForFiles:selection. |
4011 | 2732 |
oldDirectories := self currentDirectories value. |
2733 |
oldDirectories ~= newDirectories ifTrue:[ |
|
4347 | 2734 |
self currentDirectories value:newDirectories. |
2735 |
size := newDirectories size. |
|
2736 |
rootInTreeView := self application:#DirectoryTreeBrowser do:#rootHolder. |
|
2737 |
rootInTreeView := rootInTreeView notNil ifTrue:[rootInTreeView value]. |
|
2738 |
self enableDirectoryUp value:(((size == 1) and:[newDirectories first isRootDirectory not]) or:[(rootInTreeView notNil and:[rootInTreeView value asFilename isRootDirectory not])]). |
|
2739 |
newDirectories notEmpty ifTrue:[ |
|
2740 |
self dirHistory addToHistory:(newDirectories first asString). |
|
2741 |
]. |
|
2742 |
self enableHome value:((newDirectories includes:(Filename homeDirectory))not). |
|
4011 | 2743 |
]. |
4022 | 2744 |
self enableForward value:self canForward. |
4347 | 2745 |
self enableBack value:self canBackward. |
4011 | 2746 |
^ self |
2747 |
! |
|
2748 |
||
2749 |
filterModelChanged |
|
2750 |
||
2751 |
self filterBlockHolder value:(self getFilter). |
|
2752 |
! |
|
2753 |
||
3892 | 2754 |
update:something with:aParameter from:changedObject |
2755 |
||
2756 |
" do here all the things that have to be done for every part of the FileBrowserV2 |
|
2757 |
and the things that have to be done if it runs standalone " |
|
2758 |
||
2759 |
changedObject == self currentFileNameHolder ifTrue:[ |
|
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2760 |
self abstractCurrentFileNameHolderChanged. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2761 |
^ self |
3892 | 2762 |
]. |
3989 | 2763 |
changedObject == self sortCaseless ifTrue:[ |
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2764 |
self sortFileListsBy:#baseName withReverse:false. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2765 |
^ self |
3989 | 2766 |
]. |
4011 | 2767 |
(changedObject == self filterModel or:[changedObject == self showHiddenFiles]) ifTrue:[ |
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2768 |
self filterModelChanged. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2769 |
^ self |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2770 |
]. |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2771 |
changedObject == self rootHolder ifTrue:[ |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2772 |
self class rootHolder:(self rootHolder value). |
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
2773 |
^ self |
4004 | 2774 |
]. |
3989 | 2775 |
|
3892 | 2776 |
super update:something with:aParameter from:changedObject |
2777 |
! ! |
|
2778 |
||
2779 |
!AbstractFileBrowser methodsFor:'clipboard'! |
|
2780 |
||
2781 |
canPaste |
|
2782 |
||
2783 |
^ self aspectFor:#canPaste ifAbsent:[ false asValue ]. |
|
2784 |
! |
|
2785 |
||
2786 |
clipboard |
|
2787 |
||
2788 |
^ self aspectFor:#clipboard ifAbsent:[Clipboard new] |
|
2789 |
! |
|
2790 |
||
2791 |
copyFilesToClipBoard:colOfFiles |
|
2792 |
"defete current selected files/directories |
|
2793 |
" |
|
2794 |
self putInClipBoard:colOfFiles as:#copy. |
|
2795 |
! |
|
2796 |
||
2797 |
cutFilesToClipBoard:colOfFiles |
|
2798 |
"defete current selected files/directories |
|
2799 |
" |
|
2800 |
self putInClipBoard:colOfFiles as:#cut. |
|
2801 |
! |
|
2802 |
||
2803 |
emptyClipBoard |
|
2804 |
||
2805 |
self clipboard files:nil. |
|
2806 |
self canPaste value:false. |
|
2807 |
! |
|
2808 |
||
2809 |
putInClipBoard:colOfFiles as:aSymbol |
|
2810 |
||
2811 |
| stream clp| |
|
2812 |
||
2813 |
colOfFiles isEmpty ifTrue:[ ^ self]. |
|
2814 |
clp := self clipboard. |
|
2815 |
clp files:nil. |
|
2816 |
clp method:aSymbol. |
|
2817 |
stream := WriteStream on:''. |
|
2818 |
stream nextPutAll:aSymbol asString. |
|
2819 |
stream nextPutAll:' <'. |
|
2820 |
stream nextPutAll:colOfFiles first asString. |
|
2821 |
colOfFiles size > 1 ifTrue:[ |
|
4414 | 2822 |
stream nextPutAll:' ...'. |
3892 | 2823 |
]. |
2824 |
stream nextPutAll:'> to clipboard'. |
|
2825 |
||
2826 |
self notifyChannel value:stream contents. |
|
2827 |
stream close. |
|
2828 |
clp files:colOfFiles. |
|
2829 |
self canPaste value:true. |
|
2830 |
! ! |
|
2831 |
||
2832 |
!AbstractFileBrowser methodsFor:'drag & drop'! |
|
2833 |
||
2834 |
canDropArchiv:dropedObjects for:filename |
|
2835 |
||
2836 |
(filename isDirectory |
|
2837 |
and:[filename isWritable and:[dropedObjects notEmpty]]) ifTrue:[ |
|
4414 | 2838 |
^ true |
3892 | 2839 |
]. |
2840 |
^ false |
|
2841 |
! |
|
2842 |
||
2843 |
canDropFiles:dropedObjects for:filename |
|
2844 |
| checkObject filenameDirString checkObjectString filenameDir| |
|
2845 |
||
2846 |
dropedObjects isEmpty ifTrue:[^ false]. |
|
2847 |
filenameDir := self getDirWithoutFileName:filename. |
|
2848 |
filenameDir isWritable not ifTrue:[^ false]. |
|
2849 |
filenameDirString := filenameDir asString. |
|
2850 |
dropedObjects do:[:aObject | |
|
4414 | 2851 |
checkObject := aObject theObject. |
2852 |
checkObjectString := checkObject asString. |
|
2853 |
checkObject isDirectory ifTrue:[ |
|
2854 |
(self fileName:filenameDirString startsWith:checkObjectString) ifTrue:[ |
|
2855 |
" can not drop a directory in his parents " |
|
2856 |
^ false |
|
2857 |
] |
|
2858 |
] ifFalse:[ |
|
2859 |
(filenameDirString = checkObject directory asString |
|
2860 |
or:[ filenameDirString = checkObject physicalPathName asFilename directory asString ]) ifTrue:[ |
|
2861 |
" can not drop a file in same directory " |
|
2862 |
^ false |
|
2863 |
] |
|
2864 |
] |
|
3892 | 2865 |
]. |
2866 |
^ true |
|
2867 |
! |
|
2868 |
||
2869 |
doStartDrag:aDropSource in:aView |
|
2870 |
"set the cursors before starting the drag & drop operation |
|
2871 |
" |
|
2872 |
|hdl| |
|
2873 |
||
2874 |
||
2875 |
hdl := DragAndDropManager new. |
|
2876 |
||
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
2877 |
hdl disabledCursor:self class disabledCursorImage. |
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
2878 |
hdl enabledCursor:self class enabledCursorImage. |
3892 | 2879 |
hdl alienCursor:nil. |
2880 |
||
2881 |
hdl startDragFrom:aView dropSource:aDropSource offset:#topLeft |
|
2882 |
! ! |
|
2883 |
||
2884 |
!AbstractFileBrowser methodsFor:'file operations'! |
|
2885 |
||
2886 |
copyFile:aSourceFile to:aDestFile |
|
2887 |
"copy to |
|
2888 |
" |
|
2889 |
|copy| |
|
2890 |
||
2891 |
copy := FileOperation copy copyFile:aSourceFile to:aDestFile withOverWriteWarning:true copyFileIfSame:true. |
|
2892 |
copy result ifTrue:[ |
|
4414 | 2893 |
self notifyChannel value:('copy ', aSourceFile baseName, ' to:,', aDestFile baseName). |
3892 | 2894 |
] ifFalse:[ |
4414 | 2895 |
self notifyChannel value:copy errorString. |
3892 | 2896 |
]. |
2897 |
^ copy result |
|
2898 |
! |
|
2899 |
||
2900 |
copyFiles:aColOfSourceFiles to:aDirectory |
|
2901 |
"copy aColOfSourceFiles to aDirectory |
|
2902 |
" |
|
2903 |
|copy| |
|
2904 |
||
2905 |
copy := FileOperation copy copyFiles:aColOfSourceFiles to:aDirectory. |
|
2906 |
copy result ifFalse:[ |
|
4414 | 2907 |
self notifyChannel value:copy errorString. |
3892 | 2908 |
]. |
2909 |
self updateCurrentDirectory. |
|
2910 |
^ copy colOfCopiedFiles |
|
2911 |
! |
|
2912 |
||
2913 |
copyOrMoveDialog:aCol |
|
2914 |
||
2915 |
| size stream dialog| |
|
2916 |
||
2917 |
size := aCol size. |
|
2918 |
stream := WriteStream on:''. |
|
2919 |
stream nextPutAll:'copy or move file'. |
|
2920 |
size == 1 ifFalse:[ |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2921 |
stream nextPutAll:'s'. |
3892 | 2922 |
]. |
2923 |
stream nextPutAll:': '. |
|
2924 |
stream nextPutAll:aCol first baseName asString. |
|
2925 |
size == 1 ifFalse:[ |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2926 |
stream nextPutAll:' ... '. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2927 |
stream nextPutAll:aCol last baseName asString. |
3892 | 2928 |
]. |
2929 |
||
2930 |
dialog := OptionBox |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2931 |
request:stream contents |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2932 |
label:'Move or Copy' |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2933 |
form:(WarningBox iconBitmap) |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2934 |
buttonLabels:#('Cancel' 'Move' 'Copy' 'Copy As...') |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2935 |
values:#(#cancel #move #copy #copyAs) |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2936 |
default:#copy. |
3892 | 2937 |
dialog isNil ifTrue:[dialog := #cancel]. |
2938 |
^ dialog. |
|
2939 |
! |
|
2940 |
||
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2941 |
copyOrMoveFiles:aColOfSourceFiles to:aDestinationDirectory |
3892 | 2942 |
"copy aColOfSourceFiles to aDirectory |
2943 |
" |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2944 |
|dialog lastOld lastNew| |
3892 | 2945 |
|
2946 |
dialog := self copyOrMoveDialog:aColOfSourceFiles. |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2947 |
dialog == #copyAs ifTrue:[ |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2948 |
aColOfSourceFiles do:[:eachSourceFile | |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2949 |
|initial destFile srcBase dstBase| |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2950 |
|
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2951 |
srcBase := eachSourceFile asFilename baseName. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2952 |
lastOld isNil ifTrue:[ |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2953 |
initial := srcBase |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2954 |
] ifFalse:[ |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2955 |
initial := DoWhatIMeanSupport |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2956 |
goodRenameDefaultForFile:srcBase lastOld:lastOld lastNew:lastNew. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2957 |
]. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2958 |
dstBase := Dialog request:('Copy %1 as:' bindWith:srcBase) initialAnswer:initial. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2959 |
dstBase isNil ifTrue:[^ self]. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2960 |
self copyFile:eachSourceFile to:(aDestinationDirectory construct:dstBase). |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2961 |
lastOld := srcBase. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2962 |
lastNew := dstBase. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2963 |
]. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2964 |
|
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2965 |
^ self. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2966 |
]. |
3892 | 2967 |
dialog == #copy ifTrue:[ |
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2968 |
self copyFiles:aColOfSourceFiles to:aDestinationDirectory. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2969 |
^ self. |
3892 | 2970 |
]. |
2971 |
dialog == #move ifTrue:[ |
|
4354
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2972 |
self moveFiles:aColOfSourceFiles to:aDestinationDirectory. |
0a1239cd339d
added copyAs in drag and drop
Claus Gittinger <cg@exept.de>
parents:
4347
diff
changeset
|
2973 |
^ self. |
3892 | 2974 |
]. |
2975 |
! |
|
2976 |
||
2977 |
deleteFile:aFile |
|
2978 |
"delete current selected files/directories |
|
2979 |
" |
|
2980 |
||
2981 |
^ self deleteFiles:(OrderedCollection with:aFile). |
|
2982 |
! |
|
2983 |
||
2984 |
deleteFiles:colOfFiles |
|
2985 |
"delete current selected files/directories |
|
2986 |
" |
|
2987 |
|delete| |
|
2988 |
||
4394 | 2989 |
self withWaitCursorDo:[ |
2990 |
delete := FileOperation delete deleteFiles:colOfFiles. |
|
2991 |
delete result ifFalse:[ |
|
2992 |
self notifyChannel value:delete errorString. |
|
2993 |
]. |
|
2994 |
self updateCurrentDirectory. |
|
3892 | 2995 |
]. |
2996 |
^ delete result. |
|
2997 |
! |
|
2998 |
||
2999 |
moveFile:aSourceFile to:aDestFile |
|
3000 |
"defete current selected files/directories |
|
3001 |
" |
|
3002 |
||
3003 |
|move| |
|
3004 |
||
3005 |
move := FileOperation move moveFile:aSourceFile to:aDestFile. |
|
3006 |
move result ifTrue:[ |
|
4414 | 3007 |
self notifyChannel value:('move ', aSourceFile asString, ' to ', aDestFile asString). |
3892 | 3008 |
] ifFalse:[ |
4414 | 3009 |
self notifyChannel value:move errorString. |
3892 | 3010 |
]. |
3011 |
self updateCurrentDirectory. |
|
3012 |
^ move result |
|
3013 |
! |
|
3014 |
||
3015 |
moveFiles:aColOfSourceFiles to:aDirectory |
|
3016 |
"move aColOfSourceFiles to aDirectory |
|
3017 |
" |
|
3018 |
|move| |
|
3019 |
||
3020 |
move := FileOperation move moveFiles:aColOfSourceFiles to:aDirectory. |
|
3021 |
move result ifFalse:[ |
|
4414 | 3022 |
self notifyChannel value:move errorString. |
3892 | 3023 |
]. |
3024 |
self updateCurrentDirectory. |
|
3025 |
^ move colOfMovedFiles |
|
3026 |
! |
|
3027 |
||
3028 |
newDirectory |
|
3029 |
"ask for and create a new directory" |
|
3030 |
||
3031 |
| directories directory create newFile| |
|
3032 |
||
3033 |
directories := self currentDirectories value. |
|
3034 |
(directories size ~= 1) ifTrue:[^ self]. |
|
3035 |
directory := directories first. |
|
3036 |
create := FileOperation create createDirectoryIn:directory. |
|
3037 |
create result ifFalse:[ ^ self]. |
|
3038 |
newFile := create createdFile. |
|
3039 |
newFile notNil ifTrue:[ |
|
4414 | 3040 |
self updateCurrentDirectory. |
3892 | 3041 |
] |
3042 |
! |
|
3043 |
||
3044 |
newFile |
|
3045 |
"ask for and create a new file" |
|
3046 |
||
3047 |
| curFile directories directory create file| |
|
3048 |
||
3049 |
directories := self currentDirectories value. |
|
3050 |
(directories size ~= 1) ifTrue:[^ self]. |
|
3051 |
directory := directories first. |
|
3982 | 3052 |
curFile := self firstSelectedFile. |
3892 | 3053 |
curFile notNil ifTrue:[ |
4414 | 3054 |
file := curFile. |
3892 | 3055 |
] ifFalse:[ |
4414 | 3056 |
file := directory. |
3892 | 3057 |
]. |
3058 |
create := FileOperation create createFileIn:file. |
|
3059 |
create result ifFalse:[ ^ self]. |
|
3060 |
self updateAndSelect:(OrderedCollection with:(create createdFile)). |
|
3061 |
! |
|
3062 |
||
3063 |
newHardLink |
|
3064 |
"ask for and create a hard link (unix only)" |
|
3065 |
||
3066 |
self newLink:false. |
|
3067 |
! |
|
3068 |
||
3069 |
newLink:symbolic |
|
3070 |
||
3071 |
"ask for and create a symbolic if symbolic is true otherwise a hard link (unix only)" |
|
3072 |
||
3073 |
| sel create createdFile| |
|
3074 |
||
3075 |
sel := self currentFileNameHolder value. |
|
3076 |
(sel size ~= 1) ifTrue:[^ self]. |
|
3077 |
symbolic ifTrue:[ |
|
4414 | 3078 |
create := FileOperation create createSoftLinkIn:(sel first). |
3892 | 3079 |
] ifFalse:[ |
4414 | 3080 |
create := FileOperation create createHardLinkIn:(sel first). |
3892 | 3081 |
]. |
3082 |
create result ifFalse:[ ^ self]. |
|
3083 |
createdFile := create createdFile. |
|
3084 |
createdFile notNil ifTrue:[ |
|
4414 | 3085 |
self updateAndSelect:(OrderedCollection with:createdFile). |
3892 | 3086 |
]. |
3087 |
! |
|
3088 |
||
3089 |
newSoftLink |
|
3090 |
"ask for and create a soft link (unix only)" |
|
3091 |
||
3092 |
self newLink:true. |
|
3093 |
! |
|
3094 |
||
3095 |
pasteFiles |
|
3096 |
"defete current selected files/directories |
|
3097 |
" |
|
3098 |
| buffer destination files directories copiedFiles| |
|
3099 |
||
3100 |
files := self clipboard files. |
|
3101 |
(files isNil or:[files isEmpty]) ifTrue:[ ^ self ]. |
|
3102 |
buffer := self clipboard copy. |
|
3982 | 3103 |
directories := self currentSelectedDirectories. |
3892 | 3104 |
directories isEmpty ifTrue:[ |
4414 | 3105 |
|box dirStringCol| |
3106 |
dirStringCol := directories collect:[:aDir| aDir asString]. |
|
3107 |
box := ListSelectionBox new. |
|
3108 |
box title:'In which directory you want to paste ?'. |
|
3109 |
box list:dirStringCol. |
|
3110 |
box okAction:[:sel | destination := sel asFilename]. |
|
3111 |
box showAtPointer |
|
3892 | 3112 |
] ifFalse:[ |
4414 | 3113 |
destination := directories first. |
3892 | 3114 |
]. |
3115 |
copiedFiles := self copyFiles:(buffer files) to:destination. |
|
3116 |
||
3117 |
(self clipboard method == #cut) ifTrue:[ |
|
4414 | 3118 |
self deleteFiles:copiedFiles. |
3892 | 3119 |
] |
3120 |
! |
|
3121 |
||
3122 |
renameFile:aFile |
|
3123 |
"rename the selected file(s)" |
|
3124 |
||
3125 |
^ self renameFiles:(OrderedCollection with:aFile). |
|
3126 |
! |
|
3127 |
||
4230 | 3128 |
renameFile:filename to:newFileString update:aBoolean |
3892 | 3129 |
"rename filename to newFileString" |
3130 |
||
3131 |
|rename| |
|
3132 |
||
3133 |
rename := FileOperation rename renameFile:filename to:newFileString. |
|
3134 |
rename result ifTrue:[ |
|
4230 | 3135 |
aBoolean ifTrue:[ |
3136 |
self updateAndSelect:(rename renamedFiles). |
|
3137 |
]. |
|
3892 | 3138 |
] ifFalse:[ |
4230 | 3139 |
self notifyChannel value:rename errorString. |
3892 | 3140 |
]. |
3141 |
^ rename result |
|
3142 |
! |
|
3143 |
||
3144 |
renameFiles:aColOfFiles |
|
3145 |
"rename the selected file(s)" |
|
3146 |
||
3147 |
|rename| |
|
3148 |
||
3149 |
rename := FileOperation rename renameFiles:aColOfFiles. |
|
3150 |
rename result ifFalse:[ |
|
4230 | 3151 |
self notifyChannel value:rename errorString |
3892 | 3152 |
] ifTrue:[ |
4230 | 3153 |
"/ self updateAndSelect:(rename renamedFiles) |
3892 | 3154 |
]. |
3155 |
^ rename result |
|
3156 |
! |
|
3157 |
||
3158 |
renameSelection |
|
3159 |
"rename the selected file(s)" |
|
3160 |
||
4230 | 3161 |
self renameFiles:self currentFileNameHolder value |
3892 | 3162 |
! ! |
3163 |
||
4080 | 3164 |
!AbstractFileBrowser methodsFor:'menu accessing'! |
3892 | 3165 |
|
3952 | 3166 |
bookmarksMenuSpec |
3167 |
"This resource specification was automatically generated |
|
3168 |
by the MenuEditor of ST/X." |
|
3169 |
||
3170 |
"Do not manually edit this!! If it is corrupted, |
|
3171 |
the MenuEditor may not be able to read the specification." |
|
3172 |
||
3173 |
" |
|
3174 |
MenuEditor new openOnClass:FileBrowser andSelector:#bookmarksMenuSpec |
|
3175 |
(Menu new fromLiteralArrayEncoding:(AbstractFileBrowser bookmarksMenuSpec)) startUp |
|
3176 |
" |
|
3177 |
<resource: #programMenu> |
|
3178 |
||
4080 | 3179 |
|menuSpec menu bookmarks| |
3180 |
||
3181 |
menuSpec := self class baseBookmarksMenuSpec. |
|
3182 |
menu := menuSpec decodeAsLiteralArray. |
|
3183 |
menu findGuiResourcesIn:self. |
|
3952 | 3184 |
menu receiver:self. |
3185 |
bookmarks := self class directoryBookmarks. |
|
3186 |
"/ add the history items ... |
|
3187 |
||
3188 |
bookmarks size > 0 ifTrue:[ |
|
4414 | 3189 |
menu addItem:(MenuItem labeled:'-'). |
3190 |
bookmarks do:[:dirName | |
|
3191 |
menu addItem:((MenuItem label:dirName asString value:[ |
|
3192 |
(self currentDirectories value includes:dirName) ifFalse:[ |
|
3193 |
self currentFileNameHolder value:(OrderedCollection with:dirName). |
|
3194 |
]. |
|
3195 |
])). |
|
3196 |
]. |
|
3952 | 3197 |
]. |
3198 |
^ menu |
|
3199 |
||
3200 |
"Modified: / 17.8.1998 / 10:13:05 / cg" |
|
3201 |
! |
|
3202 |
||
4347 | 3203 |
canBackward |
3204 |
||
3205 |
||
3206 |
^ self dirHistory canBackward. |
|
3906 | 3207 |
! |
3208 |
||
3209 |
canForward |
|
3210 |
||
3964 | 3211 |
"/ | currentSelection | |
3212 |
"/ |
|
3213 |
"/ currentSelection := self currentDirectories value. |
|
3214 |
"/ currentSelection size ~~ 1 ifTrue:[ ^ false]. |
|
3215 |
||
3906 | 3216 |
^ self dirHistory canForward. |
3217 |
! |
|
3218 |
||
3892 | 3219 |
menuDirHistory:backOrForward |
3220 |
"initialize the directory menu |
|
3221 |
" |
|
3222 |
<resource: #programMenu > |
|
3223 |
||
3964 | 3224 |
|menu pathList currentSel currentPath| |
3892 | 3225 |
|
3226 |
menu := Menu new. |
|
3227 |
menu receiver:self. |
|
3228 |
||
3229 |
self dirHistory isEmpty ifTrue:[^ nil]. |
|
3230 |
backOrForward == #back ifTrue:[ |
|
4347 | 3231 |
currentSel := self currentDirectories value. |
3232 |
currentSel size == 1 ifTrue:[ |
|
3233 |
currentPath := currentSel first asString. |
|
3234 |
] ifFalse:[ |
|
3235 |
currentPath := nil. |
|
3236 |
]. |
|
3237 |
pathList := self dirHistory getBackCollection. |
|
3892 | 3238 |
] ifFalse:[ |
4347 | 3239 |
pathList := self dirHistory getForwardCollection. |
3892 | 3240 |
]. |
4022 | 3241 |
pathList isEmpty ifTrue:[ ^ nil]. |
3964 | 3242 |
pathList do:[:aPath| |
4347 | 3243 |
| menuItem | |
3244 |
menuItem := MenuItem new. |
|
3245 |
menuItem label:aPath. |
|
3246 |
menuItem value:[ |
|
3247 |
self currentFileNameHolder value:(OrderedCollection with:(aPath asFilename)). |
|
3248 |
]. |
|
3249 |
menu addItem:menuItem. |
|
3952 | 3250 |
]. |
3892 | 3251 |
^ menu |
3252 |
! |
|
3253 |
||
3254 |
menuDirHistoryBack |
|
3255 |
"initialize the directory menu |
|
3256 |
" |
|
3257 |
<resource: #programMenu > |
|
3258 |
||
3259 |
^ self menuDirHistory:#back. |
|
3260 |
! |
|
3261 |
||
3262 |
menuDirHistoryForward |
|
3263 |
"initialize the directory menu |
|
3264 |
" |
|
3265 |
<resource: #programMenu > |
|
3266 |
||
3267 |
^ self menuDirHistory:#forward. |
|
3906 | 3268 |
! |
3269 |
||
3270 |
menuFileHistory |
|
3271 |
"initialize the file history menu |
|
3272 |
" |
|
3273 |
<resource: #programMenu > |
|
3274 |
||
3275 |
|menu hist text removeItem removeCol| |
|
3276 |
||
3277 |
menu := Menu new. |
|
4080 | 3278 |
menu findGuiResourcesIn:self. |
3906 | 3279 |
menu receiver:self. |
3280 |
||
3281 |
hist := self fileHistory. |
|
3282 |
hist isEmpty ifTrue:[^ nil]. |
|
4391
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3283 |
|
3906 | 3284 |
removeCol := OrderedCollection new. |
3285 |
hist do:[:aFileItem| |
|
4391
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3286 |
aFileItem fileName exists ifTrue:[ |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3287 |
menu addItem:(MenuItem label: aFileItem fileName asString value:[ |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3288 |
self currentFileNameHolder value:(OrderedCollection with:(aFileItem fileName)). |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3289 |
self openApplByFileItem:aFileItem |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3290 |
]). |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3291 |
] ifFalse:[ |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3292 |
removeCol add:aFileItem. |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3293 |
] |
3906 | 3294 |
]. |
3295 |
"/ remove all not existing history entries |
|
3296 |
removeCol do:[ : el | |
|
4391
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3297 |
hist remove:el. |
3906 | 3298 |
]. |
4080 | 3299 |
removeItem := MenuItem new. |
3300 |
removeItem translateLabel:true. |
|
4391
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3301 |
text := resources string:'Clear History'. |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3302 |
"/ text := LabelAndIcon icon:(self class clearHistoryIcon) string:text. |
4080 | 3303 |
removeItem label:text. |
3304 |
removeItem value:[ |
|
4391
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3305 |
self fileHistory removeAll. |
05ad03de6f3c
no icon in clearHistory menuItem
Claus Gittinger <cg@exept.de>
parents:
4368
diff
changeset
|
3306 |
self enableFileHistory value:false. |
3906 | 3307 |
]. |
3308 |
menu addItem:(MenuItem label:'-'). |
|
3309 |
menu addItem:removeItem. |
|
3310 |
^ menu |
|
3952 | 3311 |
! |
3312 |
||
4080 | 3313 |
sortMenu |
3314 |
||
3315 |
<resource: #programMenu > |
|
3316 |
||
3317 |
|menu| |
|
3318 |
||
3319 |
menu := Menu new fromLiteralArrayEncoding:self class sortMenu. |
|
3320 |
menu ifNil:[ ^ nil ]. |
|
3321 |
menu findGuiResourcesIn:self. |
|
3322 |
menu receiver:self. |
|
3323 |
^ menu |
|
3324 |
! |
|
3325 |
||
3326 |
viewDetailsMenuSpec |
|
3327 |
^self class viewDetailsMenuSpec |
|
3328 |
! |
|
3329 |
||
3330 |
viewInContentsBrowserMenu |
|
3331 |
||
3332 |
^ self application:#DirectoryContentsBrowser do:#viewBrowserMenu |
|
3333 |
! |
|
3334 |
||
3952 | 3335 |
visitedDirectoriesMenu |
3336 |
||
3337 |
<resource: #programMenu > |
|
3338 |
||
3339 |
|menu histCopy text removeItem| |
|
3340 |
||
3341 |
menu := Menu new. |
|
3342 |
menu receiver:self. |
|
3343 |
||
3344 |
self dirHistory isEmpty ifTrue:[^ nil]. |
|
4040 | 3345 |
text := LabelAndIcon icon:(self class clearHistoryIcon) string:(resources string:'Clear History'). |
3952 | 3346 |
removeItem := MenuItem new. |
4040 | 3347 |
removeItem translateLabel:true. |
3952 | 3348 |
removeItem label:text. |
3349 |
removeItem value:[ |
|
4347 | 3350 |
self dirHistory removeAll. |
3351 |
self enableForward value:self canForward. |
|
3352 |
self enableBack value:self canBackward. |
|
3952 | 3353 |
]. |
3354 |
histCopy := self dirHistory. |
|
3355 |
histCopy do:[:aFile| |
|
4347 | 3356 |
menu addItem:(MenuItem label:aFile asString value:[ |
3357 |
self currentFileNameHolder value:(OrderedCollection with:(aFile path asFilename)). |
|
3358 |
]). |
|
3952 | 3359 |
]. |
3360 |
menu addItem:(MenuItem label:'-'). |
|
3361 |
menu addItem:removeItem. |
|
3362 |
^ menu |
|
3892 | 3363 |
! ! |
3364 |
||
4358 | 3365 |
!AbstractFileBrowser methodsFor:'menu actions - cvs'! |
3892 | 3366 |
|
3367 |
cvsAddAndCommit |
|
3368 |
||
4046
2f096def132b
commit in after add checks now only the added files in not all
penk
parents:
4040
diff
changeset
|
3369 |
|sel log cmd dir executionBlock nameString block| |
3892 | 3370 |
|
3371 |
log := Dialog |
|
4414 | 3372 |
requestText:(resources string:'enter initial log message') |
3373 |
lines:10 |
|
3374 |
columns:70 |
|
3375 |
initialAnswer:nil. |
|
3892 | 3376 |
|
3982 | 3377 |
sel := self currentSelectedFiles. |
3892 | 3378 |
executionBlock := [ : stream | |
4414 | 3379 |
log notNil ifTrue:[ |
3380 |
sel size > 0 ifTrue:[ |
|
3381 |
sel do:[:fn | |
|
3382 |
dir := self getDirWithoutFileName:fn. |
|
3383 |
cmd := ('cvs add -m ''' , log , ''' ' , fn baseName). |
|
3384 |
block := self getExecutionBlockForCommand:cmd inDirectory:dir. |
|
3385 |
block value:stream. |
|
3386 |
cmd := ('cvs commit -l -m ''' , log , ''' ' , fn baseName). |
|
3387 |
block := self getExecutionBlockForCommand:cmd inDirectory:dir. |
|
3388 |
block value:stream. |
|
3389 |
] |
|
3390 |
] |
|
3391 |
] |
|
3892 | 3392 |
]. |
4107 | 3393 |
nameString := 'Command> cvs add and commit'. |
3892 | 3394 |
self makeExecutionResultProcessFor:executionBlock withName:nameString. |
3395 |
! |
|
3396 |
||
3397 |
cvsCommit |
|
3398 |
||
4107 | 3399 |
|nSel log msg cmd selectedFiles sel executionBlock nameString| |
3892 | 3400 |
|
3982 | 3401 |
selectedFiles:= self currentSelectedFiles. |
3892 | 3402 |
nSel := selectedFiles size. |
3403 |
||
3404 |
nSel == 1 ifTrue:[ |
|
4414 | 3405 |
msg := resources string:'enter log message for checkIn of ''%1''' with:(selectedFiles first baseName) |
3892 | 3406 |
] ifFalse:[ |
4414 | 3407 |
nSel > 1 ifTrue:[ |
3408 |
msg := resources string:'enter log message for %1 files to checkIn' with:nSel printString |
|
3409 |
] ifFalse:[ |
|
3410 |
msg := resources string:'enter log message for checkIn' |
|
3411 |
] |
|
3892 | 3412 |
]. |
3413 |
||
3414 |
log := Dialog |
|
4414 | 3415 |
requestText:msg |
3416 |
lines:10 |
|
3417 |
columns:70 |
|
3418 |
initialAnswer:nil. |
|
3892 | 3419 |
|
3420 |
log notNil ifTrue:[ |
|
4414 | 3421 |
sel := self currentFileNameHolder value. |
3422 |
sel isEmpty ifTrue:[ ^ self ]. |
|
3423 |
executionBlock := [ : stream | |
|
3424 |
log notNil ifTrue:[ |
|
3425 |
sel size > 0 ifTrue:[ |
|
3426 |
sel do:[:fn | |
|
3427 |
| dir block | |
|
3428 |
dir := fn directory. |
|
3429 |
cmd := ('cvs commit -m ''' , log , ''' ' , fn baseName). |
|
3430 |
block := self getExecutionBlockForCommand:cmd inDirectory:dir. |
|
3431 |
block value:stream. |
|
3432 |
] |
|
3433 |
] |
|
3434 |
] |
|
3435 |
]. |
|
4107 | 3436 |
]. |
3437 |
nameString := 'Command> cvs commit'. |
|
3438 |
self makeExecutionResultProcessFor:executionBlock withName:nameString. |
|
3892 | 3439 |
! |
3440 |
||
3441 |
cvsRemoveAndRemoveFromCVS:filesToRemove |
|
3442 |
"remove the selected file(s) and their CVS containers - no questions asked" |
|
3443 |
||
3444 |
|msg toRemove updateRunning cmd executionBlock nameString| |
|
3445 |
||
3446 |
updateRunning := self backgroundProcesses value notEmpty. |
|
3447 |
self killAllRunningBackgroundProcesses. |
|
3448 |
toRemove := OrderedCollection new. |
|
3449 |
||
3450 |
executionBlock := [ : stream | |
|
4414 | 3451 |
| block | |
3452 |
filesToRemove do:[:fileName | |
|
3453 |
OperatingSystem accessDeniedErrorSignal handle:[:ex| |
|
3454 |
"was not able to remove it" |
|
3455 |
| lastError | |
|
3456 |
lastError := OperatingSystem lastErrorString. |
|
3457 |
msg := (resources string:'cannot remove ''%1'' !!' with:fileName). |
|
3458 |
lastError isNil ifFalse:[ |
|
3459 |
msg := msg , '\\(' , lastError , ')' |
|
3460 |
]. |
|
3461 |
Dialog warn:msg withCRs |
|
3462 |
] do:[ |
|
3463 |
|answer contents| |
|
3464 |
||
3465 |
(fileName isSymbolicLink not) ifTrue:[ |
|
3466 |
fileName remove. |
|
3467 |
cmd := ('cvs remove -f ' , fileName baseName). |
|
3468 |
block := self getExecutionBlockForCommand:cmd. |
|
3469 |
block value:stream. |
|
3470 |
] |
|
3471 |
]. |
|
3472 |
]. |
|
3473 |
||
3474 |
cmd := ('cvs commit -m ''removed via FileBrowser'''). |
|
3475 |
block := self getExecutionBlockForCommand:cmd. |
|
3476 |
block value:stream. |
|
3892 | 3477 |
]. |
4107 | 3478 |
nameString := 'Command> cvs remove and commit ', filesToRemove first baseName. |
3892 | 3479 |
filesToRemove size > 1 ifTrue:[ |
4414 | 3480 |
nameString := nameString, ' ...'. |
3892 | 3481 |
]. |
3482 |
self makeExecutionResultProcessFor:executionBlock withName:nameString. |
|
3483 |
! |
|
3484 |
||
3485 |
cvsRemoveFileAndCVSContainer |
|
3486 |
||
3487 |
|sel question aswer| |
|
3488 |
||
4294 | 3489 |
sel := self currentSelectedFiles copy. |
3892 | 3490 |
sel size > 0 ifTrue:[ |
4294 | 3491 |
sel size > 1 ifTrue:[ |
3492 |
question := resources string:'Remove %1 selected files and their CVS containers ?' with:(sel size) |
|
3493 |
] ifFalse:[ |
|
3494 |
question := resources string:'Remove ''%1'' and its CVS container ?' with:(sel first baseName allBold) |
|
3495 |
]. |
|
3496 |
||
3497 |
aswer := Dialog |
|
3498 |
confirm:question withCRs |
|
3499 |
yesLabel:(resources at:'Remove') |
|
3500 |
noLabel:(resources at:'Cancel'). |
|
3501 |
aswer ifTrue:[ |
|
3502 |
self withCursor:(Cursor wait) do:[ |
|
3503 |
self cvsRemoveAndRemoveFromCVS:sel |
|
3504 |
] |
|
3505 |
] |
|
3892 | 3506 |
] |
3507 |
! |
|
3508 |
||
3509 |
cvsUpdateAll |
|
3510 |
||
3511 |
| cmd | |
|
3512 |
||
3513 |
cmd := 'cvs upd -l'. |
|
3514 |
self executeCommand:cmd. |
|
3515 |
! |
|
3516 |
||
3517 |
cvsUpdateAllRecursive |
|
3518 |
||
3519 |
| cmd | |
|
3520 |
||
3521 |
cmd := 'cvs upd -d'. |
|
3522 |
self executeCommand:cmd. |
|
3523 |
! |
|
3524 |
||
3525 |
cvsUpdateSelection |
|
3526 |
||
3527 |
| selectedFiles stream| |
|
3528 |
||
3529 |
||
3982 | 3530 |
selectedFiles:= self currentSelectedFiles. |
3892 | 3531 |
stream := WriteStream on:''. |
3532 |
stream nextPutAll:'cvs upd '. |
|
3533 |
selectedFiles do:[: file | |
|
4414 | 3534 |
stream nextPutAll:file baseName. |
3535 |
stream space. |
|
3892 | 3536 |
]. |
3537 |
self executeCommand:stream contents. |
|
3538 |
stream close. |
|
3539 |
! ! |
|
3540 |
||
3541 |
!AbstractFileBrowser methodsFor:'menu actions edit'! |
|
3542 |
||
4453
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3543 |
copyFiles |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3544 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3545 |
| files dirs| |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3546 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3547 |
files := self currentSelectedFiles. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3548 |
files notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3549 |
self copyFilesToClipBoard:(files). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3550 |
] ifFalse:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3551 |
dirs := self currentSelectedDirectories. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3552 |
dirs notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3553 |
self copyFilesToClipBoard:(dirs). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3554 |
]. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3555 |
]. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3556 |
! |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3557 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3558 |
cutFiles |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3559 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3560 |
| files dirs| |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3561 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3562 |
files := self currentSelectedFiles. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3563 |
files notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3564 |
self cutFilesToClipBoard:(files). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3565 |
] ifFalse:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3566 |
dirs := self currentSelectedDirectories. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3567 |
dirs notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3568 |
self cutFilesToClipBoard:(dirs). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3569 |
]. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3570 |
]. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3571 |
! |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3572 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3573 |
deleteFiles |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3574 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3575 |
| files dirs| |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3576 |
|
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3577 |
files := self currentSelectedFiles. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3578 |
files notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3579 |
self deleteFiles:(files). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3580 |
] ifFalse:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3581 |
dirs := self currentSelectedDirectories. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3582 |
dirs notEmpty ifTrue:[ |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3583 |
self deleteFiles:(dirs). |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3584 |
]. |
00e639bf2723
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4432
diff
changeset
|
3585 |
]. |
3892 | 3586 |
! ! |
3587 |
||
3588 |
!AbstractFileBrowser methodsFor:'menu actions tools'! |
|
3589 |
||
4367 | 3590 |
convertImageToGIF |
3591 |
|img tempFileXPM tempFilePPM tempFileGIF| |
|
3592 |
||
3593 |
[ |
|
3594 |
self withActivityIndicationDo:[ |
|
3595 |
self currentFileNameHolder value do:[:fileName | |
|
3596 |
fileName isDirectory ifFalse:[ |
|
3597 |
self notifyChannel value:('Convert to GIF:', fileName baseName). |
|
3598 |
img := Image fromFile:(fileName pathName). |
|
3599 |
img notNil ifTrue:[ |
|
3600 |
tempFileXPM := Filename newTemporary withSuffix:'xpm'. |
|
3601 |
tempFilePPM := tempFileXPM withSuffix:'ppm'. |
|
3602 |
tempFileGIF := tempFileXPM withSuffix:'gif'. |
|
3603 |
[ |
|
3604 |
img saveOn:tempFileXPM using:XPMReader. |
|
3605 |
||
3606 |
||
3607 |
(OperatingSystem |
|
3608 |
executeCommand:('xpmtoppm %1 > %2' |
|
3609 |
bindWith:tempFileXPM pathName |
|
3610 |
with:tempFilePPM pathName)) |
|
3611 |
ifFalse:[ |
|
3612 |
self warn:'Cannot convert to ppm format'. |
|
3613 |
] ifTrue:[ |
|
3614 |
(OperatingSystem |
|
3615 |
executeCommand:('ppmtogif %1 > %2' |
|
3616 |
bindWith:tempFilePPM pathName |
|
3617 |
with:tempFileGIF pathName)) |
|
3618 |
ifFalse:[ |
|
3619 |
self warn:'Cannot convert to gif format'. |
|
3620 |
] ifTrue:[ |
|
3621 |
tempFileGIF moveTo:(fileName withSuffix:'gif'). |
|
3622 |
self updateAndSelect:nil. |
|
3623 |
]. |
|
3624 |
]. |
|
3625 |
] ensure:[ |
|
3626 |
tempFileXPM delete. |
|
3627 |
tempFilePPM delete. |
|
3628 |
tempFileGIF delete. |
|
3629 |
] |
|
3630 |
] ifFalse:[ |
|
3631 |
self warn:'Unknown format/not an image: ' , fileName asString |
|
3632 |
] |
|
3633 |
] |
|
3634 |
]. |
|
3635 |
self notifyChannel value:''. |
|
3636 |
] |
|
3637 |
] fork. |
|
3638 |
! |
|
3639 |
||
3892 | 3640 |
createProjectAndOpenProjectBrowser |
3641 |
|nm f s directory| |
|
3642 |
||
3643 |
self currentFilesAreInSameDirectory ifFalse:[^ self]. |
|
3644 |
directory := self currentDirectories value first. |
|
3645 |
nm := directory baseName. |
|
3646 |
f := (directory construct:nm) withSuffix:'prj'. |
|
3647 |
f exists ifTrue:[ |
|
4414 | 3648 |
Dialog warn:'A file named ' , f baseName , ' already exists.'. |
3649 |
^ self. |
|
3892 | 3650 |
]. |
3651 |
s := f writeStream. |
|
3652 |
s nextPutAll:' |
|
3653 |
name ''' , nm , ''' |
|
3654 |
type #classLibrary |
|
3655 |
package #''private:' , nm , ''' |
|
3656 |
prerequisites nil |
|
3657 |
||
3658 |
classes #( ) |
|
3659 |
'. |
|
3660 |
s close. |
|
3661 |
ProjectBrowser openOnFile:f. |
|
3662 |
! |
|
3663 |
||
4230 | 3664 |
doMake |
3665 |
||
3666 |
| cmd | |
|
3667 |
||
3668 |
cmd := 'make'. |
|
3669 |
self executeCommand:cmd. |
|
3670 |
! |
|
3671 |
||
4317
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3672 |
doOpenSettings |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3673 |
|
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3674 |
| inst | |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3675 |
|
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3676 |
inst := FileBrowserV2SettingsFrame new. |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3677 |
inst requestor:self. |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3678 |
inst open. |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3679 |
! |
bf3f150809c2
settings is a new application now and will be inserted under tools in
penk
parents:
4294
diff
changeset
|
3680 |
|
3892 | 3681 |
fileFileIn |
3682 |
"fileIn the selected file(s)" |
|
3683 |
||
3684 |
self fileFileInLazy:false |
|
3685 |
! |
|
3686 |
||
3687 |
fileFileInLazy |
|
3688 |
"fileIn the selected file(s). Do a quick load (no compilation)" |
|
3689 |
||
3690 |
self fileFileInLazy:true |
|
3691 |
! |
|
3692 |
||
3693 |
fileFileInLazy:lazy |
|
3694 |
"fileIn the selected file(s)" |
|
3695 |
||
4345 | 3696 |
|
3697 |
[ |
|
3698 |
self withActivityIndicationDo:[ |
|
3699 |
| selectedFiles| |
|
3700 |
selectedFiles:= self currentSelectedFiles. |
|
3701 |
selectedFiles do:[:fileName | |
|
3702 |
self notifyChannel value:('File in:', fileName baseName). |
|
3703 |
self singleFileFileIn:fileName lazy:lazy |
|
3704 |
]. |
|
3705 |
self notifyChannel value:''. |
|
3706 |
] |
|
3707 |
] fork. |
|
3892 | 3708 |
! |
3709 |
||
3710 |
fileFileInToNameSpace |
|
3711 |
"fileIn the selected file(s)<into a nameSpace" |
|
3712 |
||
3713 |
|ns listOfKnownNameSpaces| |
|
3714 |
||
3715 |
listOfKnownNameSpaces := Set new. |
|
3716 |
NameSpace |
|
4414 | 3717 |
allNamespaces |
3718 |
do:[:eachNameSpace | |
|
3719 |
listOfKnownNameSpaces add:eachNameSpace name |
|
3720 |
]. |
|
3892 | 3721 |
listOfKnownNameSpaces := listOfKnownNameSpaces asOrderedCollection sort. |
3722 |
||
3723 |
ns := Dialog |
|
4414 | 3724 |
request:'During fileIn, new classes are created in nameSpace:' |
3725 |
initialAnswer:(LastEnforcedNameSpace ? Class nameSpaceQuerySignal query name) |
|
3726 |
list:listOfKnownNameSpaces. |
|
3892 | 3727 |
ns isEmptyOrNil ifTrue:[^ self]. |
3728 |
||
3729 |
LastEnforcedNameSpace := ns. |
|
3730 |
ns := NameSpace name:ns. |
|
3731 |
||
3732 |
Class nameSpaceQuerySignal |
|
4414 | 3733 |
answer:ns |
3734 |
do:[ |
|
3735 |
self fileFileInLazy:false |
|
3736 |
] |
|
3892 | 3737 |
! |
3738 |
||
3739 |
fileFindAllDuplicates |
|
3740 |
"scan directory and all subdirs for duplicate files" |
|
3741 |
||
3742 |
|fileNames dir infoDir filesBySize |
|
3743 |
result info dirPrefix myName stream textBox maxLength directories| |
|
3744 |
||
3745 |
||
3746 |
self withWaitCursorDo:[ |
|
4414 | 3747 |
result := Dictionary new. |
3748 |
myName := self class name asString. |
|
3749 |
directories := self currentSelectedDirectories. |
|
3750 |
directories isEmpty ifTrue:[^ self]. |
|
3892 | 3751 |
|
4414 | 3752 |
dir := directories first. |
3892 | 3753 |
"/ self label: myName, '- gathering file names ...'. |
4414 | 3754 |
fileNames := dir recursiveDirectoryContents. |
3755 |
fileNames := fileNames collect:[:fn | dir construct:fn]. |
|
3756 |
fileNames := fileNames select:[:fn | fn isDirectory not]. |
|
3892 | 3757 |
|
3758 |
"/ self label:myName , '- gathering sizes ...'. |
|
4414 | 3759 |
infoDir := Dictionary new. |
3760 |
fileNames do:[:fn | |
|
3761 |
infoDir at:fn put:(fn fileSize) |
|
3762 |
]. |
|
3763 |
||
3764 |
"/ for each, get the files size. |
|
3765 |
"/ in a first pass, look for files of the same size and |
|
3766 |
"/ compare them ... |
|
3892 | 3767 |
|
3768 |
"/ self label:myName , '- preselect possible duplicates ...'. |
|
4414 | 3769 |
filesBySize := Dictionary new. |
3770 |
infoDir keysAndValuesDo:[:fn :sz | |
|
3771 |
|entry| |
|
3772 |
||
3773 |
entry := filesBySize at:sz ifAbsentPut:[Set new]. |
|
3774 |
entry add:fn. |
|
3775 |
]. |
|
3776 |
||
3777 |
"/ any of same size ? |
|
3892 | 3778 |
|
3779 |
"/ self label:myName , '- checking for duplicates ...'. |
|
4414 | 3780 |
filesBySize do:[:entry | |
3781 |
|files| |
|
3782 |
||
3783 |
entry size > 1 ifTrue:[ |
|
3784 |
files := entry asArray. |
|
3785 |
1 to:files size-1 do:[:idx1 | |
|
3786 |
idx1+1 to:files size do:[:idx2 | |
|
3787 |
|fn1 fn2| |
|
3788 |
||
3789 |
fn1 := files at:idx1. |
|
3790 |
fn2 := files at:idx2. |
|
3892 | 3791 |
|
3792 |
"/ self label:myName , '- checking ' , fn1 baseName , ' vs. ' , fn2 baseName , ' ...'. |
|
4414 | 3793 |
(result at:fn2 ifAbsent:nil) ~= fn1 ifTrue:[ |
3794 |
"/ compare the files |
|
3795 |
(fn1 sameContentsAs:fn2) ifTrue:[ |
|
3892 | 3796 |
"/ Transcript show:'Same: '; show:fn1 baseName; show:' and '; showCR:fn2 baseName. |
4414 | 3797 |
result at:fn1 put:fn2. |
3798 |
] |
|
3799 |
] |
|
3800 |
] |
|
3801 |
] |
|
3802 |
] |
|
3803 |
]. |
|
3892 | 3804 |
|
3805 |
"/ self label:myName , '- sorting ...'. |
|
4414 | 3806 |
dirPrefix := dir pathName. |
3807 |
result := result associations. |
|
3808 |
result := result collect:[:assoc | |
|
3809 |
|f1 f2| |
|
3810 |
||
3811 |
f1 := assoc key name. |
|
3812 |
f2 := assoc value name. |
|
3813 |
(f1 startsWith:dirPrefix) ifTrue:[ |
|
3814 |
f1 := f1 copyFrom:dirPrefix size + 2. |
|
3815 |
]. |
|
3816 |
(f2 startsWith:dirPrefix) ifTrue:[ |
|
3817 |
f2 := f2 copyFrom:dirPrefix size + 2. |
|
3818 |
]. |
|
3819 |
f1 < f2 ifTrue:[ |
|
3820 |
f2 -> f1 |
|
3821 |
] ifFalse:[ |
|
3822 |
f1 -> f2 |
|
3823 |
] |
|
3824 |
]. |
|
3825 |
result sort:[:f1 :f2 | f2 value < f1 value]. |
|
3826 |
||
3827 |
info := OrderedCollection new. |
|
3828 |
result do:[:assoc | |
|
3829 |
info add:(assoc key , ' same as ' , assoc value) |
|
3830 |
]. |
|
3831 |
info isEmpty ifTrue:[ |
|
3832 |
info := 'No duplicate files found.' |
|
3833 |
]. |
|
3892 | 3834 |
]. |
3835 |
||
3836 |
stream := WriteStream on:''. |
|
3837 |
info do:[:el| |
|
4414 | 3838 |
stream nextPutAll:el. |
3839 |
stream cr. |
|
3892 | 3840 |
]. |
3841 |
textBox := TextBox new. |
|
3842 |
textBox initialText:(stream contents). |
|
3843 |
textBox title:'File dublicates in directory: ', dir asString. |
|
3844 |
textBox readOnly:true. |
|
3845 |
textBox noCancel. |
|
3846 |
textBox label:'Dublicates in ', dir asString. |
|
3847 |
maxLength := 10. |
|
3848 |
info do:[: el | |
|
4414 | 3849 |
maxLength := maxLength max:(el size). |
3892 | 3850 |
]. |
3851 |
textBox extent:((maxLength * 5)@(info size * 20)); sizeFixed:false. |
|
3852 |
textBox showAtPointer. |
|
3853 |
stream close. |
|
3854 |
"/ subView contents:info. |
|
3855 |
"/ self label:myName. |
|
3856 |
! |
|
3857 |
||
3858 |
fileFindDuplicates |
|
3859 |
"scan directory for duplicate files" |
|
3860 |
||
4050 | 3861 |
|fileNames infoDir filesBySize |
3892 | 3862 |
result info stream textBox maxLength directories allFiles titleStream size| |
3863 |
||
3864 |
"/ (self askIfModified:'contents has not been saved.\\Modifications will be lost when you proceed.' |
|
3865 |
"/ yesButton:'proceed') ifFalse:[^ self]. |
|
3866 |
||
3867 |
self withWaitCursorDo:[ |
|
4355 | 3868 |
result := Dictionary new. |
3869 |
||
3870 |
directories := self currentSelectedDirectories. |
|
3871 |
directories isEmpty ifTrue:[^ self]. |
|
3872 |
||
3873 |
allFiles := OrderedCollection new. |
|
3874 |
directories do:[ : dir| |
|
3875 |
fileNames := dir directoryContents. |
|
3876 |
fileNames := fileNames collect:[:fn | dir construct:fn]. |
|
3877 |
fileNames := fileNames select:[:fn | fn isDirectory not]. |
|
3878 |
allFiles addAll:fileNames. |
|
3879 |
]. |
|
3880 |
||
3881 |
infoDir := Dictionary new. |
|
3882 |
allFiles do:[:fn | |
|
3883 |
infoDir at:fn put:(fn info) |
|
3884 |
]. |
|
3885 |
||
3886 |
"/ for each, get the files size. |
|
3887 |
"/ in a first pass, look for files of the same size and |
|
3888 |
"/ compare them ... |
|
3889 |
||
3890 |
filesBySize := Dictionary new. |
|
3891 |
infoDir keysAndValuesDo:[:fn :info | |
|
3892 |
|sz entry| |
|
3893 |
||
3894 |
sz := info size. |
|
3895 |
entry := filesBySize at:sz ifAbsentPut:[Set new]. |
|
3896 |
entry add:fn. |
|
3897 |
]. |
|
3898 |
||
3899 |
"/ any of same size ? |
|
3900 |
||
3901 |
filesBySize do:[:entry | |
|
3902 |
|files| |
|
3903 |
||
3904 |
entry size > 1 ifTrue:[ |
|
3905 |
files := entry asArray. |
|
3906 |
1 to:files size-1 do:[:idx1 | |
|
3907 |
idx1+1 to:files size do:[:idx2 | |
|
3908 |
|fn1 fn2| |
|
3909 |
||
3910 |
fn1 := files at:idx1. |
|
3911 |
fn2 := files at:idx2. |
|
3912 |
||
3913 |
(result at:fn2 ifAbsent:nil) ~= fn1 ifTrue:[ |
|
3914 |
"/ compare the files |
|
3915 |
(fn1 sameContentsAs:fn2) ifTrue:[ |
|
3892 | 3916 |
"/ Transcript show:'Same: '; show:fn1 baseName; show:' and '; showCR:fn2 baseName. |
4355 | 3917 |
result at:fn1 put:fn2. |
3918 |
] |
|
3919 |
] |
|
3920 |
] |
|
3921 |
] |
|
3922 |
] |
|
3923 |
]. |
|
3924 |
||
3925 |
result := result associations. |
|
3926 |
result := result collect:[:assoc | |
|
3927 |
|f1 f2| |
|
3928 |
||
3929 |
f1 := assoc key asString. |
|
3930 |
f2 := assoc value asString. |
|
3931 |
f1 < f2 ifTrue:[ |
|
3932 |
f2 -> f1 |
|
3933 |
] ifFalse:[ |
|
3934 |
f1 -> f2 |
|
3935 |
] |
|
3936 |
]. |
|
3937 |
result sort:[:f1 :f2 | f2 value < f1 value]. |
|
3938 |
||
3939 |
info := OrderedCollection new. |
|
3940 |
size := self getBestDirectory asString size. |
|
3941 |
result do:[:assoc | |
|
3942 |
|fn1 fn2| |
|
3943 |
||
3944 |
fn1 := assoc key. |
|
3945 |
fn2 := assoc value. |
|
3946 |
size > 1 ifTrue:[ |
|
3947 |
fn1 := ('..', (fn1 copyFrom:(size + 1))). |
|
3948 |
fn2 := ('..', (fn2 copyFrom:(size + 1))). |
|
3949 |
]. |
|
3950 |
(fn1 includes:Character space) ifTrue:[ |
|
3951 |
fn1 := '"' , fn1 , '"' |
|
3952 |
]. |
|
3953 |
(fn2 includes:Character space) ifTrue:[ |
|
3954 |
fn2 := '"' , fn2 , '"' |
|
3955 |
]. |
|
3956 |
info add:(fn1 , ' same as ' , fn2) |
|
3957 |
]. |
|
3958 |
info isEmpty ifTrue:[ |
|
3959 |
info add:'No duplicate files found.' |
|
3960 |
]. |
|
3892 | 3961 |
]. |
3962 |
stream := WriteStream on:''. |
|
3963 |
info do:[:el| |
|
4355 | 3964 |
stream nextPutAll:el. |
3965 |
stream cr. |
|
3892 | 3966 |
]. |
3967 |
titleStream := WriteStream on:''. |
|
3968 |
titleStream nextPutAll:'File dublicates in director'. |
|
3969 |
directories size == 1 ifTrue:[ |
|
4355 | 3970 |
titleStream nextPutAll:'y: ', directories first asString. |
3892 | 3971 |
] ifFalse:[ |
4355 | 3972 |
titleStream nextPutAll:'ies: '. |
3973 |
titleStream cr. |
|
3974 |
directories do:[:dir| |
|
3975 |
size > 1 ifTrue:[ |
|
3976 |
titleStream nextPutAll:'..'. |
|
3977 |
titleStream nextPutAll:((dir asString) copyFrom:(size + 1)). |
|
3978 |
] ifFalse:[ |
|
3979 |
titleStream nextPutAll:(dir asString). |
|
3980 |
]. |
|
3981 |
titleStream cr. |
|
3982 |
] |
|
3892 | 3983 |
]. |
3984 |
||
3985 |
textBox := TextBox new. |
|
3986 |
textBox initialText:(stream contents). |
|
3987 |
textBox title:(titleStream contents). |
|
3988 |
textBox readOnly:true. |
|
3989 |
textBox noCancel. |
|
4170 | 3990 |
stream := WriteStream on:'Dublicates in '. |
3991 |
directories do:[ :aDirectory | |
|
4355 | 3992 |
stream nextPutAll:aDirectory baseName. |
3993 |
stream space. |
|
4050 | 3994 |
]. |
4170 | 3995 |
textBox label:stream contents. |
3892 | 3996 |
maxLength := 10. |
3997 |
info do:[: el | |
|
4355 | 3998 |
maxLength := maxLength max:(el size). |
3892 | 3999 |
]. |
4000 |
textBox extent:((maxLength * 5)@(info size * 10)); sizeFixed:false. |
|
4355 | 4001 |
textBox openModeless. "/ showAtPointer. |
3892 | 4002 |
! |
4003 |
||
4004 |
fileFindFile |
|
4005 |
|filename files| |
|
4006 |
||
4007 |
files := self currentFileNameHolder value. |
|
4008 |
files notEmpty ifTrue:[ |
|
4414 | 4009 |
filename := files first. |
3892 | 4010 |
] ifFalse:[ |
4414 | 4011 |
filename := (Filename homeDirectory). |
3892 | 4012 |
]. |
4101 | 4013 |
FindFileApplication openOnFileName:filename for:self. |
3892 | 4014 |
! |
4015 |
||
4016 |
installAllAsAutoloaded |
|
4017 |
"install all classes found here as autoloaded classes" |
|
4018 |
||
4345 | 4019 |
[ |
4020 |
self withActivityIndicationDo:[ |
|
4343 | 4021 |
self allItemsOfCurrentDirectory do:[:fileItem | |
4022 |
(fileItem hasMimeType and:[fileItem mimeType isSmalltalkSource]) ifTrue:[ |
|
4345 | 4023 |
self notifyChannel value:('Install as Autoloaded:', fileItem baseName). |
4343 | 4024 |
self installAsAutoloaded:(fileItem fileName). |
4025 |
] |
|
4026 |
]. |
|
4345 | 4027 |
self notifyChannel value:''. |
4028 |
] |
|
4029 |
] fork. |
|
3892 | 4030 |
! |
4031 |
||
4032 |
installAsAutoloaded:aFilename |
|
4033 |
"install aFilename as autoloaded class" |
|
4034 |
||
4035 |
|chunks s| |
|
4036 |
||
4037 |
chunks := ChangeSet fromStream:(s := aFilename asFilename readStream). s close. |
|
4038 |
chunks |
|
4414 | 4039 |
select:[:eachChunk | eachChunk isClassDefinitionChange] |
4040 |
thenDo:[:eachClassChunk | eachClassChunk installAsAutoloadedClassIfNotPrivate]. |
|
3892 | 4041 |
! |
4042 |
||
4043 |
loadImageAndPerform:aSelectorOrBlock |
|
4044 |
||
4045 |
|img path files| |
|
4046 |
||
3982 | 4047 |
files := self currentSelectedFiles. |
3892 | 4048 |
files isEmpty ifTrue:[ ^ self]. |
4049 |
files do:[:fileName | |
|
4414 | 4050 |
path := fileName. |
4051 |
path isDirectory ifFalse:[ |
|
4052 |
img := Image fromFile:(path pathName). |
|
4053 |
img notNil ifTrue:[ |
|
4054 |
aSelectorOrBlock isSymbol ifTrue:[ |
|
4055 |
img perform:aSelectorOrBlock |
|
4056 |
] ifFalse:[ |
|
4057 |
aSelectorOrBlock value:img |
|
4058 |
] |
|
4059 |
] ifFalse:[ |
|
4060 |
Dialog warn:'unknown format: ' , fileName asString |
|
4061 |
] |
|
4062 |
] |
|
3892 | 4063 |
]. |
4064 |
! |
|
4065 |
||
4066 |
openASN1Browser |
|
4067 |
||
4068 |
self openTool:OSI::ASN1Browser |
|
4069 |
! |
|
4070 |
||
4071 |
openAppletViewer |
|
4072 |
|numItems files| |
|
4073 |
||
3982 | 4074 |
files := self currentSelectedFiles. |
3892 | 4075 |
(numItems := files size) > 2 ifTrue:[ |
4414 | 4076 |
(self |
4077 |
confirm:(resources string:'open for each of the %1 items ?' |
|
4078 |
with:numItems)) ifFalse:[^ self]. |
|
3892 | 4079 |
]. |
4080 |
||
4081 |
Java startupJavaSystem. |
|
4082 |
"/ Java markAllClassesUninitialized. |
|
4083 |
"/ Java initAllStaticFields. |
|
4084 |
"/ Java initAllClasses. |
|
4085 |
||
4086 |
files do:[:fileName | |
|
4414 | 4087 |
|p path| |
4088 |
||
4089 |
path := fileName. |
|
4090 |
path isDirectory ifFalse:[ |
|
4091 |
p := Java |
|
4092 |
javaProcessForMainOf:(Java classForName:'sun.applet.AppletViewer') |
|
4093 |
argumentString:path pathName. |
|
4094 |
p resume. |
|
4095 |
] |
|
3892 | 4096 |
]. |
4097 |
! |
|
4098 |
||
4099 |
openCBrowser |
|
4100 |
||
4101 |
|directories| |
|
4102 |
||
3982 | 4103 |
directories := self currentSelectedDirectories. |
3892 | 4104 |
directories isEmpty ifTrue:[ ^ self]. |
4105 |
self withWaitCursorDo:[ |
|
4414 | 4106 |
CBrowser::Browser openIn:directories first. |
3892 | 4107 |
] |
4108 |
! |
|
4109 |
||
4230 | 4110 |
openChangeSetBrowser |
4111 |
self |
|
4112 |
openTool:ChangeSetBrowser |
|
4113 |
with:#openOnFile: |
|
4114 |
ignoreDirectories:true |
|
4115 |
! |
|
4116 |
||
3892 | 4117 |
openChangesBrowser |
4118 |
"open a change browser on the selected file(s)" |
|
4119 |
||
4120 |
self openTool:(UserPreferences current changesBrowserClass) |
|
4121 |
! |
|
4122 |
||
4123 |
openDiffView |
|
4124 |
"open a diff-view" |
|
4125 |
||
4170 | 4126 |
| name1 name2 text1 text2 d err nm l1 files title defaultName lastFile| |
3892 | 4127 |
|
3982 | 4128 |
files := self currentSelectedFiles. |
3892 | 4129 |
files isEmpty ifTrue:[ |
4414 | 4130 |
Dialog warn:'you have to select a file first'. |
4131 |
^ self. |
|
3892 | 4132 |
]. |
4133 |
(files size == 2) ifTrue:[ |
|
4414 | 4134 |
name1 := files last. |
4135 |
name2 := files first. |
|
3892 | 4136 |
] ifFalse:[ |
4414 | 4137 |
LastFileDiffFile notNil ifTrue:[ |
4138 |
| directories | |
|
4139 |
directories := self currentDirectories value. |
|
4140 |
directories notEmpty ifTrue:[ |
|
4141 |
lastFile := directories first asFilename construct:(LastFileDiffFile baseName). |
|
4142 |
(lastFile exists and:[lastFile isReadable]) ifTrue:[ |
|
4143 |
name1 := lastFile. |
|
4144 |
] |
|
4145 |
] |
|
4146 |
]. |
|
4147 |
name2 := files first. |
|
4432 | 4148 |
title := 'Show differences between ', name2 baseName, ' and:'. |
4414 | 4149 |
defaultName := name1 notNil ifTrue:[name1 baseName] ifFalse:[nil]. |
4150 |
name1 := DialogBox |
|
4151 |
requestFileName:title |
|
4152 |
default:defaultName |
|
4153 |
ok:'OK' |
|
4154 |
abort:'Use File List' |
|
4155 |
pattern:'*' |
|
4156 |
fromDirectory:(name2 asFilename directory). |
|
4060 | 4157 |
|
4158 |
||
4159 |
||
3892 | 4160 |
]. |
4161 |
||
4162 |
(name1 isNil or:[name1 asString isEmpty]) ifTrue:[ |
|
4414 | 4163 |
text1 := self getAllFilesAsStringCollection asStringCollection withTabs. |
4164 |
text1 := text1 collect:[:l | l isNil ifTrue:[' '] ifFalse:[l]]. |
|
4165 |
name1 := nil. |
|
4166 |
l1 := 'browser contents' |
|
3892 | 4167 |
] ifFalse:[ |
4414 | 4168 |
name1 := name1 asFilename. |
4169 |
LastFileDiffFile := name1. |
|
4170 |
name1 asFilename isReadable ifFalse:[ |
|
4171 |
nm := name1. |
|
4172 |
name1 asFilename exists ifFalse:[ |
|
4173 |
err := '%1 does not exist'. |
|
4174 |
] ifTrue:[ |
|
4175 |
err := '%1 is not readable' |
|
4176 |
]. |
|
4177 |
]. |
|
4178 |
l1 := name1 |
|
3892 | 4179 |
]. |
4180 |
||
4181 |
err isNil ifTrue:[ |
|
4414 | 4182 |
name2 isReadable ifFalse:[ |
4183 |
nm := name2. |
|
4184 |
name2 exists ifFalse:[ |
|
4185 |
err := '%1 does not exist'. |
|
4186 |
] ifTrue:[ |
|
4187 |
err := '%1 is not readable' |
|
4188 |
]. |
|
4189 |
]. |
|
3892 | 4190 |
]. |
4191 |
err notNil ifTrue:[ |
|
4414 | 4192 |
Dialog warn:(resources string:err with:nm pathName). |
4193 |
^ self |
|
3892 | 4194 |
]. |
4195 |
||
4196 |
self withWaitCursorDo:[ |
|
4414 | 4197 |
name1 notNil ifTrue:[ |
4198 |
text1 := name1 contents. |
|
4199 |
]. |
|
4200 |
text2 := name2 contents. |
|
4201 |
text1 = text2 ifTrue:[ |
|
4202 |
self information:'same contents' |
|
4203 |
] ifFalse:[ |
|
4204 |
d := DiffTextView |
|
4205 |
openOn:text1 label:l1 |
|
4206 |
and:text2 label:name2 pathName. |
|
4207 |
d topView label:'file differences'. |
|
4208 |
] |
|
3892 | 4209 |
] |
4210 |
! |
|
4211 |
||
4212 |
openEditor |
|
4213 |
self openTool:EditTextView |
|
4214 |
! |
|
4215 |
||
4216 |
openHTMLReader |
|
4217 |
||
4218 |
self openTool:HTMLDocumentView ignoreDirectories:false |
|
4219 |
! |
|
4220 |
||
4221 |
openImageEditor |
|
4222 |
||
4223 |
[self loadImageAndPerform:#edit] fork |
|
4224 |
! |
|
4225 |
||
4226 |
openImageInspector |
|
4227 |
[self loadImageAndPerform:#inspect] fork |
|
4228 |
! |
|
4229 |
||
4230 |
openImagePreview |
|
4231 |
||
4232 |
[self loadImageAndPerform:[:img | |
|
4414 | 4233 |
|i top viewer| |
4234 |
||
4235 |
top := StandardSystemView new. |
|
4236 |
||
4237 |
viewer := ImageView origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
4238 |
i := img. |
|
4239 |
top extent:200@200. |
|
4240 |
top label:(img fileName asFilename directoryName asFilename baseName , '/' , img fileName asFilename baseName). |
|
4241 |
top openAndWait. |
|
4242 |
||
4243 |
(i width > 200 or:[i height > 200]) ifTrue:[ |
|
4244 |
i := i magnifiedPreservingRatioTo:200@200. |
|
4245 |
]. |
|
4246 |
viewer image:i. |
|
4247 |
]. |
|
3892 | 4248 |
] fork |
4249 |
! |
|
4250 |
||
4251 |
openMP3Player |
|
4252 |
|file| |
|
4253 |
||
3982 | 4254 |
file := self currentSelectedFiles. |
3892 | 4255 |
(file isEmpty) ifTrue:[ |
4414 | 4256 |
^ self. |
3892 | 4257 |
]. |
4258 |
file := file first. |
|
4259 |
(MP3PlayerApplication ? SaugFix::MP3PlayerApplication) playSong:file. |
|
4260 |
! |
|
4261 |
||
4262 |
openSlideShow |
|
4263 |
||
4264 |
|directories dir| |
|
4265 |
||
3982 | 4266 |
directories := self currentSelectedDirectories. |
3892 | 4267 |
directories isEmpty ifTrue:[^ self]. |
4268 |
||
4269 |
dir := directories first. |
|
4270 |
CodingExamples_GUI::SlideShow openIn:dir. |
|
4271 |
! |
|
4272 |
||
4273 |
openSnapshotImageBrowser |
|
4491 | 4274 |
"Sorry, for now, only the old browser can handle snapShotImages." |
4275 |
||
3892 | 4276 |
^ self openTool:SystemBrowser with:#openOnSnapShotImage: ignoreDirectories:true |
4277 |
! |
|
4278 |
||
4279 |
openTerminal |
|
4280 |
||
4281 |
|directories dir| |
|
4282 |
||
3982 | 4283 |
directories := self currentSelectedDirectories. |
3892 | 4284 |
directories isEmpty ifTrue:[ |
4414 | 4285 |
dir := Filename homeDirectory. |
3892 | 4286 |
] ifFalse:[ |
4414 | 4287 |
dir := directories first. |
3892 | 4288 |
]. |
4289 |
||
4290 |
VT100TerminalView openShellIn:dir. |
|
4291 |
! |
|
4292 |
||
4293 |
openTool:aToolClass |
|
4294 |
"open a tool on the selected file(s)" |
|
4295 |
||
4296 |
^ self openTool:aToolClass ignoreDirectories:true |
|
4297 |
! |
|
4298 |
||
4299 |
openTool:aToolClass ignoreDirectories:ignoreDirs |
|
4300 |
"open a tool on the selected file(s)" |
|
4301 |
||
4302 |
^ self |
|
4414 | 4303 |
openTool:aToolClass |
4304 |
with:#openOn: |
|
4305 |
ignoreDirectories:ignoreDirs |
|
3892 | 4306 |
! |
4307 |
||
4308 |
openTool:aToolClass with:aSelector ignoreDirectories:ignoreDirs |
|
4309 |
"open a tool on the selected file(s)" |
|
4310 |
||
4311 |
|numItems path tool files| |
|
4312 |
||
4313 |
aToolClass isNil ifTrue:[ |
|
4414 | 4314 |
Dialog warn:'Sorry, that tool seems to be not available'. |
4315 |
^ nil. |
|
3892 | 4316 |
]. |
3982 | 4317 |
files := self currentSelectedFiles. |
3892 | 4318 |
|
4319 |
(numItems := files size) > 2 ifTrue:[ |
|
4414 | 4320 |
(self |
4321 |
confirm:(resources string:'open for each of the %1 items ?' |
|
4322 |
with:numItems)) ifFalse:[^ self]. |
|
3892 | 4323 |
]. |
4324 |
||
4325 |
self withWaitCursorDo:[ |
|
4414 | 4326 |
files do:[:fileName | |
4327 |
(ignoreDirs not or:[fileName isDirectory not]) ifTrue:[ |
|
4328 |
fileName isAbsolute ifTrue:[ |
|
4329 |
path := fileName getName. |
|
4330 |
] ifFalse:[ |
|
4331 |
path := fileName pathName. |
|
4332 |
]. |
|
4333 |
tool := aToolClass perform:aSelector with:path. |
|
4334 |
] |
|
4335 |
]. |
|
3892 | 4336 |
]. |
4337 |
^ tool |
|
4338 |
! |
|
4339 |
||
4340 |
openZipTool |
|
4341 |
|zipTool directories dir| |
|
4342 |
||
4343 |
(zipTool := self openTool:ZipTool) notNil ifTrue:[ |
|
4414 | 4344 |
directories := self currentSelectedDirectories. |
4345 |
directories isEmpty ifTrue:[ |
|
4346 |
dir := directories first. |
|
4347 |
] ifFalse:[ |
|
4348 |
dir := Filename homeDirectory. |
|
4349 |
]. |
|
4350 |
||
4351 |
zipTool initialExtractDirectory:dir. |
|
3892 | 4352 |
]. |
4353 |
! |
|
4354 |
||
4355 |
readAbbrevFile |
|
4356 |
"read the abbrev file and install classes found there as autoloaded classes" |
|
4357 |
||
4358 |
| directories dir| |
|
4359 |
||
3982 | 4360 |
directories := self currentSelectedDirectories. |
3892 | 4361 |
directories isEmpty ifTrue:[^ self]. |
4362 |
||
4363 |
dir := directories first. |
|
4364 |
Smalltalk installAutoloadedClassesFrom:(dir construct:'abbrev.stc'). |
|
4365 |
! |
|
4366 |
||
4367 |
singleFileFileIn:fileName lazy:lazy |
|
4368 |
"fileIn the selected file(s)" |
|
4369 |
||
4345 | 4370 |
|aStream wasLazy notifyString| |
3892 | 4371 |
|
4372 |
fileName type == #regular ifTrue:[ |
|
4373 |
||
4345 | 4374 |
(ObjectFileLoader notNil |
4375 |
and:[ObjectFileLoader hasValidBinaryExtension:fileName]) ifTrue:[ |
|
4376 |
AbortOperationRequest catch:[ |
|
4377 |
|p| |
|
4378 |
||
4379 |
"/ |
|
4380 |
"/ look if already loaded ... then unload first |
|
4381 |
"/ |
|
4382 |
p := fileName pathName. |
|
4383 |
(ObjectFileLoader loadedObjectFiles includes:p) ifTrue:[ |
|
4384 |
(Dialog confirm:(resources |
|
4385 |
string:'%1 is already loaded; load anyway ?' |
|
4386 |
with:p)) ifFalse:[ |
|
4387 |
^ self |
|
4388 |
]. |
|
4389 |
notifyString := 'unloading old ' , p , ' ...'. |
|
4390 |
Transcript showCR:notifyString. |
|
4391 |
self notifyChannel value:notifyString. |
|
4392 |
ObjectFileLoader unloadObjectFile:p. |
|
4393 |
]. |
|
4394 |
||
4395 |
notifyString := 'loading ' , p , ' ...'. |
|
4396 |
Transcript showCR:notifyString. |
|
4397 |
self notifyChannel value:notifyString. |
|
4398 |
ObjectFileLoader loadObjectFile:p. |
|
4399 |
Class addInfoRecord:('fileIn ' , fileName asFilename pathName) |
|
4400 |
] |
|
4401 |
] ifFalse:[ ((fileName hasSuffix:'cls') |
|
4402 |
and:[((fileName mimeTypeOfContents ? '') startsWith:'application/x-smalltalk-source') not ]) ifTrue:[ |
|
4403 |
"/ loading a binary class file |
|
4404 |
aStream := fileName readStream. |
|
4405 |
aStream notNil ifTrue:[ |
|
4406 |
aStream fileInBinary. |
|
4407 |
] |
|
4408 |
] ifFalse:[ |
|
4409 |
((fileName hasSuffix:'class') |
|
4410 |
or:[(fileName hasSuffix:'cla')]) ifTrue:[ |
|
4411 |
"/ loading a java class file |
|
4412 |
JavaClassReader notNil ifTrue:[ |
|
4413 |
JavaClassReader loadFile:(fileName pathName) |
|
4414 |
] |
|
4415 |
] ifFalse:[ (fileName hasSuffix:'sif') ifTrue:[ |
|
4416 |
"/ loading a sif (smalltalk interchange format) file |
|
4417 |
SmalltalkInterchangeSTXFileInManager autoload. |
|
4418 |
SmalltalkInterchangeFileManager newForFileIn |
|
4419 |
fileName: fileName pathName; |
|
4420 |
fileIn. |
|
4421 |
] ifFalse:[ (fileName hasSuffix:'pcl') ifTrue:[ |
|
4422 |
Parcel isNil ifTrue:[ |
|
4423 |
Dialog warn:'Parcel support not loaded.' |
|
4424 |
] ifFalse:[ |
|
4425 |
Parcel loadParcelFrom: fileName pathName |
|
4426 |
] |
|
4427 |
] ifFalse:[ |
|
4428 |
"/ loading a regular (chunk) or xml source file |
|
4429 |
aStream := fileName readStream. |
|
4430 |
aStream notNil ifTrue:[ |
|
4431 |
Error handle:[ : ex | |
|
4432 |
Dialog warn:'Error on file in: ', ex errorString. |
|
4433 |
] do:[ |
|
4434 |
[ |
|
4435 |
Class withoutUpdatingChangesDo:[ |
|
4436 |
wasLazy := Compiler compileLazy:lazy. |
|
4437 |
aStream fileIn. |
|
4438 |
]. |
|
4439 |
Class addInfoRecord:('fileIn ' , fileName asString) |
|
4440 |
] ensure:[ |
|
4441 |
Compiler compileLazy:wasLazy. |
|
4442 |
aStream close |
|
4443 |
] |
|
4444 |
] |
|
4445 |
] |
|
4446 |
]]] |
|
4447 |
]] |
|
3892 | 4448 |
]. |
4449 |
! ! |
|
4450 |
||
4451 |
!AbstractFileBrowser methodsFor:'menu queries cvs'! |
|
4452 |
||
4453 |
canCvsAddAndCommit |
|
4454 |
||
3982 | 4455 |
|selectedFiles| |
4456 |
||
4457 |
selectedFiles := self currentSelectedFiles. |
|
4458 |
^ (selectedFiles notEmpty and:[self currentFilesAreInSameDirectory]). |
|
3892 | 4459 |
! |
4460 |
||
4461 |
canRemoveCVSContainer |
|
4462 |
||
3982 | 4463 |
|selectedFiles dirOfFile cvsDir| |
4464 |
||
4465 |
selectedFiles := self currentSelectedFiles. |
|
4466 |
selectedFiles isEmpty ifTrue:[^ false]. |
|
4467 |
^ ((selectedFiles detect:[:fileName| |
|
4414 | 4468 |
dirOfFile := self getDirWithoutFileName:fileName. |
4469 |
cvsDir := dirOfFile construct:'CVS'. |
|
4470 |
(cvsDir isDirectory and:[cvsDir exists]) |
|
3892 | 4471 |
] ifNone:[nil]) notNil). |
4472 |
! ! |
|
4473 |
||
4474 |
!AbstractFileBrowser methodsFor:'menu queries tools'! |
|
4475 |
||
4476 |
anySTFilesPresent |
|
4477 |
||
4478 |
^ self anyFilesPresentWithSuffix:'st' |
|
4479 |
! |
|
4480 |
||
4481 |
canCreateNewProject |
|
4482 |
||
3982 | 4483 |
| selectedFiles | |
3892 | 4484 |
|
4485 |
self currentFilesAreInSameDirectory ifFalse:[^ false]. |
|
3982 | 4486 |
selectedFiles := self currentSelectedFiles. |
3892 | 4487 |
^ [ |
4414 | 4488 |
((selectedFiles detect:[:fileName| | suffix| |
4489 |
suffix := fileName suffix asLowercase. |
|
4490 |
(suffix = 'prj' or:[suffix = 'st']) |
|
4491 |
] ifNone:[nil]) notNil) |
|
3982 | 4492 |
] |
3892 | 4493 |
! |
4494 |
||
4495 |
canDoTerminal |
|
4496 |
||
4497 |
^ OperatingSystem isUNIXlike |
|
4498 |
or:[OperatingSystem isMSWINDOWSlike] |
|
4499 |
! |
|
4500 |
||
4501 |
canDoTerminalAndSystemIsDOS |
|
4502 |
||
4503 |
^ self canDoTerminal and:[OperatingSystem isMSWINDOWSlike] |
|
4504 |
! |
|
4505 |
||
4506 |
canDoTerminalAndSystemIsUnix |
|
4507 |
||
4508 |
^ self canDoTerminal and:[OperatingSystem isUNIXlike] |
|
4509 |
! |
|
4510 |
||
4511 |
canReadAbbrevFile |
|
4512 |
||
4513 |
||
4514 |
self currentFilesAreInSameDirectory ifFalse:[^ false]. |
|
4515 |
^ (self currentDirectories value first construct:'abbrev.stc') exists |
|
4516 |
! |
|
4517 |
||
4518 |
canRemoveFromSourcePath |
|
4519 |
||
4520 |
^ false |
|
4521 |
! |
|
4522 |
||
4523 |
hasASN1 |
|
4524 |
^ [ OSI::ASN1Parser notNil |
|
4414 | 4525 |
and:[OSI::ASN1Parser isLoaded]] |
3892 | 4526 |
|
4527 |
! |
|
4528 |
||
4529 |
hasASN1AndSelection |
|
4530 |
^ [ self hasSelection value |
|
4414 | 4531 |
and:[self currentSelectedFiles size > 0 |
4532 |
and:[OSI::ASN1Parser notNil |
|
4533 |
and:[OSI::ASN1Parser isLoaded]]]] |
|
3892 | 4534 |
! |
4535 |
||
4536 |
hasCBrowser |
|
4537 |
^ [ CBrowser::Browser notNil ] |
|
4538 |
! |
|
4539 |
||
4540 |
hasJava |
|
4541 |
||
4542 |
^ [ JavaClassReader notNil |
|
4414 | 4543 |
and:[JavaClassReader isLoaded]] |
3892 | 4544 |
! |
4545 |
||
4546 |
hasJavaAndSelection |
|
4547 |
||
3982 | 4548 |
^ [ self currentSelectedFiles size > 0 |
4414 | 4549 |
and:[JavaClassReader notNil |
4550 |
and:[JavaClassReader isLoaded]]] |
|
3892 | 4551 |
! |
4552 |
||
4553 |
hasMP3Player |
|
4554 |
||
4555 |
^ [ MP3PlayerApplication notNil |
|
4414 | 4556 |
or:[SaugFix::MP3PlayerApplication notNil ]] |
3892 | 4557 |
! |
4558 |
||
4559 |
hasMP3PlayerAndSelection |
|
4560 |
||
3982 | 4561 |
^ [ self currentSelectedFiles size > 0 |
4414 | 4562 |
and:[ self hasMP3Player value]] |
3892 | 4563 |
! |
4564 |
||
4565 |
hasSlideShow |
|
4566 |
||
4567 |
^ [CodingExamples_GUI::SlideShow notNil] |
|
4568 |
! |
|
4569 |
||
4570 |
hasSnapshotSelection |
|
4571 |
||
4572 |
^ [ |
|
4414 | 4573 |
| files | |
4574 |
files := self currentSelectedFiles. |
|
4575 |
((files size == 1) |
|
4576 |
and:[ files first hasSuffix:'img' ]) |
|
3892 | 4577 |
] |
4578 |
! |
|
4579 |
||
4580 |
hasZipFileSelected |
|
4581 |
||
3982 | 4582 |
^ [|sel fileName fn suff| |
4583 |
||
4414 | 4584 |
sel := self currentSelectedFiles. |
4585 |
sel size == 1 ifTrue:[ |
|
4586 |
fileName := sel first. |
|
4587 |
fileName notNil ifTrue:[ |
|
4588 |
suff := fileName suffix asLowercase. |
|
4589 |
suff = 'zip' or:[suff = 'jar'] |
|
4590 |
] ifFalse:[ |
|
4591 |
false |
|
4592 |
] |
|
4593 |
] ifFalse:[ |
|
4594 |
false |
|
4595 |
] |
|
3892 | 4596 |
] |
4597 |
! |
|
4598 |
||
4599 |
javaSupportLoaded |
|
4600 |
||
4601 |
^ false |
|
4602 |
! ! |
|
4603 |
||
3906 | 4604 |
!AbstractFileBrowser methodsFor:'presentation'! |
4605 |
||
4606 |
getModeString:modeBits |
|
4607 |
"convert file-mode bits into a more user-friendly string. |
|
4608 |
This is wrong here - should be moved into OperatingSystem." |
|
4609 |
||
4610 |
^ self getModeString:modeBits |
|
4414 | 4611 |
with:#( 'owner:' $r $w $x |
4612 |
' group:' $r $w $x |
|
4613 |
' others:' $r $w $x ) |
|
3906 | 4614 |
! |
4615 |
||
4616 |
getModeString:modeBits with:texts |
|
4617 |
"convert file-mode bits into a more user-friendly string. |
|
4618 |
This is wrong here - should be moved into OperatingSystem." |
|
4619 |
||
4620 |
|bits modeString| |
|
4621 |
||
4622 |
bits := modeBits bitAnd:8r777. |
|
4623 |
modeString := ''. |
|
4624 |
||
4625 |
#( nil 8r400 8r200 8r100 nil 8r040 8r020 8r010 nil 8r004 8r002 8r001 ) |
|
4626 |
with: texts do:[:bitMask :access | |
|
4414 | 4627 |
|ch| |
4628 |
||
4629 |
bitMask isNil ifTrue:[ |
|
4630 |
modeString := modeString , access |
|
4631 |
] ifFalse:[ |
|
4632 |
(bits bitAnd:bitMask) == 0 ifTrue:[ |
|
4633 |
ch := $- |
|
4634 |
] ifFalse:[ |
|
4635 |
ch := access |
|
4636 |
]. |
|
4637 |
modeString := modeString copyWith:ch |
|
4638 |
] |
|
3906 | 4639 |
]. |
4640 |
^ modeString |
|
4641 |
! ! |
|
4642 |
||
3892 | 4643 |
!AbstractFileBrowser methodsFor:'queries'! |
4644 |
||
3906 | 4645 |
getFileInfoStringForFirstSelectedFile:longInfo |
4646 |
"get stat info on selected file - return a string which can be |
|
4647 |
shown in a box" |
|
4648 |
||
4649 |
| selFiles filename text fileOutput type modeBits modeString s ts isLink info| |
|
4650 |
||
4651 |
selFiles := self currentFileNameHolder value. |
|
4652 |
((selFiles size == 1) not) ifTrue:[ ^ nil]. |
|
4653 |
filename := selFiles first. |
|
4654 |
||
4655 |
text := StringCollection new. |
|
4656 |
||
4657 |
text add:('filename: ', filename asString). |
|
4658 |
isLink := filename isSymbolicLink. |
|
4659 |
isLink ifTrue:[ |
|
4414 | 4660 |
text add:('symbolic link to: ', (filename linkInfo path)) |
3906 | 4661 |
]. |
4662 |
||
4663 |
info := filename info. |
|
4664 |
type := info type. |
|
4665 |
(longInfo and:[type == #regular]) ifTrue:[ |
|
4414 | 4666 |
fileOutput := filename fileType. |
3906 | 4667 |
]. |
4668 |
||
4669 |
s := ('type: '). |
|
4670 |
fileOutput isNil ifTrue:[ |
|
4414 | 4671 |
s := s , type asString |
3906 | 4672 |
] ifFalse:[ |
4414 | 4673 |
s := s , 'regular (' , fileOutput , ')' |
3906 | 4674 |
]. |
4675 |
text add:s. |
|
4676 |
isLink = true ifTrue:[ |
|
4414 | 4677 |
info := filename linkInfo |
3906 | 4678 |
] ifFalse:[ |
4414 | 4679 |
info := filename info |
3906 | 4680 |
]. |
4681 |
||
4000 | 4682 |
text add:('size: ', (info fileSize) printString). |
3906 | 4683 |
|
4684 |
modeBits := info mode. |
|
4685 |
modeString := self getModeString:modeBits. |
|
4686 |
longInfo ifTrue:[ |
|
4414 | 4687 |
text add:('access: ', modeString,' ', (modeBits printStringRadix:8)). |
3906 | 4688 |
] ifFalse:[ |
4414 | 4689 |
text add:('access: ', modeString) |
3906 | 4690 |
]. |
4691 |
text add:('owner: ', |
|
4414 | 4692 |
(OperatingSystem getUserNameFromID:(info uid))). |
3906 | 4693 |
longInfo ifTrue:[ |
4414 | 4694 |
text add:('group: ', |
4695 |
(OperatingSystem getGroupNameFromID:(info gid))). |
|
4696 |
||
4697 |
ts := info accessTime. |
|
4698 |
text add:('last access: ',ts asTime printString ,' ', ts asDate printString). |
|
4699 |
||
4700 |
ts := info modificationTime. |
|
4701 |
text add:('last modification: ', ts asTime printString, ' ', ts asDate printString). |
|
3906 | 4702 |
]. |
4703 |
^ text asString |
|
4704 |
! |
|
4705 |
||
3892 | 4706 |
initialCommandFor:fileName into:aBox |
4707 |
"set a useful initial command for execute box." |
|
4708 |
||
4709 |
|mime cmd select path suffix| |
|
4710 |
||
4711 |
path := self getDirWithoutFileName:fileName. |
|
4712 |
suffix := fileName asFilename suffix. |
|
4713 |
DefaultCommandPerSuffix notNil ifTrue:[ |
|
4414 | 4714 |
cmd := DefaultCommandPerSuffix at:suffix ifAbsent:nil. |
4715 |
cmd notNil ifTrue:[ |
|
4716 |
aBox initialText:(cmd , ' ' , fileName baseName) selectFrom:1 to:cmd size. |
|
4717 |
^ self |
|
4718 |
]. |
|
3892 | 4719 |
]. |
4720 |
mime := MIMETypes mimeTypeForSuffix:suffix. |
|
4721 |
"/ mime notNil ifTrue:[ |
|
4722 |
"/ cmd := self initialCommandForMIME:mime file:path |
|
4723 |
"/ ]. |
|
4724 |
||
4725 |
"/ XXX should be changed to take stuff from a config file |
|
4726 |
"/ XXX or from resources. |
|
4727 |
||
4728 |
(path type == #regular) ifTrue:[ |
|
4414 | 4729 |
path isExecutableProgram ifTrue:[ |
4730 |
aBox initialText:(fileName , ' <arguments>'). |
|
4731 |
^ self |
|
4732 |
]. |
|
4733 |
||
4734 |
select := true. |
|
4735 |
||
4736 |
"some heuristics - my personal preferences ... |
|
4737 |
(actually this should come from a configfile)" |
|
4738 |
||
4739 |
(fileName endsWith:'akefile') ifTrue:[ |
|
4740 |
aBox initialText:'make target' selectFrom:6 to:11. |
|
4741 |
^ self |
|
4742 |
]. |
|
4743 |
||
4744 |
cmd := self class defaultCommandPerMIME at:mime ifAbsent:nil. |
|
4745 |
cmd notNil ifTrue:[ |
|
4746 |
select := false |
|
4747 |
]. |
|
4748 |
||
4749 |
cmd isNil ifTrue:[ |
|
4750 |
||
4751 |
suffix := path suffix. |
|
4752 |
(suffix = 'C') ifTrue:[ |
|
4753 |
cmd := 'g++ -c %1'. |
|
4754 |
select := 6. |
|
4755 |
] ifFalse:[ |
|
4756 |
suffix := suffix asLowercase. |
|
4757 |
||
4758 |
(suffix = 'taz') ifTrue:[ |
|
4759 |
aBox initialText:'zcat %1 | tar tvf -'. |
|
4760 |
select := false. |
|
4761 |
]. |
|
4762 |
(suffix = 'tar') ifTrue:[ |
|
4763 |
cmd := 'tar tvf %1'. |
|
4764 |
select := 7. |
|
4765 |
]. |
|
4766 |
(suffix = 'zoo') ifTrue:[ |
|
4767 |
cmd := 'zoo -list %1'. |
|
4768 |
select := 9. |
|
4769 |
]. |
|
4770 |
(suffix = 'zip') ifTrue:[ |
|
4771 |
cmd := 'unzip -l %1'. |
|
4772 |
select := 8. |
|
4773 |
]. |
|
4774 |
(suffix = 'jar') ifTrue:[ |
|
4775 |
cmd := 'unzip -l %1'. |
|
4776 |
select := 8. |
|
4777 |
]. |
|
4778 |
(suffix = 'z') ifTrue:[ |
|
4779 |
(fileName asLowercase endsWith:'tar.z') ifTrue:[ |
|
4780 |
cmd := 'zcat %1 | tar tvf -'. |
|
4781 |
select := false. |
|
4782 |
] ifFalse:[ |
|
4783 |
cmd := 'uncompress %1' |
|
4784 |
]. |
|
4785 |
]. |
|
4786 |
(suffix = 'gz') ifTrue:[ |
|
4787 |
(fileName asLowercase endsWith:'tar.gz') ifTrue:[ |
|
4788 |
cmd := ('gunzip < %1 | tar tvf -' ). |
|
4789 |
select := false. |
|
4790 |
] ifFalse:[ |
|
4791 |
cmd := 'gunzip %1'. |
|
4792 |
]. |
|
4793 |
]. |
|
4794 |
(suffix = 'html') ifTrue:[ |
|
4795 |
cmd := 'netscape %1' |
|
4796 |
]. |
|
4797 |
(suffix = 'htm') ifTrue:[ |
|
4798 |
cmd := 'netscape %1' |
|
4799 |
]. |
|
4800 |
(suffix = 'uue') ifTrue:[ |
|
4801 |
cmd := 'uudecode %1' |
|
4802 |
]. |
|
4803 |
(suffix = 'c') ifTrue:[ |
|
4804 |
cmd := 'cc -c %1'. |
|
4805 |
select := 5. |
|
4806 |
]. |
|
4807 |
(suffix = 'cc') ifTrue:[ |
|
4808 |
cmd := 'g++ -c %1'. |
|
4809 |
select := 6. |
|
4810 |
]. |
|
4811 |
(suffix = 'xbm') ifTrue:[ |
|
4812 |
cmd := 'bitmap %1' |
|
4813 |
]. |
|
4814 |
(suffix = 'ps') ifTrue:[ |
|
4815 |
cmd := 'ghostview %1' |
|
4816 |
]. |
|
4817 |
((suffix = '1') or:[suffix = 'man']) ifTrue:[ |
|
4818 |
cmd := 'nroff -man %1'. |
|
4819 |
select := 10. |
|
4820 |
]. |
|
4821 |
]. |
|
4822 |
]. |
|
4823 |
||
4824 |
cmd isNil ifTrue:[ |
|
4825 |
DefaultCommandPerSuffix isNil ifTrue:[ |
|
4826 |
cmd := '<cmd>' |
|
4827 |
] ifFalse:[ |
|
4828 |
cmd := DefaultCommandPerSuffix |
|
4829 |
at:suffix |
|
4830 |
ifAbsent:'<cmd>'. |
|
4831 |
]. |
|
4832 |
cmd := cmd , ' %1'. |
|
4833 |
]. |
|
4834 |
||
4835 |
cmd := cmd bindWith:fileName. |
|
4836 |
select == false ifTrue:[ |
|
4837 |
aBox initialText:cmd |
|
4838 |
] ifFalse:[ |
|
4839 |
select class == Interval ifTrue:[ |
|
4840 |
aBox initialText:cmd selectFrom:select start to:select stop |
|
4841 |
] ifFalse:[ |
|
4842 |
select isInteger ifFalse:[ |
|
4843 |
select := (cmd indexOf:Character space ifAbsent:[cmd size + 1]) - 1. |
|
4844 |
]. |
|
4845 |
aBox initialText:cmd selectFrom:1 to:select |
|
4846 |
]. |
|
4847 |
] |
|
3892 | 4848 |
] |
4849 |
! |
|
4850 |
||
4851 |
isAbstractFileBrowser |
|
4852 |
||
4853 |
^ true |
|
4854 |
! |
|
4855 |
||
4856 |
systemIsDOS |
|
4857 |
||
4858 |
^ OperatingSystem isMSDOSlike |
|
4859 |
! |
|
4860 |
||
4861 |
systemIsUnix |
|
4862 |
^ OperatingSystem isUNIXlike |
|
4863 |
! ! |
|
4864 |
||
4865 |
!AbstractFileBrowser methodsFor:'queries-file'! |
|
4866 |
||
4867 |
allItemsOfCurrentDirectory |
|
4868 |
||
4869 |
^ self application:#DirectoryContentsBrowser do:#allItemsOfCurrentDirectory. |
|
4870 |
! |
|
4871 |
||
4872 |
anyFilesPresentWithSuffix:suffix |
|
4873 |
||
4874 |
| directories | |
|
4875 |
||
4876 |
directories := self currentDirectories value. |
|
4877 |
directories do:[ : dir| |
|
4414 | 4878 |
(dir directoryContents do:[:f| (f asFilename suffix = suffix) ifTrue:[ ^ true]]) |
3892 | 4879 |
]. |
4880 |
^ false. |
|
4881 |
! |
|
4882 |
||
4883 |
currentFilesAreInSameDirectory |
|
4884 |
||
4885 |
^ (self currentDirectories value size == 1). |
|
4886 |
! |
|
4887 |
||
4888 |
currentFilesHasDirectories |
|
4889 |
||
4890 |
^ self currentDirectories value notEmpty. |
|
4891 |
! |
|
4892 |
||
3982 | 4893 |
directoriesForFiles:aFileCol |
4894 |
||
4895 |
^ ((aFileCol collect:[:file| self getDirWithoutFileName:file]) asSet). |
|
4896 |
! |
|
4897 |
||
3892 | 4898 |
fileListIsEmpty |
4899 |
||
4900 |
^ self application:#DirectoryContentsBrowser do:#fileListIsEmpty. |
|
4901 |
! |
|
4902 |
||
4903 |
fileListIsNotEmpty |
|
4904 |
||
4905 |
^ self fileListIsEmpty not. |
|
4906 |
! |
|
4907 |
||
4908 |
fileName:aFilename1 startsWith:aFilename2 |
|
4909 |
||
4910 |
" check if aFilename2 starts with the same directories like aFilename1 " |
|
4911 |
||
4912 |
| file1 file2 | |
|
4913 |
||
4914 |
aFilename2 isNil ifTrue:[ ^ false]. |
|
3982 | 4915 |
aFilename1 isNil ifTrue:[ ^ false]. |
3892 | 4916 |
file1 := aFilename1 asFilename. |
4917 |
file2 := aFilename2 asFilename. |
|
4918 |
file2 isRootDirectory ifTrue:[ ^ true]. |
|
4919 |
((file1 isDirectory) |
|
4920 |
and:[(file2 isDirectory) |
|
4921 |
and:[file1 directory = file2 directory]]) ifTrue:[ |
|
4414 | 4922 |
^ file1 baseName = file2 baseName |
3892 | 4923 |
]. |
3982 | 4924 |
^ (file1 pathName) startsWith:(file2 pathName) |
3892 | 4925 |
! |
4926 |
||
4927 |
getAllFilesAsStringCollection |
|
4928 |
||
4929 |
^ self application:#DirectoryContentsBrowser do:#getAllFilesAsStringCollection. |
|
4930 |
! |
|
4931 |
||
4932 |
getBestDirectory |
|
4933 |
||
4934 |
|selFiles stringCol firstPre| |
|
4935 |
||
4936 |
selFiles := self currentDirectories value. |
|
4937 |
selFiles isEmpty ifTrue:[^ nil]. |
|
4938 |
selFiles size == 1 ifTrue:[^ selFiles first]. |
|
4486 | 4939 |
stringCol := (selFiles collect:[:file| file asString]) asOrderedCollection. |
3892 | 4940 |
firstPre := stringCol at:1. |
4941 |
stringCol from:2 do:[:el| |
|
4414 | 4942 |
firstPre := firstPre commonPrefixWith:el. |
3892 | 4943 |
]. |
4944 |
(firstPre endsWith:(OperatingSystem fileSeparator)) ifTrue:[ |
|
4414 | 4945 |
firstPre removeLast. |
3892 | 4946 |
]. |
4947 |
^ firstPre asFilename |
|
4948 |
! |
|
4949 |
||
3982 | 4950 |
getCommonForCurrentFiles |
3892 | 4951 |
|
4952 |
|selFiles stringCol firtsPre| |
|
4953 |
||
4954 |
selFiles := self currentFileNameHolder value. |
|
4955 |
selFiles isEmpty ifTrue:[^ nil]. |
|
4956 |
stringCol := selFiles collect:[: file| file asString]. |
|
4957 |
firtsPre := stringCol at:1. |
|
4958 |
stringCol from:2 do:[:el| |
|
4414 | 4959 |
firtsPre := firtsPre commonPrefixWith:el. |
3892 | 4960 |
]. |
4961 |
^ firtsPre asFilename |
|
4962 |
! |
|
4963 |
||
4964 |
getDirWithoutFileName:aFileName |
|
4965 |
||
4966 |
| dir | |
|
4967 |
aFileName isNil ifTrue:[ |
|
4414 | 4968 |
^ aFileName. |
3892 | 4969 |
]. |
4970 |
dir := aFileName asFilename. |
|
4971 |
dir isDirectory ifFalse:[ |
|
4414 | 4972 |
dir := dir directory. |
3892 | 4973 |
]. |
4974 |
^ dir. |
|
4975 |
! |
|
4976 |
||
4977 |
getInfoItem |
|
4978 |
"get filename of a description-file (.dir.info, README etc.); |
|
4979 |
This file is automatically shown when a directory is enterred. |
|
4980 |
You can add more names below if you like." |
|
4981 |
||
4982 |
|directories| |
|
4983 |
||
3982 | 4984 |
directories := self currentSelectedDirectories. |
3892 | 4985 |
(directories size ~= 1) ifTrue:[ ^ nil]. |
4986 |
||
4987 |
#( |
|
4988 |
'.dir.info' |
|
4989 |
'README' |
|
4990 |
'ReadMe' |
|
4991 |
'Readme' |
|
4992 |
'readme' |
|
4993 |
'read.me' |
|
4994 |
'Read.me' |
|
4995 |
'READ.ME' |
|
4996 |
'README.TXT' |
|
4997 |
'readme.txt' |
|
4998 |
'Readme.txt' |
|
4999 |
'Info.txt' |
|
5000 |
'info.txt' |
|
5001 |
'INFO.TXT' |
|
5002 |
) do:[:f | |
|
4414 | 5003 |
|n dir| |
5004 |
||
5005 |
n := (directories first) construct:f. |
|
5006 |
(n isReadable and:[n isDirectory not]) ifTrue:[ |
|
5007 |
^ DirectoryContentsBrowser itemClass fileName:n |
|
5008 |
] |
|
3892 | 5009 |
]. |
5010 |
^ nil |
|
3982 | 5011 |
! ! |
5012 |
||
5013 |
!AbstractFileBrowser methodsFor:'selection'! |
|
5014 |
||
5015 |
currentSelectedDirectories |
|
5016 |
||
5017 |
^ self currentDirectories value. |
|
5018 |
! |
|
5019 |
||
5020 |
currentSelectedFiles |
|
5021 |
||
5022 |
| files | |
|
5023 |
files := self currentFileNameHolder value. |
|
5024 |
^ (files select:[: file | file isDirectory not]). |
|
5025 |
! |
|
5026 |
||
5027 |
firstSelectedFile |
|
5028 |
||
5029 |
| files | |
|
5030 |
files := self currentFileNameHolder value. |
|
5031 |
^ (files detect:[: file | file isDirectory not] ifNone:[nil]). |
|
4414 | 5032 |
! |
5033 |
||
5034 |
hasOnlyFilesSelected |
|
5035 |
| files | |
|
5036 |
files := self currentFileNameHolder value. |
|
5037 |
^ (files conform:[: file | file isDirectory not]). |
|
5038 |
! |
|
5039 |
||
5040 |
hasTwoFilesSelected |
|
5041 |
| files | |
|
5042 |
files := self currentFileNameHolder value. |
|
5043 |
^ (files size == 2 and:[self hasOnlyFilesSelected]) |
|
3892 | 5044 |
! ! |
5045 |
||
3964 | 5046 |
!AbstractFileBrowser methodsFor:'sorting'! |
5047 |
||
3989 | 5048 |
currentSortOrder |
5049 |
||
5050 |
" returns a Ordered Collection of all directories currently selected |
|
5051 |
if only a file is selected currentDirectories holds the directory of the file |
|
5052 |
" |
|
5053 |
||
4027 | 5054 |
^ self aspectFor:#currentSortOrder ifAbsent:[ Dictionary new asValue ]. |
3989 | 5055 |
! |
5056 |
||
5057 |
makeDirectorySortBlockFor:aSortBlock |
|
5058 |
||
4343 | 5059 |
(self sortDirectoriesBeforeFiles value and:[self viewDirsInContentsBrowser value]) ifTrue:[ |
5060 |
^ [:a :b| |
|
5061 |
|aIsDir bIsDir res| |
|
5062 |
||
5063 |
aIsDir := a isDirectory. |
|
5064 |
bIsDir := b isDirectory. |
|
5065 |
(aIsDir ~~ bIsDir) ifTrue:[ |
|
5066 |
res := aIsDir |
|
5067 |
] ifFalse:[ |
|
5068 |
res := aSortBlock value:a value:b. |
|
5069 |
]. |
|
5070 |
res |
|
5071 |
]. |
|
4074 | 5072 |
] ifFalse:[ |
4343 | 5073 |
^ aSortBlock |
4074 | 5074 |
]. |
3989 | 5075 |
! |
5076 |
||
5077 |
sortBlockHolder |
|
5078 |
|nameSortBlock| |
|
5079 |
||
5080 |
^ self aspectFor:#sortBlockHolder ifAbsent:[ |
|
4414 | 5081 |
self sortCaseless value ifTrue:[ |
5082 |
nameSortBlock := [ :a :b | a asString asLowercase < b asString asLowercase.]. |
|
5083 |
] ifFalse:[ |
|
5084 |
nameSortBlock := [ :a :b | a asString < b asString.]. |
|
5085 |
]. |
|
5086 |
(self makeDirectorySortBlockFor:nameSortBlock) asValue. |
|
3989 | 5087 |
]. |
5088 |
! |
|
5089 |
||
5090 |
sortBlockProperty |
|
5091 |
||
4027 | 5092 |
|
3989 | 5093 |
^ self aspectFor:#sortBlockProperty ifAbsent:[ #baseName asValue ]. |
5094 |
! |
|
5095 |
||
5096 |
sortCaseless |
|
4201 | 5097 |
" aspect for sort caseless " |
3989 | 5098 |
|
5099 |
^ self aspectFor:#sortCaseless ifAbsent:[ |
|
4201 | 5100 |
| holder | |
5101 |
holder := (Filename isCaseSensitive not) asValue. |
|
5102 |
holder |
|
3989 | 5103 |
] |
5104 |
! |
|
5105 |
||
4074 | 5106 |
sortDirectoriesBeforeFiles |
5107 |
||
4201 | 5108 |
" aspect for sort directories always before files" |
4074 | 5109 |
^ self aspectFor:#sortDirectoriesBeforeFiles ifAbsent:[ true asValue ]. |
5110 |
! |
|
5111 |
||
3989 | 5112 |
sortFileListsBy:instanceName |
5113 |
||
5114 |
self sortFileListsBy:instanceName withReverse:true |
|
5115 |
! |
|
5116 |
||
5117 |
sortFileListsBy:instanceName withReverse:aBoolean |
|
5118 |
||
4011 | 5119 |
| aSymbol sortCaselessLocal currentSortOrder cmpOp instanceSortBlock sortReverse| |
3964 | 5120 |
|
5121 |
aSymbol := instanceName asSymbol. |
|
4027 | 5122 |
self sortBlockProperty setValue:instanceName asSymbol. |
4151 | 5123 |
sortCaselessLocal := self sortCaseless value. |
4027 | 5124 |
currentSortOrder := self currentSortOrder value. |
3989 | 5125 |
currentSortOrder isEmpty ifTrue:[ |
4343 | 5126 |
currentSortOrder at:#column put:aSymbol. |
5127 |
currentSortOrder at:#reverse put:false. |
|
5128 |
currentSortOrder at:#sortCaseless put:sortCaselessLocal. |
|
3964 | 5129 |
] ifFalse:[ |
4343 | 5130 |
(currentSortOrder at:#sortCaseless) ~= sortCaselessLocal ifTrue:[ |
5131 |
"/ sort caseless changed |
|
5132 |
currentSortOrder at:#sortCaseless put:sortCaselessLocal. |
|
5133 |
] ifFalse:[ |
|
5134 |
(currentSortOrder at:#column) = aSymbol ifTrue:[ |
|
5135 |
"/ same column like before - change sort order ifReverse is true |
|
5136 |
aBoolean ifTrue:[ |
|
5137 |
| isReverse | |
|
5138 |
isReverse := currentSortOrder at:#reverse. |
|
5139 |
currentSortOrder at:#reverse put:(isReverse not). |
|
5140 |
]. |
|
5141 |
] ifFalse:[ |
|
5142 |
"/ another column - remark column |
|
5143 |
currentSortOrder at:#column put:aSymbol. |
|
5144 |
] |
|
5145 |
] |
|
3964 | 5146 |
]. |
4027 | 5147 |
self currentSortOrder changed. |
3989 | 5148 |
(currentSortOrder at:#reverse) ifTrue:[ |
4343 | 5149 |
cmpOp := #'>' |
3989 | 5150 |
] ifFalse:[ |
4343 | 5151 |
cmpOp := #'<' |
3989 | 5152 |
]. |
4011 | 5153 |
sortReverse := currentSortOrder at:#reverse. |
3989 | 5154 |
instanceSortBlock := [:a :b | |
4343 | 5155 |
|entry1 entry2| |
5156 |
||
5157 |
entry1 := (a perform:aSymbol). |
|
5158 |
entry2 := (b perform:aSymbol). |
|
5159 |
((entry1 isNil) or:[entry2 isNil]) ifTrue:[ |
|
5160 |
((entry1 isNil) and:[entry2 isNil]) ifTrue:[true] ifFalse:[ |
|
5161 |
((entry1 notNil) and:[entry2 isNil]) ifTrue:[ |
|
5162 |
sortReverse |
|
5163 |
] ifFalse:[ |
|
5164 |
sortReverse not |
|
5165 |
] |
|
5166 |
] |
|
5167 |
] ifFalse:[ |
|
5168 |
((aSymbol = #baseName) and:[sortCaselessLocal]) ifTrue:[ |
|
5169 |
entry1 := entry1 asLowercase. |
|
5170 |
entry2 := entry2 asLowercase. |
|
5171 |
]. |
|
5172 |
entry1 perform:cmpOp with:entry2 |
|
5173 |
] |
|
3989 | 5174 |
]. |
5175 |
self sortBlockHolder value:(self makeDirectorySortBlockFor:instanceSortBlock). |
|
3964 | 5176 |
! ! |
5177 |
||
3892 | 5178 |
!AbstractFileBrowser methodsFor:'startup & release'! |
5179 |
||
5180 |
makeDependent |
|
4074 | 5181 |
self filterModel addDependent:self. |
4004 | 5182 |
self currentFileNameHolder addDependent:self. |
4074 | 5183 |
self sortDirectoriesBeforeFiles addDependent:self. |
4004 | 5184 |
self sortCaseless addDependent:self. |
4011 | 5185 |
self showHiddenFiles addDependent:self. |
4368
ec625478fad7
remark root and selection for every change in classvar
penk
parents:
4367
diff
changeset
|
5186 |
self rootHolder addDependent:self. |
3892 | 5187 |
! |
5188 |
||
5189 |
masterApplication:anApplication |
|
5190 |
||
5191 |
masterApplication isNil ifTrue:[ |
|
4414 | 5192 |
(anApplication notNil and:[anApplication askFor:#isAbstractFileBrowser]) ifTrue:[ |
5193 |
aspects := anApplication aspects |
|
5194 |
] ifFalse:[ |
|
5195 |
aspects isNil ifTrue:[ |
|
5196 |
aspects := IdentityDictionary new. |
|
5197 |
aspects at:#applications put:(IdentityDictionary new). |
|
5198 |
] |
|
5199 |
]. |
|
5200 |
self applications at:(self className) put:self. |
|
5201 |
self makeDependent. |
|
3892 | 5202 |
]. |
3952 | 5203 |
^ super masterApplication:anApplication. |
3892 | 5204 |
! |
5205 |
||
5206 |
postOpenWith:aBuilder |
|
5207 |
||
5208 |
super postOpenWith:aBuilder. |
|
5209 |
! ! |
|
5210 |
||
5211 |
!AbstractFileBrowser::Clipboard methodsFor:'accessing'! |
|
5212 |
||
5213 |
files |
|
5214 |
"return the value of the instance variable 'files' (automatically generated)" |
|
5215 |
||
5216 |
^ files |
|
5217 |
! |
|
5218 |
||
5219 |
files:something |
|
5220 |
"set the value of the instance variable 'files' (automatically generated)" |
|
5221 |
||
5222 |
files := something. |
|
5223 |
! |
|
5224 |
||
5225 |
method |
|
5226 |
"return the value of the instance variable 'method' (automatically generated)" |
|
5227 |
||
5228 |
^ method |
|
5229 |
! |
|
5230 |
||
5231 |
method:something |
|
5232 |
"set the value of the instance variable 'method' (automatically generated)" |
|
5233 |
||
5234 |
method := something. |
|
5235 |
! ! |
|
5236 |
||
5237 |
!AbstractFileBrowser::CodeExecutionLock methodsFor:'accessing'! |
|
5238 |
||
5239 |
locked |
|
5240 |
"return the value of the instance variable 'locked' (automatically generated)" |
|
5241 |
||
5242 |
locked isNil ifTrue:[ |
|
4414 | 5243 |
locked := false. |
3892 | 5244 |
]. |
5245 |
^ locked |
|
5246 |
! ! |
|
5247 |
||
5248 |
!AbstractFileBrowser::CodeExecutionLock methodsFor:'actions'! |
|
5249 |
||
5250 |
doIfUnLocked:aBlock |
|
5251 |
||
5252 |
self locked ifFalse:[ |
|
4414 | 5253 |
aBlock value. |
3892 | 5254 |
]. |
5255 |
! |
|
5256 |
||
5257 |
doLocked:aBlock |
|
5258 |
||
5259 |
locked := true. |
|
4004 | 5260 |
aBlock ensure:[ |
4414 | 5261 |
locked := false. |
4004 | 5262 |
] |
3892 | 5263 |
! ! |
5264 |
||
3952 | 5265 |
!AbstractFileBrowser::DirectoryHistory class methodsFor:'defaults'! |
5266 |
||
5267 |
historySize |
|
3892 | 5268 |
|
5269 |
^ 20 |
|
5270 |
! ! |
|
5271 |
||
4032 | 5272 |
!AbstractFileBrowser::DirectoryHistory class methodsFor:'new'! |
5273 |
||
5274 |
new |
|
5275 |
||
5276 |
^ super new initialize. |
|
5277 |
! ! |
|
5278 |
||
3892 | 5279 |
!AbstractFileBrowser::DirectoryHistory methodsFor:'actions'! |
5280 |
||
3952 | 5281 |
addToHistory:aPath |
5282 |
| item| |
|
5283 |
||
5284 |
item := self getItemFor:aPath. |
|
4347 | 5285 |
self backForwardListAdd:aPath. |
3952 | 5286 |
item isNil ifTrue:[ |
4347 | 5287 |
" not already in history" |
5288 |
self size >= self class historySize ifTrue:[ |
|
5289 |
self removeLast. |
|
5290 |
]. |
|
5291 |
item := DirectoryHistoryItem path:aPath. |
|
5292 |
self addFirst:item |
|
3952 | 5293 |
] ifFalse:[ |
4347 | 5294 |
"already been there before; move the entry to |
5295 |
the beginning, so it will fall out later." |
|
5296 |
self remove:item. |
|
5297 |
self addFirst:item |
|
3892 | 5298 |
]. |
3952 | 5299 |
! |
5300 |
||
4347 | 5301 |
backForwardListAdd:aPath |
5302 |
||
5303 |
|pathIndex| |
|
5304 |
||
5305 |
pathIndex := backForwardList indexOf:aPath. |
|
5306 |
pathIndex == 0 ifTrue:[ |
|
5307 |
" a new path comes in remove forward paths " |
|
5308 |
(backForwardList size) > backForwardIndex ifTrue:[ |
|
5309 |
backForwardList removeFromIndex:(backForwardIndex + 1) toIndex:(backForwardList size). |
|
5310 |
]. |
|
5311 |
] ifFalse:[ |
|
5312 |
backForwardList remove:aPath. |
|
5313 |
pathIndex <= backForwardIndex ifTrue:[ |
|
5314 |
backForwardIndex := backForwardIndex - 1. |
|
5315 |
] |
|
4022 | 5316 |
]. |
4347 | 5317 |
backForwardList add:aPath afterIndex:backForwardIndex. |
5318 |
backForwardIndex := backForwardIndex + 1. |
|
5319 |
backForwardIndex > self class historySize ifTrue:[ |
|
5320 |
backForwardList removeFirst. |
|
5321 |
backForwardIndex := backForwardIndex - 1. |
|
3892 | 5322 |
]. |
4347 | 5323 |
! |
5324 |
||
5325 |
goBackward |
|
4288 | 5326 |
"return the first path of the backward list; |
5327 |
remove it from the back list and add it ti the forward list." |
|
4022 | 5328 |
|
4347 | 5329 |
|retPath| |
5330 |
||
5331 |
self canBackward ifTrue:[ |
|
5332 |
retPath := backForwardList at:(backForwardIndex - 1). |
|
5333 |
backForwardIndex := backForwardIndex - 1. |
|
4288 | 5334 |
]. |
4022 | 5335 |
^ retPath. |
5336 |
! |
|
5337 |
||
5338 |
goForward |
|
4288 | 5339 |
"return the first path of the forward list; |
5340 |
remove it from the list." |
|
4022 | 5341 |
|
4347 | 5342 |
|retPath| |
5343 |
||
5344 |
self canForward ifTrue:[ |
|
5345 |
retPath := backForwardList at:backForwardIndex + 1. |
|
5346 |
backForwardIndex := backForwardIndex + 1. |
|
4288 | 5347 |
]. |
4022 | 5348 |
^ retPath. |
5349 |
! |
|
5350 |
||
5351 |
resetForwardBackward |
|
5352 |
||
4347 | 5353 |
self initialize |
4022 | 5354 |
! |
5355 |
||
5356 |
setPosition:aPosition for:aPath |
|
5357 |
||
5358 |
self do:[:item| |
|
4414 | 5359 |
item path = aPath ifTrue:[ |
5360 |
item position:aPosition. |
|
5361 |
] |
|
4022 | 5362 |
]. |
3892 | 5363 |
! ! |
5364 |
||
4032 | 5365 |
!AbstractFileBrowser::DirectoryHistory methodsFor:'initialize'! |
5366 |
||
5367 |
initialize |
|
5368 |
||
4347 | 5369 |
backForwardList := OrderedCollection new. |
5370 |
self reverseDo:[:el| |
|
5371 |
backForwardList add:el path. |
|
5372 |
]. |
|
5373 |
backForwardIndex := backForwardList size. |
|
4032 | 5374 |
! ! |
5375 |
||
3892 | 5376 |
!AbstractFileBrowser::DirectoryHistory methodsFor:'queries'! |
5377 |
||
4288 | 5378 |
canBackward |
4347 | 5379 |
|
5380 |
^ backForwardIndex > 1 |
|
4288 | 5381 |
! |
5382 |
||
3892 | 5383 |
canForward |
4347 | 5384 |
|
5385 |
^ (backForwardList size >= (backForwardIndex + 1)) |
|
5386 |
! |
|
5387 |
||
5388 |
getBackCollection |
|
5389 |
||
5390 |
| backCol | |
|
5391 |
||
5392 |
backCol := OrderedCollection new. |
|
5393 |
self canBackward ifTrue:[ |
|
5394 |
| tmpCol | |
|
5395 |
tmpCol := backForwardList copyTo:backForwardIndex - 1. |
|
5396 |
tmpCol reverseDo:[ :el| |
|
5397 |
backCol add:el. |
|
5398 |
] |
|
5399 |
]. |
|
5400 |
^ backCol |
|
3952 | 5401 |
! |
5402 |
||
5403 |
getForwardCollection |
|
5404 |
||
4347 | 5405 |
| forwCol | |
5406 |
||
5407 |
forwCol := OrderedCollection new. |
|
5408 |
self canForward ifTrue:[ |
|
5409 |
forwCol := backForwardList copyFrom:(backForwardIndex + 1) |
|
5410 |
]. |
|
5411 |
^ forwCol |
|
3952 | 5412 |
! |
5413 |
||
5414 |
getItemFor:aPath |
|
5415 |
||
5416 |
self do:[:item| item path = aPath ifTrue:[^ item]]. |
|
5417 |
^ nil. |
|
5418 |
! |
|
5419 |
||
5420 |
getPositionFor:aPath |
|
5421 |
||
5422 |
|item| |
|
5423 |
||
5424 |
item := self getItemFor:aPath. |
|
5425 |
||
5426 |
item notNil ifTrue:[ |
|
4414 | 5427 |
^ item position. |
3952 | 5428 |
]. |
5429 |
^ nil |
|
5430 |
! |
|
5431 |
||
5432 |
includesPath:aPath |
|
5433 |
||
5434 |
self do:[:item| item path = aPath ifTrue:[^ true]]. |
|
5435 |
^ false. |
|
4347 | 5436 |
! |
5437 |
||
5438 |
nextBackwardItem |
|
5439 |
"return the first path of the backward list" |
|
5440 |
||
5441 |
|retPath| |
|
5442 |
||
5443 |
self canBackward ifTrue:[ |
|
5444 |
retPath := backForwardList at:backForwardIndex. |
|
5445 |
]. |
|
5446 |
^ retPath. |
|
5447 |
! |
|
5448 |
||
5449 |
nextForwardItem |
|
5450 |
"return the first path of the forward list" |
|
5451 |
||
5452 |
|retPath| |
|
5453 |
||
5454 |
self canForward ifTrue:[ |
|
5455 |
retPath := backForwardList at:backForwardIndex + 1. |
|
5456 |
]. |
|
5457 |
^ retPath. |
|
3952 | 5458 |
! ! |
5459 |
||
5460 |
!AbstractFileBrowser::DirectoryHistory::DirectoryHistoryItem class methodsFor:'instance creation'! |
|
5461 |
||
5462 |
path:aPath |
|
5463 |
||
5464 |
^ self new path:aPath |
|
5465 |
! ! |
|
5466 |
||
5467 |
!AbstractFileBrowser::DirectoryHistory::DirectoryHistoryItem methodsFor:'accessing'! |
|
5468 |
||
5469 |
path |
|
5470 |
"return the value of the instance variable 'path' (automatically generated)" |
|
5471 |
||
5472 |
^ path |
|
5473 |
! |
|
5474 |
||
5475 |
path:something |
|
5476 |
"set the value of the instance variable 'path' (automatically generated)" |
|
5477 |
||
5478 |
path := something. |
|
5479 |
! |
|
5480 |
||
5481 |
position |
|
5482 |
"return the value of the instance variable 'position' (automatically generated)" |
|
5483 |
||
5484 |
^ position |
|
5485 |
! |
|
5486 |
||
5487 |
position:something |
|
5488 |
"set the value of the instance variable 'position' (automatically generated)" |
|
5489 |
||
5490 |
position := something. |
|
5491 |
! |
|
5492 |
||
5493 |
printString |
|
5494 |
||
5495 |
^ self path asString |
|
3892 | 5496 |
! ! |
5497 |
||
5498 |
!AbstractFileBrowser::FilenameHistory class methodsFor:'attributes access'! |
|
5499 |
||
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
5500 |
filenameHistorySize |
3892 | 5501 |
|
5502 |
^ 20 |
|
5503 |
! ! |
|
5504 |
||
5505 |
!AbstractFileBrowser::FilenameHistory methodsFor:'adding & removing'! |
|
5506 |
||
5507 |
add:aApplItem |
|
5508 |
||
5509 |
super add:aApplItem. |
|
4337
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
5510 |
(self size > self class filenameHistorySize) ifTrue:[ |
f2eed806e854
change first letter uppercase methods on class side to lowercase ones
penk
parents:
4317
diff
changeset
|
5511 |
self removeLast. |
3892 | 5512 |
] |
5513 |
! ! |
|
5514 |
||
5515 |
!AbstractFileBrowser::SaveAspectItem class methodsFor:'instance creation'! |
|
5516 |
||
5517 |
withValue:aValue isHolder:aBoolean |
|
5518 |
||
5519 |
| instance | |
|
5520 |
||
5521 |
instance := self basicNew. |
|
5522 |
instance value:aValue. |
|
5523 |
instance isHolder:aBoolean. |
|
5524 |
^ instance |
|
5525 |
! ! |
|
5526 |
||
5527 |
!AbstractFileBrowser::SaveAspectItem methodsFor:'accessing'! |
|
5528 |
||
5529 |
isHolder |
|
5530 |
"return the value of the instance variable 'isHolder' (automatically generated)" |
|
5531 |
||
5532 |
^ isHolder |
|
5533 |
! |
|
5534 |
||
5535 |
isHolder:something |
|
5536 |
"set the value of the instance variable 'isHolder' (automatically generated)" |
|
5537 |
||
5538 |
isHolder := something. |
|
5539 |
! |
|
5540 |
||
5541 |
value |
|
5542 |
"return the value of the instance variable 'value' (automatically generated)" |
|
5543 |
||
5544 |
^ value |
|
5545 |
! |
|
5546 |
||
5547 |
value:something |
|
5548 |
"set the value of the instance variable 'value' (automatically generated)" |
|
5549 |
||
5550 |
value := something. |
|
5551 |
! ! |
|
5552 |
||
5553 |
!AbstractFileBrowser class methodsFor:'documentation'! |
|
5554 |
||
5555 |
version |
|
4491 | 5556 |
^ '$Header: /cvs/stx/stx/libtool/AbstractFileBrowser.st,v 1.84 2003-01-27 13:49:21 cg Exp $' |
3892 | 5557 |
! ! |