|
| Graphics.UI.Gtk.Selectors.FileChooserButton | | Portability | portable (depends on GHC) | | Stability | provisional | | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
A button to launch a file selection dialog
- Module available since Gtk+ version 2.6
|
|
| Synopsis |
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
| Constructors
|
|
|
|
|
| fileChooserButtonNewWithBackend | Source |
|
| :: String | title - the title of the browse dialog.
| | -> FileChooserAction | action - the open mode for the widget.
| | -> String | backend - the name of the file system backend
to use.
| | -> IO FileChooserButton | | | Creates a new file-selecting button widget using backend.
|
|
|
| fileChooserButtonNewWithDialog | Source |
|
|
|
| Methods
|
|
| fileChooserButtonGetTitle | Source |
|
| :: FileChooserButtonClass self | | | => self | returns a pointer to the browse dialog's title.
| | -> IO String | | | Retrieves the title of the browse dialog used by the button.
|
|
|
| fileChooserButtonSetTitle | Source |
|
|
|
| fileChooserButtonGetWidthChars | Source |
|
| :: FileChooserButtonClass self | | | => self | returns an integer width (in characters) that the button will
use to size itself.
| | -> IO Int | | | Retrieves the width in characters of the button widget's entry and/or
label.
|
|
|
| fileChooserButtonSetWidthChars | Source |
|
| :: FileChooserButtonClass self | | | => self | nChars - the new width, in characters.
| | -> Int | | | -> IO () | | | Sets the width (in characters) that the button will use to nChars.
|
|
|
| Attributes
|
|
|
| Instance of the FileChooserDialog associated with the button.
|
|
|
Title to put on the FileChooserDialog associated with the button.
Default value: "Select A File"
|
|
|
|
| Produced by Haddock version 2.6.0 |