hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.MyView

Synopsis

Documentation

newTab :: MyGUI -> Notebook -> IO FMView -> Item -> Int -> IO MyView Source #

Creates a new tab with its own view and refreshes the view.

createMyView :: MyGUI -> Notebook -> IO FMView -> IO MyView Source #

Constructs the initial MyView object with a few dummy models. It also initializes the callbacks.

switchView :: MyGUI -> MyView -> IO FMView -> IO () Source #

Switch the existing view in MyView with the one that the io action returns.

destroyView :: MyView -> IO Int Source #

Destroys the given view by disconnecting the watcher and destroying the active FMView container.

Everything that needs to be done in order to forget about a view needs to be done here.

Returns the page in the tab list this view corresponds to.

createIconView :: IO FMView Source #

Createss an IconView.

createTreeView :: IO FMView Source #

Creates a TreeView.

refreshView :: MyGUI -> MyView -> Item -> IO () Source #

Refreshes the View based on the given directory.

Throws:

constructView :: MyGUI -> MyView -> IO () Source #

Constructs the visible View with the current underlying mutable models, which are retrieved from MyGUI.

This sort of merges the components mygui and myview and fires up the actual models.