Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getSelectedTreePaths :: MyGUI -> MyView -> IO [TreePath]
- getSelectedItems :: MyGUI -> MyView -> IO [Item]
- withItems :: MyGUI -> MyView -> ([Item] -> MyGUI -> MyView -> IO a) -> IO a
- fileListStore :: Item -> MyView -> IO (ListStore Item)
- getFirstItem :: MyView -> IO Item
- getCurrentDir :: MyView -> IO Item
- pushStatusBar :: MyGUI -> String -> IO (ContextId, MessageId)
- popStatusbar :: MyGUI -> IO ()
- rawPathToIter :: MyView -> TreePath -> IO (Maybe TreeIter)
- rawPathToItem :: MyView -> TreePath -> IO (Maybe Item)
Documentation
getSelectedTreePaths :: MyGUI -> MyView -> IO [TreePath] Source
getSelectedItems :: MyGUI -> MyView -> IO [Item] Source
Gets the currently selected item of the treeView, if any.
Carry out an action on the currently selected item.
If there is no item selected, does nothing.
Create the ListStore
of files/directories from the current directory.
This is the function which maps the Data.DirTree data structures
into the GTK+ data structures.
getFirstItem :: MyView -> IO Item Source
Currently unsafe. This is used to obtain any item, which will fail if there is none.
getCurrentDir :: MyView -> IO Item Source
Reads the current directory from MyView.
This reads the MVar and may block the main thread if it's empty.
pushStatusBar :: MyGUI -> String -> IO (ContextId, MessageId) Source
Push a message to the status bar.
popStatusbar :: MyGUI -> IO () Source
Pop a message from the status bar.
rawPathToIter :: MyView -> TreePath -> IO (Maybe TreeIter) Source
Turn a path on the rawModel into a path that we can use at the outermost model layer.