|
|
Class: Win32FileDialog
Object
|
+--Win32FileDialog
- Package:
- stx:libtool
- Category:
- Interface-Tools-File
- Version:
- rev:
1.7
date: 2010/02/01 09:51:29
- user: cg
- file: Win32FileDialog.st directory: libtool
- module: stx stc-classLibrary: libtool
accessing
-
getInitialDirectory
-
-
setInitialDirectory: aName
-
constants
-
commonDialogConstantAt: aString
-
-
commonDialogConstants
-
-
generateCommonDialogConstants
-
examples
-
openFile
-
-
saveFile
-
filters
-
filterPatternDescription: filterPattern
-
-
filterPatternDescriptions
-
-
filtersFor: pattern
-
-
generateFilterPatternDescriptions
-
initialization
-
startUp
-
Private - Initialize the class variables.
This is called during startup.
instance creation
-
new
-
opening
-
fileDialogFor: ownerWindow save: isSaveDialog title: titleOrNil inDirectory: dirPathOrNil initialAnswer: initialOrNil filter: pattern extension: extensionOrNil
-
start a native open-file dialog.
If not cancelled, the selected fileName is returned; nil otherwise.
Of course, this one looks like the
Windows file dialog - no matter which viewStyle settings are active.
Notice: if no ownerWindow is given, the dialog pops up at 0@0.
EXPERIMENTAL & non-portable: use with caution
accessing
-
addAllFilesFilter
-
-
addFilter: aFilter description: aDescription
-
Add aFilter and aDescription to the list of File dialog
filters.
-
addSmalltalkFileFilters
-
-
defExtension: aDefExtension
-
Specifies the default extension of File dialog.
-
defFilter
-
Answers the aDefFilterString as the default filter of File dialog.
-
defFilter: aDefFilterString
-
Specifies the aDefFilterString as the default filter of File dialog.
-
defFilterIndex: defaultFilterIndex
-
-
directory
-
Answer the selected directory.
-
directory: directory
-
Sets the initial directory.
-
file
-
Answer the selected file.
-
fileSpec: aFileSpec
-
Sets the initial fileName and directory in the File Dialog.
-
filters
-
Private - answers a string containing all filters and sets up
the defFilterIndex property
-
flags
-
Private - Answers the dialog box current flags.
For compatibility reasons -> use style instead
-
flags: flags
-
Private - Specifies the dialog box creation flags.
Kept for compatibility reasons. Use style: instead
-
hideReadonly
-
Hides the file dialog's Readonly check box.
-
initialFileName: filename
-
Sets the initial fileName string in the File Dialog.
-
overwritePrompt
-
Prompt if the user attempts to overwrite a file
-
owner: ownerWindow
-
Sets the owner of the Dialog box.
-
pathMustExist
-
Private & DEFAULT!.
-
shareAware
-
Allows a previously opened file to be opened
(e.g. change.log)
-
style
-
-
style: something
-
-
title: aTitle
-
Specifies the string to be placed in the title bar of the
File dialog.
dapas
-
dapasOpenFile
-
Brings up the default open file dialog
-
dapasSaveFile
-
Brings up the file save dialog.
-
openFileXml
-
Brings up the default open file dialog
-
openFileXmlZip
-
Brings up the default open file dialog
initialize & release
-
cleanUp
-
Private - Free openFileNameStruct.
-
initialize
-
Private - Initialize openFileNameStruct
opening
-
open
-
Brings up the open file dialog.
-
openFile
-
Brings up the default open file dialog. The title is set to 'Open File'
and fileSpec is set to '*.*'.
-
openFile: initialFileName
-
Brings up the default open file dialog. The title is set to 'Open File'
and fileSpec is set to patternString.
-
openFor: ownerWindow save: isSaveDialog title: titleOrNil inDirectory: dirPathOrNil initialAnswer: initialOrNil filter: filterArrayOrNil extension: extensionOrNil
-
-
save
-
Brings up the save file dialog.
-
saveFile: aString
-
Brings up the save file dialog with aString as the
default name. The title is set to 'Save File'.
-
saveTitle: aTitle fileName: initialFileName
-
Brings up the file save dialog with aTitle and aString
as the default name.
private
-
fillStruct
-
Private - fills the openFileNameStruct
-
getFileName
-
Private - get the filename
OpenFilenameStructure
|