<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>HSFM.GUI.Gtk.MyView</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/HSFM-GUI-Gtk-MyView.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">hsfm-gtk</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">HSFM.GUI.Gtk.MyView</p></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><ahref="#v:newTab">newTab</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a></li><liclass="src short"><ahref="#v:createMyView">createMyView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a></li><liclass="src short"><ahref="#v:switchView">switchView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> ()</li><liclass="src short"><ahref="#v:destroyView">destroyView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Int.html#t:Int">Int</a></li><liclass="src short"><ahref="#v:createIconView">createIconView</a> :: <ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a></li><liclass="src short"><ahref="#v:createTreeView">createTreeView</a> :: <ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a></li><liclass="src short"><ahref="#v:refreshView">refreshView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> ()</li><liclass="src short"><ahref="#v:constructView">constructView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> ()</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><aname="v:newTab"class="def">newTab</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a><ahref="src/HSFM-GUI-Gtk-MyView.html#newTab"class="link">Source</a></p><divclass="doc"><p>Creates a new tab with its own view and refreshes the view.</p></div></div><d
It also initializes the callbacks.</p></div></div><divclass="top"><pclass="src"><aname="v:switchView"class="def">switchView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#switchView"class="link">Source</a></p><divclass="doc"><p>Switch the existing view in <code><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a></code> with the one that the
io action returns.</p></div></div><divclass="top"><pclass="src"><aname="v:destroyView"class="def">destroyView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Int.html#t:Int">Int</a><ahref="src/HSFM-GUI-Gtk-MyView.html#destroyView"class="link">Source</a></p><divclass="doc"><p>Destroys the current view by disconnecting the watcher
view needs to be done here.</p><p>Returns the page in the tab list this view corresponds to.</p></div></div><divclass="top"><pclass="src"><aname="v:createIconView"class="def">createIconView</a> :: <ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a><ahref="src/HSFM-GUI-Gtk-MyView.html#createIconView"class="link">Source</a></p><divclass="doc"><p>Createss an IconView.</p></div></div><divclass="top"><pclass="src"><aname="v:createTreeView"class="def">createTreeView</a> :: <ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a><ahref="HSFM-GUI-Gtk-Data.html#t:FMView">FMView</a><ahref="src/HSFM-GUI-Gtk-MyView.html#createTreeView"class="link">Source</a></p><divclass="doc"><p>Creates a TreeView.</p></div></div><divclass="top"><pclass="src"><aname="v:refreshView"class="def">refreshView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#refreshView"class="link">Source</a></p><divclass="doc"><p>Refreshes the View based on the given directory.</p><p>Throws:</p><ul><li><code><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO-Error.html#v:userError">userError</a></code> on inappropriate type</li></ul></div></div><divclass="top"><pclass="src"><aname="v:constructView"class="def">constructView</a> :: <ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.8.1.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#constructView"class="link">Source</a></p><divclass="doc"><p>Constructs the visible View with the current underlying mutable models,
which are retrieved from <code><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a></code>.</p><p>This sort of merges the components mygui and myview and fires up
the actual models.</p></div></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>