FileSelection Class Reference

Inheritance diagram for FileSelection:

Dialog List of all members.

Detailed Description

A standard file selector dialog.


Public Member Functions

 this (char[] title)
 Creates a new File selection dialog.
void setFileName (char[] filename)
 Sets the default file selected.
String getFileName ()
 This function returns the selected filename in the C runtime's multibyte string encoding, which may or may not be the same as that used by GDK (UTF-8).
void complete (char[] pattern)
 Sets a pattern of the files to show.
void showButtons ()
 Shows common action buttons(create dir...).
void hideButtons ()
 Hides common action buttons(create dir...).
String[] getSelections ()
 Gets all the selected file names.
void setMultiple (bit select_multiple)
 Set if multiple selection are allowed.
bit getMultiple ()
 Checks mutiple selectetion are allowed.

Static Public Member Functions

GType getType ()
 Gets this class type.


Member Function Documentation

void FileSelection.complete (  char[]  pattern  ) 
 

Sets a pattern of the files to show.

String FileSelection.getFileName (   ) 
 

This function returns the selected filename in the C runtime's multibyte string encoding, which may or may not be the same as that used by GDK (UTF-8).

To convert to UTF-8, call g_filename_to_utf8(). The returned string points to a statically allocated buffer and should be copied away.

bit FileSelection.getMultiple (   ) 
 

Checks mutiple selectetion are allowed.

Returns:
true id multiple selections are allowd

String [] FileSelection.getSelections (   ) 
 

Gets all the selected file names.

Returns:
an array of chars with all the selected file names

GType FileSelection.getType (   )  [static]
 

Gets this class type.

Reimplemented from Dialog.

void FileSelection.hideButtons (   ) 
 

Hides common action buttons(create dir...).

void FileSelection.setFileName (  char[]  filename  ) 
 

Sets the default file selected.

void FileSelection.setMultiple (  bit  select_multiple  ) 
 

Set if multiple selection are allowed.

Parameters:
select_multiple if true multiple selections will be allowed

void FileSelection.showButtons (   ) 
 

Shows common action buttons(create dir...).

FileSelection.this (  char[]  title  ) 
 

Creates a new File selection dialog.

Reimplemented from Dialog.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo