Gtk2HsContentsIndex
Graphics.UI.Gtk.Selectors.FileChooserButton
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Contents
Detail
Class Hierarchy
Types
Constructors
Methods
Attributes
Description

A button to launch a file selection dialog

  • Module available since Gtk+ version 2.6
Synopsis
data FileChooserButton
class HBoxClass o => FileChooserButtonClass o
castToFileChooserButton :: GObjectClass obj => obj -> FileChooserButton
toFileChooserButton :: FileChooserButtonClass o => o -> FileChooserButton
fileChooserButtonNew :: String -> FileChooserAction -> IO FileChooserButton
fileChooserButtonNewWithBackend :: String -> FileChooserAction -> String -> IO FileChooserButton
fileChooserButtonNewWithDialog :: FileChooserDialogClass dialog => dialog -> IO FileChooserButton
fileChooserButtonGetTitle :: FileChooserButtonClass self => self -> IO String
fileChooserButtonSetTitle :: FileChooserButtonClass self => self -> String -> IO ()
fileChooserButtonGetWidthChars :: FileChooserButtonClass self => self -> IO Int
fileChooserButtonSetWidthChars :: FileChooserButtonClass self => self -> Int -> IO ()
fileChooserButtonDialog :: (FileChooserButtonClass self, FileChooserDialogClass fileChooserDialog) => WriteAttr self fileChooserDialog
fileChooserButtonTitle :: FileChooserButtonClass self => Attr self String
fileChooserButtonWidthChars :: FileChooserButtonClass self => Attr self Int
Detail

The FileChooserButton is a widget that lets the user select a file. It implements the FileChooser interface. Visually, it is a file name with a button to bring up a FileChooserDialog. The user can then use that dialog to change the file associated with that button. This widget does not support setting the "select-multiple" property to True.

The FileChooserButton supports the FileChooserActions FileChooserActionOpen and FileChooserActionSelectFolder.

Class Hierarchy
 |  GObject
 |   +----Object
 |         +----Widget
 |               +----Container
 |                     +----Box
 |                           +----HBox
 |                                 +----FileChooserButton
 
Types
data FileChooserButton
show/hide Instances
class HBoxClass o => FileChooserButtonClass o
show/hide Instances
castToFileChooserButton :: GObjectClass obj => obj -> FileChooserButton
toFileChooserButton :: FileChooserButtonClass o => o -> FileChooserButton
Constructors
fileChooserButtonNew
:: Stringtitle - the title of the browse dialog.
-> FileChooserActionaction - the open mode for the widget.
-> IO FileChooserButton
Creates a new file-selecting button widget.
fileChooserButtonNewWithBackend
:: Stringtitle - the title of the browse dialog.
-> FileChooserActionaction - the open mode for the widget.
-> Stringbackend - the name of the file system backend to use.
-> IO FileChooserButton
Creates a new file-selecting button widget using backend.
fileChooserButtonNewWithDialog
:: FileChooserDialogClass dialog
=> dialogdialog - the FileChooserDialog widget to use.
-> IO FileChooserButton
Creates a FileChooserButton widget which uses dialog as it's file-picking window.
Methods
fileChooserButtonGetTitle
:: FileChooserButtonClass self
=> self
-> IO Stringreturns a pointer to the browse dialog's title.
Retrieves the title of the browse dialog used by the button.
fileChooserButtonSetTitle
:: FileChooserButtonClass self
=> self
-> Stringtitle - the new browse dialog title.
-> IO ()
Modifies the title of the browse dialog used by the button.
fileChooserButtonGetWidthChars
:: FileChooserButtonClass self
=> self
-> IO Intreturns an integer width (in characters) that the button will use to size itself.
Retrieves the width in characters of the button widget's entry and/or label.
fileChooserButtonSetWidthChars
:: FileChooserButtonClass self
=> self
-> IntnChars - the new width, in characters.
-> IO ()
Sets the width (in characters) that the button will use to nChars.
Attributes
fileChooserButtonDialog :: (FileChooserButtonClass self, FileChooserDialogClass fileChooserDialog) => WriteAttr self fileChooserDialog
Instance of the FileChooserDialog associated with the button.
fileChooserButtonTitle :: FileChooserButtonClass self => Attr self String

Title to put on the FileChooserDialog associated with the button.

Default value: "Select A File"

fileChooserButtonWidthChars :: FileChooserButtonClass self => Attr self Int
Produced by Haddock version 0.8