|
Class: FileBrowserV2
Object
|
+--Model
|
+--ApplicationModel
|
+--AbstractFileBrowser
|
+--FileBrowserV2
- Package:
- stx:libtool
- Category:
- Interface-Tools-File
- Version:
- rev:
1.248
date: 2019/07/24 06:01:16
- user: cg
- file: FileBrowserV2.st directory: libtool
- module: stx stc-classLibrary: libtool
- Author:
- Christian Penk
FileBrowserV2 is based on Filebrowser
WARNING: files edited with FileBrowser will have leading spaces (multiple-8)
being replaced by tabs. If tabs are to be preserved at other
positions (for example, sendmail-config files) they will be
corrupt after being written.
[instance variables]:
checkDelta <Integer> number of seconds of check interval
(looks ever so often if shown directory
has changed). You may make this number
higher, if your network-times are
incorrect and thus, the filebrowser
checks too often.
compressTabs <Boolean> if true, leading spaces will be
replaced by tabs when saving text
some of the defaults (long/short list etc.) can be set by the resource file;
see FileBrowser>>initialize for more details..
class initialization
-
initialize
-
self installInLauncher. - now done in phase 2
-
installInLauncher
-
add myself to the launcher menu and toolBar
usage example(s):
self installInLauncher
self removeFromLauncher
|
-
removeFromLauncher
-
remove myself from the launcher's menu & settings dialog
usage example(s):
-
update: something with: aParameter from: changedObject
-
defaults
-
entryFieldEndStringForMultipleSelection
-
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
image specs
-
applicationIcon
-
-
closePreviewButtonImage
-
-
defaultIcon
-
-
encodingLockIcon
-
-
hideFilenameEntryFieldIcon
-
-
hideToolBarIcon
-
instance creation
-
on: aDirectoryPath
-
return a new FileBrowserV2 in a pathname.
The browser is not yet open
usage example(s):
-
open
-
start a new FileBrowserV2 (in the current directory)
usage example(s):
FileBrowserV2 open.
FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) withExtent:800@600
|
-
openIn: aDirectoryPath
-
backward compatibility
-
openOn: aFileOrDirectoryPath
-
start a new FileBrowserV2 on aFileOrDirectoryPath.
if it represents a file, it is opened and shown for editing;
if it represents a directory, the directory is shown.
usage example(s):
FileBrowserV2 openOn:(Filename currentDirectory asAbsoluteFilename)
FileBrowserV2 openOn:'Makefile'
|
-
openOn: aDirectoryPath withExtent: extentOrNil
-
start a new FileBrowserV2 on aDirectoryPath
usage example(s):
FileBrowserV2 openOn:(Filename currentDirectory) withExtent:800@600
|
-
openOnDirectory: aDirectoryPath
-
start a new FileBrowserV2 in a pathname
-
openOnFileNamed: aFilename
-
start a new FileBrowserV2 on a aFilename.
The browser looks for an appropriate viewer and uses that if one is found;
otherwise, the file is opened for text editing.
usage example(s):
FileBrowserV2 openOnFileNamed:'Makefile'
|
-
openOnFileNamed: aFilename editing: editing
-
start a new FileBrowserV2 on a aFilename;
If editing is true, the browser opens the document as text to be edited;
if false, it looks for an appropriate viewer and uses that if one is found.
usage example(s):
FileBrowserV2 openOnFileNamed:'Makefile'
|
-
openWithAspects: someAspects withExtent: extent
-
start a new FileBrowserV2 taking aspects from a dictionary
(internal interface - only for spawn)
interface specs
-
windowSpec
-
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
UIPainter new openOnClass:FileBrowserV2 andSelector:#windowSpec
FileBrowserV2 new openInterface:#windowSpec
FileBrowserV2 open
|
menu specs
-
editModeInfoLabelMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:Tools::NewSystemBrowser andSelector:#editModeInfoLabelMenu
(Menu new fromLiteralArrayEncoding:(Tools::NewSystemBrowser editModeInfoLabelMenu)) startUp
|
-
encodingMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#encodingMenu
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 encodingMenu)) startUp
|
-
mainMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#mainMenu
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 mainMenu)) startUp
|
-
previewLabelMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#previewLabelMenu
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 previewLabelMenu)) startUp
|
-
toolBarMainMenu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#toolBarMainMenu
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 toolBarMainMenu)) startUp
|
-
toolBarMainMenu_new
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#toolBarMainMenu_new
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 toolBarMainMenu_new)) startUp
|
-
toolBarMainMenu_old
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
MenuEditor new openOnClass:FileBrowserV2 andSelector:#toolBarMainMenu_old
(Menu new fromLiteralArrayEncoding:(FileBrowserV2 toolBarMainMenu_old)) startUp
|
actions
-
changeFileBrowserTitleTo: aString
-
-
doSpawn
-
-
hideBookmarkBar
-
hide the bookmarks - called when the button to the left of the toolbar is clicked
-
hideFilenameEntryField
-
-
hideToolbar
-
hide the toolbar - called when the button to the left of the toolbar is clicked
-
switchToBookmarkEntry: bookmark
-
-
toggleFileDetailsFor: anItem
-
aspects
-
bookmarkBarVisibleHolder
-
return/create the 'bookmarkBarVisibleHolder' value holder (automatically generated)
-
bookmarkBarVisibleHolder: something
-
set the 'bookmarkBarVisibleHolder' value holder (automatically generated)
-
bookmarkHolder
-
return/create the 'bookmarkHolder' value holder (automatically generated)
-
bookmarkListHolder
-
-
busyLabelHolder
-
-
canAddToClassPath
-
-
canAddToSourcePath
-
-
canRemoveFromClassPath
-
-
currentDirectoryDisplayed
-
Return a directory that is currently displayed in the browser
-
cursorColLabelHolder
-
-
cursorLineAndColumnLabelHolder
-
-
cursorLineLabelHolder
-
-
fileEncodingLockImageHolder
-
-
fileEntryFieldHolder
-
-
listOfDeviceDrives
-
-
modeLabelHolder
-
-
modeLabelMenuHolder
-
-
selectedDeviceDrive
-
aspects-visibility
-
busyLabelVisibleHolder
-
-
driveSelectorVisible
-
systemIsDOS
-
filenameEntryFieldVisibleHolder
-
aspect for show FileEntryField
-
infoBarVisibleHolder
-
aspect for show infoBar
-
previewVisibleHolder
-
aspect for show preview
-
toolBarVisibleHolder
-
aspect for show toolbar
change & update
-
currentFileNameHolderChanged
-
(comment from inherited method)
self currentFileNameHolderChangedForCommon
-
fileEntryFieldHolderChanged
-
answer := OptionBox
-
selectedDeviceDriveChanged
-
-
selectedImage
-
-
showPreview: shownImage
-
-
update: something with: aParameter from: changedObject
-
(comment from inherited method)
do here all the things that have to be done for every part of the FileBrowserV2
and the things that have to be done if it runs standalone
-
updateBookmark
-
-
updatePreview
-
-
updateToolVisibility
-
layout bottomOffset - bookmarkBar layout topOffset.
event handling
-
crPressedInPathField
-
-
processEvent: anEvent
-
filter keyboard events.
Return true, if I have eaten the event
menu accessing
-
menuFileHistory
-
initialize the file history menu
queries
-
defaultWindowExtent
-
use nearly the full screen height, but at least 768px if available.
Keep the width as defined in the windowSpec
-
getAllFilesAsStrings
-
startup & release
-
closeRequest
-
asks for permission before closing
-
hideFilenameEntryFieldButtonCreated: aButton
-
-
hideToolBarButtonCreated: aButton
-
-
initialize
-
-
makeDependent
-
-
onDirectory: aDirectoryPathOrNil
-
-
openOnDirectory: aDirectoryPath
-
-
openOnFileNamed: aFilename editing: editing
-
start a new FileBrowserV2 on a aFilename;
If editing is true, the browser opens the document as text to be edited;
if false, it looks for an appropriate viewer and uses that if one is found.
usage example(s):
FileBrowserV2 openOnFileNamed:'Make.proto'
FileBrowserV2 openOnFileNamed:'modules'
|
-
postBuildDirectoryTree: aWidget
-
-
postBuildEditField: aWidget
-
-
postBuildEditModeInfoLabel: aLabel
-
-
postBuildFilterBox: aWidget
-
-
postBuildPathViewBox: aWidget
-
-
postBuildWith: aBuilder
-
Load user settings
-
postOpenWith: aBuilder
-
-
release
-
FileBrowserV2 open
|