<!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><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
It also initializes the callbacks.</p></div></div><divclass="top"><pclass="src"><aid="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.9.0.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.9.0.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#switchView"class="link">Source</a><ahref="#v:switchView"class="selflink">#</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"><aid="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.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int">Int</a><ahref="src/HSFM-GUI-Gtk-MyView.html#destroyView"class="link">Source</a><ahref="#v:destroyView"class="selflink">#</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"><aid="v:createIconView"class="def">createIconView</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.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><ahref="#v:createIconView"class="selflink">#</a></p><divclass="doc"><p>Createss an IconView.</p></div></div><divclass="top"><pclass="src"><aid="v:createTreeView"class="def">createTreeView</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.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><ahref="#v:createTreeView"class="selflink">#</a></p><divclass="doc"><p>Creates a TreeView.</p></div></div><divclass="top"><pclass="src"><aid="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="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Maybe.html#t:Maybe">Maybe</a> (Path Abs) -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#refreshView"class="link">Source</a><ahref="#v:refreshView"class="selflink">#</a></p><divclass="doc"><p>Re-reads the current directory or the given one and updates the View.
This is more or less a wrapper around <code><ahref="HSFM-GUI-Gtk-MyView.html#v:refreshView-39-">refreshView'</a></code></p><p>If the third argument is Nothing, it tries to re-read the current directory.
If that fails, it reads "/" instead.</p><p>If the third argument is (Just path) it tries to read "path". If that
fails, it reads "/" instead.</p></div></div><divclass="top"><pclass="src"><aid="v:refreshView-39-"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.9.0.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#refreshView%27"class="link">Source</a><ahref="#v:refreshView-39-"class="selflink">#</a></p><divclass="doc"><p>Refreshes the View based on the given directory.</p><p>If the directory is not a Dir or a Symlink pointing to a Dir, then
calls <code><ahref="HSFM-GUI-Gtk-MyView.html#v:refreshView">refreshView</a></code> with the 3rd argument being Nothing.</p><p>Does not do fallbacks if the directory cannot be read, but
throws an error.</p></div></div><divclass="top"><pclass="src"><aid="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.9.0.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-MyView.html#constructView"class="link">Source</a><ahref="#v:constructView"class="selflink">#</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.17.2</p></div></body></html>