- Pay attention this project has been merged into https://github.com/pharo-spec/NewTools
- The original version from Peter Uhnak is now available under https://github.com/ducasse/file-dialog
We plan to have it here under spec1-file-dialog but no time.
A simple replacement for Pharo's native file/folder selection dialog.
- contextMenu to add/remove bookmark
- toggle hidden files (right-click on file listing)
- preset file name
- filtering files by subclass FDAbstractSelect
- TextInputField like window path text input
- preview system
- you can change the column of the tablePresente
(catalog soon)
Metacello new
baseline: 'FileDialog';
repository: 'github://pharo-contributions/file-dialog/repository';
load.
If you feel brave, you can replace the native dialogs everywhere in the system by running
FDMorphicUIManager new beDefault
Of course you can switch back anytime you want.
MorphicUIManager new beDefault
If you chose using the extended UIManager, then you can use that
UIManager default chooseFileMatching: #('*.ston')
You can also use the classes directly — there are just minor differences in the behavior, such as DirectoryDialog
will not show files, etc.
FDSaveFileDialog
- saving a fileFDOpenFileDialog
- selecting a fileFDOpenDirectoryDialog
- selecting a directory
The user-facing API is in the api-customization
protocol of FDFileDialogPresenter
defaultFolder: aPath
— where should the dialog open, the default is the imageDirectoryfiltersCustomization: aCollectionOfFDAbstractPredicate
— a collection of FDAbstractPredicatebookmarks: aCollectionOfBookmark
_ see bookmark example class side of FileDialogokActionBlock: aBlock
— a one arg block executed when a file was selectedpreviewer: aPreviewer
_ a son of FDAbstractPreviewer that returning a Spec widgetcolumns: aCollectionOfColumns
_ you have to give a collection of subclass of FDAbstractFileReferenceColumn