Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.FileSelection

Class FileSelection

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.Window.Window
                                                dui.Dialog.Dialog
                                                        dui.FileSelection.FileSelection

Implemented interfaces:


public class

FileSelection



A standard file selector dialog

Constructor Summary
protected (GtkWidget* gtkWidget)
          
(char title)
          Creates a new File selection dialog
(String title)
          

Methods Summary
public static GType getType()
          Gets this class type
void setFileName(char filename)
          Sets the default file selected
void setFileName(String filename)
          
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 complete(String pattern)
          
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




protected ctor(FileSelection)(GtkWidget* gtkWidget)

getType

public static GType getType()
Gets this class type



ctor(FileSelection)(char title)
Creates a new File selection dialog



ctor(FileSelection)(String title)

setFileName

void setFileName(char filename)
Sets the default file selected

setFileName

void setFileName(String filename)

getFileName

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).
To convert to UTF-8, call g_filename_to_utf8(). The returned string points to a statically allocated buffer and should be copied away.

complete

void complete(char pattern)
Sets a pattern of the files to show

complete

void complete(String pattern)

showButtons

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

hideButtons

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

getSelections

String getSelections()
Gets all the selected file names

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

setMultiple

void setMultiple(bit select_multiple)
Set if multiple selection are allowed

Parameters:
select_multiple - if true multiple selections will be allowed

getMultiple

bit getMultiple()
Checks mutiple selectetion are allowed

Returns:
true id multiple selections are allowd