Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 904

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!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.Windows.Dialog</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-Windows-Dialog.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Windows-Dialog.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.Windows.Dialog</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">Enums
</a></li><li><a href="#g:5">Constructors
</a></li><li><a href="#g:6">Methods
</a></li><li><a href="#g:7">Attributes
</a></li><li><a href="#g:8">Signals
</a></li><li><a href="#g:9">Deprecated
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Create popup windows
</p><p>NOTE:
 Now FFI haven't support variadic function <code>gtk_dialog_set_alternative_button_order</code>
</p></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:Dialog">Dialog</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Windows-Window.html#t:WindowClass">WindowClass</a> o =&gt; <a href="#t:DialogClass">DialogClass</a> o </li><li class="src short"><a href="#v:castToDialog">castToDialog</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></li><li class="src short"><a href="#v:gTypeDialog">gTypeDialog</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toDialog">toDialog</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:ResponseId">ResponseId</a> <ul class="subs"><li>= <a href="#v:ResponseNone">ResponseNone</a>  </li><li>| <a href="#v:ResponseReject">ResponseReject</a>  </li><li>| <a href="#v:ResponseAccept">ResponseAccept</a>  </li><li>| <a href="#v:ResponseDeleteEvent">ResponseDeleteEvent</a>  </li><li>| <a href="#v:ResponseOk">ResponseOk</a>  </li><li>| <a href="#v:ResponseCancel">ResponseCancel</a>  </li><li>| <a href="#v:ResponseClose">ResponseClose</a>  </li><li>| <a href="#v:ResponseYes">ResponseYes</a>  </li><li>| <a href="#v:ResponseNo">ResponseNo</a>  </li><li>| <a href="#v:ResponseApply">ResponseApply</a>  </li><li>| <a href="#v:ResponseHelp">ResponseHelp</a>  </li><li>| <a href="#v:ResponseUser">ResponseUser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>  </li></ul></li><li class="src short"><a href="#v:dialogNew">dialogNew</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-Windows-Dialog.html#t:Dialog">Dialog</a></li><li class="src short"><a href="#v:dialogGetUpper">dialogGetUpper</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> dc =&gt; dc -&gt; <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-Layout-VBox.html#t:VBox">VBox</a></li><li class="src short"><a href="#v:dialogGetActionArea">dialogGetActionArea</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> dc =&gt; dc -&gt; <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-Layout-HBox.html#t:HBox">HBox</a></li><li class="src short"><a href="#v:dialogRun">dialogRun</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <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-Windows-Dialog.html#t:ResponseId">ResponseId</a></li><li class="src short"><a href="#v:dialogResponse">dialogResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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:dialogAddButton">dialogAddButton</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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></li><li class="src short"><a href="#v:dialogAddActionWidget">dialogAddActionWidget</a> :: (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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:dialogGetHasSeparator">dialogGetHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <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:dialogSetDefaultResponse">dialogSetDefaultResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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:dialogSetHasSeparator">dialogSetHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <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:dialogSetResponseSensitive">dialogSetResponseSensitive</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <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:dialogGetResponseForWidget">dialogGetResponseForWidget</a> :: (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; self -&gt; widget -&gt; <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-Windows-Dialog.html#t:ResponseId">ResponseId</a></li><li class="src short"><a href="#v:dialogAlternativeDialogButtonOrder">dialogAlternativeDialogButtonOrder</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Gdk-Screen.html#t:Screen">Screen</a> -&gt; <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:dialogSetAlternativeButtonOrderFromArray">dialogSetAlternativeButtonOrderFromArray</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; [<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a>] -&gt; <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:dialogGetWidgetForResponse">dialogGetWidgetForResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>)</li><li class="src short"><a href="#v:dialogHasSeparator">dialogHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <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:dialogActionAreaBorder">dialogActionAreaBorder</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:dialogButtonSpacing">dialogButtonSpacing</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:dialogContentAreaBorder">dialogContentAreaBorder</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:dialogContentAreaSpacing">dialogContentAreaSpacing</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:response">response</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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:onResponse">onResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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>) -&gt; <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/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)</li><li class="src short"><a href="#v:afterResponse">afterResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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>) -&gt; <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/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)</li></ul></div><div id="interface"><h1 id="g:1">Detail
</h1><div class="doc"><p>Dialog boxes are a convenient way to prompt the user for a small amount
 of input, e.g. to display a message, ask a question, or anything else that
 does not require extensive effort on the user's part.
</p><p>Gtk+ treats a dialog as a window split vertically. The top section is a
 <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>, and is where widgets such as a <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code> or a <code><a href="Graphics-UI-Gtk-Entry-Entry.html#t:Entry">Entry</a></code> should be
 packed. The bottom area is known as the action_area. This is generally used
 for packing buttons into the dialog which may perform functions such as
 cancel, ok, or apply. The two areas are separated by a <code><a href="Graphics-UI-Gtk-Ornaments-HSeparator.html#t:HSeparator">HSeparator</a></code>.
</p><p><code><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></code> boxes are created with a call to <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogNew">dialogNew</a></code> or
 <code>dialogNewWithButtons</code>. <code>dialogNewWithButtons</code> is recommended; it allows you
 to set the dialog title, some convenient flags, and add simple buttons.
</p><p>If 'dialog' is a newly created dialog, the two primary areas of the
 window can be accessed using <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogGetUpper">dialogGetUpper</a></code> and
 <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogGetActionArea">dialogGetActionArea</a></code>.
</p><p>A 'modal' dialog (that is, one which freezes the rest of the
 application from user input), can be created by calling <code>windowSetModal</code> on
 the dialog. When using <code>dialogNewWithButtons</code> you can also
 pass the <code>DialogModal</code> flag to make a dialog modal.
</p><p>If you add buttons to <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></code> using <code>dialogNewWithButtons</code>,
 <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogAddButton">dialogAddButton</a></code>, <code>dialogAddButtons</code>, or <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogAddActionWidget">dialogAddActionWidget</a></code>, clicking
 the button will emit a signal called &quot;response&quot; with a response ID that
 you specified. Gtk+ will never assign a meaning to positive response IDs;
 these are entirely user-defined. But for convenience, you can use the
 response IDs in the <code>ResponseType</code> enumeration (these all have values less
 than zero). If a dialog receives a delete event, the &quot;response&quot; signal
 will be emitted with a response ID of <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseNone">ResponseNone</a></code>.
</p><p>If you want to block waiting for a dialog to return before returning
 control flow to your code, you can call <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code>. This function enters a
 recursive main loop and waits for the user to respond to the dialog,
 returning the response ID corresponding to the button the user clicked.
</p><p>For a simple message box, you probably want to use
 <code>Graphics.UI.Gtk.Windows.MessageDialog.MessageDialog</code> which provides
 convenience functions
 for creating standard dialogs containing simple messages to inform
 or ask the user.
</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>
 | +----Dialog
 | +----<code><a href="Graphics-UI-Gtk-Windows-AboutDialog.html#t:AboutDialog">AboutDialog</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Selectors-ColorSelectionDialog.html#t:ColorSelectionDialog">ColorSelectionDialog</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Selectors-FileChooserDialog.html#t:FileChooserDialog">FileChooserDialog</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Selectors-FileSelection.html#t:FileSelection">FileSelection</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Selectors-FontSelectionDialog.html#t:FontSelectionDialog">FontSelectionDialog</a></code>
 | +----<code>InputDialog</code>
 | +----<code><a href="Graphics-UI-Gtk-Windows-MessageDialog.html#t:MessageDialog">MessageDialog</a></code>
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Dialog" class="def">Dialog</a>  <a href="src/Graphics-UI-Gtk-Types.html#Dialog" class="link">Source</a></p><div class="subs instances"><p id="control.i:Dialog" class="caption collapser" onclick="toggleSection('i:Dialog')">Instances</p><div id="section.i:Dialog" 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-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</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-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</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-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Window.html#t:WindowClass">WindowClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Bin.html#t:BinClass">BinClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Windows-Window.html#t:WindowClass">WindowClass</a> o =&gt; <a name="t:DialogClass" class="def">DialogClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#DialogClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:DialogClass" class="caption collapser" onclick="toggleSection('i:DialogClass')">Instances</p><div id="section.i:DialogClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Windows-MessageDialog.html#t:MessageDialog">MessageDialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> InputDialog</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelectionDialog.html#t:FontSelectionDialog">FontSelectionDialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Selectors-FileChooserDialog.html#t:FileChooserDialog">FileChooserDialog</a></td><td class="doc empty">&nbsp;</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">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Selectors-ColorSelectionDialog.html#t:ColorSelectionDialog">ColorSelectionDialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Windows-AboutDialog.html#t:AboutDialog">AboutDialog</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToDialog" class="def">castToDialog</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a><a href="src/Graphics-UI-Gtk-Types.html#castToDialog" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeDialog" class="def">gTypeDialog</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeDialog" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toDialog" class="def">toDialog</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a><a href="src/Graphics-UI-Gtk-Types.html#toDialog" class="link">Source</a></p></div><h1 id="g:4">Enums
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ResponseId" class="def">ResponseId</a>  <a href="src/Graphics-UI-Gtk-General-Structs.html#ResponseId" class="link">Source</a></p><div class="doc"><p>Some constructors that can be used as response
 numbers for dialogs.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ResponseNone" class="def">ResponseNone</a></td><td class="doc"><p>GTK returns this if a response widget has no <code>response_id</code>,
   or if the dialog gets programmatically hidden or destroyed.
</p></td></tr><tr><td class="src"><a name="v:ResponseReject" class="def">ResponseReject</a></td><td class="doc"><p>GTK won't return these unless you pass them in as
   the response for an action widget. They are for your convenience.
</p></td></tr><tr><td class="src"><a name="v:ResponseAccept" class="def">ResponseAccept</a></td><td class="doc"><p>(as above)
</p></td></tr><tr><td class="src"><a name="v:ResponseDeleteEvent" class="def">ResponseDeleteEvent</a></td><td class="doc"><p>If the dialog is deleted.
</p></td></tr><tr><td class="src"><a name="v:ResponseOk" class="def">ResponseOk</a></td><td class="doc"><p>&quot;Ok&quot; was pressed.
</p><ul><li> This value is returned from the &quot;Ok&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseCancel" class="def">ResponseCancel</a></td><td class="doc"><p>&quot;Cancel&quot; was pressed.
</p><ul><li> These value is returned from the &quot;Cancel&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseClose" class="def">ResponseClose</a></td><td class="doc"><p>&quot;Close&quot; was pressed.
</p><ul><li> This value is returned from the &quot;Close&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseYes" class="def">ResponseYes</a></td><td class="doc"><p>&quot;Yes&quot; was pressed.
</p><ul><li> This value is returned from the &quot;Yes&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseNo" class="def">ResponseNo</a></td><td class="doc"><p>&quot;No&quot; was pressed.
</p><ul><li> This value is returned from the &quot;No&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseApply" class="def">ResponseApply</a></td><td class="doc"><p>&quot;Apply&quot; was pressed.
</p><ul><li> This value is returned from the &quot;Apply&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseHelp" class="def">ResponseHelp</a></td><td class="doc"><p>&quot;Help&quot; was pressed.
</p><ul><li> This value is returned from the &quot;Help&quot; stock dialog button.
</li></ul></td></tr><tr><td class="src"><a name="v:ResponseUser" class="def">ResponseUser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>A user-defined response
</p><ul><li> This value is returned from a user defined button
</li></ul></td></tr></table></div><div class="subs instances"><p id="control.i:ResponseId" class="caption collapser" onclick="toggleSection('i:ResponseId')">Instances</p><div id="section.i:ResponseId" 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-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:5">Constructors
</h1><div class="top"><p class="src"><a name="v:dialogNew" class="def">dialogNew</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-Windows-Dialog.html#t:Dialog">Dialog</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogNew" class="link">Source</a></p><div class="doc"><p>Creates a new dialog box. Widgets should not be packed into this <code><a href="Graphics-UI-Gtk-Windows-Window.html#t:Window">Window</a></code>
 directly, but into the &quot;upper&quot; and &quot;action area&quot;, which are obtained
 using <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogGetUpper">dialogGetUpper</a></code> and <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogGetActionArea">dialogGetActionArea</a></code>.
</p></div></div><h1 id="g:6">Methods
</h1><div class="top"><p class="src"><a name="v:dialogGetUpper" class="def">dialogGetUpper</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> dc =&gt; dc -&gt; <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-Layout-VBox.html#t:VBox">VBox</a><a href="src/Graphics-UI-Gtk-General-Structs.html#dialogGetUpper" class="link">Source</a></p><div class="doc"><p>Get the upper part of a dialog.
</p><ul><li> The upper part of a dialog window consists of a <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>.
   Add the required widgets into this box.
</li></ul></div></div><div class="top"><p class="src"><a name="v:dialogGetActionArea" class="def">dialogGetActionArea</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> dc =&gt; dc -&gt; <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-Layout-HBox.html#t:HBox">HBox</a><a href="src/Graphics-UI-Gtk-General-Structs.html#dialogGetActionArea" class="link">Source</a></p><div class="doc"><p>Extract the action area of a dialog box.
</p><ul><li> This
 is useful to add some special widgets that cannot be added with
 dialogAddActionWidget.
</li></ul></div></div><div class="top"><p class="src"><a name="v:dialogRun" class="def">dialogRun</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <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-Windows-Dialog.html#t:ResponseId">ResponseId</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogRun" class="link">Source</a></p><div class="doc"><p>Blocks in a recursive main loop until the dialog either emits the
 response signal, or is destroyed. If the dialog is destroyed during the call
 to <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code>, it returns <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseNone">ResponseNone</a></code>. Otherwise, it returns the
 response ID from the &quot;response&quot; signal emission. Before entering the
 recursive main loop, <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> calls <code>widgetShow</code> on the dialog for you.
 Note that you still need to show any children of the dialog yourself.
</p><p>During <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code>, the default behavior of &quot;delete_event&quot; is disabled;
 if the dialog receives &quot;delete_event&quot;, it will not be destroyed as windows
 usually are, and <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> will return <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseDeleteEvent">ResponseDeleteEvent</a></code>. Also, during
 <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> the dialog will be modal. You can force <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> to return at
 any time by calling <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogResponse">dialogResponse</a></code> to emit the &quot;response&quot; signal.
 Destroying the dialog during <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> is a very bad idea, because your
 post-run code won't know whether the dialog was destroyed or not.
 Hence, you should not call <code>Graphics.UI.Gtk.Abstract.widgetDestroy</code>
 before <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> has returned.
</p><p>After <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> returns, you are responsible for hiding or destroying
 the dialog if you wish to do so.
</p><p>Note that even though the recursive main loop gives the effect of a modal
 dialog (it prevents the user from interacting with other windows while the
 dialog is run), callbacks such as timeouts, IO channel watches, DND drops,
 etc, <em>will</em> be triggered during a <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> call.
</p></div></div><div class="top"><p class="src"><a name="v:dialogResponse" class="def">dialogResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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-Windows-Dialog.html#dialogResponse" class="link">Source</a></p><div class="doc"><p>Emits the &quot;response&quot; signal with the given response ID. Used to
 indicate that the user has responded to the dialog in some way; typically
 either you or <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogRun">dialogRun</a></code> will be monitoring the &quot;response&quot; signal and
 take appropriate action.
</p><p>This function can be used to add a custom widget to the action area that
 should close the dialog when activated or to close the dialog otherwise.
</p></div></div><div class="top"><p class="src"><a name="v:dialogAddButton" class="def">dialogAddButton</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogAddButton" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <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>buttonText</code> - text of button, or stock ID
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc"><p><code>responseId</code> - response ID for the button
</p></td></tr><tr><td class="src">-&gt; <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></td><td class="doc"><p>returns the button widget that was added
</p></td></tr></table></div><div class="doc"><p>Adds a button with the given text (or a stock button, if <code>buttonText</code> is
 a stock ID) and sets things up so that clicking the button will emit the
 &quot;response&quot; signal with the given <code>responseId</code>. The button is appended to
 the end of the dialog's action area. The button widget is returned, but
 usually you don't need it.
</p></div></div><div class="top"><p class="src"><a name="v:dialogAddActionWidget" class="def">dialogAddActionWidget</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogAddActionWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; child</td><td class="doc"><p><code>child</code> - an activatable widget
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc"><p><code>responseId</code> - response ID for <code>child</code>
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Adds an activatable widget to the action area of a <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:Dialog">Dialog</a></code>, connecting a
 signal handler that will emit the &quot;response&quot; signal on the dialog when the
 widget is activated. The widget is appended to the end of the dialog's
 action area. If you want to add a non-activatable widget, simply pack it
 into the action area.
</p></div></div><div class="top"><p class="src"><a name="v:dialogGetHasSeparator" class="def">dialogGetHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <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><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogGetHasSeparator" class="link">Source</a></p><div class="doc"><p>Query if the dialog has a visible horizontal separator.
</p></div></div><div class="top"><p class="src"><a name="v:dialogSetDefaultResponse" class="def">dialogSetDefaultResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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-Windows-Dialog.html#dialogSetDefaultResponse" class="link">Source</a></p><div class="doc"><p>Sets the last widget in the dialog's action area with the given
 <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></code> as the default widget for the dialog. Pressing &quot;Enter&quot;
 normally activates the default widget.
</p><ul><li> The default response is reset once it is triggered. Hence, if you
 hide the dialog (rather than closing it) and re-display it later,
 you need to call this function again.
</li></ul></div></div><div class="top"><p class="src"><a name="v:dialogSetHasSeparator" class="def">dialogSetHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <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-Windows-Dialog.html#dialogSetHasSeparator" class="link">Source</a></p><div class="doc"><p>Sets whether the dialog has a separator above the buttons. <code>True</code> by
 default.
</p></div></div><div class="top"><p class="src"><a name="v:dialogSetResponseSensitive" class="def">dialogSetResponseSensitive</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogSetResponseSensitive" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc"><p><code>responseId</code> - a response ID
</p></td></tr><tr><td class="src">-&gt; <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>setting</code> - <code>True</code> for sensitive
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Calls <code><code>widgetSetSensitive</code> widget setting</code> for each widget in the
 dialog's action area with the given <code>responseId</code>. A convenient way to
 sensitize/desensitize dialog buttons.
</p></div></div><div class="top"><p class="src"><a name="v:dialogGetResponseForWidget" class="def">dialogGetResponseForWidget</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogGetResponseForWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; widget</td><td class="doc"><p><code>widget</code> - a widget in the action area of dialog
</p></td></tr><tr><td class="src">-&gt; <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-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc"><p>return the response id of widget, or <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseNone">ResponseNone</a></code> if widget doesn't have a response id set. 
</p></td></tr></table></div><div class="doc"><p>Gets the response id of a widget in the action area of a dialog.
</p></div></div><div class="top"><p class="src"><a name="v:dialogAlternativeDialogButtonOrder" class="def">dialogAlternativeDialogButtonOrder</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogAlternativeDialogButtonOrder" 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-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Gdk-Screen.html#t:Screen">Screen</a></td><td class="doc"><p><code>screen</code> - a <code><a href="Graphics-UI-Gtk-Gdk-Screen.html#t:Screen">Screen</a></code>, or <code>Nothing</code> to use the default screen
</p></td></tr><tr><td class="src">-&gt; <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 whether the alternative button order should be used
</p></td></tr></table></div><div class="doc"><p>Returns <code>True</code> if dialogs are expected to use an alternative button order on the screen screen.
 See <code>dialogSetAlternativeButtonOrder</code> for more details about alternative button order.
</p><p>If you need to use this function, you should probably connect to the <code>alternativeButtonOrder</code> signal on the GtkSettings object associated to screen, in order to be notified if the button order setting changes.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:dialogSetAlternativeButtonOrderFromArray" class="def">dialogSetAlternativeButtonOrderFromArray</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogSetAlternativeButtonOrderFromArray" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; [<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a>]</td><td class="doc"><p><code>newOrder</code> - an array of response ids of dialog's buttons 
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Sets an alternative button order.
</p><p>If the <code>alternativeButtonOrder</code> setting is set to <code>True</code>, the dialog
 buttons are reordered according to the order of the response ids in
 <code>newOrder</code>.
</p><p>See <code>dialogSetAlternativeButtonOrder</code> for more information.
</p><p>This function is for use by language bindings.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:dialogGetWidgetForResponse" class="def">dialogGetWidgetForResponse</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogGetWidgetForResponse" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a></td><td class="doc"><p><code>responseId</code> the response ID used by the dialog widget
</p></td></tr><tr><td class="src">-&gt; <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-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>)</td><td class="doc"><p>returns the widget button that uses the given <code>responseId</code>, or <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>.
</p></td></tr></table></div><div class="doc"><p>Gets the widget button that uses the given response ID in the action area of a dialog.
</p></div></div><h1 id="g:7">Attributes
</h1><div class="top"><p class="src"><a name="v:dialogHasSeparator" class="def">dialogHasSeparator</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <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-Windows-Dialog.html#dialogHasSeparator" class="link">Source</a></p><div class="doc"><p>The dialog has a separator bar above its buttons.
</p><p>Default value: <code>True</code>
</p></div></div><div class="top"><p class="src"><a name="v:dialogActionAreaBorder" class="def">dialogActionAreaBorder</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogActionAreaBorder" class="link">Source</a></p><div class="doc"><p>Width of border around the button area at the bottom of the dialog.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 5
</p></div></div><div class="top"><p class="src"><a name="v:dialogButtonSpacing" class="def">dialogButtonSpacing</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogButtonSpacing" class="link">Source</a></p><div class="doc"><p>Spacing between buttons.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 6
</p></div></div><div class="top"><p class="src"><a name="v:dialogContentAreaBorder" class="def">dialogContentAreaBorder</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogContentAreaBorder" class="link">Source</a></p><div class="doc"><p>Width of border around the main dialog area.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 2
</p></div></div><div class="top"><p class="src"><a name="v:dialogContentAreaSpacing" class="def">dialogContentAreaSpacing</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Windows-Dialog.html#dialogContentAreaSpacing" class="link">Source</a></p><div class="doc"><p>The default spacing used between elements of the content area of the dialog,
 as returned by <code>dialogSetContentArea</code>, unless <code>boxSetSpacing</code> was called on that widget directly.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 0
</p><ul><li> Available since Gtk+ version 2.16
</li></ul></div></div><h1 id="g:8">Signals
</h1><div class="top"><p class="src"><a name="v:response" class="def">response</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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-Windows-Dialog.html#response" class="link">Source</a></p><div class="doc"><p>Emitted when an action widget is clicked, the dialog receives a delete
 event, or the application programmer calls <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogResponse">dialogResponse</a></code>. On a delete
 event, the response ID is <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseNone">ResponseNone</a></code>. Otherwise, it depends on which
 action widget was clicked.
</p></div></div><h1 id="g:9">Deprecated
</h1><div class="top"><p class="src"><a name="v:onResponse" class="def">onResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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>) -&gt; <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/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)<a href="src/Graphics-UI-Gtk-Windows-Dialog.html#onResponse" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:afterResponse" class="def">afterResponse</a> :: <a href="Graphics-UI-Gtk-Windows-Dialog.html#t:DialogClass">DialogClass</a> self =&gt; self -&gt; (<a href="Graphics-UI-Gtk-Windows-Dialog.html#t:ResponseId">ResponseId</a> -&gt; <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>) -&gt; <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/glib-0.12.0/System-Glib-Signals.html#t:ConnectId">ConnectId</a> self)<a href="src/Graphics-UI-Gtk-Windows-Dialog.html#afterResponse" class="link">Source</a></p><div class="doc"><p>Emitted when an action widget is clicked, the dialog receives a delete
 event, or the application programmer calls <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:dialogResponse">dialogResponse</a></code>. On a delete
 event, the response ID is <code><a href="Graphics-UI-Gtk-Windows-Dialog.html#v:ResponseNone">ResponseNone</a></code>. Otherwise, it depends on which
 action widget was clicked.
</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>