hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Callbacks

Synopsis

Documentation

setGUICallbacks :: MyGUI -> IO () Source

Set callbacks for the whole gui, on hotkeys, events and stuff.

setViewCallbacks :: MyGUI -> MyView -> IO () Source

Set callbacks specific to a given view, on hotkeys, events and stuff.

closeTab :: MyGUI -> MyView -> IO () Source

Closes the current tab, but only if there is more than one tab.

del :: [Item] -> MyGUI -> MyView -> IO () Source

Supposed to be used with withRows. Deletes a file or directory.

moveInit :: [Item] -> MyGUI -> MyView -> IO () Source

Initializes a file move operation.

copyInit :: [Item] -> MyGUI -> MyView -> IO () Source

Supposed to be used with withRows. Initializes a file copy operation.

operationFinal :: MyGUI -> MyView -> Maybe Item -> IO () Source

Finalizes a file operation, such as copy or move.

newFile :: MyGUI -> MyView -> IO () Source

Create a new file.

newDir :: MyGUI -> MyView -> IO () Source

Create a new directory.

renameF :: [Item] -> MyGUI -> MyView -> IO () Source

urlGoTo :: MyGUI -> MyView -> IO () Source

Go to the url given at the urlBar and visualize it in the given treeView.

If the url is invalid, does nothing.

execute :: [Item] -> MyGUI -> MyView -> IO () Source

Execute a given file.

open :: [Item] -> MyGUI -> MyView -> IO () Source

Supposed to be used with withRows. Opens a file or directory.

upDir :: MyGUI -> MyView -> IO () Source

Go up one directory and visualize it in the treeView.

goHistoryBack :: MyGUI -> MyView -> IO (Path Abs) Source

Go "back" in the history.

goHistoryForward :: MyGUI -> MyView -> IO (Path Abs) Source

Go "forward" in the history.

mkHistoryMenuB :: MyGUI -> MyView -> [Path Abs] -> IO Menu Source

Show backwards history in a drop-down menu, depending on the input.

mkHistoryMenuF :: MyGUI -> MyView -> [Path Abs] -> IO Menu Source

Show forward history in a drop-down menu, depending on the input.

showPopup :: MyGUI -> MyView -> TimeStamp -> IO () Source

TODO: hopefully this does not leak