author | Claus Gittinger <cg@exept.de> |
Tue, 25 Jul 2006 11:26:07 +0200 | |
changeset 6834 | f42cab67e211 |
parent 6827 | 7fb75f69f944 |
child 6864 | 54e86ea3e958 |
permissions | -rw-r--r-- |
3892 | 1 |
" |
5140 | 2 |
COPYRIGHT (c) 2002 by eXept Software AG |
3892 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
"{ Package: 'stx:libtool' }" |
|
14 |
||
15 |
AbstractFileBrowser subclass:#FileBrowserV2 |
|
4651 | 16 |
instanceVariableNames:'fileEntryFieldHolder pathEntryField previewProcess |
5477 | 17 |
listOfDeviceDrives selectedDeviceDrive imgView' |
4651 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-Tools-File' |
|
3892 | 21 |
! |
22 |
||
23 |
!FileBrowserV2 class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
5140 | 27 |
COPYRIGHT (c) 2002 by eXept Software AG |
3892 | 28 |
All Rights Reserved |
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
5967 | 41 |
FileBrowserV2 is based on Filebrowser |
3892 | 42 |
|
43 |
WARNING: files edited with FileBrowser will have leading spaces (multiple-8) |
|
44 |
being replaced by tabs. If tabs are to be preserved at other |
|
45 |
positions (for example, sendmail-config files) they will be |
|
46 |
corrupt after being written. |
|
47 |
||
48 |
[instance variables]: |
|
49 |
||
50 |
checkDelta <Integer> number of seconds of check interval |
|
51 |
(looks ever so often if shown directory |
|
52 |
has changed). You may make this number |
|
53 |
higher, if your network-times are |
|
54 |
incorrect and thus, the filebrowser |
|
55 |
checks too often. |
|
56 |
||
57 |
compressTabs <Boolean> if true, leading spaces will be |
|
58 |
replaced by tabs when saving text |
|
59 |
||
60 |
some of the defaults (long/short list etc.) can be set by the resource file; |
|
61 |
see FileBrowser>>initialize for more details.. |
|
62 |
||
63 |
[author:] |
|
64 |
Christian Penk |
|
65 |
||
66 |
[start with:] |
|
67 |
FileBrowserV2 open |
|
68 |
" |
|
5354 | 69 |
! |
70 |
||
71 |
toDo |
|
72 |
" |
|
6478 | 73 |
- the tab for the directory description text editor is not changed if the |
74 |
directory description changes to a normal text editor |
|
5354 | 75 |
- FileDialog should get a file history |
6478 | 76 |
- directorycontentsItem isDirectory fails if it is a symbolic link |
5354 | 77 |
- on sort order change in directory contents browser the columnspec shouldnt not reloaded |
78 |
- check all windowspecs with different font types |
|
5472 | 79 |
- multiple select with mouse moving is flickering (see bestFilename in FilenameEditField) |
80 |
- too many system calls on update cycle |
|
5532 | 81 |
- stop monitoring task for DirectoryTreebrowser and DirectoryContentsBrowser |
5354 | 82 |
" |
3892 | 83 |
! ! |
84 |
||
85 |
!FileBrowserV2 class methodsFor:'instance creation'! |
|
86 |
||
87 |
on:aDirectoryPath |
|
88 |
"return a new FileBrowserV2 in a pathname" |
|
89 |
||
4015 | 90 |
|instance files| |
91 |
instance := self new createBuilder. |
|
4172 | 92 |
aDirectoryPath isCollection ifTrue:[ |
93 |
files := aDirectoryPath |
|
94 |
] ifFalse:[ |
|
95 |
files := Array with:aDirectoryPath. |
|
96 |
]. |
|
3907 | 97 |
instance currentFileNameHolder value:files. |
3892 | 98 |
^ instance |
99 |
! |
|
100 |
||
101 |
open |
|
102 |
"start a new FileBrowserV2" |
|
103 |
||
104 |
| instance | |
|
105 |
instance := self new. |
|
106 |
instance open. |
|
107 |
^ instance |
|
5123 | 108 |
|
3892 | 109 |
" |
4626 | 110 |
FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) withExtent:800@600 |
3892 | 111 |
" |
112 |
! |
|
113 |
||
114 |
openOn:aDirectoryPath |
|
115 |
"start a new FileBrowserV2 in a pathname" |
|
116 |
||
117 |
| instance| |
|
118 |
instance := self on:aDirectoryPath asFilename. |
|
5123 | 119 |
instance open. |
120 |
^ instance. |
|
121 |
||
3892 | 122 |
" |
4626 | 123 |
FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) |
3892 | 124 |
" |
125 |
! |
|
126 |
||
127 |
openOn:aDirectoryPath withExtent:extent |
|
128 |
"start a new FileBrowserV2 in a pathname" |
|
129 |
||
130 |
| instance builder| |
|
131 |
instance := self on:aDirectoryPath. |
|
132 |
builder := instance open. |
|
133 |
builder window extent:extent. |
|
134 |
^ instance |
|
5123 | 135 |
|
3892 | 136 |
" |
4626 | 137 |
FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) withExtent:800@600 |
3892 | 138 |
" |
139 |
! |
|
140 |
||
5123 | 141 |
openOnFileNamed:aFilename |
5162 | 142 |
"start a new FileBrowserV2 on a aFilename. |
143 |
The browser looks for an appropriate viewer and uses that if one is found; |
|
144 |
otherwise, the file is opened for text editing." |
|
145 |
||
146 |
^ self openOnFileNamed:aFilename editing:true |
|
147 |
||
148 |
" |
|
149 |
FileBrowserV2 openOnFileNamed:'Makefile' |
|
150 |
" |
|
151 |
! |
|
152 |
||
153 |
openOnFileNamed:aFilename editing:editing |
|
154 |
"start a new FileBrowserV2 on a aFilename; |
|
155 |
If editing is true, the browser opens the document as text to be edited; |
|
156 |
if false, it looks for an appropriate viewer and uses that if one is found." |
|
5123 | 157 |
|
158 |
|f browser| |
|
159 |
||
160 |
f := aFilename asFilename asAbsoluteFilename. |
|
161 |
f isDirectory ifTrue:[ |
|
162 |
^ self openOn:aFilename |
|
163 |
]. |
|
164 |
||
165 |
browser := self on:(f directory). |
|
166 |
browser currentFileNameHolder setValue:(Array with:f). |
|
167 |
browser open. |
|
5162 | 168 |
editing ifTrue:[ |
169 |
browser openTextEditorForFile:f. |
|
170 |
] ifFalse:[ |
|
171 |
browser openApplForFile:f. |
|
172 |
]. |
|
5123 | 173 |
|
174 |
" |
|
175 |
FileBrowserV2 openOnFileNamed:'Makefile' |
|
176 |
" |
|
177 |
! |
|
178 |
||
3892 | 179 |
openWithAspects:someAspects withExtent:extent |
180 |
"start a new FileBrowserV2 in a pathname" |
|
181 |
||
182 |
|dir clone| |
|
183 |
||
184 |
dir := someAspects at:#currentFileNameHolder ifAbsent:nil. |
|
185 |
clone := self openOn:(dir value) withExtent:extent. |
|
186 |
! ! |
|
187 |
||
188 |
!FileBrowserV2 class methodsFor:'class initialization'! |
|
189 |
||
4027 | 190 |
applicationIcon |
6503 | 191 |
^ ToolbarIconLibrary startNewFileBrowserIcon |
4027 | 192 |
! |
193 |
||
3892 | 194 |
initialize |
6078 | 195 |
"/ self installInLauncher. - now done in phase 2 |
196 |
ObjectMemory addDependent:self. |
|
3892 | 197 |
! |
198 |
||
199 |
installInLauncher |
|
200 |
"add myself to the launcher menu and toolBar" |
|
201 |
||
3914 | 202 |
|menuItem icon action currentLauncher| |
3892 | 203 |
|
204 |
FileBrowserV2 isNil ifTrue:[^ self]. |
|
205 |
||
206 |
action := [FileBrowserV2 open]. |
|
207 |
||
6112 | 208 |
icon := [self applicationIcon]. "/ self defaultIcon magnifiedTo:28@28. |
3892 | 209 |
|
210 |
menuItem := MenuItem new |
|
4037 | 211 |
translateLabel: true; |
3892 | 212 |
value: action; |
213 |
isButton: false; |
|
6237 | 214 |
label:'File Browser' icon:icon; |
3892 | 215 |
nameKey: #fileBrowserV2; |
216 |
activeHelpKey: #fileBrowserV2; |
|
217 |
submenuChannel: #menuFileHistory; |
|
218 |
showBusyCursorWhilePerforming:true. |
|
219 |
||
5630
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
220 |
NewLauncher |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
221 |
addMenuItem:menuItem |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
222 |
from:self |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
223 |
in:'menu.file' |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
224 |
position:#( #before #fileBrowser) |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
225 |
space:true. |
3892 | 226 |
|
227 |
menuItem := MenuItem new |
|
4037 | 228 |
translateLabel: true; |
3892 | 229 |
value: action; |
230 |
isButton: true; |
|
6237 | 231 |
"label:'File Browser'" icon:icon; |
3892 | 232 |
nameKey: #fileBrowserV2; |
233 |
activeHelpKey: #fileBrowserV2; |
|
234 |
submenuChannel: #menuFileHistory; |
|
235 |
showBusyCursorWhilePerforming:true. |
|
236 |
||
5630
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
237 |
NewLauncher |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
238 |
addMenuItem:menuItem |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
239 |
from:self |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
240 |
in:'toolbar' |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
241 |
position:#( #before #fileBrowser) |
167c807f720a
pass mySelf when defining a userAddedItem to allow for re-translation.
Claus Gittinger <cg@exept.de>
parents:
5532
diff
changeset
|
242 |
space:false. |
3892 | 243 |
|
3918 | 244 |
currentLauncher := NewLauncher current. |
3914 | 245 |
currentLauncher notNil ifTrue:[ |
246 |
currentLauncher fileBrowserItemVisible value:false |
|
247 |
]. |
|
4380
0987d10ae2ba
install and remove from Launcher install in settings application changed
penk
parents:
4377
diff
changeset
|
248 |
NewLauncher addSettingsApplicationByClass:#'FileBrowserV2SettingsAppl' |
0987d10ae2ba
install and remove from Launcher install in settings application changed
penk
parents:
4377
diff
changeset
|
249 |
withName:'Tools/FileBrowserV2' |
0987d10ae2ba
install and remove from Launcher install in settings application changed
penk
parents:
4377
diff
changeset
|
250 |
icon:nil. |
3908 | 251 |
|
3892 | 252 |
" |
253 |
self installInLauncher |
|
254 |
self removeFromLauncher |
|
255 |
" |
|
256 |
! |
|
257 |
||
258 |
removeFromLauncher |
|
259 |
"/ |
|
260 |
"/ remove myself from the launcher menu |
|
261 |
"/ |
|
262 |
||
3914 | 263 |
|currentLauncher| |
264 |
||
3892 | 265 |
NewLauncher isNil ifTrue:[^ self]. |
3908 | 266 |
NewLauncher removeUserTool:#fileBrowserV2. |
3918 | 267 |
currentLauncher := NewLauncher current. |
3914 | 268 |
currentLauncher notNil ifTrue:[ |
269 |
currentLauncher fileBrowserItemVisible value:false |
|
270 |
]. |
|
4380
0987d10ae2ba
install and remove from Launcher install in settings application changed
penk
parents:
4377
diff
changeset
|
271 |
NewLauncher removeSettingsApplicationByClass:#'FileBrowserV2SettingsAppl'. |
3892 | 272 |
|
273 |
" |
|
274 |
self removeFromLauncher |
|
275 |
" |
|
6078 | 276 |
! |
277 |
||
278 |
update:something with:aParameter from:changedObject |
|
279 |
something == #initialized ifTrue:[ |
|
280 |
changedObject == ObjectMemory ifTrue:[ |
|
281 |
self installInLauncher. |
|
282 |
ObjectMemory removeDependent:self. |
|
283 |
] |
|
284 |
]. |
|
3892 | 285 |
! ! |
286 |
||
287 |
!FileBrowserV2 class methodsFor:'defaults'! |
|
288 |
||
289 |
entryFieldEndStringForMultipleSelection |
|
290 |
||
291 |
^ ('[*]') |
|
292 |
! ! |
|
293 |
||
294 |
!FileBrowserV2 class methodsFor:'help specs'! |
|
295 |
||
6334 | 296 |
flyByHelpSpec |
297 |
"This resource specification was automatically generated |
|
298 |
by the UIHelpTool of ST/X." |
|
299 |
||
300 |
"Do not manually edit this!! If it is corrupted, |
|
301 |
the UIHelpTool may not be able to read the specification." |
|
302 |
||
303 |
" |
|
304 |
UIHelpTool openOnClass:FileBrowserV2 |
|
305 |
" |
|
306 |
||
307 |
<resource: #help> |
|
308 |
||
309 |
^ super flyByHelpSpec addPairsFrom:#( |
|
310 |
||
311 |
#columnLabel |
|
312 |
'The text-cursor''s column number' |
|
313 |
||
314 |
#encodingLabel |
|
315 |
'The file''s encoding (Menu to change)' |
|
316 |
||
317 |
#encodingLockedLabel |
|
318 |
'Lock the file-encoding (do not try to guess from the file''s contents)' |
|
319 |
||
320 |
#lineLabel |
|
321 |
'The text-cursor''s line number' |
|
322 |
||
323 |
#modeLabel |
|
324 |
'The editing mode (insert vs. overwrite)' |
|
325 |
||
326 |
#numberOfFiles |
|
327 |
'Number of files shown (Total number of files in directory)' |
|
328 |
||
329 |
) |
|
330 |
! |
|
331 |
||
4688 | 332 |
helpSpec |
333 |
"This resource specification was automatically generated |
|
334 |
by the UIHelpTool of ST/X." |
|
335 |
||
336 |
"Do not manually edit this!! If it is corrupted, |
|
337 |
the UIHelpTool may not be able to read the specification." |
|
338 |
||
339 |
" |
|
340 |
UIHelpTool openOnClass:FileBrowserV2 |
|
341 |
" |
|
342 |
||
343 |
<resource: #help> |
|
344 |
||
345 |
^ super helpSpec addPairsFrom:#( |
|
346 |
||
6334 | 347 |
#columnLabel |
348 |
'The text-cursor''s column number.' |
|
5398 | 349 |
|
6334 | 350 |
#encodingLabel |
351 |
'The files encoding.' |
|
5398 | 352 |
|
6334 | 353 |
#encodingLockedLabel |
354 |
'Lock the file-encoding (do not try to guess from the file''s contents).' |
|
5398 | 355 |
|
6334 | 356 |
#lineLabel |
357 |
'The text-cursor''s line number.' |
|
358 |
||
359 |
#modeLabel |
|
360 |
'The editing mode (insert vs. overwrite).' |
|
4688 | 361 |
|
362 |
) |
|
3892 | 363 |
! ! |
364 |
||
6338 | 365 |
!FileBrowserV2 class methodsFor:'image specs'! |
3892 | 366 |
|
6525 | 367 |
closePreviewButtonImage |
368 |
^ ToolbarIconLibrary removeTabIcon |
|
369 |
! |
|
370 |
||
3892 | 371 |
defaultIcon |
372 |
"This resource specification was automatically generated |
|
373 |
by the ImageEditor of ST/X." |
|
374 |
||
375 |
"Do not manually edit this!! If it is corrupted, |
|
376 |
the ImageEditor may not be able to read the specification." |
|
377 |
||
378 |
" |
|
379 |
self defaultIcon inspect |
|
380 |
ImageEditor openOnClass:self andSelector:#defaultIcon |
|
381 |
" |
|
382 |
||
383 |
<resource: #image> |
|
384 |
||
385 |
^Icon |
|
386 |
constantNamed:#'FileBrowserV2 class defaultIcon' |
|
387 |
ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
388 |
@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@ADP@@@L0F@@@@@@A @ADAD@@@3@XN;.;.8F@ADPDQ@@CLA ;.@@@@@@D@@@D@@L0FC.8O[6=/@QDADP@@3@X@; |
|
389 |
[6=/[0DPDP@@CLA DNC6<@@F<ADP@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@ |
|
390 |
@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@ |
|
391 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
392 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
393 |
O??# C??9<@??>? O???<C????@????0O???8C???<@???>@O??<@C???@@???0@O??<@C??8@@??>@@O?? @C??8@@??>@@G?? @@??8@@@@@@@G.P=0AAD |
|
394 |
HP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a') ; yourself); yourself] |
|
395 |
! |
|
396 |
||
6339 | 397 |
encodingLockIcon |
398 |
<resource: #programImage> |
|
399 |
||
400 |
^ ToolbarIconLibrary encodingLockIcon |
|
401 |
! |
|
402 |
||
3892 | 403 |
hideFilenameEntryFieldIcon |
404 |
<resource: #programImage> |
|
405 |
||
406 |
^ ToolbarIconLibrary hideToolbarIconH14 |
|
407 |
! |
|
408 |
||
409 |
hideToolBarIcon |
|
410 |
<resource: #programImage> |
|
411 |
||
412 |
^ ToolbarIconLibrary hideToolbarIconH26 |
|
413 |
! ! |
|
414 |
||
415 |
!FileBrowserV2 class methodsFor:'interface specs'! |
|
416 |
||
417 |
windowSpec |
|
418 |
"This resource specification was automatically generated |
|
419 |
by the UIPainter of ST/X." |
|
420 |
||
421 |
"Do not manually edit this!! If it is corrupted, |
|
422 |
the UIPainter may not be able to read the specification." |
|
423 |
||
424 |
" |
|
425 |
UIPainter new openOnClass:FileBrowserV2 andSelector:#windowSpec |
|
426 |
FileBrowserV2 new openInterface:#windowSpec |
|
427 |
FileBrowserV2 open |
|
428 |
" |
|
429 |
||
430 |
<resource: #canvas> |
|
431 |
||
432 |
^ |
|
5331 | 433 |
#(FullSpec |
434 |
name: windowSpec |
|
435 |
window: |
|
436 |
(WindowSpec |
|
437 |
label: FileBrowser |
|
438 |
name: FileBrowser |
|
439 |
min: (Point 10 10) |
|
5680 | 440 |
bounds: (Rectangle 0 0 800 600) |
5331 | 441 |
menu: mainMenu |
442 |
icon: applicationIcon |
|
3892 | 443 |
) |
5331 | 444 |
component: |
445 |
(SpecCollection |
|
446 |
collection: ( |
|
447 |
(ViewSpec |
|
6079 | 448 |
name: 'ToolbarBox' |
449 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0) |
|
450 |
level: 0 |
|
451 |
visibilityChannel: toolBarVisibleHolder |
|
452 |
component: |
|
453 |
(SpecCollection |
|
454 |
collection: ( |
|
455 |
(ActionButtonSpec |
|
456 |
label: 'hideToolBarIcon' |
|
457 |
name: 'HideToolBarButton' |
|
458 |
layout: (LayoutFrame 0 0 0 0 13 0 30 0) |
|
459 |
activeHelpKey: hideToolBar |
|
460 |
hasCharacterOrientedLabel: false |
|
461 |
translateLabel: true |
|
462 |
model: hideToolbar |
|
463 |
postBuildCallback: hideToolBarButtonCreated: |
|
464 |
) |
|
465 |
(MenuPanelSpec |
|
466 |
name: 'ToolBar' |
|
467 |
layout: (LayoutFrame 13 0 0 0 0 1 32 0) |
|
468 |
menu: toolBarMainMenu |
|
469 |
textDefault: true |
|
470 |
) |
|
471 |
) |
|
472 |
||
473 |
) |
|
474 |
) |
|
475 |
(ViewSpec |
|
5331 | 476 |
name: 'FilenameEntryFieldBox' |
6079 | 477 |
layout: (LayoutFrame 0 0 32 0 0 1 57 0) |
5331 | 478 |
level: 0 |
479 |
visibilityChannel: filenameEntryFieldVisibleHolder |
|
480 |
component: |
|
481 |
(SpecCollection |
|
482 |
collection: ( |
|
483 |
(ActionButtonSpec |
|
484 |
label: 'hideFilenameEntryFieldIcon' |
|
485 |
name: 'HideFilenameEntryFieldButton' |
|
486 |
layout: (LayoutFrame 0 0 0 0 13 0 0 1) |
|
487 |
activeHelpKey: hideFilenameEntryField |
|
488 |
hasCharacterOrientedLabel: false |
|
489 |
translateLabel: true |
|
490 |
model: hideFilenameEntryField |
|
491 |
postBuildCallback: hideFilenameEntryFieldButtonCreated: |
|
3892 | 492 |
) |
5331 | 493 |
(HorizontalPanelViewSpec |
494 |
name: 'HorizontalPanel1' |
|
495 |
layout: (LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0) |
|
496 |
level: 1 |
|
497 |
horizontalLayout: leftFit |
|
498 |
verticalLayout: fit |
|
499 |
horizontalSpace: 3 |
|
500 |
verticalSpace: 3 |
|
501 |
component: |
|
502 |
(SpecCollection |
|
503 |
collection: ( |
|
504 |
(ComboListSpec |
|
505 |
name: 'ComboList1' |
|
506 |
visibilityChannel: driveSelectorVisible |
|
507 |
model: selectedDeviceDrive |
|
508 |
comboList: listOfDeviceDrives |
|
509 |
useIndex: false |
|
6079 | 510 |
hidePullDownMenuButton: false |
5331 | 511 |
extent: (Point 53 23) |
5120 | 512 |
) |
5331 | 513 |
(VariableHorizontalPanelSpec |
514 |
name: 'VariableHorizontalPanel1' |
|
515 |
level: 0 |
|
516 |
showHandle: true |
|
517 |
component: |
|
518 |
(SpecCollection |
|
519 |
collection: ( |
|
520 |
(NonScrollableArbitraryComponentSpec |
|
521 |
name: 'NonScrollableArbitraryComponent1' |
|
522 |
component: FilenameEditFieldV2 |
|
523 |
postBuildCallback: postBuildEditField: |
|
3892 | 524 |
) |
5331 | 525 |
(ViewSpec |
526 |
name: 'FilterBox' |
|
527 |
component: |
|
528 |
(SpecCollection |
|
529 |
collection: ( |
|
530 |
(LabelSpec |
|
531 |
label: 'Filter:' |
|
532 |
name: 'Filter' |
|
533 |
layout: (LayoutFrame 0 0 0 0 40 0 0 1) |
|
534 |
translateLabel: true |
|
535 |
adjust: left |
|
536 |
postBuildCallback: postBuildPathViewBox: |
|
3892 | 537 |
) |
5331 | 538 |
(ComboBoxSpec |
539 |
name: 'FilterSelectionBox' |
|
540 |
layout: (LayoutFrame 40 0 0 0 0 1 0 1) |
|
541 |
model: filterModel |
|
542 |
immediateAccept: true |
|
543 |
acceptOnPointerLeave: false |
|
544 |
comboList: filterListModel |
|
3892 | 545 |
) |
546 |
) |
|
547 |
||
548 |
) |
|
5331 | 549 |
postBuildCallback: postBuildPathViewBox: |
3892 | 550 |
) |
551 |
) |
|
552 |
||
553 |
) |
|
5331 | 554 |
handles: (Any 0.774936 1.0) |
555 |
postBuildCallback: postBuildPathViewBox: |
|
556 |
useDefaultExtent: true |
|
3892 | 557 |
) |
558 |
) |
|
559 |
||
560 |
) |
|
5331 | 561 |
postBuildCallback: postBuildPathViewBox: |
3892 | 562 |
) |
563 |
) |
|
564 |
||
565 |
) |
|
566 |
) |
|
5331 | 567 |
(#'FileBrowserV2UISpecifications::PanelSpec' |
568 |
name: 'BrowserBox' |
|
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
569 |
layout: (LayoutFrame 0 0.0 57 0.0 0 1.0 -26 1.0) |
5331 | 570 |
level: 0 |
571 |
showHandle: true |
|
572 |
snapMode: both |
|
573 |
whichView: last |
|
574 |
orientation: vertical |
|
575 |
visibility: viewNoteBookApplicationHolder |
|
576 |
component: |
|
577 |
(SpecCollection |
|
578 |
collection: ( |
|
579 |
(#'FileBrowserV2UISpecifications::PanelSpec' |
|
580 |
name: 'HorizontalPanel' |
|
581 |
level: 0 |
|
582 |
snapMode: both |
|
583 |
whichView: first |
|
584 |
orientation: horizontal |
|
585 |
visibility: showDirectoryTree |
|
586 |
component: |
|
587 |
(SpecCollection |
|
588 |
collection: ( |
|
589 |
(SubCanvasSpec |
|
590 |
name: 'DirectoryTreeBrowser' |
|
591 |
hasHorizontalScrollBar: false |
|
592 |
hasVerticalScrollBar: false |
|
593 |
majorKey: DirectoryTreeBrowser |
|
594 |
createNewApplication: true |
|
595 |
createNewBuilder: true |
|
596 |
postBuildCallback: postBuildDirectoryTree: |
|
3892 | 597 |
) |
5331 | 598 |
(SubCanvasSpec |
599 |
name: 'DirectoryContentsBrowser' |
|
600 |
hasHorizontalScrollBar: false |
|
601 |
hasVerticalScrollBar: false |
|
602 |
majorKey: DirectoryContentsBrowser |
|
603 |
createNewApplication: true |
|
604 |
createNewBuilder: true |
|
3892 | 605 |
) |
606 |
) |
|
607 |
||
608 |
) |
|
5331 | 609 |
handles: (Any 0.225 1.0) |
4595
09c632988dad
Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents:
4593
diff
changeset
|
610 |
) |
5331 | 611 |
(SubCanvasSpec |
612 |
name: 'FileApplicationNoteBook' |
|
613 |
tabable: false |
|
614 |
hasHorizontalScrollBar: false |
|
615 |
hasVerticalScrollBar: false |
|
616 |
majorKey: FileApplicationNoteBook |
|
617 |
createNewApplication: true |
|
618 |
createNewBuilder: true |
|
3892 | 619 |
) |
620 |
) |
|
621 |
||
622 |
) |
|
5331 | 623 |
handles: (Any 0.5 1.0) |
3892 | 624 |
) |
5331 | 625 |
(ViewSpec |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
626 |
name: 'InfoBox' |
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
627 |
layout: (LayoutFrame 0 0 -26 1 0 1 0 1) |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
628 |
level: 0 |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
629 |
visibilityChannel: infoBarVisibleHolder |
5331 | 630 |
component: |
631 |
(SpecCollection |
|
632 |
collection: ( |
|
633 |
(LabelSpec |
|
634 |
label: 'NotifyLabel' |
|
635 |
name: 'NotifyLabel' |
|
636 |
layout: (LayoutFrame 0 0 1 0.0 -220 1 1 1.0) |
|
637 |
level: -1 |
|
638 |
translateLabel: true |
|
639 |
labelChannel: notifyChannel |
|
640 |
adjust: left |
|
4018 | 641 |
) |
5528 | 642 |
(LabelSpec |
643 |
label: 'encoding' |
|
644 |
name: 'EncodingLabel' |
|
6339 | 645 |
layout: (LayoutFrame -318 1 2 0.0 -235 1 0 1.0) |
6334 | 646 |
activeHelpKey: encodingLabel |
5528 | 647 |
level: 0 |
648 |
labelChannel: fileEncodingHolder |
|
649 |
adjust: right |
|
650 |
menu: encodingMenu |
|
651 |
) |
|
5331 | 652 |
(LabelSpec |
6334 | 653 |
name: 'FileEncodingLockedLabel' |
6339 | 654 |
layout: (LayoutFrame -235 1 2 0.0 -220 1 20 0.0) |
6334 | 655 |
activeHelpKey: encodingLockedLabel |
656 |
level: 0 |
|
657 |
labelChannel: fileEncodingLockImageHolder |
|
658 |
adjust: right |
|
659 |
menu: encodingMenu |
|
660 |
) |
|
661 |
(LabelSpec |
|
5331 | 662 |
label: 'Shown Files' |
663 |
name: 'ShownFilesLabel' |
|
664 |
layout: (LayoutFrame -220 1 1 0.0 -60 1 1 1.0) |
|
6334 | 665 |
activeHelpKey: numberOfFiles |
5331 | 666 |
level: -1 |
667 |
translateLabel: true |
|
668 |
labelChannel: shownFiles |
|
669 |
adjust: right |
|
5120 | 670 |
) |
6119 | 671 |
(ViewSpec |
672 |
name: 'ProgressIndicatorBox' |
|
673 |
layout: (LayoutFrame -220 1 1 0.0 -60 1 1 1.0) |
|
674 |
level: -1 |
|
675 |
visibilityChannel: activityVisibilityChannel |
|
676 |
component: |
|
677 |
(SpecCollection |
|
678 |
collection: ( |
|
679 |
(ProgressIndicatorSpec |
|
680 |
name: 'ProgressIndicator1' |
|
681 |
layout: (LayoutFrame 5 0.0 -7 0.5 -5 1.0 7 0.5) |
|
682 |
backgroundColor: (Color 0.0 66.666666666667 66.666666666667) |
|
683 |
isActivityIndicator: true |
|
684 |
) |
|
685 |
) |
|
686 |
||
687 |
) |
|
688 |
) |
|
5331 | 689 |
(LabelSpec |
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
690 |
name: 'BusyLabel' |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
691 |
layout: (LayoutFrame -220 1 1 0.0 -60 1 1 1.0) |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
692 |
activeHelpKey: modeLabel |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
693 |
level: -1 |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
694 |
visibilityChannel: busyLabelVisibleHolder |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
695 |
translateLabel: true |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
696 |
labelChannel: busyLabelHolder |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
697 |
adjust: right |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
698 |
) |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
699 |
(LabelSpec |
5331 | 700 |
label: 'M' |
701 |
name: 'ModeLabel' |
|
702 |
layout: (LayoutFrame -60 1 1 0.0 -50 1 1 1.0) |
|
6334 | 703 |
activeHelpKey: modeLabel |
5331 | 704 |
level: -1 |
705 |
translateLabel: true |
|
706 |
labelChannel: modeLabelHolder |
|
707 |
adjust: right |
|
4647 | 708 |
) |
5331 | 709 |
(LabelSpec |
710 |
label: 'L' |
|
711 |
name: 'LineLabel' |
|
712 |
layout: (LayoutFrame -50 1 1 0.0 -20 1 1 1.0) |
|
6334 | 713 |
activeHelpKey: lineLabel |
5331 | 714 |
level: -1 |
715 |
translateLabel: true |
|
716 |
labelChannel: cursorLineLabelHolder |
|
717 |
adjust: right |
|
5120 | 718 |
) |
5331 | 719 |
(LabelSpec |
720 |
label: 'C' |
|
721 |
name: 'ColLabel' |
|
722 |
layout: (LayoutFrame -20 1 1 0.0 0 1 1 1.0) |
|
6334 | 723 |
activeHelpKey: columnLabel |
5331 | 724 |
level: -1 |
725 |
translateLabel: true |
|
726 |
labelChannel: cursorColLabelHolder |
|
727 |
adjust: right |
|
4647 | 728 |
) |
729 |
) |
|
730 |
||
731 |
) |
|
732 |
) |
|
5331 | 733 |
(LabelSpec |
734 |
label: 'Preview' |
|
735 |
name: 'PreviewLabel' |
|
736 |
layout: (LayoutFrame 0 0.5 39 0 100 0.5 61 0) |
|
737 |
level: 0 |
|
738 |
borderWidth: 1 |
|
739 |
visibilityChannel: previewVisibleHolder |
|
6079 | 740 |
backgroundColor: (Color 86.999313344015 86.999313344015 86.999313344015) |
5331 | 741 |
translateLabel: true |
4647 | 742 |
) |
5331 | 743 |
(ArbitraryComponentSpec |
744 |
name: 'Preview' |
|
745 |
layout: (LayoutFrame 0 0.5 63 0 -147 1 -319 1) |
|
746 |
level: 1 |
|
747 |
visibilityChannel: previewVisibleHolder |
|
748 |
hasBorder: false |
|
749 |
component: ImageView |
|
4647 | 750 |
) |
6524 | 751 |
(ActionButtonSpec |
752 |
label: 'closePreviewButtonImage' |
|
753 |
name: 'ClosePreviewButton' |
|
754 |
layout: (LayoutFrame -169 1 39 0 -147 1 61 0) |
|
755 |
visibilityChannel: previewVisibleHolder |
|
756 |
hasCharacterOrientedLabel: false |
|
757 |
translateLabel: true |
|
758 |
) |
|
4647 | 759 |
) |
760 |
||
761 |
) |
|
762 |
) |
|
3892 | 763 |
! ! |
764 |
||
765 |
!FileBrowserV2 class methodsFor:'menu specs'! |
|
766 |
||
5528 | 767 |
encodingMenu |
768 |
"This resource specification was automatically generated |
|
769 |
by the MenuEditor of ST/X." |
|
770 |
||
771 |
"Do not manually edit this!! If it is corrupted, |
|
772 |
the MenuEditor may not be able to read the specification." |
|
773 |
||
774 |
" |
|
775 |
MenuEditor new openOnClass:FileBrowserV2 andSelector:#encodingMenu |
|
776 |
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 encodingMenu)) startUp |
|
777 |
" |
|
778 |
||
779 |
<resource: #menu> |
|
780 |
||
781 |
^ |
|
782 |
#(Menu |
|
783 |
( |
|
784 |
(MenuItem |
|
785 |
label: 'Encoding...' |
|
786 |
itemValue: fileEncodingDialog |
|
787 |
translateLabel: true |
|
788 |
) |
|
6334 | 789 |
(MenuItem |
790 |
label: '-' |
|
791 |
) |
|
792 |
(MenuItem |
|
793 |
label: 'Locked' |
|
794 |
translateLabel: true |
|
795 |
indication: lockFileEncodingHolder |
|
796 |
) |
|
5528 | 797 |
) |
798 |
nil |
|
799 |
nil |
|
800 |
) |
|
801 |
! |
|
802 |
||
3892 | 803 |
mainMenu |
804 |
"This resource specification was automatically generated |
|
805 |
by the MenuEditor of ST/X." |
|
806 |
||
807 |
"Do not manually edit this!! If it is corrupted, |
|
808 |
the MenuEditor may not be able to read the specification." |
|
809 |
||
810 |
" |
|
811 |
MenuEditor new openOnClass:FileBrowserV2 andSelector:#mainMenu |
|
812 |
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 mainMenu)) startUp |
|
813 |
" |
|
814 |
||
815 |
<resource: #menu> |
|
816 |
||
817 |
^ |
|
5424 | 818 |
#(Menu |
819 |
( |
|
820 |
(MenuItem |
|
821 |
label: 'Browser' |
|
822 |
translateLabel: true |
|
823 |
submenuChannel: browserMenu |
|
824 |
keepLinkedMenu: true |
|
3892 | 825 |
) |
5424 | 826 |
(MenuItem |
827 |
label: 'Directory' |
|
828 |
translateLabel: true |
|
829 |
submenuChannel: directoryMenu |
|
830 |
keepLinkedMenu: true |
|
3892 | 831 |
) |
5424 | 832 |
(MenuItem |
833 |
label: 'File' |
|
834 |
translateLabel: true |
|
835 |
submenuChannel: fileMenu |
|
836 |
keepLinkedMenu: true |
|
3892 | 837 |
) |
5424 | 838 |
(MenuItem |
839 |
label: 'Edit' |
|
840 |
translateLabel: true |
|
841 |
submenuChannel: editMenu |
|
842 |
keepLinkedMenu: true |
|
843 |
) |
|
844 |
(MenuItem |
|
845 |
label: 'View' |
|
846 |
translateLabel: true |
|
847 |
submenu: |
|
848 |
(Menu |
|
849 |
( |
|
850 |
(MenuItem |
|
851 |
label: 'Details' |
|
852 |
translateLabel: true |
|
853 |
submenuChannel: viewInContentsBrowserMenu |
|
3892 | 854 |
) |
5424 | 855 |
(MenuItem |
856 |
label: 'Sort' |
|
857 |
translateLabel: true |
|
858 |
submenuChannel: sortMenu |
|
3892 | 859 |
) |
5424 | 860 |
(MenuItem |
861 |
label: 'Show' |
|
862 |
translateLabel: true |
|
863 |
submenuChannel: showMenuSpec |
|
3892 | 864 |
) |
5424 | 865 |
(MenuItem |
866 |
label: '-' |
|
3892 | 867 |
) |
5424 | 868 |
(MenuItem |
869 |
label: 'Toolbar' |
|
870 |
translateLabel: true |
|
871 |
hideMenuOnActivated: false |
|
872 |
indication: toolBarVisibleHolder |
|
3892 | 873 |
) |
5424 | 874 |
(MenuItem |
875 |
label: 'Path Entry && Filter' |
|
876 |
translateLabel: true |
|
877 |
hideMenuOnActivated: false |
|
878 |
indication: filenameEntryFieldVisibleHolder |
|
3892 | 879 |
) |
5424 | 880 |
(MenuItem |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
881 |
label: 'Info' |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
882 |
translateLabel: true |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
883 |
hideMenuOnActivated: false |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
884 |
indication: infoBarVisibleHolder |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
885 |
) |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
886 |
(MenuItem |
5424 | 887 |
label: 'Preview' |
888 |
translateLabel: true |
|
889 |
hideMenuOnActivated: false |
|
890 |
indication: previewVisibleHolder |
|
4252 | 891 |
) |
5424 | 892 |
(MenuItem |
893 |
label: '-' |
|
3892 | 894 |
) |
5424 | 895 |
(MenuItem |
896 |
label: 'Update' |
|
897 |
itemValue: updateCurrentDirectory |
|
898 |
translateLabel: true |
|
3892 | 899 |
) |
900 |
) |
|
901 |
nil |
|
902 |
nil |
|
903 |
) |
|
904 |
) |
|
5424 | 905 |
(MenuItem |
906 |
label: 'Tools' |
|
907 |
translateLabel: true |
|
908 |
submenuChannel: toolsMenuSpec |
|
909 |
keepLinkedMenu: true |
|
3892 | 910 |
) |
5424 | 911 |
(MenuItem |
912 |
label: 'CVS' |
|
913 |
translateLabel: true |
|
914 |
submenuChannel: cvsMenu |
|
915 |
keepLinkedMenu: true |
|
3892 | 916 |
) |
5424 | 917 |
(MenuItem |
918 |
label: 'Help' |
|
919 |
translateLabel: true |
|
920 |
startGroup: right |
|
921 |
submenu: |
|
922 |
(Menu |
|
923 |
( |
|
924 |
(MenuItem |
|
925 |
label: 'FileBrowser Documentation' |
|
926 |
itemValue: openHTMLDocument: |
|
927 |
translateLabel: true |
|
5750 | 928 |
argument: 'tools/fbrowserV2/TOP.html' |
3892 | 929 |
) |
5424 | 930 |
(MenuItem |
931 |
label: '-' |
|
3892 | 932 |
) |
5424 | 933 |
(MenuItem |
934 |
label: 'About FileBrowser...' |
|
935 |
itemValue: openAboutThisApplication |
|
936 |
translateLabel: true |
|
3892 | 937 |
) |
938 |
) |
|
939 |
nil |
|
940 |
nil |
|
941 |
) |
|
942 |
) |
|
943 |
) |
|
944 |
nil |
|
945 |
nil |
|
946 |
) |
|
5750 | 947 |
|
948 |
"Modified: / 17-03-2004 / 13:19:04 / cg" |
|
3892 | 949 |
! |
950 |
||
4257 | 951 |
previewLabelMenu |
952 |
"This resource specification was automatically generated |
|
953 |
by the MenuEditor of ST/X." |
|
954 |
||
955 |
"Do not manually edit this!! If it is corrupted, |
|
956 |
the MenuEditor may not be able to read the specification." |
|
957 |
||
958 |
" |
|
959 |
MenuEditor new openOnClass:FileBrowserV2 andSelector:#previewLabelMenu |
|
960 |
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 previewLabelMenu)) startUp |
|
961 |
" |
|
962 |
||
963 |
<resource: #menu> |
|
964 |
||
965 |
^ |
|
966 |
#(#Menu |
|
967 |
#( |
|
968 |
#(#MenuItem |
|
969 |
#label: 'Close Preview' |
|
970 |
#itemValue: #closePreview |
|
971 |
#translateLabel: true |
|
972 |
) |
|
973 |
) |
|
974 |
nil |
|
975 |
nil |
|
976 |
) |
|
977 |
! |
|
978 |
||
3892 | 979 |
toolBarMainMenu |
980 |
"This resource specification was automatically generated |
|
981 |
by the MenuEditor of ST/X." |
|
982 |
||
983 |
"Do not manually edit this!! If it is corrupted, |
|
984 |
the MenuEditor may not be able to read the specification." |
|
985 |
||
986 |
" |
|
987 |
MenuEditor new openOnClass:FileBrowserV2 andSelector:#toolBarMainMenu |
|
988 |
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 toolBarMainMenu)) startUp |
|
989 |
" |
|
990 |
||
991 |
<resource: #menu> |
|
992 |
||
993 |
^ |
|
5398 | 994 |
#(Menu |
995 |
( |
|
996 |
(MenuItem |
|
997 |
activeHelpKey: directoryBack |
|
998 |
enabled: enableBack |
|
999 |
label: 'Back' |
|
1000 |
itemValue: doBack |
|
1001 |
translateLabel: true |
|
1002 |
isButton: true |
|
1003 |
submenuChannel: menuDirHistoryBack |
|
6093 | 1004 |
labelImage: (ResourceRetriever ToolbarIconLibrary historyBackIcon) |
3892 | 1005 |
) |
5398 | 1006 |
(MenuItem |
1007 |
label: '' |
|
3892 | 1008 |
) |
5398 | 1009 |
(MenuItem |
1010 |
activeHelpKey: directoryForward |
|
1011 |
enabled: enableForward |
|
1012 |
label: 'Forward' |
|
1013 |
itemValue: doForward |
|
1014 |
translateLabel: true |
|
1015 |
isButton: true |
|
1016 |
submenuChannel: menuDirHistoryForward |
|
6093 | 1017 |
labelImage: (ResourceRetriever ToolbarIconLibrary historyForwardIcon) |
3892 | 1018 |
) |
5398 | 1019 |
(MenuItem |
6460 | 1020 |
label: '-' |
1021 |
) |
|
1022 |
(MenuItem |
|
1023 |
activeHelpKey: directoryUp |
|
1024 |
enabled: enableDirectoryUp |
|
1025 |
label: 'DirectoryUp' |
|
1026 |
itemValue: doGoDirectoryUp |
|
1027 |
translateLabel: true |
|
1028 |
isButton: true |
|
1029 |
labelImage: (ResourceRetriever ToolbarIconLibrary directoryUpIcon) |
|
3892 | 1030 |
) |
5398 | 1031 |
(MenuItem |
1032 |
activeHelpKey: fileHome |
|
1033 |
enabled: enableHome |
|
1034 |
label: 'Home' |
|
1035 |
itemValue: doGotoHomeDirectory |
|
1036 |
translateLabel: true |
|
1037 |
isButton: true |
|
6096 | 1038 |
labelImage: (ResourceRetriever ToolbarIconLibrary homeIcon) |
3892 | 1039 |
) |
5398 | 1040 |
(MenuItem |
6456 | 1041 |
activeHelpKey: fileGotoDefaultDirectory |
1042 |
enabled: enableGotoDefaultDirectory |
|
1043 |
label: 'Current' |
|
1044 |
itemValue: doGotoDefaultDirectory |
|
1045 |
translateLabel: true |
|
1046 |
isButton: true |
|
1047 |
isVisible: false |
|
1048 |
labelImage: (ResourceRetriever ToolbarIconLibrary currentDirectoryIcon) |
|
1049 |
) |
|
1050 |
(MenuItem |
|
6454 | 1051 |
activeHelpKey: fileGotoSmalltalkDirectory |
1052 |
enabled: enableGotoSmalltalkDirectory |
|
5398 | 1053 |
label: 'ST/X Default' |
6454 | 1054 |
itemValue: doGotoSmalltalkDirectory |
5398 | 1055 |
translateLabel: true |
1056 |
isButton: true |
|
6096 | 1057 |
labelImage: (ResourceRetriever ToolbarIconLibrary stxHomeIcon) |
4593 | 1058 |
) |
5398 | 1059 |
(MenuItem |
6099 | 1060 |
activeHelpKey: fileGotoBookmark |
1061 |
label: 'Bookmarks' |
|
1062 |
translateLabel: true |
|
1063 |
isButton: true |
|
1064 |
submenuChannel: gotoBookmarksMenuSpec |
|
1065 |
labelImage: (ResourceRetriever ToolbarIconLibrary directoryBookmarksIcon) |
|
1066 |
) |
|
1067 |
(MenuItem |
|
5398 | 1068 |
activeHelpKey: fileHistory |
1069 |
enabled: enableFileHistory |
|
1070 |
label: 'File History' |
|
1071 |
translateLabel: true |
|
1072 |
isButton: true |
|
1073 |
submenuChannel: menuFileHistory |
|
6093 | 1074 |
labelImage: (ResourceRetriever ToolbarIconLibrary historyIcon) |
5398 | 1075 |
) |
1076 |
(MenuItem |
|
6827 | 1077 |
label: '-' |
1078 |
) |
|
1079 |
(MenuItem |
|
6460 | 1080 |
activeHelpKey: searchFile |
1081 |
label: 'Search File' |
|
1082 |
itemValue: doOpenSearchFile |
|
1083 |
translateLabel: true |
|
1084 |
isButton: true |
|
1085 |
labelImage: (ResourceRetriever ToolbarIconLibrary searchFileIcon) |
|
1086 |
) |
|
1087 |
(MenuItem |
|
5398 | 1088 |
label: '-' |
3892 | 1089 |
) |
5398 | 1090 |
(MenuItem |
1091 |
activeHelpKey: cutFile |
|
1092 |
enabled: hasSelection |
|
1093 |
label: 'Cut' |
|
1094 |
itemValue: cutFiles |
|
1095 |
translateLabel: true |
|
1096 |
isButton: true |
|
6093 | 1097 |
labelImage: (ResourceRetriever ToolbarIconLibrary cutFileIcon) |
3892 | 1098 |
) |
5398 | 1099 |
(MenuItem |
1100 |
activeHelpKey: copyFile |
|
1101 |
enabled: hasSelection |
|
1102 |
label: 'Copy' |
|
1103 |
itemValue: copyFiles |
|
1104 |
translateLabel: true |
|
1105 |
isButton: true |
|
6093 | 1106 |
labelImage: (ResourceRetriever ToolbarIconLibrary copyFileIcon) |
4730 | 1107 |
) |
5398 | 1108 |
(MenuItem |
1109 |
activeHelpKey: pasteFile |
|
1110 |
enabled: canPaste |
|
1111 |
label: 'Paste' |
|
1112 |
itemValue: pasteFiles |
|
1113 |
translateLabel: true |
|
1114 |
isButton: true |
|
6093 | 1115 |
labelImage: (ResourceRetriever ToolbarIconLibrary pasteFileIcon) |
3892 | 1116 |
) |
5398 | 1117 |
(MenuItem |
1118 |
activeHelpKey: deleteFile |
|
1119 |
enabled: hasSelection |
|
1120 |
label: 'Delete' |
|
1121 |
itemValue: deleteFiles |
|
1122 |
translateLabel: true |
|
1123 |
isButton: true |
|
6093 | 1124 |
labelImage: (ResourceRetriever ToolbarIconLibrary deleteFileIcon) |
3892 | 1125 |
) |
5398 | 1126 |
(MenuItem |
1127 |
label: '-' |
|
1128 |
) |
|
1129 |
(MenuItem |
|
6367 | 1130 |
activeHelpKey: editFile |
1131 |
label: 'Edit File' |
|
1132 |
itemValue: doShowFileContents |
|
1133 |
translateLabel: true |
|
1134 |
isButton: true |
|
1135 |
labelImage: (ResourceRetriever ToolbarIconLibrary editFileIcon) |
|
1136 |
) |
|
1137 |
(MenuItem |
|
6460 | 1138 |
label: '-' |
1139 |
) |
|
1140 |
(MenuItem |
|
6116 | 1141 |
activeHelpKey: fileIn |
1142 |
label: 'File In' |
|
1143 |
itemValue: fileFileIn |
|
1144 |
translateLabel: true |
|
1145 |
isButton: true |
|
1146 |
labelImage: (ResourceRetriever ToolbarIconLibrary fileInIcon) |
|
1147 |
) |
|
1148 |
(MenuItem |
|
1149 |
activeHelpKey: openChangeBrowser |
|
1150 |
enabled: hasFileSelection |
|
1151 |
label: 'Changes Browser' |
|
1152 |
itemValue: openChangesBrowser |
|
1153 |
translateLabel: true |
|
1154 |
isButton: true |
|
6307 | 1155 |
labelImage: (ResourceRetriever ToolbarIconLibrary startChangesBrowserIcon) |
6116 | 1156 |
) |
1157 |
(MenuItem |
|
1158 |
label: '-' |
|
1159 |
) |
|
1160 |
(MenuItem |
|
5398 | 1161 |
activeHelpKey: addTerminal |
1162 |
label: 'VT100' |
|
1163 |
itemValue: doAddTerminal |
|
1164 |
translateLabel: true |
|
1165 |
isButton: true |
|
6094 | 1166 |
labelImage: (ResourceRetriever ToolbarIconLibrary shellTerminalIcon) |
3892 | 1167 |
) |
5398 | 1168 |
(MenuItem |
1169 |
activeHelpKey: make |
|
1170 |
enabled: canMake |
|
1171 |
label: 'Make' |
|
1172 |
itemValue: doMake |
|
1173 |
translateLabel: true |
|
1174 |
isButton: true |
|
6095 | 1175 |
labelImage: (ResourceRetriever ToolbarIconLibrary makeIcon) |
4236 | 1176 |
) |
5398 | 1177 |
(MenuItem |
6116 | 1178 |
activeHelpKey: viewDetails |
5398 | 1179 |
label: 'viewDetails' |
1180 |
translateLabel: true |
|
1181 |
isButton: true |
|
1182 |
startGroup: right |
|
1183 |
hideMenuOnActivated: false |
|
1184 |
indication: viewDetails |
|
6096 | 1185 |
labelImage: (ResourceRetriever ToolbarIconLibrary viewDetailsIcon) |
4688 | 1186 |
) |
5398 | 1187 |
(MenuItem |
6096 | 1188 |
activeHelpKey: viewDetails |
5398 | 1189 |
label: 'viewDetails' |
1190 |
translateLabel: true |
|
1191 |
isButton: true |
|
1192 |
startGroup: right |
|
1193 |
isVisible: false |
|
1194 |
indication: viewDetails |
|
1195 |
submenuChannel: viewDetailsMenuSpec |
|
6096 | 1196 |
labelImage: (ResourceRetriever ToolbarIconLibrary viewDetailsIcon) |
3980 | 1197 |
) |
5398 | 1198 |
(MenuItem |
5686 | 1199 |
activeHelpKey: selectDetails |
5398 | 1200 |
label: '' |
1201 |
isButton: true |
|
1202 |
startGroup: right |
|
1203 |
submenuChannel: viewDetailsMenuSpec |
|
1204 |
labelImage: (ResourceRetriever ToolbarIconLibrary empty1x20Icon) |
|
4688 | 1205 |
) |
3892 | 1206 |
) |
1207 |
nil |
|
1208 |
nil |
|
1209 |
) |
|
1210 |
! ! |
|
1211 |
||
1212 |
!FileBrowserV2 methodsFor:'actions'! |
|
1213 |
||
1214 |
changeFileBrowserTitleTo:aString |
|
1215 |
||
1216 |
|string| |
|
1217 |
||
1218 |
string := 'FileBrowser ', aString. |
|
1219 |
self window label:string. |
|
1220 |
! |
|
1221 |
||
1222 |
doSpawn |
|
1223 |
||
1224 |
self saveRuntimeAspectValues. |
|
1225 |
self class openWithAspects:aspects withExtent:self builder window extent. |
|
1226 |
! |
|
1227 |
||
1228 |
hideFilenameEntryField |
|
1229 |
self filenameEntryFieldVisibleHolder value:false. |
|
1230 |
! |
|
1231 |
||
1232 |
hideToolbar |
|
1233 |
self toolBarVisibleHolder value:false. |
|
3980 | 1234 |
! |
1235 |
||
1236 |
toggleFileDetailsFor:anItem |
|
1237 |
|viewDetails| |
|
1238 |
||
1239 |
viewDetails := self viewDetails value not. |
|
1240 |
self viewDetails value:viewDetails. |
|
1241 |
||
1242 |
viewDetails ifTrue:[ |
|
1243 |
anItem activeHelpKey:#hideFileDetails. |
|
6096 | 1244 |
anItem label:(ToolbarIconLibrary viewNoDetailsIcon). |
3980 | 1245 |
] ifFalse:[ |
1246 |
anItem activeHelpKey:#showFileDetails. |
|
6096 | 1247 |
anItem label:(ToolbarIconLibrary viewDetailsIcon). |
3980 | 1248 |
]. |
3892 | 1249 |
! ! |
1250 |
||
1251 |
!FileBrowserV2 methodsFor:'aspects'! |
|
1252 |
||
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1253 |
busyLabelHolder |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1254 |
^ self |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1255 |
aspectFor:#busyLabelHolder |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1256 |
ifAbsent:[ ' ' asValue ]. |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1257 |
|
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1258 |
"Created: / 25-07-2006 / 09:06:00 / cg" |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1259 |
! |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1260 |
|
5120 | 1261 |
cursorColLabelHolder |
1262 |
^ self |
|
1263 |
aspectFor:#cursorColLabelHolder |
|
1264 |
ifAbsent:[ |
|
1265 |
self |
|
1266 |
applicationNamed:#FileApplicationNoteBook |
|
1267 |
ifPresentDo:[:appl | appl cursorColLabelHolder]. |
|
1268 |
] |
|
1269 |
! |
|
1270 |
||
1271 |
cursorLineLabelHolder |
|
1272 |
^ self |
|
1273 |
aspectFor:#cursorLineLabelHolder |
|
1274 |
ifAbsent:[ |
|
1275 |
self |
|
1276 |
applicationNamed:#FileApplicationNoteBook |
|
1277 |
ifPresentDo:[:appl | appl cursorLineLabelHolder]. |
|
1278 |
] |
|
1279 |
! |
|
1280 |
||
6334 | 1281 |
fileEncodingLockImageHolder |
1282 |
^ self |
|
1283 |
aspectFor:#fileEncodingLockImageHolder |
|
1284 |
ifAbsent:[ |
|
1285 |
BlockValue |
|
6339 | 1286 |
with:[:m | m value ifTrue:[self class encodingLockIcon] ifFalse:[nil] ] |
6334 | 1287 |
argument:(self lockFileEncodingHolder) |
1288 |
] |
|
1289 |
! |
|
1290 |
||
3892 | 1291 |
fileEntryFieldHolder |
1292 |
||
1293 |
fileEntryFieldHolder isNil ifTrue:[ |
|
1294 |
fileEntryFieldHolder := ValueHolder new. |
|
1295 |
fileEntryFieldHolder addDependent:self. |
|
1296 |
]. |
|
1297 |
^ fileEntryFieldHolder. |
|
4647 | 1298 |
! |
1299 |
||
1300 |
listOfDeviceDrives |
|
1301 |
||
1302 |
listOfDeviceDrives isNil ifTrue:[ |
|
1303 |
listOfDeviceDrives := Filename volumes. |
|
1304 |
]. |
|
1305 |
^ listOfDeviceDrives |
|
1306 |
! |
|
1307 |
||
5120 | 1308 |
modeLabelHolder |
1309 |
^ self |
|
1310 |
aspectFor:#modeLabelHolder |
|
1311 |
ifAbsent:[ |
|
1312 |
self |
|
1313 |
applicationNamed:#FileApplicationNoteBook |
|
1314 |
ifPresentDo:[:appl | appl modeLabelHolder]. |
|
1315 |
] |
|
1316 |
! |
|
1317 |
||
4647 | 1318 |
selectedDeviceDrive |
1319 |
||
1320 |
selectedDeviceDrive isNil ifTrue:[ |
|
1321 |
selectedDeviceDrive := self listOfDeviceDrives first asValue. |
|
1322 |
selectedDeviceDrive addDependent:self. |
|
1323 |
]. |
|
1324 |
^ selectedDeviceDrive |
|
3892 | 1325 |
! ! |
1326 |
||
4252 | 1327 |
!FileBrowserV2 methodsFor:'aspects-visibility'! |
1328 |
||
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1329 |
busyLabelVisibleHolder |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1330 |
^ self aspectFor:#busyLabelVisibleHolder ifAbsent:[false asValue] |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1331 |
|
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1332 |
"Created: / 25-07-2006 / 09:06:22 / cg" |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1333 |
! |
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1334 |
|
5120 | 1335 |
driveSelectorVisible |
1336 |
^ self systemIsDOS |
|
1337 |
! |
|
1338 |
||
4252 | 1339 |
filenameEntryFieldVisibleHolder |
1340 |
" aspect for show FileEntryField " |
|
1341 |
||
1342 |
^ self aspectFor:#filenameEntryFieldVisibleHolder ifAbsent:[true asValue] |
|
1343 |
! |
|
1344 |
||
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1345 |
infoBarVisibleHolder |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1346 |
" aspect for show infoBar " |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1347 |
|
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1348 |
^ self aspectFor:#infoBarVisibleHolder ifAbsent:[true asValue] |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1349 |
! |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1350 |
|
4252 | 1351 |
previewVisibleHolder |
1352 |
" aspect for show preview" |
|
1353 |
||
1354 |
^ self aspectFor:#previewVisibleHolder ifAbsent:[false asValue] |
|
1355 |
! |
|
1356 |
||
1357 |
toolBarVisibleHolder |
|
1358 |
" aspect for show toolbar" |
|
1359 |
||
1360 |
^ self aspectFor:#toolBarVisibleHolder ifAbsent:[true asValue] |
|
1361 |
! ! |
|
1362 |
||
3892 | 1363 |
!FileBrowserV2 methodsFor:'change & update'! |
1364 |
||
4011 | 1365 |
currentFileNameHolderChanged |
4775 | 1366 |
|newEntryValue nSelected files volume| |
4011 | 1367 |
|
1368 |
files := self currentFileNameHolder value. |
|
4252 | 1369 |
nSelected := files size. |
4011 | 1370 |
|
4252 | 1371 |
nSelected == 0 ifTrue:[ |
4454
c85336c15975
cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents:
4451
diff
changeset
|
1372 |
newEntryValue := ''. |
4011 | 1373 |
] ifFalse:[ |
4252 | 1374 |
nSelected == 1 ifTrue:[ |
4775 | 1375 |
newEntryValue := files first. |
4011 | 1376 |
] ifFalse:[ |
4771
9290fdb65a5d
#getCommonForCurrentFiles renamed to #commonPrefixOfSelectedFiles
Claus Gittinger <cg@exept.de>
parents:
4750
diff
changeset
|
1377 |
newEntryValue := self commonPrefixOfSelectedFiles. |
4011 | 1378 |
]. |
1379 |
]. |
|
4390
e9e2343d5569
no expand on change filename holder for entry field anymore
penk
parents:
4380
diff
changeset
|
1380 |
self fileEntryFieldHolder value:(newEntryValue asString) withoutNotifying:self. |
4775 | 1381 |
|
5187
ce7e3132b012
supportsVolumes instead of OperatingSystem isWindowsLike for volume widget
james
parents:
5185
diff
changeset
|
1382 |
OperatingSystem supportsVolumes ifTrue:[ |
5185
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1383 |
volume := (nSelected >= 1) |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1384 |
ifTrue:[files first volume] |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1385 |
ifFalse:nil. |
4775 | 1386 |
self selectedDeviceDrive value:volume. |
5187
ce7e3132b012
supportsVolumes instead of OperatingSystem isWindowsLike for volume widget
james
parents:
5185
diff
changeset
|
1387 |
]. |
4252 | 1388 |
self updatePreview. |
4011 | 1389 |
! |
1390 |
||
1391 |
fileEntryFieldHolderChanged |
|
5185
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1392 |
|fileName fileNameString answer dir| |
4011 | 1393 |
|
4507
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1394 |
fileNameString := fileEntryFieldHolder value withoutSeparators. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1395 |
fileName := fileNameString asFilename. |
5281 | 1396 |
fileNameString isEmpty ifTrue:[ |
1397 |
pathEntryField flash. |
|
1398 |
^ self |
|
1399 |
]. |
|
4507
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1400 |
|
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1401 |
(fileName exists) ifFalse:[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1402 |
pathEntryField flash. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1403 |
|
5185
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1404 |
dir := fileName directory. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1405 |
dir exists ifTrue:[ |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1406 |
self currentFileNameHolder |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1407 |
value:(OrderedCollection with:dir) |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1408 |
withoutNotifying:self. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1409 |
]. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1410 |
fileName baseName includesMatchCharacters ifTrue:[ |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1411 |
self fileEntryFieldHolder value:(fileName directoryName) withoutNotifying:self. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1412 |
self filterModel value:fileName baseName. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1413 |
]. |
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1414 |
|
4531 | 1415 |
"/ answer := OptionBox |
1416 |
"/ request:(resources string:'No file or directory named "%1" exists.\\Create ?' with:fileNameString allBold) withCRs |
|
1417 |
"/ buttonLabels:#('Create as File' 'Create as Directory' 'Cancel') |
|
1418 |
"/ values:#(createFile createDirectory nil) |
|
1419 |
"/ default:nil. |
|
1420 |
"/ |
|
4507
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1421 |
answer isNil ifTrue:[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1422 |
^ self. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1423 |
]. |
5185
c1768b26d5f4
set fileName-entryField and pattern, if a name with matchPattern
Claus Gittinger <cg@exept.de>
parents:
5162
diff
changeset
|
1424 |
|
4507
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1425 |
[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1426 |
answer == #createFile ifTrue:[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1427 |
fileName directory recursiveMakeDirectory. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1428 |
fileName createAsEmptyFile. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1429 |
] ifFalse:[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1430 |
answer == #createDirectory ifTrue:[ |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1431 |
fileName recursiveMakeDirectory. |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1432 |
] |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1433 |
]. |
4819 | 1434 |
] on:OperatingSystem accessDeniedErrorSignal do:[:ex | |
1435 |
Dialog warn:'Error: ' , ex description. |
|
1436 |
]. |
|
4507
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1437 |
^ self |
7aeed604c4db
added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents:
4454
diff
changeset
|
1438 |
]. |
5959 | 1439 |
self setCurrentFileName:fileName. |
4011 | 1440 |
! |
1441 |
||
4647 | 1442 |
selectedDeviceDriveChanged |
1443 |
||
1444 |
| newDrive curSel newFile| |
|
1445 |
||
1446 |
newDrive := self selectedDeviceDrive value. |
|
1447 |
curSel := self currentFileNameHolder value. |
|
1448 |
curSel notEmpty ifTrue:[ |
|
1449 |
curSel first volume = newDrive ifTrue:[ ^self]. |
|
1450 |
]. |
|
6591 | 1451 |
|
5411
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1452 |
newDrive notNil ifTrue:[ |
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1453 |
newFile := newDrive asFilename. |
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1454 |
|
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1455 |
newFile isReadable ifTrue:[ |
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1456 |
self gotoFile:newFile. |
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1457 |
^self. |
198e8a5c3700
bugfix WIN: check whether newDrive isNil in #selectedDeviceDriveChanged
ca
parents:
5400
diff
changeset
|
1458 |
]. |
4651 | 1459 |
]. |
1460 |
curSel notEmpty ifTrue:[ |
|
1461 |
self selectedDeviceDrive value:(curSel first volume). |
|
1462 |
] ifFalse:[ |
|
1463 |
self selectedDeviceDrive value:'C:'. |
|
1464 |
]. |
|
4647 | 1465 |
! |
1466 |
||
4252 | 1467 |
selectedImage |
1468 |
|files selectedFile mime img| |
|
1469 |
||
4451
6f06f760a64b
only open preview for selected files not for directories
penk
parents:
4390
diff
changeset
|
1470 |
files := self currentSelectedFiles. |
4259 | 1471 |
files size >= 1 ifFalse:[ |
4252 | 1472 |
^ nil |
1473 |
]. |
|
4259 | 1474 |
selectedFile := files last. |
4252 | 1475 |
|
1476 |
mime := MIMETypes mimeTypeForFilename:selectedFile. |
|
1477 |
(mime notNil and:[mime startsWith:'image/']) ifTrue:[ |
|
1478 |
img := Image fromFile:selectedFile. |
|
1479 |
^ img |
|
1480 |
]. |
|
1481 |
||
1482 |
^ nil. |
|
1483 |
! |
|
1484 |
||
4262 | 1485 |
showImagePreview:image |
4252 | 1486 |
|imgView| |
1487 |
||
4262 | 1488 |
imgView := builder componentAt:#Preview. |
4252 | 1489 |
|
1490 |
imgView adjust:#fitBig. |
|
1491 |
imgView image:image. |
|
1492 |
! |
|
1493 |
||
4262 | 1494 |
showPreview |
1495 |
|shownImage lbl previewLabel| |
|
1496 |
||
1497 |
shownImage := self selectedImage. |
|
4300 | 1498 |
lbl := shownImage isNil ifTrue:'Preview' ifFalse:[ shownImage fileName asFilename baseName ]. |
4262 | 1499 |
|
1500 |
previewLabel := builder componentAt:#PreviewLabel. |
|
1501 |
previewLabel label:lbl; forceResizeHorizontally. |
|
1502 |
self enqueueMessage:#'showImagePreview:' for:self arguments:(Array with:shownImage). |
|
1503 |
! |
|
1504 |
||
3892 | 1505 |
update:something with:aParameter from:changedObject |
1506 |
||
1507 |
||
4647 | 1508 |
changedObject == self selectedDeviceDrive ifTrue:[ |
1509 |
self selectedDeviceDriveChanged. |
|
1510 |
^ self. |
|
1511 |
]. |
|
3892 | 1512 |
changedObject == self fileEntryFieldHolder ifTrue:[ |
4011 | 1513 |
self fileEntryFieldHolderChanged. |
1514 |
^ self. |
|
3892 | 1515 |
]. |
1516 |
changedObject == self currentFileNameHolder ifTrue:[ |
|
4011 | 1517 |
super update:something with:aParameter from:changedObject. |
1518 |
self currentFileNameHolderChanged. |
|
1519 |
^ self. |
|
3892 | 1520 |
]. |
4252 | 1521 |
(changedObject == self previewVisibleHolder) ifTrue:[ |
1522 |
self updatePreview. |
|
1523 |
^ self. |
|
1524 |
]. |
|
3892 | 1525 |
(changedObject == self toolBarVisibleHolder |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1526 |
or:[changedObject == self filenameEntryFieldVisibleHolder |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1527 |
or:[changedObject == self infoBarVisibleHolder]]) ifTrue:[ |
3892 | 1528 |
self updateToolVisibility. |
1529 |
^ self. |
|
1530 |
]. |
|
4085
9e58ddfa6969
sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents:
4084
diff
changeset
|
1531 |
(changedObject == self sortBlockProperty or:[changedObject == self sortDirectoriesBeforeFiles]) ifTrue:[ |
9e58ddfa6969
sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents:
4084
diff
changeset
|
1532 |
self sortFileListsBy:(self sortBlockProperty value) withReverse:false. |
9e58ddfa6969
sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents:
4084
diff
changeset
|
1533 |
^ self. |
9e58ddfa6969
sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents:
4084
diff
changeset
|
1534 |
]. |
3892 | 1535 |
|
1536 |
^ super update:something with:aParameter from:changedObject. |
|
1537 |
! |
|
1538 |
||
4252 | 1539 |
updatePreview |
6524 | 1540 |
|previewLabel shownImage plug closePreviewButton| |
4252 | 1541 |
|
1542 |
self previewVisibleHolder value ifTrue:[ |
|
5477 | 1543 |
shownImage := nil. |
1544 |
imgView := builder componentAt:#Preview. |
|
1545 |
previewLabel := builder componentAt:#PreviewLabel. |
|
6524 | 1546 |
closePreviewButton := builder componentAt:#ClosePreviewButton. |
1547 |
||
4257 | 1548 |
plug := Plug new. |
1549 |
plug respondTo:#closePreview with:[ self previewVisibleHolder value:false ]. |
|
1550 |
||
1551 |
previewLabel menuHolder:(self class previewLabelMenu decodeAsLiteralArray). |
|
1552 |
previewLabel menuPerformer:plug asValue. |
|
1553 |
||
6524 | 1554 |
closePreviewButton action:[ self previewVisibleHolder value:false ]. |
1555 |
||
4252 | 1556 |
previewProcess notNil ifTrue:[ |
1557 |
previewProcess terminate |
|
1558 |
]. |
|
1559 |
previewProcess := [ |
|
1560 |
|imgView oldBg shownImage lbl| |
|
1561 |
||
1562 |
oldBg := previewLabel backgroundColor. |
|
1563 |
previewLabel backgroundColor:(Color red lightened lightened). |
|
1564 |
[ |
|
4262 | 1565 |
self showPreview. |
4252 | 1566 |
previewProcess := nil. |
1567 |
] ensure:[ |
|
1568 |
previewLabel backgroundColor:oldBg. |
|
1569 |
]. |
|
1570 |
] forkAt:7. |
|
1571 |
] ifFalse:[ |
|
4254 | 1572 |
imgView notNil ifTrue:[ |
1573 |
imgView image:nil. |
|
1574 |
] |
|
4252 | 1575 |
]. |
1576 |
! |
|
1577 |
||
3892 | 1578 |
updateToolVisibility |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1579 |
|builder toolBar infoBar filenameEntryField vPanel topOffset bottomOffset |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1580 |
toolBarVisible filenameEntryFieldVisible infoBarVisible d| |
3892 | 1581 |
|
1582 |
builder := self builder. |
|
1583 |
||
1584 |
topOffset := 0. |
|
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1585 |
bottomOffset := 0. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1586 |
|
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1587 |
toolBarVisible := self toolBarVisibleHolder value. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1588 |
toolBarVisible ifTrue:[ |
3892 | 1589 |
toolBar := builder componentAt:#ToolbarBox. |
1590 |
topOffset := topOffset + toolBar height. |
|
1591 |
]. |
|
1592 |
||
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1593 |
filenameEntryFieldVisible := self filenameEntryFieldVisibleHolder value. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1594 |
filenameEntryFieldVisible ifTrue:[ |
3892 | 1595 |
filenameEntryField := builder componentAt:#FilenameEntryFieldBox. |
1596 |
d := filenameEntryField layout bottomOffset - filenameEntryField layout topOffset. |
|
1597 |
filenameEntryField layout topOffset:topOffset bottomOffset:topOffset + d. |
|
1598 |
topOffset := topOffset + filenameEntryField height. |
|
1599 |
filenameEntryField container notNil ifTrue:[ |
|
1600 |
filenameEntryField containerChangedSize. |
|
1601 |
]. |
|
1602 |
]. |
|
1603 |
||
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1604 |
infoBarVisible := self infoBarVisibleHolder value. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1605 |
infoBarVisible ifTrue:[ |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1606 |
infoBar := builder componentAt:#InfoBox. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1607 |
bottomOffset := bottomOffset - infoBar height. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1608 |
]. |
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1609 |
|
3892 | 1610 |
vPanel := builder componentAt:#BrowserBox. |
1611 |
vPanel layout topOffset:topOffset+1. |
|
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1612 |
vPanel layout bottomOffset:bottomOffset-1. |
3892 | 1613 |
vPanel container notNil ifTrue:[ |
1614 |
vPanel containerChangedSize. |
|
1615 |
]. |
|
1616 |
! ! |
|
1617 |
||
3957 | 1618 |
!FileBrowserV2 methodsFor:'event handling'! |
1619 |
||
4904 | 1620 |
crPressedInPathField |
1621 |
|path fn| |
|
1622 |
||
1623 |
path := fileEntryFieldHolder value. |
|
1624 |
fn := path asFilename. |
|
1625 |
(fn exists and:[ fn isDirectory not ]) ifTrue:[ |
|
1626 |
self openApplForFile:path. |
|
1627 |
] |
|
1628 |
! |
|
1629 |
||
3957 | 1630 |
processEvent:anEvent |
1631 |
"filter keyboard events. |
|
1632 |
Return true, if I have eaten the event" |
|
1633 |
||
1634 |
|focusView key rawKey fileName| |
|
1635 |
||
1636 |
anEvent isKeyPressEvent ifTrue:[ |
|
1637 |
focusView := anEvent targetView. |
|
1638 |
key := anEvent key. |
|
1639 |
rawKey := anEvent rawKey. |
|
1640 |
||
1641 |
(focusView isSameOrComponentOf:self window) ifTrue:[ |
|
1642 |
||
6145 | 1643 |
(focusView == pathEntryField) ifFalse:[ ^ false]. |
3957 | 1644 |
|
1645 |
(key == #Return) ifTrue:[ |
|
1646 |
fileName := pathEntryField list first asFilename. |
|
1647 |
(fileName exists and:[fileName isDirectory not]) ifTrue:[ |
|
4101 | 1648 |
self openApplForFile:fileName |
3957 | 1649 |
]. |
1650 |
]. |
|
1651 |
] |
|
1652 |
]. |
|
1653 |
^ false |
|
1654 |
! ! |
|
1655 |
||
6131 | 1656 |
!FileBrowserV2 methodsFor:'menu accessing'! |
1657 |
||
1658 |
menuFileHistory |
|
1659 |
"initialize the file history menu |
|
1660 |
" |
|
1661 |
<resource: #programMenu > |
|
1662 |
||
1663 |
|menu hist text removeItem removeCol| |
|
1664 |
||
1665 |
menu := Menu new. |
|
1666 |
menu findGuiResourcesIn:self. |
|
1667 |
menu receiver:self. |
|
1668 |
||
1669 |
hist := self fileHistory. |
|
1670 |
hist isEmpty ifTrue:[^ nil]. |
|
1671 |
||
1672 |
removeCol := OrderedCollection new. |
|
1673 |
hist do:[:aFileItem| |
|
1674 |
"aFileItem fileName exists" true ifTrue:[ |
|
1675 |
menu addItem:(MenuItem label: aFileItem fileName asString value:[ |
|
1676 |
self setCurrentFileName:(aFileItem fileName). |
|
1677 |
self openApplByFileItem:aFileItem |
|
1678 |
]). |
|
1679 |
] ifFalse:[ |
|
1680 |
removeCol add:aFileItem. |
|
1681 |
] |
|
1682 |
]. |
|
1683 |
"/ remove all not existing history entries |
|
1684 |
removeCol do:[ : el | |
|
1685 |
hist remove:el. |
|
1686 |
]. |
|
1687 |
removeItem := MenuItem new. |
|
1688 |
removeItem translateLabel:true. |
|
1689 |
text := resources string:'Clear History'. |
|
1690 |
"/ text := LabelAndIcon icon:(self class clearHistoryIcon) string:text. |
|
1691 |
removeItem label:text. |
|
1692 |
removeItem value:[ |
|
1693 |
self fileHistory removeAll. |
|
1694 |
self enableFileHistory value:false. |
|
1695 |
]. |
|
1696 |
menu addSeparator. |
|
1697 |
menu addItem:removeItem. |
|
1698 |
^ menu |
|
1699 |
! ! |
|
1700 |
||
6460 | 1701 |
!FileBrowserV2 methodsFor:'queries'! |
1702 |
||
1703 |
getAllFilesAsStrings |
|
1704 |
^ self directoryContentsBrowser getAllFilesAsStrings |
|
1705 |
! ! |
|
1706 |
||
3892 | 1707 |
!FileBrowserV2 methodsFor:'startup & release'! |
1708 |
||
3954 | 1709 |
closeRequest |
6631 | 1710 |
"asks for permission before closing" |
1711 |
||
5010 | 1712 |
self |
1713 |
applicationNamed:#FileApplicationNoteBook |
|
1714 |
ifPresentDo:[:appl | appl tryCloseApplications ifFalse:[^ self] ]. |
|
1715 |
||
6631 | 1716 |
super closeRequest. |
3954 | 1717 |
! |
1718 |
||
3892 | 1719 |
hideFilenameEntryFieldButtonCreated:aButton |
1720 |
||
1721 |
aButton passiveLevel:(MenuPanel defaultLevel). |
|
1722 |
aButton activeLevel:-1. |
|
1723 |
aButton backgroundColor:(MenuPanel defaultBackgroundColor). |
|
1724 |
! |
|
1725 |
||
1726 |
hideToolBarButtonCreated:aButton |
|
1727 |
||
1728 |
aButton passiveLevel:(MenuPanel defaultLevel). |
|
1729 |
aButton activeLevel:-1. |
|
1730 |
aButton backgroundColor:(MenuPanel defaultBackgroundColor). |
|
1731 |
! |
|
1732 |
||
1733 |
initialize |
|
1734 |
||
1735 |
self masterApplication:nil. |
|
6370 | 1736 |
self directoryHistory resetForwardBackward. |
3892 | 1737 |
! |
1738 |
||
1739 |
makeDependent |
|
4008 | 1740 |
|
4004 | 1741 |
super makeDependent. |
4085
9e58ddfa6969
sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents:
4084
diff
changeset
|
1742 |
self sortBlockProperty addDependent:self. |
3892 | 1743 |
self filenameEntryFieldVisibleHolder addDependent:self. |
1744 |
self toolBarVisibleHolder addDependent:self. |
|
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1745 |
self infoBarVisibleHolder addDependent:self. |
4255 | 1746 |
self previewVisibleHolder addDependent:self. |
3892 | 1747 |
! |
1748 |
||
4884 | 1749 |
postBuildDirectoryTree:aWidget |
1750 |
aWidget application multipleSelect:true. |
|
1751 |
! |
|
1752 |
||
4365 | 1753 |
postBuildEditField:aWidget |
1754 |
||
1755 |
pathEntryField := aWidget. |
|
1756 |
aWidget model:self fileEntryFieldHolder. |
|
6370 | 1757 |
aWidget listHolder:self directoryHistory. |
4365 | 1758 |
aWidget level:-1. |
4904 | 1759 |
aWidget acceptIfUnchanged:true. |
1760 |
aWidget crAction:[ self crPressedInPathField ]. |
|
4365 | 1761 |
! |
1762 |
||
4018 | 1763 |
postBuildFilterBox:aWidget |
1764 |
||
1765 |
self filterValueBox value:aWidget. |
|
1766 |
self filterBackgroundColor value:aWidget backgroundColor. |
|
1767 |
! |
|
1768 |
||
3892 | 1769 |
postBuildPathViewBox:aWidget |
1770 |
||
1771 |
aWidget backgroundColor:(MenuPanel defaultBackgroundColor). |
|
1772 |
! |
|
1773 |
||
1774 |
postBuildWith:aBuilder |
|
1775 |
||
1776 |
super postBuildWith:aBuilder. |
|
3980 | 1777 |
self updateToolVisibility. |
3892 | 1778 |
! |
1779 |
||
1780 |
postOpenWith:aBuilder |
|
1781 |
||
4071 | 1782 |
super postOpenWith:aBuilder. |
6595
17b6232d30ef
menu reorganized; infoBar hidable
Claus Gittinger <cg@exept.de>
parents:
6591
diff
changeset
|
1783 |
|
4577 | 1784 |
self currentFileNameHolderChangedForCommon. |
4071 | 1785 |
self currentFileNameHolderChanged. |
4027 | 1786 |
|
3957 | 1787 |
self windowGroup addPreEventHook:self. |
3892 | 1788 |
! |
1789 |
||
1790 |
release |
|
1791 |
||
1792 |
self saveRuntimeAspectValues. |
|
1793 |
^ super release |
|
1794 |
! ! |
|
1795 |
||
1796 |
!FileBrowserV2 class methodsFor:'documentation'! |
|
1797 |
||
1798 |
version |
|
6834
f42cab67e211
preparations for busy indicator
Claus Gittinger <cg@exept.de>
parents:
6827
diff
changeset
|
1799 |
^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2.st,v 1.153 2006-07-25 09:26:07 cg Exp $' |
3892 | 1800 |
! ! |
1801 |
||
1802 |
FileBrowserV2 initialize! |