<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.Selectors.FileSelection</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Selectors-FileSelection.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr></table><p class="caption">Graphics.UI.Gtk.Selectors.FileSelection</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail </a></li><li><a href="#g:2">Class Hierarchy </a></li><li><a href="#g:3">Types </a></li><li><a href="#g:4">Constructors </a></li><li><a href="#g:5">Methods </a></li><li><a href="#g:6">Attributes </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Prompt the user for a file or directory name </p><ul><li> As of Gtk+ 2.4 this module has been deprecated in favour of <code><a href="Graphics-UI-Gtk-Selectors-FileChooser.html#t:FileChooser">FileChooser</a></code> </li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:FileSelection">FileSelection</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> o => <a href="#t:FileSelectionClass">FileSelectionClass</a> o </li><li class="src short"><a href="#v:castToFileSelection">castToFileSelection</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></li><li class="src short"><a href="#v:gTypeFileSelection">gTypeFileSelection</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toFileSelection">toFileSelection</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> o => o -> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></li><li class="src short"><a href="#v:fileSelectionNew">fileSelectionNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></li><li class="src short"><a href="#v:fileSelectionSetFilename">fileSelectionSetFilename</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:fileSelectionGetFilename">fileSelectionGetFilename</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:fileSelectionShowFileopButtons">fileSelectionShowFileopButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:fileSelectionHideFileopButtons">fileSelectionHideFileopButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:fileSelectionGetButtons">fileSelectionGetButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> fsel => fsel -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a>, <a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a>)</li><li class="src short"><a href="#v:fileSelectionComplete">fileSelectionComplete</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:fileSelectionGetSelections">fileSelectionGetSelections</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>]</li><li class="src short"><a href="#v:fileSelectionSetSelectMultiple">fileSelectionSetSelectMultiple</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:fileSelectionGetSelectMultiple">fileSelectionGetSelectMultiple</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:fileSelectionFilename">fileSelectionFilename</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:fileSelectionShowFileops">fileSelectionShowFileops</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:fileSelectionSelectMultiple">fileSelectionSelectMultiple</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1 id="g:1">Detail </h1><div class="doc"><p><code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></code> should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory. The filesystem can be navigated using the directory list or the drop-down history menu. Alternatively, the TAB key can be used to navigate using filename completion - common in text based editors such as emacs and jed. </p><p>File selection dialogs are created with a call to <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionNew">fileSelectionNew</a></code>. </p><p>The default filename can be set using <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionSetFilename">fileSelectionSetFilename</a></code> and the selected filename retrieved using <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionGetFilename">fileSelectionGetFilename</a></code>. </p><p>Use <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionComplete">fileSelectionComplete</a></code> to display files and directories that match a given pattern. This can be used for example, to show only *.txt files, or only files beginning with gtk*. </p><p>Simple file operations; create directory, delete file, and rename file, are available from buttons at the top of the dialog. These can be hidden using <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionHideFileopButtons">fileSelectionHideFileopButtons</a></code> and shown again using <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionShowFileopButtons">fileSelectionShowFileopButtons</a></code>. </p></div><h1 id="g:2">Class Hierarchy </h1><div class="doc"><pre> | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code> | +----<code><a href="Graphics-UI-Gtk-Abstract-Object.html#t:Object">Object</a></code> | +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> | +----<code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code> | +----<code><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:Bin">Bin</a></code> | +----<code><a href="Graphics-UI-Gtk-Windows-Window.html#t:Window">Window</a></code> | +----<code><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></code> | +----FileSelection </pre></div><h1 id="g:3">Types </h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:FileSelection" class="def">FileSelection</a> <a href="src/Graphics-UI-Gtk-Types.html#FileSelection" class="link">Source</a></p><div class="subs instances"><p id="control.i:FileSelection" class="caption collapser" onclick="toggleSection('i:FileSelection')">Instances</p><div id="section.i:FileSelection" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Window.html#t:WindowClass">WindowClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:BinClass">BinClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> o => <a name="t:FileSelectionClass" class="def">FileSelectionClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#FileSelectionClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:FileSelectionClass" class="caption collapser" onclick="toggleSection('i:FileSelectionClass')">Instances</p><div id="section.i:FileSelectionClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToFileSelection" class="def">castToFileSelection</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a><a href="src/Graphics-UI-Gtk-Types.html#castToFileSelection" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeFileSelection" class="def">gTypeFileSelection</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeFileSelection" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toFileSelection" class="def">toFileSelection</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> o => o -> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a><a href="src/Graphics-UI-Gtk-Types.html#toFileSelection" class="link">Source</a></p></div><h1 id="g:4">Constructors </h1><div class="top"><p class="src"><a name="v:fileSelectionNew" class="def">fileSelectionNew</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionNew" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>title</code> - a message that will be placed in the file requestor's titlebar. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Creates a new file selection dialog box. By default it will contain a <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code> of the application's current working directory, and a file listing. Operation buttons that allow the user to create a directory, delete files and rename files, are also present. </p></div></div><h1 id="g:5">Methods </h1><div class="top"><p class="src"><a name="v:fileSelectionSetFilename" class="def">fileSelectionSetFilename</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionSetFilename" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>filename</code> - a string to set as the default file name. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets a default path for the file requestor. If <code>filename</code> includes a directory path, then the requestor will open with that path as its current working directory. </p><p>This has the consequence that in order to open the requestor with a working directory and an empty filename, <code>filename</code> must have a trailing directory separator. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionGetFilename" class="def">fileSelectionGetFilename</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionGetFilename" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p>returns currently-selected filename </p></td></tr></table></div><div class="doc"><p>This function returns the selected filename. </p><p>If no file is selected then the selected directory path is returned. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionShowFileopButtons" class="def">fileSelectionShowFileopButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionShowFileopButtons" class="link">Source</a></p><div class="doc"><p>Shows the file operation buttons, if they have previously been hidden. The rest of the widgets in the dialog will be resized accordingly. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionHideFileopButtons" class="def">fileSelectionHideFileopButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionHideFileopButtons" class="link">Source</a></p><div class="doc"><p>Hides the file operation buttons that normally appear at the top of the dialog. Useful if you wish to create a custom file selector, based on <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionGetButtons" class="def">fileSelectionGetButtons</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> fsel => fsel -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a>, <a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a>)<a href="src/Graphics-UI-Gtk-General-Structs.html#fileSelectionGetButtons" class="link">Source</a></p><div class="doc"><p>Extract the buttons of a fileselection. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionComplete" class="def">fileSelectionComplete</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionComplete" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>pattern</code> - a string of characters which may or may not match any filenames in the current directory. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Will attempt to match <code>pattern</code> to a valid filenames or subdirectories in the current directory. If a match can be made, the matched filename will appear in the text entry field of the file selection dialog. If a partial match can be made, the "Files" list will contain those file names which have been partially matched, and the "Folders" list those directories which have been partially matched. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionGetSelections" class="def">fileSelectionGetSelections</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>]<a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionGetSelections" class="link">Source</a></p><div class="doc"><p>Retrieves the list of file selections the user has made in the dialog box. This function is intended for use when the user can select multiple files in the file list. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionSetSelectMultiple" class="def">fileSelectionSetSelectMultiple</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionSetSelectMultiple" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>selectMultiple</code> - whether or not the user is allowed to select multiple files in the file list. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets whether the user is allowed to select multiple files in the file list. Use <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionGetSelections">fileSelectionGetSelections</a></code> to get the list of selected files. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionGetSelectMultiple" class="def">fileSelectionGetSelectMultiple</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionGetSelectMultiple" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> if the user is allowed to select multiple files in the file list </p></td></tr></table></div><div class="doc"><p>Determines whether or not the user is allowed to select multiple files in the file list. See <code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#v:fileSelectionSetSelectMultiple">fileSelectionSetSelectMultiple</a></code>. </p></div></div><h1 id="g:6">Attributes </h1><div class="top"><p class="src"><a name="v:fileSelectionFilename" class="def">fileSelectionFilename</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionFilename" class="link">Source</a></p><div class="doc"><p>The currently selected filename. </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionShowFileops" class="def">fileSelectionShowFileops</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionShowFileops" class="link">Source</a></p><div class="doc"><p>Whether buttons for creating/manipulating files should be displayed. </p><p>Default value: <code>False</code> </p></div></div><div class="top"><p class="src"><a name="v:fileSelectionSelectMultiple" class="def">fileSelectionSelectMultiple</a> :: <a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelectionClass">FileSelectionClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Selectors-FileSelection.html#fileSelectionSelectMultiple" class="link">Source</a></p><div class="doc"><p>Whether to allow multiple files to be selected. </p><p>Default value: <code>False</code> </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>