|
Class: FileDialog (in Dolphin)
Object
|
+--Dolphin::FileDialog
|
+--Dolphin::FileOpenDialog
|
+--Dolphin::FileSaveDialog
- Package:
- stx:libcompat
- Category:
- Compatibility-Dolphin
- Version:
- rev:
1.4
date: 2021/01/20 15:10:44
- user: cg
- 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
|
|