eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Win32FileDialog':

Home

everywhere
www.exept.de
for:
[back]

Class: Win32FileDialog


Inheritance:

   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

Class protocol:

accessing
o  getInitialDirectory

o  setInitialDirectory: aName

constants
o  commonDialogConstantAt: aString

o  commonDialogConstants

o  generateCommonDialogConstants

examples
o  openFile

o  saveFile

filters
o  filterPatternDescription: filterPattern

o  filterPatternDescriptions

o  filtersFor: pattern

o  generateFilterPatternDescriptions

initialization
o  startUp
Private - Initialize the class variables.
This is called during startup.

instance creation
o  new

opening
o  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


Instance protocol:

accessing
o  addAllFilesFilter

o  addFilter: aFilter description: aDescription
Add aFilter and aDescription to the list of File dialog
filters.

o  addSmalltalkFileFilters

o  defExtension: aDefExtension
Specifies the default extension of File dialog.

o  defFilter
Answers the aDefFilterString as the default filter of File dialog.

o  defFilter: aDefFilterString
Specifies the aDefFilterString as the default filter of File dialog.

o  defFilterIndex: defaultFilterIndex

o  directory
Answer the selected directory.

o  directory: directory
Sets the initial directory.

o  file
Answer the selected file.

o  fileSpec: aFileSpec
Sets the initial fileName and directory in the File Dialog.

o  filters
Private - answers a string containing all filters and sets up
the defFilterIndex property

o  flags
Private - Answers the dialog box current flags.
For compatibility reasons -> use style instead

o  flags: flags
Private - Specifies the dialog box creation flags.
Kept for compatibility reasons. Use style: instead

o  hideReadonly
Hides the file dialog's Readonly check box.

o  initialFileName: filename
Sets the initial fileName string in the File Dialog.

o  overwritePrompt
Prompt if the user attempts to overwrite a file

o  owner: ownerWindow
Sets the owner of the Dialog box.

o  pathMustExist
Private & DEFAULT!.

o  shareAware
Allows a previously opened file to be opened
(e.g. change.log)

o  style

o  style: something

o  title: aTitle
Specifies the string to be placed in the title bar of the
File dialog.

dapas
o  dapasOpenFile
Brings up the default open file dialog

o  dapasSaveFile
Brings up the file save dialog.

o  openFileXml
Brings up the default open file dialog

o  openFileXmlZip
Brings up the default open file dialog

initialize & release
o  cleanUp
Private - Free openFileNameStruct.

o  initialize
Private - Initialize openFileNameStruct

opening
o  open
Brings up the open file dialog.

o  openFile
Brings up the default open file dialog. The title is set to 'Open File'
and fileSpec is set to '*.*'.

o  openFile: initialFileName
Brings up the default open file dialog. The title is set to 'Open File'
and fileSpec is set to patternString.

o  openFor: ownerWindow save: isSaveDialog title: titleOrNil inDirectory: dirPathOrNil initialAnswer: initialOrNil filter: filterArrayOrNil extension: extensionOrNil

o  save
Brings up the save file dialog.

o  saveFile: aString
Brings up the save file dialog with aString as the
default name. The title is set to 'Save File'.

o  saveTitle: aTitle fileName: initialFileName
Brings up the file save dialog with aTitle and aString
as the default name.

private
o  fillStruct
Private - fills the openFileNameStruct

o  getFileName
Private - get the filename


Private classes:

    OpenFilenameStructure


ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 23:13:36 GMT