|
Class: FileDialog (in Dolphin)
Object
|
+--Dolphin::FileDialog
|
+--Dolphin::FileOpenDialog
|
+--Dolphin::FileSaveDialog
- Package:
- stx:libcompat
- Category:
- Compatibility-Dolphin
- Version:
- rev:
1.3
date: 2017/06/08 12:02:04
- user: mawalch
- file: Dolphin__FileDialog.st directory: libcompat
- module: stx stc-classLibrary: libcompat
queries
-
allFilesType
-
setup
-
caption: aTitle
-
self new
caption:'Select a file'
-
defaultExtension: aString
-
self new
defaultExtension:'st'
-
fileTypes: descriptions
-
each descriptions element consists of 2 elements:
a textual description
a matchPattern (usually on the suffix)
usage example(s):
self new
fileTypes:(Array
with: #('PalmOS Resource Databases (*.prc)' '*.prc')
with: #('Smalltalk source files (*.st)' '*.st')
with: FileDialog allFilesType)
|
-
value: aString
-
self new
value:'st'
startup
-
showModal
-
failReturn
usage example(s):
FileOpenDialog new
fileTypes:Package packageFileDialogTypes;
defaultExtension: 'st';
value: 'foo';
caption: 'Open File: foo';
showModal
|
usage example(s):
FileOpenDialog new
fileTypes:Package packageFileDialogTypes;
value: 'foo';
caption: 'Open File: foo';
showModal
|
|