pharo-contributions / file-dialog-transfered-to-newtools

Replacement for Pharo's native dialog
MIT License
8 stars 9 forks source link
file-manager pharo

File Dialog

We plan to have it here under spec1-file-dialog but no time.

Build Status Coverage Status

A simple replacement for Pharo's native file/folder selection dialog.

Features

Installation

(catalog soon)

Metacello new
    baseline: 'FileDialog';
    repository: 'github://pharo-contributions/file-dialog/repository';
    load.

Replacing native dialogs

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

Howto

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.

Classes

API

The user-facing API is in the api-customization protocol of FDFileDialogPresenter

Custom Icons

Example