Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getSelectedTreePaths :: MyGUI -> MyView -> IO [TreePath]
- getSelectedItems :: MyGUI -> MyView -> IO [Item]
- withItems :: MyGUI -> MyView -> ([Item] -> MyGUI -> MyView -> IO ()) -> IO ()
- 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)
- addHistory :: Eq a => a -> [a] -> [a]
Documentation
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.
rawPathToItem :: MyView -> TreePath -> IO (Maybe Item) Source #
Turn a path on the rawModel into the corresponding item that we can use at the outermost model layer.
addHistory :: Eq a => a -> [a] -> [a] Source #
Makes sure the list is max 5. This is probably not very efficient but we don't care, since it's a small list anyway.