Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newTab :: MyGUI -> IO FMView -> Item -> IO MyView
- createMyView :: MyGUI -> IO FMView -> IO MyView
- switchView :: MyGUI -> MyView -> IO FMView -> IO ()
- destroyView :: MyGUI -> MyView -> IO Int
- createIconView :: IO FMView
- createTreeView :: IO FMView
- refreshView :: MyGUI -> MyView -> Maybe (Path Abs) -> IO ()
- refreshView' :: MyGUI -> MyView -> Item -> IO ()
- constructView :: MyGUI -> MyView -> IO ()
Documentation
newTab :: MyGUI -> IO FMView -> Item -> IO MyView Source
Creates a new tab with its own view and refreshes the view.
createMyView :: MyGUI -> 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 :: MyGUI -> MyView -> IO Int Source
Destroys the current 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 -> Maybe (Path Abs) -> IO () Source
Re-reads the current directory or the given one and updates the View.
This is more or less a wrapper around refreshView'
If the third argument is Nothing, it tries to re-read the current directory. If that fails, it reads "/" instead.
If the third argument is (Just path) it tries to read "path". If that fails, it reads "/" instead.
refreshView' :: MyGUI -> MyView -> Item -> IO () Source
Refreshes the View based on the given directory.
If the directory is not a Dir or a Symlink pointing to a Dir, then
calls refreshView
with the 3rd argument being Nothing.
Does not do fallbacks if the directory cannot be read, but throws an error.