From 2f9426b1dd70a6252a44a498e6999d67f8c2cadf Mon Sep 17 00:00:00 2001 From: travis-ci Date: Wed, 1 Jun 2016 22:20:10 +0000 Subject: [PATCH] Lastest docs updated travis build: 21 commit: 244a58d8c23280e9b64f533832e294f19afd5b6e auto-pushed to gh-pages --- HSFM-FileSystem-FileType.html | 30 +- HSFM-FileSystem-UtilTypes.html | 8 +- HSFM-GUI-Glib-GlibString.html | 4 +- HSFM-GUI-Gtk-Callbacks-Utils.html | 6 +- HSFM-GUI-Gtk-Callbacks.html | 6 +- HSFM-GUI-Gtk-Data.html | 8 +- HSFM-GUI-Gtk-Dialogs.html | 10 +- HSFM-GUI-Gtk-Errors.html | 4 +- HSFM-GUI-Gtk-Icons.html | 6 +- HSFM-GUI-Gtk-MyGUI.html | 4 +- HSFM-GUI-Gtk-MyView.html | 17 +- HSFM-GUI-Gtk-Utils.html | 16 +- HSFM-Utils-IO.html | 4 +- HSFM-Utils-MyPrelude.html | 6 +- Main.html | 4 +- Paths_hsfm.html | 4 +- doc-index-95.html | 4 +- doc-index-A.html | 4 +- doc-index-All.html | 4 +- doc-index-B.html | 4 +- doc-index-C.html | 4 +- doc-index-D.html | 4 +- doc-index-E.html | 4 +- doc-index-F.html | 4 +- doc-index-G.html | 4 +- doc-index-H.html | 4 +- doc-index-I.html | 4 +- doc-index-L.html | 4 +- doc-index-M.html | 4 +- doc-index-N.html | 4 +- doc-index-O.html | 4 +- doc-index-P.html | 4 +- doc-index-R.html | 4 +- doc-index-S.html | 4 +- doc-index-T.html | 4 +- doc-index-U.html | 4 +- doc-index-V.html | 4 +- doc-index-W.html | 4 +- doc-index.html | 4 +- frames.html | 2 +- haddock-util.js | 24 +- hsfm.haddock | Bin 46950 -> 45307 bytes index-frames.html | 2 +- index.html | 4 +- mini_HSFM-FileSystem-FileType.html | 2 +- mini_HSFM-FileSystem-UtilTypes.html | 2 +- mini_HSFM-GUI-Glib-GlibString.html | 2 +- mini_HSFM-GUI-Gtk-Callbacks-Utils.html | 2 +- mini_HSFM-GUI-Gtk-Callbacks.html | 2 +- mini_HSFM-GUI-Gtk-Data.html | 2 +- mini_HSFM-GUI-Gtk-Dialogs.html | 2 +- mini_HSFM-GUI-Gtk-Errors.html | 2 +- mini_HSFM-GUI-Gtk-Icons.html | 2 +- mini_HSFM-GUI-Gtk-MyGUI.html | 2 +- mini_HSFM-GUI-Gtk-MyView.html | 4 +- mini_HSFM-GUI-Gtk-Utils.html | 2 +- mini_HSFM-Utils-IO.html | 2 +- mini_HSFM-Utils-MyPrelude.html | 2 +- mini_Main.html | 2 +- mini_Paths_hsfm.html | 2 +- ocean.css | 66 ++- src/HSFM-GUI-Gtk-Callbacks-Utils.html | 185 +++--- src/HSFM-GUI-Gtk-Callbacks.html | 4 +- src/HSFM-GUI-Gtk-MyView.html | 790 ++++++++++++------------- 64 files changed, 646 insertions(+), 694 deletions(-) diff --git a/HSFM-FileSystem-FileType.html b/HSFM-FileSystem-FileType.html index 5ac8e84..f7b6299 100644 --- a/HSFM-FileSystem-FileType.html +++ b/HSFM-FileSystem-FileType.html @@ -1,4 +1,4 @@ -HSFM.FileSystem.FileType

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.FileSystem.FileType

Description

This module provides a data type for representing directories/files @@ -10,27 +10,27 @@ window.onload = function () {pageLoad();setSynopsis("mini_HSFM-FileSystem-FileTy happening on filesystem level.

If you interact with low-level libraries, you must not pattern match on the `File a` type. Instead, you should only use the saved path and make no assumptions about the file the path might or - might not point to.

Synopsis

Documentation

data File a Source

The String in the path field is always a full path. + might not point to.

Synopsis

Documentation

data File a Source #

The String in the path field is always a full path. The free type variable is used in the File/Dir constructor and can hold Handles, Strings representing a file's contents or anything else you can - think of. We catch any IO errors in the Failed constructor.

Constructors

Failed 

Fields

path :: !(Path Abs)
 
err :: IOError
 
Dir 

Fields

path :: !(Path Abs)
 
fvar :: a
 
RegFile 

Fields

path :: !(Path Abs)
 
fvar :: a
 
SymLink 

Fields

path :: !(Path Abs)
 
fvar :: a
 
sdest :: File a

symlink madness, - we need to know where it points to

rawdest :: !ByteString
 
BlockDev 

Fields

path :: !(Path Abs)
 
fvar :: a
 
CharDev 

Fields

path :: !(Path Abs)
 
fvar :: a
 
NamedPipe 

Fields

path :: !(Path Abs)
 
fvar :: a
 
Socket 

Fields

path :: !(Path Abs)
 
fvar :: a
 

Instances

Eq a => Eq (File a) Source 
Ord (File FileInfo) Source

First compare constructors: Failed < Dir < File... + think of. We catch any IO errors in the Failed constructor.

Constructors

Failed 

Fields

Dir 

Fields

RegFile 

Fields

SymLink 

Fields

BlockDev 

Fields

CharDev 

Fields

NamedPipe 

Fields

Socket 

Fields

Instances

Eq a => Eq (File a) Source # 

Methods

(==) :: File a -> File a -> Bool #

(/=) :: File a -> File a -> Bool #

Ord (File FileInfo) Source #

First compare constructors: Failed < Dir < File... Then compare name... - Then compare free variable parameter of File constructors

Show a => Show (File a) Source 

data FileInfo Source #

Low-level file information.

Instances

Eq FileInfo Source # 
Ord FileInfo Source # 
Show FileInfo Source # 
Ord (File FileInfo) Source #

First compare constructors: Failed < Dir < File... Then compare name... - Then compare free variable parameter of File constructors

pattern FileLike :: File FileInfo -> File FileInfo Source

Matches on any non-directory kind of files, excluding symlinks.

pattern DirList :: () => (Functor t, Foldable t) => t (File FileInfo) -> t (File FileInfo) Source

Matches a list of directories or symlinks pointing to directories.

pattern FileLikeList :: () => (Functor t, Foldable t) => t (File FileInfo) -> t (File FileInfo) Source

Matches a list of any non-directory kind of files or symlinks - pointing to such.

pattern FileLikeSym :: File FileInfo -> File FileInfo Source

Matches on symlinks pointing to file-like files only.

pattern BrokenSymlink :: File FileInfo -> File FileInfo Source

Matches on broken symbolic links.

pattern DirOrSym :: File FileInfo -> File FileInfo Source

Matches on directories or symlinks pointing to directories. + Then compare free variable parameter of File constructors

pattern FileLike :: File FileInfo -> File FileInfo Source #

Matches on any non-directory kind of files, excluding symlinks.

pattern DirList :: forall t. (Foldable t, Functor t) => t (File FileInfo) -> t (File FileInfo) Source #

Matches a list of directories or symlinks pointing to directories.

pattern FileLikeList :: forall t. (Foldable t, Functor t) => t (File FileInfo) -> t (File FileInfo) Source #

Matches a list of any non-directory kind of files or symlinks + pointing to such.

pattern FileLikeSym :: File FileInfo -> File FileInfo Source #

Matches on symlinks pointing to file-like files only.

pattern BrokenSymlink :: File FileInfo -> File FileInfo Source #

Matches on broken symbolic links.

pattern DirOrSym :: File FileInfo -> File FileInfo Source #

Matches on directories or symlinks pointing to directories. If the symlink is pointing to a symlink pointing to a directory, then it will return True, but also return the first element in the symlink- - chain, not the last.

pattern DirSym :: File FileInfo -> File FileInfo Source

Matches on symlinks pointing to directories only.

pattern FileLikeOrSym :: File FileInfo -> File FileInfo Source

Matches on any non-directory kind of files or symlinks pointing to + chain, not the last.

pattern DirSym :: File FileInfo -> File FileInfo Source #

Matches on symlinks pointing to directories only.

pattern FileLikeOrSym :: File FileInfo -> File FileInfo Source #

Matches on any non-directory kind of files or symlinks pointing to such. If the symlink is pointing to a symlink pointing to such a file, then it will return True, but also return the first element in the symlink- - chain, not the last.

readFile :: (Path Abs -> IO a) -> Path Abs -> IO (File a) Source

Reads a file or directory Path into an AnchoredFile, filling the free - variables via the given function.

readDirectoryContents Source

Arguments

:: (Path Abs -> IO a)

fills free a variable

-> Path Abs

path to read

-> IO [File a] 

Get the contents of a given directory and return them as a list - of AnchoredFile.

getContents :: (Path Abs -> IO a) -> File FileInfo -> IO [File a] Source

A variant of readDirectoryContents where the second argument - is a File. If a non-directory is passed returns an empty list.

goUp :: File FileInfo -> IO (File FileInfo) Source

Go up one directory in the filesystem hierarchy.

goUp' :: Path Abs -> IO (File FileInfo) Source

Go up one directory in the filesystem hierarchy.

anyFailed :: [File a] -> Bool Source

True if any Failed constructors in the tree.

successful :: [File a] -> Bool Source

True if there are no Failed constructors in the tree.

failed :: File a -> Bool Source

Returns true if argument is a Failed constructor.

failures :: [File a] -> [File a] Source

Returns a list of Failed constructors only.

getFileInfo :: Path Abs -> IO FileInfo Source

Gets all file information.

handleDT :: Path Abs -> IO (File a) -> IO (File a) Source

rethrowFailed :: IO (File a) -> IO (File a) Source

Carries out the action. If the action returns a file + chain, not the last.

readFile :: (Path Abs -> IO a) -> Path Abs -> IO (File a) Source #

Reads a file or directory Path into an AnchoredFile, filling the free + variables via the given function.

readDirectoryContents Source #

Arguments

:: (Path Abs -> IO a)

fills free a variable

-> Path Abs

path to read

-> IO [File a] 

Get the contents of a given directory and return them as a list + of AnchoredFile.

getContents :: (Path Abs -> IO a) -> File FileInfo -> IO [File a] Source #

A variant of readDirectoryContents where the second argument + is a File. If a non-directory is passed returns an empty list.

goUp :: File FileInfo -> IO (File FileInfo) Source #

Go up one directory in the filesystem hierarchy.

goUp' :: Path Abs -> IO (File FileInfo) Source #

Go up one directory in the filesystem hierarchy.

anyFailed :: [File a] -> Bool Source #

True if any Failed constructors in the tree.

successful :: [File a] -> Bool Source #

True if there are no Failed constructors in the tree.

failed :: File a -> Bool Source #

Returns true if argument is a Failed constructor.

failures :: [File a] -> [File a] Source #

Returns a list of Failed constructors only.

getFileInfo :: Path Abs -> IO FileInfo Source #

Gets all file information.

handleDT :: Path Abs -> IO (File a) -> IO (File a) Source #

rethrowFailed :: IO (File a) -> IO (File a) Source #

Carries out the action. If the action returns a file with a failed constructor, rethrows the IOError within. - Otherwise, returns the file unchanged.

isBrokenSymlink :: File FileInfo -> Bool Source

Checks if a symlink is broken by examining the constructor of the - symlink destination.

When called on a non-symlink, returns False.

packModTime :: File FileInfo -> String Source

Pack the modification time into a string.

packAccessTime :: File FileInfo -> String Source

Pack the modification time into a string.

packPermissions :: File FileInfo -> String Source

Pack the permissions into a string, similar to what "ls -l" does.

fromFreeVar :: Default d => (a -> d) -> File a -> d Source

Apply a function on the free variable. If there is no free variable - for the given constructor the value from the Default class is used.

getFreeVar :: File a -> Maybe a Source

Gets the free variable. Returns Nothing if the constructor is of Failed.

\ No newline at end of file + Otherwise, returns the file unchanged.

isBrokenSymlink :: File FileInfo -> Bool Source #

Checks if a symlink is broken by examining the constructor of the + symlink destination.

When called on a non-symlink, returns False.

packModTime :: File FileInfo -> String Source #

Pack the modification time into a string.

packAccessTime :: File FileInfo -> String Source #

Pack the modification time into a string.

epochToString :: EpochTime -> String Source #

packPermissions :: File FileInfo -> String Source #

Pack the permissions into a string, similar to what "ls -l" does.

packFileType :: File a -> String Source #

packLinkDestination :: File a -> Maybe ByteString Source #

fromFreeVar :: Default d => (a -> d) -> File a -> d Source #

Apply a function on the free variable. If there is no free variable + for the given constructor the value from the Default class is used.

getFPasStr :: File a -> String Source #

getFreeVar :: File a -> Maybe a Source #

Gets the free variable. Returns Nothing if the constructor is of Failed.

\ No newline at end of file diff --git a/HSFM-FileSystem-UtilTypes.html b/HSFM-FileSystem-UtilTypes.html index 9856129..5195e68 100644 --- a/HSFM-FileSystem-UtilTypes.html +++ b/HSFM-FileSystem-UtilTypes.html @@ -1,4 +1,4 @@ -HSFM.FileSystem.UtilTypes

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.FileSystem.UtilTypes

Description

This module provides high-level IO related file operations like @@ -13,6 +13,6 @@ window.onload = function () {pageLoad();setSynopsis("mini_HSFM-FileSystem-UtilTy the result is undefined if another process changes that context while the non-atomic operation is still happening. However, where possible, as few syscalls as possible are used and the underlying - exception handling is kept.

Synopsis

Documentation

data FileOperation Source

Data type describing file operations. - Useful to build up a list of operations or delay operations.

Constructors

FCopy Copy 
FMove Move 
FDelete [Path Abs] 
FOpen (Path Abs) 
FExecute (Path Abs) [ByteString] 
None 

data Copy Source

Data type describing partial or complete file copy operation.

Constructors

PartialCopy [Path Abs] 
Copy [Path Abs] (Path Abs) 

data Move Source

Data type describing partial or complete file move operation.

Constructors

PartialMove [Path Abs] 
Move [Path Abs] (Path Abs) 

data FCollisonMode Source

Collision modes that describe the behavior in case a file collision - happens.

Constructors

Strict

fail if the target already exists

Overwrite 
OverwriteAll 
Skip 
Rename (Path Fn) 
\ No newline at end of file + exception handling is kept.

Synopsis

Documentation

data FileOperation Source #

Data type describing file operations. + Useful to build up a list of operations or delay operations.

Constructors

FCopy Copy 
FMove Move 
FDelete [Path Abs] 
FOpen (Path Abs) 
FExecute (Path Abs) [ByteString] 
None 

data Copy Source #

Data type describing partial or complete file copy operation.

Constructors

PartialCopy [Path Abs] 
Copy [Path Abs] (Path Abs) 

data Move Source #

Data type describing partial or complete file move operation.

Constructors

PartialMove [Path Abs] 
Move [Path Abs] (Path Abs) 

data FCollisonMode Source #

Collision modes that describe the behavior in case a file collision + happens.

Constructors

Strict

fail if the target already exists

Overwrite 
OverwriteAll 
Skip 
Rename (Path Fn) 
\ No newline at end of file diff --git a/HSFM-GUI-Glib-GlibString.html b/HSFM-GUI-Glib-GlibString.html index 0ab8ee2..bdd27ac 100644 --- a/HSFM-GUI-Glib-GlibString.html +++ b/HSFM-GUI-Glib-GlibString.html @@ -1,4 +1,4 @@ -HSFM.GUI.Glib.GlibString

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Glib.GlibString

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Glib.GlibString

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Callbacks-Utils.html b/HSFM-GUI-Gtk-Callbacks-Utils.html index bc2e13f..782304b 100644 --- a/HSFM-GUI-Gtk-Callbacks-Utils.html +++ b/HSFM-GUI-Gtk-Callbacks-Utils.html @@ -1,5 +1,5 @@ -HSFM.GUI.Gtk.Callbacks.Utils

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Callbacks.Utils

Synopsis

Documentation

doFileOperation :: FileOperation -> IO () Source

Carries out a file operation with the appropriate error handling - allowing the user to react to various exceptions with further input.

_doFileOperation :: [Path b1] -> Path Abs -> (Path b1 -> Path Abs -> IO b) -> (Path b1 -> Path Abs -> IO a) -> IO () -> IO () Source

goDir Source

Arguments

:: Bool

whether to update the history

-> MyGUI 
-> MyView 
-> Item 
-> IO () 

Helper that is invoked for any directory change operations.

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Callbacks.Utils

Synopsis

Documentation

doFileOperation :: FileOperation -> IO () Source #

Carries out a file operation with the appropriate error handling + allowing the user to react to various exceptions with further input.

_doFileOperation :: [Path b1] -> Path Abs -> (Path b1 -> Path Abs -> IO b) -> (Path b1 -> Path Abs -> IO a) -> IO () -> IO () Source #

goDir Source #

Arguments

:: Bool

whether to update the history

-> MyGUI 
-> MyView 
-> Item 
-> IO () 

Helper that is invoked for any directory change operations.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Callbacks.html b/HSFM-GUI-Gtk-Callbacks.html index 0055dab..1bf38e8 100644 --- a/HSFM-GUI-Gtk-Callbacks.html +++ b/HSFM-GUI-Gtk-Callbacks.html @@ -1,5 +1,5 @@ -HSFM.GUI.Gtk.Callbacks

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.

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

Go "back" in the history.

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

Go "forth" in the history.

\ No newline at end of file +

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.

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

Go "back" in the history.

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

Go "forth" in the history.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Data.html b/HSFM-GUI-Gtk-Data.html index 98a87fd..32bcfc6 100644 --- a/HSFM-GUI-Gtk-Data.html +++ b/HSFM-GUI-Gtk-Data.html @@ -1,8 +1,8 @@ -HSFM.GUI.Gtk.Data

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Data

Synopsis

Documentation

data MyGUI Source

Monolithic object passed to various GUI functions in order +

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Data

Synopsis

Documentation

data MyGUI Source #

Monolithic object passed to various GUI functions in order to keep the API stable and not alter the parameters too much. This only holds GUI widgets that are needed to be read during - runtime.

Constructors

MkMyGUI 

Fields

rootWin :: !Window

main Window

menubar :: !MenuBar
 
statusBar :: !Statusbar
 
clearStatusBar :: !Button
 
notebook :: !Notebook
 
fprop :: !FilePropertyGrid
 
settings :: !(TVar FMSettings)
 
operationBuffer :: !(TVar FileOperation)
 

data MyView Source

This describes the contents of the current view and is separated from MyGUI, - because we might want to have multiple views.

Constructors

MkMyView 

Fields

view :: !(TVar FMView)
 
cwd :: !(MVar Item)
 
rawModel :: !(TVar (ListStore Item))
 
sortedModel :: !(TVar (TypedTreeModelSort Item))
 
filteredModel :: !(TVar (TypedTreeModelFilter Item))
 
inotify :: !(MVar INotify)
 
history :: !(TVar ([Path Abs], [Path Abs]))
 
scroll :: !ScrolledWindow
 
viewBox :: !Box
 
rcmenu :: !RightClickMenu
 
upViewB :: !Button
 
homeViewB :: !Button
 
refreshViewB :: !Button
 
urlBar :: !Entry
 

data MenuBar Source

Constructors

MkMenuBar 

Fields

menubarFileQuit :: !ImageMenuItem
 
menubarHelpAbout :: !ImageMenuItem
 

data RightClickMenu Source

Constructors

MkRightClickMenu 

Fields

rcMenu :: !Menu
 
rcFileOpen :: !ImageMenuItem
 
rcFileExecute :: !ImageMenuItem
 
rcFileNewRegFile :: !ImageMenuItem
 
rcFileNewDir :: !ImageMenuItem
 
rcFileCut :: !ImageMenuItem
 
rcFileCopy :: !ImageMenuItem
 
rcFileRename :: !ImageMenuItem
 
rcFilePaste :: !ImageMenuItem
 
rcFileDelete :: !ImageMenuItem
 
rcFileProperty :: !ImageMenuItem
 
rcFileIconView :: !ImageMenuItem
 
rcFileTreeView :: !ImageMenuItem
 

data FilePropertyGrid Source

Constructors

MkFilePropertyGrid 

Fields

fpropGrid :: !Grid
 
fpropFnEntry :: !Entry
 
fpropLocEntry :: !Entry
 
fpropTsEntry :: !Entry
 
fpropModEntry :: !Entry
 
fpropAcEntry :: !Entry
 
fpropFTEntry :: !Entry
 
fpropPermEntry :: !Entry
 
fpropLDEntry :: !Entry
 

data FMSettings Source

FM-wide settings.

Constructors

MkFMSettings 

Fields

showHidden :: !Bool
 
isLazy :: !Bool
 
iconSize :: !Int
 

data FMView Source

Constructors

FMTreeView !TreeView 
FMIconView !IconView 
\ No newline at end of file + runtime.

Constructors

MkMyGUI 

Fields

data MyView Source #

This describes the contents of the current view and is separated from MyGUI, + because we might want to have multiple views.

Constructors

MkMyView 

Fields

data MenuBar Source #

Constructors

MkMenuBar 

Fields

data RightClickMenu Source #

Constructors

MkRightClickMenu 

Fields

data FilePropertyGrid Source #

Constructors

MkFilePropertyGrid 

Fields

data FMSettings Source #

FM-wide settings.

Constructors

MkFMSettings 

Fields

data FMView Source #

Constructors

FMTreeView !TreeView 
FMIconView !IconView 
\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Dialogs.html b/HSFM-GUI-Gtk-Dialogs.html index eb3608f..488d513 100644 --- a/HSFM-GUI-Gtk-Dialogs.html +++ b/HSFM-GUI-Gtk-Dialogs.html @@ -1,7 +1,7 @@ -HSFM.GUI.Gtk.Dialogs

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Dialogs

Documentation

showErrorDialog :: String -> IO () Source

Pops up an error Dialog with the given String.

showConfirmationDialog :: String -> IO Bool Source

Asks the user for confirmation and returns True/False.

showAboutDialog :: IO () Source

Shows the about dialog from the help menu.

withConfirmationDialog :: String -> IO () -> IO () Source

Carry out an IO action with a confirmation dialog. - If the user presses No, then do nothing.

withErrorDialog :: IO a -> IO () Source

Execute the given IO action. If the action throws exceptions, - visualize them via showErrorDialog.

textInputDialog Source

Arguments

:: GlibString string 
=> string

window title

-> string

initial text in input widget

-> IO (Maybe String) 

Asks the user which directory copy mode he wants via dialog popup - and returns DirCopyMode.

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Dialogs

Documentation

showErrorDialog :: String -> IO () Source #

Pops up an error Dialog with the given String.

showConfirmationDialog :: String -> IO Bool Source #

Asks the user for confirmation and returns True/False.

showAboutDialog :: IO () Source #

Shows the about dialog from the help menu.

withConfirmationDialog :: String -> IO () -> IO () Source #

Carry out an IO action with a confirmation dialog. + If the user presses No, then do nothing.

withErrorDialog :: IO a -> IO () Source #

Execute the given IO action. If the action throws exceptions, + visualize them via showErrorDialog.

textInputDialog Source #

Arguments

:: GlibString string 
=> string

window title

-> string

initial text in input widget

-> IO (Maybe String) 

Asks the user which directory copy mode he wants via dialog popup + and returns DirCopyMode.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Errors.html b/HSFM-GUI-Gtk-Errors.html index 1aaf1fb..d53f6ba 100644 --- a/HSFM-GUI-Gtk-Errors.html +++ b/HSFM-GUI-Gtk-Errors.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Errors

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.GUI.Gtk.Errors

Description

Provides error handling for Gtk.

\ No newline at end of file +

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.GUI.Gtk.Errors

Description

Provides error handling for Gtk.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Icons.html b/HSFM-GUI-Gtk-Icons.html index a38edd3..b294a00 100644 --- a/HSFM-GUI-Gtk-Icons.html +++ b/HSFM-GUI-Gtk-Icons.html @@ -1,5 +1,5 @@ -HSFM.GUI.Gtk.Icons

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Icons

Description

Module for Gtk icon handling.

Synopsis

Documentation

data GtkIcon Source

Icon type we use in our GUI.

Constructors

IFolder 
SymL 
IFile 
IError 

getIcon Source

Arguments

:: GtkIcon

icon we want

-> IconTheme

which icon theme to get the icon from

-> Int

requested icon size

-> IO Pixbuf 

Gets an icon from the default icon theme and falls back to project-icons - if not found. The requested icon size is not guaranteed.

getSymlinkIcon :: GtkIcon -> IconTheme -> Int -> IO Pixbuf Source

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Icons

Description

Module for Gtk icon handling.

Synopsis

Documentation

data GtkIcon Source #

Icon type we use in our GUI.

Constructors

IFolder 
SymL 
IFile 
IError 

getIcon Source #

Arguments

:: GtkIcon

icon we want

-> IconTheme

which icon theme to get the icon from

-> Int

requested icon size

-> IO Pixbuf 

Gets an icon from the default icon theme and falls back to project-icons + if not found. The requested icon size is not guaranteed.

getSymlinkIcon :: GtkIcon -> IconTheme -> Int -> IO Pixbuf Source #

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-MyGUI.html b/HSFM-GUI-Gtk-MyGUI.html index 05333cf..1235750 100644 --- a/HSFM-GUI-Gtk-MyGUI.html +++ b/HSFM-GUI-Gtk-MyGUI.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.MyGUI

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.MyGUI

Synopsis

Documentation

createMyGUI :: IO MyGUI Source

Set up the GUI. This only creates the permanent widgets.

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.MyGUI

Synopsis

Documentation

createMyGUI :: IO MyGUI Source #

Set up the GUI. This only creates the permanent widgets.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-MyView.html b/HSFM-GUI-Gtk-MyView.html index 7f79b9a..8eae4a1 100644 --- a/HSFM-GUI-Gtk-MyView.html +++ b/HSFM-GUI-Gtk-MyView.html @@ -1,15 +1,10 @@ -HSFM.GUI.Gtk.MyView

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.MyView

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 +

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.MyView

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.

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

Constructs the visible View with the current underlying mutable models, + 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.

\ No newline at end of file + the actual models.

\ No newline at end of file diff --git a/HSFM-GUI-Gtk-Utils.html b/HSFM-GUI-Gtk-Utils.html index 910aa2e..50481c6 100644 --- a/HSFM-GUI-Gtk-Utils.html +++ b/HSFM-GUI-Gtk-Utils.html @@ -1,11 +1,11 @@ -HSFM.GUI.Gtk.Utils

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Utils

Synopsis

Documentation

getSelectedItems :: MyGUI -> MyView -> IO [Item] Source

Gets the currently selected item of the treeView, if any.

withItems Source

Arguments

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

action to carry out

-> IO () 

Carry out an action on the currently selected item.

If there is no item selected, does nothing.

fileListStore Source

Arguments

:: Item

current dir

-> MyView 
-> IO (ListStore Item) 

Create the ListStore of files/directories from the current directory. +

Safe HaskellNone
LanguageHaskell2010

HSFM.GUI.Gtk.Utils

Synopsis

Documentation

getSelectedItems :: MyGUI -> MyView -> IO [Item] Source #

Gets the currently selected item of the treeView, if any.

withItems Source #

Arguments

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

action to carry out

-> IO () 

Carry out an action on the currently selected item.

If there is no item selected, does nothing.

fileListStore Source #

Arguments

:: Item

current dir

-> MyView 
-> IO (ListStore Item) 

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.

\ No newline at end of file + 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.

\ No newline at end of file diff --git a/HSFM-Utils-IO.html b/HSFM-Utils-IO.html index 2d0d002..a9b63bb 100644 --- a/HSFM-Utils-IO.html +++ b/HSFM-Utils-IO.html @@ -1,4 +1,4 @@ -HSFM.Utils.IO

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.Utils.IO

Description

Random and general IO utilities.

Synopsis

Documentation

writeTVarIO :: TVar a -> a -> IO () Source

Atomically write a TVar.

modifyTVarIO :: TVar a -> (a -> a) -> IO () Source

Atomically modify a TVar.

\ No newline at end of file +

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

HSFM.Utils.IO

Description

Random and general IO utilities.

Synopsis

Documentation

writeTVarIO :: TVar a -> a -> IO () Source #

Atomically write a TVar.

modifyTVarIO :: TVar a -> (a -> a) -> IO () Source #

Atomically modify a TVar.

\ No newline at end of file diff --git a/HSFM-Utils-MyPrelude.html b/HSFM-Utils-MyPrelude.html index 35fbc10..817e36b 100644 --- a/HSFM-Utils-MyPrelude.html +++ b/HSFM-Utils-MyPrelude.html @@ -1,6 +1,6 @@ -HSFM.Utils.MyPrelude

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

HSFM.Utils.MyPrelude

Synopsis

Documentation

listIndices :: [a] -> [Int] Source

Turns any list into a list of the same length with the values +

Safe HaskellNone
LanguageHaskell2010

HSFM.Utils.MyPrelude

Synopsis

Documentation

listIndices :: [a] -> [Int] Source #

Turns any list into a list of the same length with the values being the indices. - E.g.: "abdasd" -> [0,1,2,3,4,5]

maybeD :: Default b => (a -> b) -> Maybe a -> b Source

A maybe flavor using the Default class.

\ No newline at end of file + E.g.: "abdasd" -> [0,1,2,3,4,5]

maybeD :: Default b => (a -> b) -> Maybe a -> b Source #

A maybe flavor using the Default class.

\ No newline at end of file diff --git a/Main.html b/Main.html index 326a22c..215f314 100644 --- a/Main.html +++ b/Main.html @@ -1,4 +1,4 @@ -Main

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

Main

Documentation

main :: IO () Source

\ No newline at end of file +

hsfm-gtk

Safe HaskellNone
LanguageHaskell2010

Main

Documentation

main :: IO () Source #

\ No newline at end of file diff --git a/Paths_hsfm.html b/Paths_hsfm.html index f20c1e6..0bd468a 100644 --- a/Paths_hsfm.html +++ b/Paths_hsfm.html @@ -1,4 +1,4 @@ -Paths_hsfm

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

Paths_hsfm

\ No newline at end of file +

hsfm-gtk

Safe HaskellSafe
LanguageHaskell2010

Paths_hsfm

\ No newline at end of file diff --git a/doc-index-95.html b/doc-index-95.html index 45cbc5e..ff7d273 100644 --- a/doc-index-95.html +++ b/doc-index-95.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - _)

hsfm-gtk

Index - _

_doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
\ No newline at end of file +

hsfm-gtk

Index - _

_doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
\ No newline at end of file diff --git a/doc-index-A.html b/doc-index-A.html index e8ed55b..85d80e8 100644 --- a/doc-index-A.html +++ b/doc-index-A.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - A)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-All.html b/doc-index-All.html index 354a244..f3de8c5 100644 --- a/doc-index-All.html +++ b/doc-index-All.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index)

hsfm-gtk

Index

accessTimeHSFM.FileSystem.FileType
accessTimeHiResHSFM.FileSystem.FileType
addHistoryHSFM.GUI.Gtk.Utils
anyFailedHSFM.FileSystem.FileType
BlockDevHSFM.FileSystem.FileType
BrokenSymlinkHSFM.FileSystem.FileType
brokenSymlinkHSFM.FileSystem.FileType
CharDevHSFM.FileSystem.FileType
clearStatusBarHSFM.GUI.Gtk.Data
closeTabHSFM.GUI.Gtk.Callbacks
comparingConstrHSFM.FileSystem.FileType
constructViewHSFM.GUI.Gtk.MyView
Copy 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
copyInitHSFM.GUI.Gtk.Callbacks
createIconViewHSFM.GUI.Gtk.MyView
createMyGUIHSFM.GUI.Gtk.MyGUI
createMyViewHSFM.GUI.Gtk.MyView
createTreeViewHSFM.GUI.Gtk.MyView
cwdHSFM.GUI.Gtk.Data
c_strlenHSFM.GUI.Glib.GlibString
delHSFM.GUI.Gtk.Callbacks
destroyViewHSFM.GUI.Gtk.MyView
deviceIDHSFM.FileSystem.FileType
DirHSFM.FileSystem.FileType
DirListHSFM.FileSystem.FileType
DirOrSymHSFM.FileSystem.FileType
DirSymHSFM.FileSystem.FileType
dirSymHSFM.FileSystem.FileType
doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
epochToStringHSFM.FileSystem.FileType
errHSFM.FileSystem.FileType
executeHSFM.GUI.Gtk.Callbacks
FailedHSFM.FileSystem.FileType
failedHSFM.FileSystem.FileType
failuresHSFM.FileSystem.FileType
FCollisonModeHSFM.FileSystem.UtilTypes
FCopyHSFM.FileSystem.UtilTypes
FDeleteHSFM.FileSystem.UtilTypes
FExecuteHSFM.FileSystem.UtilTypes
FileHSFM.FileSystem.FileType
fileCollisionDialogHSFM.GUI.Gtk.Dialogs
fileGroupHSFM.FileSystem.FileType
fileIDHSFM.FileSystem.FileType
FileInfo 
1 (Type/Class)HSFM.FileSystem.FileType
2 (Data Constructor)HSFM.FileSystem.FileType
FileLikeHSFM.FileSystem.FileType
fileLikeHSFM.FileSystem.FileType
FileLikeListHSFM.FileSystem.FileType
FileLikeOrSymHSFM.FileSystem.FileType
FileLikeSymHSFM.FileSystem.FileType
fileLikeSymHSFM.FileSystem.FileType
fileListStoreHSFM.GUI.Gtk.Utils
fileModeHSFM.FileSystem.FileType
FileOperationHSFM.FileSystem.UtilTypes
fileOwnerHSFM.FileSystem.FileType
FilePropertyGridHSFM.GUI.Gtk.Data
fileSizeHSFM.FileSystem.FileType
filteredModelHSFM.GUI.Gtk.Data
FMIconViewHSFM.GUI.Gtk.Data
FMoveHSFM.FileSystem.UtilTypes
FMSettingsHSFM.GUI.Gtk.Data
FMTreeViewHSFM.GUI.Gtk.Data
FMViewHSFM.GUI.Gtk.Data
fmViewToContainerHSFM.GUI.Gtk.Data
FOpenHSFM.FileSystem.UtilTypes
fpropHSFM.GUI.Gtk.Data
fpropAcEntryHSFM.GUI.Gtk.Data
fpropFnEntryHSFM.GUI.Gtk.Data
fpropFTEntryHSFM.GUI.Gtk.Data
fpropGridHSFM.GUI.Gtk.Data
fpropLDEntryHSFM.GUI.Gtk.Data
fpropLocEntryHSFM.GUI.Gtk.Data
fpropModEntryHSFM.GUI.Gtk.Data
fpropPermEntryHSFM.GUI.Gtk.Data
fpropTsEntryHSFM.GUI.Gtk.Data
fromFreeVarHSFM.FileSystem.FileType
fvarHSFM.FileSystem.FileType
getBinDirPaths_hsfm
getContentsHSFM.FileSystem.FileType
getCurrentDirHSFM.GUI.Gtk.Utils
getDataDirPaths_hsfm
getDataFileNamePaths_hsfm
getFileInfoHSFM.FileSystem.FileType
getFirstItemHSFM.GUI.Gtk.Utils
getFPasStrHSFM.FileSystem.FileType
getFreeVarHSFM.FileSystem.FileType
getIconHSFM.GUI.Gtk.Icons
getLibDirPaths_hsfm
getLibexecDirPaths_hsfm
getSelectedItemsHSFM.GUI.Gtk.Utils
getSelectedTreePathsHSFM.GUI.Gtk.Utils
getSymlinkIconHSFM.GUI.Gtk.Icons
getSysconfDirPaths_hsfm
goDirHSFM.GUI.Gtk.Callbacks.Utils
goHistoryNextHSFM.GUI.Gtk.Callbacks
goHistoryPrevHSFM.GUI.Gtk.Callbacks
goHomeHSFM.GUI.Gtk.Callbacks
goUpHSFM.FileSystem.FileType
goUp'HSFM.FileSystem.FileType
GtkExceptionHSFM.GUI.Gtk.Errors
GtkIconHSFM.GUI.Gtk.Icons
handleDTHSFM.FileSystem.FileType
historyHSFM.GUI.Gtk.Data
homeViewBHSFM.GUI.Gtk.Data
iconSizeHSFM.GUI.Gtk.Data
IErrorHSFM.GUI.Gtk.Icons
IFileHSFM.GUI.Gtk.Icons
IFolderHSFM.GUI.Gtk.Icons
inotifyHSFM.GUI.Gtk.Data
isBlockCHSFM.FileSystem.FileType
isBrokenSymlinkHSFM.FileSystem.FileType
isCharCHSFM.FileSystem.FileType
isDirCHSFM.FileSystem.FileType
isFileCHSFM.FileSystem.FileType
isLazyHSFM.GUI.Gtk.Data
isNamedCHSFM.FileSystem.FileType
isSocketCHSFM.FileSystem.FileType
isSymCHSFM.FileSystem.FileType
ItemHSFM.GUI.Gtk.Data
linkCountHSFM.FileSystem.FileType
listIndicesHSFM.Utils.MyPrelude
mainMain
maybeDHSFM.Utils.MyPrelude
MenuBarHSFM.GUI.Gtk.Data
menubarHSFM.GUI.Gtk.Data
menubarFileQuitHSFM.GUI.Gtk.Data
menubarHelpAboutHSFM.GUI.Gtk.Data
MkFilePropertyGridHSFM.GUI.Gtk.Data
MkFMSettingsHSFM.GUI.Gtk.Data
MkMenuBarHSFM.GUI.Gtk.Data
MkMyGUIHSFM.GUI.Gtk.Data
MkMyViewHSFM.GUI.Gtk.Data
MkRightClickMenuHSFM.GUI.Gtk.Data
modificationTimeHSFM.FileSystem.FileType
modificationTimeHiResHSFM.FileSystem.FileType
modifyTVarIOHSFM.Utils.IO
Move 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
moveInitHSFM.GUI.Gtk.Callbacks
MyGUIHSFM.GUI.Gtk.Data
MyViewHSFM.GUI.Gtk.Data
NamedPipeHSFM.FileSystem.FileType
newDirHSFM.GUI.Gtk.Callbacks
newFileHSFM.GUI.Gtk.Callbacks
newTabHSFM.GUI.Gtk.MyView
newTabHereHSFM.GUI.Gtk.Callbacks
NoneHSFM.FileSystem.UtilTypes
noNullPtrsHSFM.GUI.Glib.GlibString
notebookHSFM.GUI.Gtk.Data
openHSFM.GUI.Gtk.Callbacks
openTerminalHereHSFM.GUI.Gtk.Callbacks
operationBufferHSFM.GUI.Gtk.Data
operationFinalHSFM.GUI.Gtk.Callbacks
OverwriteHSFM.FileSystem.UtilTypes
OverwriteAllHSFM.FileSystem.UtilTypes
packAccessTimeHSFM.FileSystem.FileType
packFileTypeHSFM.FileSystem.FileType
packLinkDestinationHSFM.FileSystem.FileType
packModTimeHSFM.FileSystem.FileType
packPermissionsHSFM.FileSystem.FileType
PartialCopyHSFM.FileSystem.UtilTypes
PartialMoveHSFM.FileSystem.UtilTypes
pathHSFM.FileSystem.FileType
popStatusbarHSFM.GUI.Gtk.Utils
pushStatusBarHSFM.GUI.Gtk.Utils
rawdestHSFM.FileSystem.FileType
rawModelHSFM.GUI.Gtk.Data
rawPathToItemHSFM.GUI.Gtk.Utils
rawPathToIterHSFM.GUI.Gtk.Utils
rcFileCopyHSFM.GUI.Gtk.Data
rcFileCutHSFM.GUI.Gtk.Data
rcFileDeleteHSFM.GUI.Gtk.Data
rcFileExecuteHSFM.GUI.Gtk.Data
rcFileIconViewHSFM.GUI.Gtk.Data
rcFileNewDirHSFM.GUI.Gtk.Data
rcFileNewRegFileHSFM.GUI.Gtk.Data
rcFileOpenHSFM.GUI.Gtk.Data
rcFilePasteHSFM.GUI.Gtk.Data
rcFilePropertyHSFM.GUI.Gtk.Data
rcFileRenameHSFM.GUI.Gtk.Data
rcFileTreeViewHSFM.GUI.Gtk.Data
rcMenuHSFM.GUI.Gtk.Data
rcmenuHSFM.GUI.Gtk.Data
readDirectoryContentsHSFM.FileSystem.FileType
readFileHSFM.FileSystem.FileType
refreshViewHSFM.GUI.Gtk.MyView
refreshView'HSFM.GUI.Gtk.MyView
refreshViewBHSFM.GUI.Gtk.Data
RegFileHSFM.FileSystem.FileType
RenameHSFM.FileSystem.UtilTypes
renameDialogHSFM.GUI.Gtk.Dialogs
renameFHSFM.GUI.Gtk.Callbacks
rethrowFailedHSFM.FileSystem.FileType
RightClickMenuHSFM.GUI.Gtk.Data
rootWinHSFM.GUI.Gtk.Data
scrollHSFM.GUI.Gtk.Data
sdestHSFM.FileSystem.FileType
sdirHSFM.FileSystem.FileType
setGUICallbacksHSFM.GUI.Gtk.Callbacks
settingsHSFM.GUI.Gtk.Data
setViewCallbacksHSFM.GUI.Gtk.Callbacks
sfileLikeHSFM.FileSystem.FileType
showAboutDialogHSFM.GUI.Gtk.Dialogs
showConfirmationDialogHSFM.GUI.Gtk.Dialogs
showErrorDialogHSFM.GUI.Gtk.Dialogs
showFilePropertyDialogHSFM.GUI.Gtk.Dialogs
showHiddenHSFM.GUI.Gtk.Data
SkipHSFM.FileSystem.UtilTypes
SocketHSFM.FileSystem.FileType
sortedModelHSFM.GUI.Gtk.Data
specialDeviceIDHSFM.FileSystem.FileType
statusBarHSFM.GUI.Gtk.Data
statusChangeTimeHSFM.FileSystem.FileType
statusChangeTimeHiResHSFM.FileSystem.FileType
StrictHSFM.FileSystem.UtilTypes
successfulHSFM.FileSystem.FileType
switchViewHSFM.GUI.Gtk.MyView
SymLHSFM.GUI.Gtk.Icons
SymLinkHSFM.FileSystem.FileType
textInputDialogHSFM.GUI.Gtk.Dialogs
UnknownDialogButtonHSFM.GUI.Gtk.Errors
upDirHSFM.GUI.Gtk.Callbacks
upViewBHSFM.GUI.Gtk.Data
urlBarHSFM.GUI.Gtk.Data
urlGoToHSFM.GUI.Gtk.Callbacks
versionPaths_hsfm
viewHSFM.GUI.Gtk.Data
viewBoxHSFM.GUI.Gtk.Data
withConfirmationDialogHSFM.GUI.Gtk.Dialogs
withErrorDialogHSFM.GUI.Gtk.Dialogs
withItemsHSFM.GUI.Gtk.Utils
writeTVarIOHSFM.Utils.IO
_doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
\ No newline at end of file +

hsfm-gtk

Index

accessTimeHSFM.FileSystem.FileType
accessTimeHiResHSFM.FileSystem.FileType
addHistoryHSFM.GUI.Gtk.Utils
anyFailedHSFM.FileSystem.FileType
BlockDevHSFM.FileSystem.FileType
BrokenSymlinkHSFM.FileSystem.FileType
brokenSymlinkHSFM.FileSystem.FileType
CharDevHSFM.FileSystem.FileType
clearStatusBarHSFM.GUI.Gtk.Data
closeTabHSFM.GUI.Gtk.Callbacks
comparingConstrHSFM.FileSystem.FileType
constructViewHSFM.GUI.Gtk.MyView
Copy 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
copyInitHSFM.GUI.Gtk.Callbacks
createIconViewHSFM.GUI.Gtk.MyView
createMyGUIHSFM.GUI.Gtk.MyGUI
createMyViewHSFM.GUI.Gtk.MyView
createTreeViewHSFM.GUI.Gtk.MyView
cwdHSFM.GUI.Gtk.Data
c_strlenHSFM.GUI.Glib.GlibString
delHSFM.GUI.Gtk.Callbacks
destroyViewHSFM.GUI.Gtk.MyView
deviceIDHSFM.FileSystem.FileType
DirHSFM.FileSystem.FileType
DirListHSFM.FileSystem.FileType
DirOrSymHSFM.FileSystem.FileType
DirSymHSFM.FileSystem.FileType
dirSymHSFM.FileSystem.FileType
doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
epochToStringHSFM.FileSystem.FileType
errHSFM.FileSystem.FileType
executeHSFM.GUI.Gtk.Callbacks
FailedHSFM.FileSystem.FileType
failedHSFM.FileSystem.FileType
failuresHSFM.FileSystem.FileType
FCollisonModeHSFM.FileSystem.UtilTypes
FCopyHSFM.FileSystem.UtilTypes
FDeleteHSFM.FileSystem.UtilTypes
FExecuteHSFM.FileSystem.UtilTypes
FileHSFM.FileSystem.FileType
fileCollisionDialogHSFM.GUI.Gtk.Dialogs
fileGroupHSFM.FileSystem.FileType
fileIDHSFM.FileSystem.FileType
FileInfo 
1 (Type/Class)HSFM.FileSystem.FileType
2 (Data Constructor)HSFM.FileSystem.FileType
FileLikeHSFM.FileSystem.FileType
fileLikeHSFM.FileSystem.FileType
FileLikeListHSFM.FileSystem.FileType
FileLikeOrSymHSFM.FileSystem.FileType
FileLikeSymHSFM.FileSystem.FileType
fileLikeSymHSFM.FileSystem.FileType
fileListStoreHSFM.GUI.Gtk.Utils
fileModeHSFM.FileSystem.FileType
FileOperationHSFM.FileSystem.UtilTypes
fileOwnerHSFM.FileSystem.FileType
FilePropertyGridHSFM.GUI.Gtk.Data
fileSizeHSFM.FileSystem.FileType
filteredModelHSFM.GUI.Gtk.Data
FMIconViewHSFM.GUI.Gtk.Data
FMoveHSFM.FileSystem.UtilTypes
FMSettingsHSFM.GUI.Gtk.Data
FMTreeViewHSFM.GUI.Gtk.Data
FMViewHSFM.GUI.Gtk.Data
fmViewToContainerHSFM.GUI.Gtk.Data
FOpenHSFM.FileSystem.UtilTypes
fpropHSFM.GUI.Gtk.Data
fpropAcEntryHSFM.GUI.Gtk.Data
fpropFnEntryHSFM.GUI.Gtk.Data
fpropFTEntryHSFM.GUI.Gtk.Data
fpropGridHSFM.GUI.Gtk.Data
fpropLDEntryHSFM.GUI.Gtk.Data
fpropLocEntryHSFM.GUI.Gtk.Data
fpropModEntryHSFM.GUI.Gtk.Data
fpropPermEntryHSFM.GUI.Gtk.Data
fpropTsEntryHSFM.GUI.Gtk.Data
fromFreeVarHSFM.FileSystem.FileType
fvarHSFM.FileSystem.FileType
getBinDirPaths_hsfm
getContentsHSFM.FileSystem.FileType
getCurrentDirHSFM.GUI.Gtk.Utils
getDataDirPaths_hsfm
getDataFileNamePaths_hsfm
getFileInfoHSFM.FileSystem.FileType
getFirstItemHSFM.GUI.Gtk.Utils
getFPasStrHSFM.FileSystem.FileType
getFreeVarHSFM.FileSystem.FileType
getIconHSFM.GUI.Gtk.Icons
getLibDirPaths_hsfm
getLibexecDirPaths_hsfm
getSelectedItemsHSFM.GUI.Gtk.Utils
getSelectedTreePathsHSFM.GUI.Gtk.Utils
getSymlinkIconHSFM.GUI.Gtk.Icons
getSysconfDirPaths_hsfm
goDirHSFM.GUI.Gtk.Callbacks.Utils
goHistoryNextHSFM.GUI.Gtk.Callbacks
goHistoryPrevHSFM.GUI.Gtk.Callbacks
goHomeHSFM.GUI.Gtk.Callbacks
goUpHSFM.FileSystem.FileType
goUp'HSFM.FileSystem.FileType
GtkExceptionHSFM.GUI.Gtk.Errors
GtkIconHSFM.GUI.Gtk.Icons
handleDTHSFM.FileSystem.FileType
historyHSFM.GUI.Gtk.Data
homeViewBHSFM.GUI.Gtk.Data
iconSizeHSFM.GUI.Gtk.Data
IErrorHSFM.GUI.Gtk.Icons
IFileHSFM.GUI.Gtk.Icons
IFolderHSFM.GUI.Gtk.Icons
inotifyHSFM.GUI.Gtk.Data
isBlockCHSFM.FileSystem.FileType
isBrokenSymlinkHSFM.FileSystem.FileType
isCharCHSFM.FileSystem.FileType
isDirCHSFM.FileSystem.FileType
isFileCHSFM.FileSystem.FileType
isLazyHSFM.GUI.Gtk.Data
isNamedCHSFM.FileSystem.FileType
isSocketCHSFM.FileSystem.FileType
isSymCHSFM.FileSystem.FileType
ItemHSFM.GUI.Gtk.Data
linkCountHSFM.FileSystem.FileType
listIndicesHSFM.Utils.MyPrelude
mainMain
maybeDHSFM.Utils.MyPrelude
MenuBarHSFM.GUI.Gtk.Data
menubarHSFM.GUI.Gtk.Data
menubarFileQuitHSFM.GUI.Gtk.Data
menubarHelpAboutHSFM.GUI.Gtk.Data
MkFilePropertyGridHSFM.GUI.Gtk.Data
MkFMSettingsHSFM.GUI.Gtk.Data
MkMenuBarHSFM.GUI.Gtk.Data
MkMyGUIHSFM.GUI.Gtk.Data
MkMyViewHSFM.GUI.Gtk.Data
MkRightClickMenuHSFM.GUI.Gtk.Data
modificationTimeHSFM.FileSystem.FileType
modificationTimeHiResHSFM.FileSystem.FileType
modifyTVarIOHSFM.Utils.IO
Move 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
moveInitHSFM.GUI.Gtk.Callbacks
MyGUIHSFM.GUI.Gtk.Data
MyViewHSFM.GUI.Gtk.Data
NamedPipeHSFM.FileSystem.FileType
newDirHSFM.GUI.Gtk.Callbacks
newFileHSFM.GUI.Gtk.Callbacks
newTabHSFM.GUI.Gtk.MyView
newTabHereHSFM.GUI.Gtk.Callbacks
NoneHSFM.FileSystem.UtilTypes
noNullPtrsHSFM.GUI.Glib.GlibString
notebookHSFM.GUI.Gtk.Data
openHSFM.GUI.Gtk.Callbacks
openTerminalHereHSFM.GUI.Gtk.Callbacks
operationBufferHSFM.GUI.Gtk.Data
operationFinalHSFM.GUI.Gtk.Callbacks
OverwriteHSFM.FileSystem.UtilTypes
OverwriteAllHSFM.FileSystem.UtilTypes
packAccessTimeHSFM.FileSystem.FileType
packFileTypeHSFM.FileSystem.FileType
packLinkDestinationHSFM.FileSystem.FileType
packModTimeHSFM.FileSystem.FileType
packPermissionsHSFM.FileSystem.FileType
PartialCopyHSFM.FileSystem.UtilTypes
PartialMoveHSFM.FileSystem.UtilTypes
pathHSFM.FileSystem.FileType
popStatusbarHSFM.GUI.Gtk.Utils
pushStatusBarHSFM.GUI.Gtk.Utils
rawdestHSFM.FileSystem.FileType
rawModelHSFM.GUI.Gtk.Data
rawPathToItemHSFM.GUI.Gtk.Utils
rawPathToIterHSFM.GUI.Gtk.Utils
rcFileCopyHSFM.GUI.Gtk.Data
rcFileCutHSFM.GUI.Gtk.Data
rcFileDeleteHSFM.GUI.Gtk.Data
rcFileExecuteHSFM.GUI.Gtk.Data
rcFileIconViewHSFM.GUI.Gtk.Data
rcFileNewDirHSFM.GUI.Gtk.Data
rcFileNewRegFileHSFM.GUI.Gtk.Data
rcFileOpenHSFM.GUI.Gtk.Data
rcFilePasteHSFM.GUI.Gtk.Data
rcFilePropertyHSFM.GUI.Gtk.Data
rcFileRenameHSFM.GUI.Gtk.Data
rcFileTreeViewHSFM.GUI.Gtk.Data
rcMenuHSFM.GUI.Gtk.Data
rcmenuHSFM.GUI.Gtk.Data
readDirectoryContentsHSFM.FileSystem.FileType
readFileHSFM.FileSystem.FileType
refreshViewHSFM.GUI.Gtk.MyView
refreshViewBHSFM.GUI.Gtk.Data
RegFileHSFM.FileSystem.FileType
RenameHSFM.FileSystem.UtilTypes
renameDialogHSFM.GUI.Gtk.Dialogs
renameFHSFM.GUI.Gtk.Callbacks
rethrowFailedHSFM.FileSystem.FileType
RightClickMenuHSFM.GUI.Gtk.Data
rootWinHSFM.GUI.Gtk.Data
scrollHSFM.GUI.Gtk.Data
sdestHSFM.FileSystem.FileType
sdirHSFM.FileSystem.FileType
setGUICallbacksHSFM.GUI.Gtk.Callbacks
settingsHSFM.GUI.Gtk.Data
setViewCallbacksHSFM.GUI.Gtk.Callbacks
sfileLikeHSFM.FileSystem.FileType
showAboutDialogHSFM.GUI.Gtk.Dialogs
showConfirmationDialogHSFM.GUI.Gtk.Dialogs
showErrorDialogHSFM.GUI.Gtk.Dialogs
showFilePropertyDialogHSFM.GUI.Gtk.Dialogs
showHiddenHSFM.GUI.Gtk.Data
SkipHSFM.FileSystem.UtilTypes
SocketHSFM.FileSystem.FileType
sortedModelHSFM.GUI.Gtk.Data
specialDeviceIDHSFM.FileSystem.FileType
statusBarHSFM.GUI.Gtk.Data
statusChangeTimeHSFM.FileSystem.FileType
statusChangeTimeHiResHSFM.FileSystem.FileType
StrictHSFM.FileSystem.UtilTypes
successfulHSFM.FileSystem.FileType
switchViewHSFM.GUI.Gtk.MyView
SymLHSFM.GUI.Gtk.Icons
SymLinkHSFM.FileSystem.FileType
textInputDialogHSFM.GUI.Gtk.Dialogs
UnknownDialogButtonHSFM.GUI.Gtk.Errors
upDirHSFM.GUI.Gtk.Callbacks
upViewBHSFM.GUI.Gtk.Data
urlBarHSFM.GUI.Gtk.Data
urlGoToHSFM.GUI.Gtk.Callbacks
versionPaths_hsfm
viewHSFM.GUI.Gtk.Data
viewBoxHSFM.GUI.Gtk.Data
withConfirmationDialogHSFM.GUI.Gtk.Dialogs
withErrorDialogHSFM.GUI.Gtk.Dialogs
withItemsHSFM.GUI.Gtk.Utils
writeTVarIOHSFM.Utils.IO
_doFileOperationHSFM.GUI.Gtk.Callbacks.Utils
\ No newline at end of file diff --git a/doc-index-B.html b/doc-index-B.html index da5013f..410ef5a 100644 --- a/doc-index-B.html +++ b/doc-index-B.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - B)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-C.html b/doc-index-C.html index 73d956d..4d62096 100644 --- a/doc-index-C.html +++ b/doc-index-C.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - C)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-D.html b/doc-index-D.html index 58525b4..a11f81e 100644 --- a/doc-index-D.html +++ b/doc-index-D.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - D)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-E.html b/doc-index-E.html index 9ef69fb..c3685c1 100644 --- a/doc-index-E.html +++ b/doc-index-E.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - E)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-F.html b/doc-index-F.html index fe3a9b2..947a05a 100644 --- a/doc-index-F.html +++ b/doc-index-F.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - F)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-G.html b/doc-index-G.html index b6029c3..856f06c 100644 --- a/doc-index-G.html +++ b/doc-index-G.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - G)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-H.html b/doc-index-H.html index 7cad352..cd4f2cc 100644 --- a/doc-index-H.html +++ b/doc-index-H.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - H)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-I.html b/doc-index-I.html index 6d124f6..975e1e0 100644 --- a/doc-index-I.html +++ b/doc-index-I.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - I)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-L.html b/doc-index-L.html index 57f9a8f..e5715a5 100644 --- a/doc-index-L.html +++ b/doc-index-L.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - L)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-M.html b/doc-index-M.html index e3962c6..425ce5d 100644 --- a/doc-index-M.html +++ b/doc-index-M.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - M)

hsfm-gtk

Index - M

mainMain
maybeDHSFM.Utils.MyPrelude
MenuBarHSFM.GUI.Gtk.Data
menubarHSFM.GUI.Gtk.Data
menubarFileQuitHSFM.GUI.Gtk.Data
menubarHelpAboutHSFM.GUI.Gtk.Data
MkFilePropertyGridHSFM.GUI.Gtk.Data
MkFMSettingsHSFM.GUI.Gtk.Data
MkMenuBarHSFM.GUI.Gtk.Data
MkMyGUIHSFM.GUI.Gtk.Data
MkMyViewHSFM.GUI.Gtk.Data
MkRightClickMenuHSFM.GUI.Gtk.Data
modificationTimeHSFM.FileSystem.FileType
modificationTimeHiResHSFM.FileSystem.FileType
modifyTVarIOHSFM.Utils.IO
Move 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
moveInitHSFM.GUI.Gtk.Callbacks
MyGUIHSFM.GUI.Gtk.Data
MyViewHSFM.GUI.Gtk.Data
\ No newline at end of file +

hsfm-gtk

Index - M

mainMain
maybeDHSFM.Utils.MyPrelude
MenuBarHSFM.GUI.Gtk.Data
menubarHSFM.GUI.Gtk.Data
menubarFileQuitHSFM.GUI.Gtk.Data
menubarHelpAboutHSFM.GUI.Gtk.Data
MkFilePropertyGridHSFM.GUI.Gtk.Data
MkFMSettingsHSFM.GUI.Gtk.Data
MkMenuBarHSFM.GUI.Gtk.Data
MkMyGUIHSFM.GUI.Gtk.Data
MkMyViewHSFM.GUI.Gtk.Data
MkRightClickMenuHSFM.GUI.Gtk.Data
modificationTimeHSFM.FileSystem.FileType
modificationTimeHiResHSFM.FileSystem.FileType
modifyTVarIOHSFM.Utils.IO
Move 
1 (Type/Class)HSFM.FileSystem.UtilTypes
2 (Data Constructor)HSFM.FileSystem.UtilTypes
moveInitHSFM.GUI.Gtk.Callbacks
MyGUIHSFM.GUI.Gtk.Data
MyViewHSFM.GUI.Gtk.Data
\ No newline at end of file diff --git a/doc-index-N.html b/doc-index-N.html index 42434ba..bafb9a6 100644 --- a/doc-index-N.html +++ b/doc-index-N.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - N)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-O.html b/doc-index-O.html index 043b863..8dc9855 100644 --- a/doc-index-O.html +++ b/doc-index-O.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - O)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-P.html b/doc-index-P.html index 320d171..bb2b7cf 100644 --- a/doc-index-P.html +++ b/doc-index-P.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - P)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-R.html b/doc-index-R.html index df836fe..d2fe71f 100644 --- a/doc-index-R.html +++ b/doc-index-R.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - R)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-S.html b/doc-index-S.html index de6fa48..56b0d88 100644 --- a/doc-index-S.html +++ b/doc-index-S.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - S)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-T.html b/doc-index-T.html index 08ae88b..5885ec4 100644 --- a/doc-index-T.html +++ b/doc-index-T.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - T)

hsfm-gtk

Index - T

textInputDialogHSFM.GUI.Gtk.Dialogs
\ No newline at end of file +

hsfm-gtk

Index - T

textInputDialogHSFM.GUI.Gtk.Dialogs
\ No newline at end of file diff --git a/doc-index-U.html b/doc-index-U.html index bea30f1..7692db4 100644 --- a/doc-index-U.html +++ b/doc-index-U.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - U)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-V.html b/doc-index-V.html index e0dbc0d..5abda33 100644 --- a/doc-index-V.html +++ b/doc-index-V.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - V)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/doc-index-W.html b/doc-index-W.html index 8c25abe..84d802c 100644 --- a/doc-index-W.html +++ b/doc-index-W.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index - W)

hsfm-gtk

Index - W

withConfirmationDialogHSFM.GUI.Gtk.Dialogs
withErrorDialogHSFM.GUI.Gtk.Dialogs
withItemsHSFM.GUI.Gtk.Utils
writeTVarIOHSFM.Utils.IO
\ No newline at end of file +

hsfm-gtk

Index - W

withConfirmationDialogHSFM.GUI.Gtk.Dialogs
withErrorDialogHSFM.GUI.Gtk.Dialogs
withItemsHSFM.GUI.Gtk.Utils
writeTVarIOHSFM.Utils.IO
\ No newline at end of file diff --git a/doc-index.html b/doc-index.html index fecd2d8..50bf15e 100644 --- a/doc-index.html +++ b/doc-index.html @@ -1,4 +1,4 @@ -hsfm-gtk (Index)

hsfm-gtk

\ No newline at end of file +

hsfm-gtk

\ No newline at end of file diff --git a/frames.html b/frames.html index 1b4e38d..e86edb6 100644 --- a/frames.html +++ b/frames.html @@ -1,4 +1,4 @@ - diff --git a/haddock-util.js b/haddock-util.js index 9a6fccf..fc7743f 100644 --- a/haddock-util.js +++ b/haddock-util.js @@ -131,11 +131,11 @@ function perform_search(full) var text = document.getElementById("searchbox").value.toLowerCase(); if (text == last_search && !full) return; last_search = text; - + var table = document.getElementById("indexlist"); var status = document.getElementById("searchmsg"); var children = table.firstChild.childNodes; - + // first figure out the first node with the prefix var first = bisect(-1); var last = (first == -1 ? -1 : bisect(1)); @@ -166,7 +166,7 @@ function perform_search(full) status.innerHTML = ""; } - + function setclass(first, last, status) { for (var i = first; i <= last; i++) @@ -174,8 +174,8 @@ function perform_search(full) children[i].className = status; } } - - + + // do a binary search, treating 0 as ... // return either -1 (no 0's found) or location of most far match function bisect(dir) @@ -201,9 +201,9 @@ function perform_search(full) if (checkitem(i) == 0) return i; } return -1; - } - - + } + + // from an index, decide what the result is // 0 = match, -1 is lower, 1 is higher function checkitem(i) @@ -212,8 +212,8 @@ function perform_search(full) if (s == text) return 0; else return (s > text ? -1 : 1); } - - + + // from an index, get its string // this abstracts over alternates function getitem(i) @@ -229,7 +229,7 @@ function perform_search(full) } function setSynopsis(filename) { - if (parent.window.synopsis) { + if (parent.window.synopsis && parent.window.synopsis.location) { if (parent.window.synopsis.location.replace) { // In Firefox this avoids adding the change to the history. parent.window.synopsis.location.replace(filename); @@ -250,7 +250,7 @@ function addMenuItem(html) { function adjustForFrames() { var bodyCls; - + if (parent.location.href == window.location.href) { // not in frames, so add Frames button addMenuItem("Frames"); diff --git a/hsfm.haddock b/hsfm.haddock index d97a735210318539988674fde1573778ac6adf0c..560e0cd0b545911863f2db0e9b2f7c39da24e368 100644 GIT binary patch delta 5366 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 xZd}pWrH*-7H918S@bZo}Yp)3nhsfm-gtk \ No newline at end of file diff --git a/index.html b/index.html index 012e5d7..be35506 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -hsfm-gtk \ No newline at end of file + \ No newline at end of file diff --git a/mini_HSFM-FileSystem-FileType.html b/mini_HSFM-FileSystem-FileType.html index e60e734..4fc0402 100644 --- a/mini_HSFM-FileSystem-FileType.html +++ b/mini_HSFM-FileSystem-FileType.html @@ -1,4 +1,4 @@ -HSFM.FileSystem.FileType

HSFM.FileSystem.FileType

\ No newline at end of file diff --git a/mini_HSFM-FileSystem-UtilTypes.html b/mini_HSFM-FileSystem-UtilTypes.html index be9c06b..84c46c1 100644 --- a/mini_HSFM-FileSystem-UtilTypes.html +++ b/mini_HSFM-FileSystem-UtilTypes.html @@ -1,4 +1,4 @@ -HSFM.FileSystem.UtilTypes

HSFM.FileSystem.UtilTypes

\ No newline at end of file diff --git a/mini_HSFM-GUI-Glib-GlibString.html b/mini_HSFM-GUI-Glib-GlibString.html index 9b1e480..a2b8ef0 100644 --- a/mini_HSFM-GUI-Glib-GlibString.html +++ b/mini_HSFM-GUI-Glib-GlibString.html @@ -1,4 +1,4 @@ -HSFM.GUI.Glib.GlibString

HSFM.GUI.Glib.GlibString

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Callbacks-Utils.html b/mini_HSFM-GUI-Gtk-Callbacks-Utils.html index 757608e..65bf859 100644 --- a/mini_HSFM-GUI-Gtk-Callbacks-Utils.html +++ b/mini_HSFM-GUI-Gtk-Callbacks-Utils.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Callbacks.Utils

HSFM.GUI.Gtk.Callbacks.Utils

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Callbacks.html b/mini_HSFM-GUI-Gtk-Callbacks.html index 26a7f8d..41cf993 100644 --- a/mini_HSFM-GUI-Gtk-Callbacks.html +++ b/mini_HSFM-GUI-Gtk-Callbacks.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Callbacks

HSFM.GUI.Gtk.Callbacks

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Data.html b/mini_HSFM-GUI-Gtk-Data.html index 17e3806..7dd0054 100644 --- a/mini_HSFM-GUI-Gtk-Data.html +++ b/mini_HSFM-GUI-Gtk-Data.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Data

HSFM.GUI.Gtk.Data

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Dialogs.html b/mini_HSFM-GUI-Gtk-Dialogs.html index 9757927..9721e51 100644 --- a/mini_HSFM-GUI-Gtk-Dialogs.html +++ b/mini_HSFM-GUI-Gtk-Dialogs.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Dialogs

HSFM.GUI.Gtk.Dialogs

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Errors.html b/mini_HSFM-GUI-Gtk-Errors.html index 7a5fcfa..ec3eb12 100644 --- a/mini_HSFM-GUI-Gtk-Errors.html +++ b/mini_HSFM-GUI-Gtk-Errors.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Errors

HSFM.GUI.Gtk.Errors

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Icons.html b/mini_HSFM-GUI-Gtk-Icons.html index deeb044..6ac828f 100644 --- a/mini_HSFM-GUI-Gtk-Icons.html +++ b/mini_HSFM-GUI-Gtk-Icons.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Icons

HSFM.GUI.Gtk.Icons

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-MyGUI.html b/mini_HSFM-GUI-Gtk-MyGUI.html index 040cb5b..26915a8 100644 --- a/mini_HSFM-GUI-Gtk-MyGUI.html +++ b/mini_HSFM-GUI-Gtk-MyGUI.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.MyGUI

HSFM.GUI.Gtk.MyGUI

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-MyView.html b/mini_HSFM-GUI-Gtk-MyView.html index 4abcbc4..f1ac52a 100644 --- a/mini_HSFM-GUI-Gtk-MyView.html +++ b/mini_HSFM-GUI-Gtk-MyView.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.MyView

HSFM.GUI.Gtk.MyView

\ No newline at end of file +

HSFM.GUI.Gtk.MyView

\ No newline at end of file diff --git a/mini_HSFM-GUI-Gtk-Utils.html b/mini_HSFM-GUI-Gtk-Utils.html index ae6d4cd..c2800ea 100644 --- a/mini_HSFM-GUI-Gtk-Utils.html +++ b/mini_HSFM-GUI-Gtk-Utils.html @@ -1,4 +1,4 @@ -HSFM.GUI.Gtk.Utils

HSFM.GUI.Gtk.Utils

\ No newline at end of file diff --git a/mini_HSFM-Utils-IO.html b/mini_HSFM-Utils-IO.html index 65cebe9..24d67e2 100644 --- a/mini_HSFM-Utils-IO.html +++ b/mini_HSFM-Utils-IO.html @@ -1,4 +1,4 @@ -HSFM.Utils.IO

HSFM.Utils.IO

\ No newline at end of file diff --git a/mini_HSFM-Utils-MyPrelude.html b/mini_HSFM-Utils-MyPrelude.html index 9c12750..c04642c 100644 --- a/mini_HSFM-Utils-MyPrelude.html +++ b/mini_HSFM-Utils-MyPrelude.html @@ -1,4 +1,4 @@ -HSFM.Utils.MyPrelude

HSFM.Utils.MyPrelude

\ No newline at end of file diff --git a/mini_Main.html b/mini_Main.html index a722064..ad267a4 100644 --- a/mini_Main.html +++ b/mini_Main.html @@ -1,4 +1,4 @@ -Main

Main

\ No newline at end of file diff --git a/mini_Paths_hsfm.html b/mini_Paths_hsfm.html index 4293c78..c1b3ef7 100644 --- a/mini_Paths_hsfm.html +++ b/mini_Paths_hsfm.html @@ -1,4 +1,4 @@ -Paths_hsfm

Paths_hsfm

\ No newline at end of file diff --git a/ocean.css b/ocean.css index 1110b40..3ebb14d 100644 --- a/ocean.css +++ b/ocean.css @@ -41,6 +41,9 @@ a[href]:link { color: rgb(196,69,29); } a[href]:visited { color: rgb(171,105,84); } a[href]:hover { text-decoration:underline; } +a[href].def:link, a[href].def:visited { color: black; } +a[href].def:hover { color: rgb(78, 98, 114); } + /* @end */ /* @group Fonts & Sizes */ @@ -143,15 +146,23 @@ ul.links li a { background-image: url(plus.gif); background-repeat: no-repeat; } -p.caption.collapser, -p.caption.expander { - background-position: 0 0.4em; -} .collapser, .expander { padding-left: 14px; margin-left: -14px; cursor: pointer; } +p.caption.collapser, +p.caption.expander { + background-position: 0 0.4em; +} + +.instance.collapser, .instance.expander { + margin-left: 0px; + background-position: left center; + min-width: 9px; + min-height: 9px; +} + pre { padding: 0.25em; @@ -172,6 +183,9 @@ pre { .keyword { font-weight: normal; } .def { font-weight: bold; } +@media print { + #footer { display: none; } +} /* @end */ @@ -370,21 +384,16 @@ div#style-menu-holder { #interface h5 + div.top { margin-top: 1em; } -#interface p.src .link { +#interface .src .selflink, +#interface .src .link { float: right; color: #919191; - border-left: 1px solid #919191; background: #f0f0f0; padding: 0 0.5em 0.2em; - margin: 0 -0.5em 0 0.5em; + margin: 0 -0.5em 0 0; } - -#interface td.src .link { - float: right; - color: #919191; +#interface .src .selflink { border-left: 1px solid #919191; - background: #f0f0f0; - padding: 0 0.5em 0.2em; margin: 0 -0.5em 0 0.5em; } @@ -424,30 +433,31 @@ div#style-menu-holder { visibility: hidden; } -.subs dl { +.subs ul { + list-style: none; + display: table; margin: 0; } -.subs dt { - float: left; - clear: left; - display: block; - margin: 1px 0; +.subs ul li { + display: table-row; } -.subs dd { - float: right; - width: 90%; - display: block; +.subs ul li dfn { + display: table-cell; + font-style: normal; + font-weight: bold; + margin: 1px 0; + white-space: nowrap; +} + +.subs ul li > .doc { + display: table-cell; padding-left: 0.5em; margin-bottom: 0.5em; } -.subs dd.empty { - display: none; -} - -.subs dd p { +.subs ul li > .doc p { margin: 0; } diff --git a/src/HSFM-GUI-Gtk-Callbacks-Utils.html b/src/HSFM-GUI-Gtk-Callbacks-Utils.html index b76de8c..653b558 100644 --- a/src/HSFM-GUI-Gtk-Callbacks-Utils.html +++ b/src/HSFM-GUI-Gtk-Callbacks-Utils.html @@ -35,102 +35,93 @@ import Control.Monad ( - forM - , forM_ - , when - ) -import Control.Monad.IO.Class - ( - liftIO - ) -import Data.Maybe - ( - fromJust - ) -import GHC.IO.Exception - ( - IOErrorType(..) - ) -import Graphics.UI.Gtk -import qualified HPath as P -import HPath.IO -import HPath.IO.Errors -import HSFM.FileSystem.FileType -import HSFM.FileSystem.UtilTypes -import HSFM.GUI.Gtk.Data -import HSFM.GUI.Gtk.Dialogs -import HSFM.GUI.Gtk.MyView -import HSFM.GUI.Gtk.Utils -import HSFM.Utils.IO - ( - modifyTVarIO - ) -import Prelude hiding(readFile) -import Control.Concurrent.STM.TVar - ( - readTVarIO - ) - - - - --- |Carries out a file operation with the appropriate error handling --- allowing the user to react to various exceptions with further input. -doFileOperation :: FileOperation -> IO () -doFileOperation (FCopy (Copy (f':fs') to)) = - _doFileOperation (f':fs') to easyCopyOverwrite easyCopy - $ doFileOperation (FCopy $ Copy fs' to) -doFileOperation (FMove (Move (f':fs') to)) = - _doFileOperation (f':fs') to moveFileOverwrite moveFile - $ doFileOperation (FMove $ Move fs' to) -doFileOperation _ = return () - - -_doFileOperation :: [P.Path b1] - -> P.Path P.Abs - -> (P.Path b1 -> P.Path P.Abs -> IO b) - -> (P.Path b1 -> P.Path P.Abs -> IO a) - -> IO () - -> IO () -_doFileOperation [] _ _ _ _ = return () -_doFileOperation (f:fs) to mcOverwrite mc rest = do - toname <- P.basename f - let topath = to P.</> toname - reactOnError (mc f topath >> rest) - [(AlreadyExists , collisionAction fileCollisionDialog topath)] - [(FileDoesExist{}, collisionAction fileCollisionDialog topath) - ,(DirDoesExist{} , collisionAction fileCollisionDialog topath) - ,(SameFile{} , collisionAction renameDialog topath)] - where - collisionAction diag topath = do - mcm <- diag . P.fromAbs $ topath - forM_ mcm $ \cm -> case cm of - Overwrite -> mcOverwrite f topath >> rest - OverwriteAll -> forM_ (f:fs) $ \x -> do - toname' <- P.basename x - mcOverwrite x (to P.</> toname') - Skip -> rest - Rename newn -> mc f (to P.</> newn) >> rest - _ -> return () - - --- |Helper that is invoked for any directory change operations. -goDir :: Bool -- ^ whether to update the history - -> MyGUI - -> MyView - -> Item - -> IO () -goDir bhis mygui myview item = do - cdir <- getCurrentDir myview - when bhis $ modifyTVarIO (history myview) - (\(p, _) -> (path cdir `addHistory` p, [])) - refreshView' mygui myview item - - -- set notebook tab label - page <- notebookGetCurrentPage (notebook mygui) - child <- fromJust <$> notebookGetNthPage (notebook mygui) page - notebookSetTabLabelText (notebook mygui) child - (maybe (P.fromAbs $ path item) P.fromRel $ P.basename . path $ item) - + forM_ + , when + ) +import Data.Maybe + ( + fromJust + ) +import GHC.IO.Exception + ( + IOErrorType(..) + ) +import Graphics.UI.Gtk +import qualified HPath as P +import HPath.IO +import HPath.IO.Errors +import HSFM.FileSystem.FileType +import HSFM.FileSystem.UtilTypes +import HSFM.GUI.Gtk.Data +import HSFM.GUI.Gtk.Dialogs +import HSFM.GUI.Gtk.MyView +import HSFM.GUI.Gtk.Utils +import HSFM.Utils.IO + ( + modifyTVarIO + ) +import Prelude hiding(readFile) + + + + +-- |Carries out a file operation with the appropriate error handling +-- allowing the user to react to various exceptions with further input. +doFileOperation :: FileOperation -> IO () +doFileOperation (FCopy (Copy (f':fs') to)) = + _doFileOperation (f':fs') to easyCopyOverwrite easyCopy + $ doFileOperation (FCopy $ Copy fs' to) +doFileOperation (FMove (Move (f':fs') to)) = + _doFileOperation (f':fs') to moveFileOverwrite moveFile + $ doFileOperation (FMove $ Move fs' to) +doFileOperation _ = return () + + +_doFileOperation :: [P.Path b1] + -> P.Path P.Abs + -> (P.Path b1 -> P.Path P.Abs -> IO b) + -> (P.Path b1 -> P.Path P.Abs -> IO a) + -> IO () + -> IO () +_doFileOperation [] _ _ _ _ = return () +_doFileOperation (f:fs) to mcOverwrite mc rest = do + toname <- P.basename f + let topath = to P.</> toname + reactOnError (mc f topath >> rest) + [(AlreadyExists , collisionAction fileCollisionDialog topath)] + [(FileDoesExist{}, collisionAction fileCollisionDialog topath) + ,(DirDoesExist{} , collisionAction fileCollisionDialog topath) + ,(SameFile{} , collisionAction renameDialog topath)] + where + collisionAction diag topath = do + mcm <- diag . P.fromAbs $ topath + forM_ mcm $ \cm -> case cm of + Overwrite -> mcOverwrite f topath >> rest + OverwriteAll -> forM_ (f:fs) $ \x -> do + toname' <- P.basename x + mcOverwrite x (to P.</> toname') + Skip -> rest + Rename newn -> mc f (to P.</> newn) >> rest + _ -> return () + + +-- |Helper that is invoked for any directory change operations. +goDir :: Bool -- ^ whether to update the history + -> MyGUI + -> MyView + -> Item + -> IO () +goDir bhis mygui myview item = do + cdir <- getCurrentDir myview + when bhis $ modifyTVarIO (history myview) + (\(p, _) -> (path cdir `addHistory` p, [])) + refreshView mygui myview item + + -- set notebook tab label + page <- notebookGetCurrentPage (notebook mygui) + child <- fromJust <$> notebookGetNthPage (notebook mygui) page + notebookSetTabLabelText (notebook mygui) child + (maybe (P.fromAbs $ path item) P.fromRel $ P.basename . path $ item) + diff --git a/src/HSFM-GUI-Gtk-Callbacks.html b/src/HSFM-GUI-Gtk-Callbacks.html index ec690d4..4b9db6a 100644 --- a/src/HSFM-GUI-Gtk-Callbacks.html +++ b/src/HSFM-GUI-Gtk-Callbacks.html @@ -194,7 +194,7 @@ goHome mygui myview _ <- refreshViewB myview `on` buttonActivated $ do cdir <- liftIO $ getCurrentDir myview - refreshView' mygui myview cdir + refreshView mygui myview cdir -- key events _ <- viewBox myview `on` keyPressEvent $ tryEvent $ do @@ -203,7 +203,7 @@ cdir <- liftIO $ getCurrentDir myview liftIO $ modifyTVarIO (settings mygui) (\x -> x { showHidden = not . showHidden $ x}) - >> refreshView' mygui myview cdir + >> refreshView mygui myview cdir _ <- viewBox myview `on` keyPressEvent $ tryEvent $ do [Alt] <- eventModifier "Up" <- fmap glibToString eventKeyName diff --git a/src/HSFM-GUI-Gtk-MyView.html b/src/HSFM-GUI-Gtk-MyView.html index 9fa16fa..854f3f9 100644 --- a/src/HSFM-GUI-Gtk-MyView.html +++ b/src/HSFM-GUI-Gtk-MyView.html @@ -41,438 +41,394 @@ newTVarIO , readTVarIO ) -import Control.Exception +import Control.Monad ( - try - , SomeException + forM_ + , unless ) -import Control.Monad +import Data.Foldable ( - forM_ + for_ ) -import qualified Data.ByteString as BS -import Data.Foldable - ( - for_ +import Data.Maybe + ( + catMaybes + , fromJust ) -import Data.Maybe +import Data.String ( - catMaybes - , fromJust - ) -import Data.String - ( - fromString - ) -import HPath.IO.Errors - ( - canOpenDirectory - ) -import Graphics.UI.Gtk -import {-# SOURCE #-} HSFM.GUI.Gtk.Callbacks (setViewCallbacks) -import HPath - ( - Path - , Abs - ) -import qualified HPath as P -import HSFM.FileSystem.FileType -import HSFM.GUI.Glib.GlibString() -import HSFM.GUI.Gtk.Data -import HSFM.GUI.Gtk.Icons -import HSFM.GUI.Gtk.Utils -import HSFM.Utils.IO -import Paths_hsfm - ( - getDataFileName + fromString + ) +import Graphics.UI.Gtk +import {-# SOURCE #-} HSFM.GUI.Gtk.Callbacks (setViewCallbacks) +import qualified HPath as P +import HSFM.FileSystem.FileType +import HSFM.GUI.Glib.GlibString() +import HSFM.GUI.Gtk.Data +import HSFM.GUI.Gtk.Icons +import HSFM.GUI.Gtk.Utils +import HSFM.Utils.IO +import Paths_hsfm + ( + getDataFileName + ) +import Prelude hiding(readFile) +import System.INotify + ( + addWatch + , initINotify + , killINotify + , EventVariety(..) + ) +import System.IO.Error + ( + catchIOError + , ioError + , isUserError ) -import Prelude hiding(readFile) -import System.INotify - ( - addWatch - , initINotify - , killINotify - , EventVariety(..) - ) -import System.IO.Error - ( - catchIOError - , ioError - ) -import System.Posix.FilePath - ( - pathSeparator - , hiddenFile - ) - - - --- |Creates a new tab with its own view and refreshes the view. -newTab :: MyGUI -> IO FMView -> Item -> IO MyView -newTab mygui iofmv item = do - myview <- createMyView mygui iofmv - i <- notebookAppendPage (notebook mygui) (viewBox myview) - (maybe (P.fromAbs $ path item) P.fromRel $ P.basename $ path item) - mpage <- notebookGetNthPage (notebook mygui) i - forM_ mpage $ \page -> notebookSetTabReorderable (notebook mygui) - page - True - catchIOError (refreshView' mygui myview item) $ \e -> do - forM_ mpage $ \page -> do - refreshView mygui myview (P.parseAbs $ fromString "/") - notebookSetTabLabelText (notebook mygui) page "/" - ioError e - - return myview +import System.Posix.FilePath + ( + hiddenFile + ) + + + +-- |Creates a new tab with its own view and refreshes the view. +newTab :: MyGUI -> IO FMView -> Item -> IO MyView +newTab mygui iofmv item = do + myview <- createMyView mygui iofmv + i <- notebookAppendPage (notebook mygui) (viewBox myview) + (maybe (P.fromAbs $ path item) P.fromRel $ P.basename $ path item) + mpage <- notebookGetNthPage (notebook mygui) i + forM_ mpage $ \page -> notebookSetTabReorderable (notebook mygui) + page + True + catchIOError (refreshView mygui myview item) $ \e -> do + forM_ mpage $ \page -> do + file <- readFile getFileInfo . fromJust . P.parseAbs . fromString $ "/" + refreshView mygui myview file + notebookSetTabLabelText (notebook mygui) page "/" + unless (isUserError e) (ioError e) + + return myview + + +-- |Constructs the initial MyView object with a few dummy models. +-- It also initializes the callbacks. +createMyView :: MyGUI + -> IO FMView + -> IO MyView +createMyView mygui iofmv = do + inotify <- newEmptyMVar + history <- newTVarIO ([],[]) + + builder <- builderNew + builderAddFromFile builder =<< getDataFileName "data/Gtk/builder.xml" - --- |Constructs the initial MyView object with a few dummy models. --- It also initializes the callbacks. -createMyView :: MyGUI - -> IO FMView - -> IO MyView -createMyView mygui iofmv = do - inotify <- newEmptyMVar - history <- newTVarIO ([],[]) + -- create dummy models, so we don't have to use MVar + rawModel <- newTVarIO =<< listStoreNew [] + filteredModel <- newTVarIO =<< (\x -> treeModelFilterNew x []) + =<< readTVarIO rawModel + sortedModel <- newTVarIO =<< treeModelSortNewWithModel + =<< readTVarIO filteredModel + cwd <- newEmptyMVar + view' <- iofmv + view <- newTVarIO view' - builder <- builderNew - builderAddFromFile builder =<< getDataFileName "data/Gtk/builder.xml" - - -- create dummy models, so we don't have to use MVar - rawModel <- newTVarIO =<< listStoreNew [] - filteredModel <- newTVarIO =<< (\x -> treeModelFilterNew x []) - =<< readTVarIO rawModel - sortedModel <- newTVarIO =<< treeModelSortNewWithModel - =<< readTVarIO filteredModel - cwd <- newEmptyMVar - view' <- iofmv - view <- newTVarIO view' - - urlBar <- builderGetObject builder castToEntry - "urlBar" - rcMenu <- builderGetObject builder castToMenu - "rcMenu" - rcFileOpen <- builderGetObject builder castToImageMenuItem - "rcFileOpen" - rcFileExecute <- builderGetObject builder castToImageMenuItem - "rcFileExecute" - rcFileNewRegFile <- builderGetObject builder castToImageMenuItem - "rcFileNewRegFile" - rcFileNewDir <- builderGetObject builder castToImageMenuItem - "rcFileNewDir" - rcFileCut <- builderGetObject builder castToImageMenuItem - "rcFileCut" - rcFileCopy <- builderGetObject builder castToImageMenuItem - "rcFileCopy" - rcFileRename <- builderGetObject builder castToImageMenuItem - "rcFileRename" - rcFilePaste <- builderGetObject builder castToImageMenuItem - "rcFilePaste" - rcFileDelete <- builderGetObject builder castToImageMenuItem - "rcFileDelete" - rcFileProperty <- builderGetObject builder castToImageMenuItem - "rcFileProperty" - rcFileIconView <- builderGetObject builder castToImageMenuItem - "rcFileIconView" - rcFileTreeView <- builderGetObject builder castToImageMenuItem - "rcFileTreeView" - upViewB <- builderGetObject builder castToButton - "upViewB" - homeViewB <- builderGetObject builder castToButton - "homeViewB" - refreshViewB <- builderGetObject builder castToButton - "refreshViewB" - scroll <- builderGetObject builder castToScrolledWindow - "mainScroll" - viewBox <- builderGetObject builder castToBox - "viewBox" - - let rcmenu = MkRightClickMenu {..} - let myview = MkMyView {..} - - -- set the bindings - setViewCallbacks mygui myview - - -- add the treeview to the scroll container - let oview = fmViewToContainer view' - containerAdd scroll oview + urlBar <- builderGetObject builder castToEntry + "urlBar" + rcMenu <- builderGetObject builder castToMenu + "rcMenu" + rcFileOpen <- builderGetObject builder castToImageMenuItem + "rcFileOpen" + rcFileExecute <- builderGetObject builder castToImageMenuItem + "rcFileExecute" + rcFileNewRegFile <- builderGetObject builder castToImageMenuItem + "rcFileNewRegFile" + rcFileNewDir <- builderGetObject builder castToImageMenuItem + "rcFileNewDir" + rcFileCut <- builderGetObject builder castToImageMenuItem + "rcFileCut" + rcFileCopy <- builderGetObject builder castToImageMenuItem + "rcFileCopy" + rcFileRename <- builderGetObject builder castToImageMenuItem + "rcFileRename" + rcFilePaste <- builderGetObject builder castToImageMenuItem + "rcFilePaste" + rcFileDelete <- builderGetObject builder castToImageMenuItem + "rcFileDelete" + rcFileProperty <- builderGetObject builder castToImageMenuItem + "rcFileProperty" + rcFileIconView <- builderGetObject builder castToImageMenuItem + "rcFileIconView" + rcFileTreeView <- builderGetObject builder castToImageMenuItem + "rcFileTreeView" + upViewB <- builderGetObject builder castToButton + "upViewB" + homeViewB <- builderGetObject builder castToButton + "homeViewB" + refreshViewB <- builderGetObject builder castToButton + "refreshViewB" + scroll <- builderGetObject builder castToScrolledWindow + "mainScroll" + viewBox <- builderGetObject builder castToBox + "viewBox" + + let rcmenu = MkRightClickMenu {..} + let myview = MkMyView {..} + + -- set the bindings + setViewCallbacks mygui myview + + -- add the treeview to the scroll container + let oview = fmViewToContainer view' + containerAdd scroll oview + + widgetShowAll viewBox + + return myview + + +-- |Switch the existing view in `MyView` with the one that the +-- io action returns. +switchView :: MyGUI -> MyView -> IO FMView -> IO () +switchView mygui myview iofmv = do + cwd <- getCurrentDir myview + + oldpage <- destroyView mygui myview - widgetShowAll viewBox - - return myview - - --- |Switch the existing view in `MyView` with the one that the --- io action returns. -switchView :: MyGUI -> MyView -> IO FMView -> IO () -switchView mygui myview iofmv = do - cwd <- getCurrentDir myview - - oldpage <- destroyView mygui myview - - -- create new view and tab page where the previous one was - nview <- createMyView mygui iofmv - newpage <- notebookInsertPage (notebook mygui) (viewBox nview) - (maybe (P.fromAbs $ path cwd) P.fromRel - $ P.basename . path $ cwd) oldpage - notebookSetCurrentPage (notebook mygui) newpage - - refreshView' mygui nview cwd - + -- create new view and tab page where the previous one was + nview <- createMyView mygui iofmv + newpage <- notebookInsertPage (notebook mygui) (viewBox nview) + (maybe (P.fromAbs $ path cwd) P.fromRel + $ P.basename . path $ cwd) oldpage + notebookSetCurrentPage (notebook mygui) newpage + + refreshView mygui nview cwd + + +-- |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. +destroyView :: MyGUI -> MyView -> IO Int +destroyView mygui myview = do + -- disconnect watcher + mi <- tryTakeMVar (inotify myview) + for_ mi $ \i -> killINotify i --- |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. -destroyView :: MyGUI -> MyView -> IO Int -destroyView mygui myview = do - -- disconnect watcher - mi <- tryTakeMVar (inotify myview) - for_ mi $ \i -> killINotify i - - page <- notebookGetCurrentPage (notebook mygui) - - -- destroy old view and tab page - view' <- readTVarIO $ view myview - widgetDestroy (fmViewToContainer view') - notebookRemovePage (notebook mygui) page - - return page - + page <- notebookGetCurrentPage (notebook mygui) + + -- destroy old view and tab page + view' <- readTVarIO $ view myview + widgetDestroy (fmViewToContainer view') + notebookRemovePage (notebook mygui) page + + return page + + +-- |Createss an IconView. +createIconView :: IO FMView +createIconView = do + iconv <- iconViewNew + iconViewSetSelectionMode iconv SelectionMultiple + iconViewSetColumns iconv (-1) + iconViewSetSpacing iconv 2 + iconViewSetMargin iconv 0 + {- set iconv [ iconViewItemOrientation := OrientationHorizontal ] -} + {- set iconv [ iconViewOrientation := OrientationHorizontal ] -} + + return $ FMIconView iconv --- |Createss an IconView. -createIconView :: IO FMView -createIconView = do - iconv <- iconViewNew - iconViewSetSelectionMode iconv SelectionMultiple - iconViewSetColumns iconv (-1) - iconViewSetSpacing iconv 2 - iconViewSetMargin iconv 0 - {- set iconv [ iconViewItemOrientation := OrientationHorizontal ] -} - {- set iconv [ iconViewOrientation := OrientationHorizontal ] -} - - return $ FMIconView iconv - - --- |Creates a TreeView. -createTreeView :: IO FMView -createTreeView = do - -- create the final view - treeView <- treeViewNew - -- set selection mode - tvs <- treeViewGetSelection treeView - treeSelectionSetMode tvs SelectionMultiple + +-- |Creates a TreeView. +createTreeView :: IO FMView +createTreeView = do + -- create the final view + treeView <- treeViewNew + -- set selection mode + tvs <- treeViewGetSelection treeView + treeSelectionSetMode tvs SelectionMultiple + + -- set drag and drop + tl <- targetListNew + atom <- atomNew ("HSFM" :: String) + targetListAdd tl atom [TargetSameApp] 0 + treeViewEnableModelDragDest treeView tl [ActionCopy] + treeViewEnableModelDragSource treeView [Button1] tl [ActionCopy] + + -- create final tree model columns + renderTxt <- cellRendererTextNew + renderPix <- cellRendererPixbufNew + let ct = cellText :: (CellRendererTextClass cr) => Attr cr String + cp = cellPixbuf :: (CellRendererPixbufClass self) => Attr self Pixbuf - -- set drag and drop - tl <- targetListNew - atom <- atomNew ("HSFM" :: String) - targetListAdd tl atom [TargetSameApp] 0 - treeViewEnableModelDragDest treeView tl [ActionCopy] - treeViewEnableModelDragSource treeView [Button1] tl [ActionCopy] - - -- create final tree model columns - renderTxt <- cellRendererTextNew - renderPix <- cellRendererPixbufNew - let ct = cellText :: (CellRendererTextClass cr) => Attr cr String - cp = cellPixbuf :: (CellRendererPixbufClass self) => Attr self Pixbuf - - -- filename column - cF <- treeViewColumnNew - treeViewColumnSetTitle cF ("Filename" :: String) - treeViewColumnSetResizable cF True - treeViewColumnSetClickable cF True - treeViewColumnSetSortColumnId cF 1 - cellLayoutPackStart cF renderPix False - cellLayoutPackStart cF renderTxt True - _ <- treeViewAppendColumn treeView cF - cellLayoutAddColumnAttribute cF renderPix cp $ makeColumnIdPixbuf 0 - cellLayoutAddColumnAttribute cF renderTxt ct $ makeColumnIdString 1 - - -- date column - cMD <- treeViewColumnNew - treeViewColumnSetTitle cMD ("Date" :: String) - treeViewColumnSetResizable cMD True - treeViewColumnSetClickable cMD True - treeViewColumnSetSortColumnId cMD 2 - cellLayoutPackStart cMD renderTxt True - _ <- treeViewAppendColumn treeView cMD - cellLayoutAddColumnAttribute cMD renderTxt ct $ makeColumnIdString 2 + -- filename column + cF <- treeViewColumnNew + treeViewColumnSetTitle cF ("Filename" :: String) + treeViewColumnSetResizable cF True + treeViewColumnSetClickable cF True + treeViewColumnSetSortColumnId cF 1 + cellLayoutPackStart cF renderPix False + cellLayoutPackStart cF renderTxt True + _ <- treeViewAppendColumn treeView cF + cellLayoutAddColumnAttribute cF renderPix cp $ makeColumnIdPixbuf 0 + cellLayoutAddColumnAttribute cF renderTxt ct $ makeColumnIdString 1 + + -- date column + cMD <- treeViewColumnNew + treeViewColumnSetTitle cMD ("Date" :: String) + treeViewColumnSetResizable cMD True + treeViewColumnSetClickable cMD True + treeViewColumnSetSortColumnId cMD 2 + cellLayoutPackStart cMD renderTxt True + _ <- treeViewAppendColumn treeView cMD + cellLayoutAddColumnAttribute cMD renderTxt ct $ makeColumnIdString 2 + + -- permissions column + cP <- treeViewColumnNew + treeViewColumnSetTitle cP ("Permission" :: String) + treeViewColumnSetResizable cP True + treeViewColumnSetClickable cP True + treeViewColumnSetSortColumnId cP 3 + cellLayoutPackStart cP renderTxt True + _ <- treeViewAppendColumn treeView cP + cellLayoutAddColumnAttribute cP renderTxt ct $ makeColumnIdString 3 + + return $ FMTreeView treeView + - -- permissions column - cP <- treeViewColumnNew - treeViewColumnSetTitle cP ("Permission" :: String) - treeViewColumnSetResizable cP True - treeViewColumnSetClickable cP True - treeViewColumnSetSortColumnId cP 3 - cellLayoutPackStart cP renderTxt True - _ <- treeViewAppendColumn treeView cP - cellLayoutAddColumnAttribute cP renderTxt ct $ makeColumnIdString 3 - - return $ FMTreeView treeView - - --- |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 - -> Maybe (Path Abs) - -> IO () -refreshView mygui myview mfp = - case mfp of - Just fp -> do - canopen <- canOpenDirectory fp - if canopen - then refreshView' mygui myview =<< readFile getFileInfo fp - else refreshView mygui myview =<< getAlternativeDir - Nothing -> refreshView mygui myview =<< getAlternativeDir - where - getAlternativeDir = do - ecd <- try (getCurrentDir myview) :: IO (Either SomeException - Item) - case ecd of - Right dir -> return (Just $ path dir) - Left _ -> return (P.parseAbs $ BS.singleton pathSeparator) - - --- |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. -refreshView' :: MyGUI - -> MyView - -> Item - -> IO () -refreshView' mygui myview SymLink { sdest = d@Dir{} } = - refreshView' mygui myview d -refreshView' mygui myview item@Dir{} = do - newRawModel <- fileListStore item myview - writeTVarIO (rawModel myview) newRawModel - - view' <- readTVarIO $ view myview - - _ <- tryTakeMVar (cwd myview) - putMVar (cwd myview) item +-- |Refreshes the View based on the given directory. +-- +-- Throws: +-- +-- - `userError` on inappropriate type +refreshView :: MyGUI + -> MyView + -> Item + -> IO () +refreshView mygui myview SymLink { sdest = d@Dir{} } = + refreshView mygui myview d +refreshView mygui myview item@Dir{} = do + newRawModel <- fileListStore item myview + writeTVarIO (rawModel myview) newRawModel + + view' <- readTVarIO $ view myview + + _ <- tryTakeMVar (cwd myview) + putMVar (cwd myview) item + + -- get selected items + tps <- getSelectedTreePaths mygui myview + trs <- catMaybes <$> mapM (treeRowReferenceNew newRawModel) tps + + constructView mygui myview + + -- reselect selected items + -- TODO: not implemented for icon view yet + case view' of + FMTreeView treeView -> do + tvs <- treeViewGetSelection treeView + ntps <- mapM treeRowReferenceGetPath trs + mapM_ (treeSelectionSelectPath tvs) ntps + _ -> return () +refreshView _ _ _ = ioError $ userError "Inappropriate type!" + + +-- |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. +constructView :: MyGUI + -> MyView + -> IO () +constructView mygui myview = do + settings' <- readTVarIO $ settings mygui + + -- pix stuff + iT <- iconThemeGetDefault + folderPix <- getIcon IFolder iT (iconSize settings') + folderSymPix <- getSymlinkIcon IFolder iT (iconSize settings') + filePix <- getIcon IFile iT (iconSize settings') + fileSymPix <- getSymlinkIcon IFile iT (iconSize settings') + errorPix <- getIcon IError iT (iconSize settings') + let dirtreePix Dir{} = folderPix + dirtreePix FileLike{} = filePix + dirtreePix DirSym{} = folderSymPix + dirtreePix FileLikeSym{} = fileSymPix + dirtreePix Failed{} = errorPix + dirtreePix BrokenSymlink{} = errorPix + dirtreePix _ = errorPix + - -- get selected items - tps <- getSelectedTreePaths mygui myview - trs <- catMaybes <$> mapM (treeRowReferenceNew newRawModel) tps - - constructView mygui myview - - -- reselect selected items - -- TODO: not implemented for icon view yet - case view' of - FMTreeView treeView -> do - tvs <- treeViewGetSelection treeView - ntps <- mapM treeRowReferenceGetPath trs - mapM_ (treeSelectionSelectPath tvs) ntps - _ -> return () -refreshView' mygui myview Failed{} = refreshView mygui myview Nothing -refreshView' _ _ _ = return () - - --- |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. -constructView :: MyGUI - -> MyView - -> IO () -constructView mygui myview = do - settings' <- readTVarIO $ settings mygui - - -- pix stuff - iT <- iconThemeGetDefault - folderPix <- getIcon IFolder iT (iconSize settings') - folderSymPix <- getSymlinkIcon IFolder iT (iconSize settings') - filePix <- getIcon IFile iT (iconSize settings') - fileSymPix <- getSymlinkIcon IFile iT (iconSize settings') - errorPix <- getIcon IError iT (iconSize settings') - let dirtreePix Dir{} = folderPix - dirtreePix FileLike{} = filePix - dirtreePix DirSym{} = folderSymPix - dirtreePix FileLikeSym{} = fileSymPix - dirtreePix Failed{} = errorPix - dirtreePix BrokenSymlink{} = errorPix - dirtreePix _ = errorPix - - - view' <- readTVarIO $ view myview - - cdirp <- path <$> getCurrentDir myview - - -- update urlBar - entrySetText (urlBar myview) (P.fromAbs cdirp) - - rawModel' <- readTVarIO $ rawModel myview - - -- filtering - filteredModel' <- treeModelFilterNew rawModel' [] - writeTVarIO (filteredModel myview) filteredModel' - treeModelFilterSetVisibleFunc filteredModel' $ \iter -> do - hidden <- showHidden <$> readTVarIO (settings mygui) - item <- treeModelGetRow rawModel' iter >>= (P.basename . path) - if hidden - then return True - else return . not . hiddenFile . P.fromRel $ item + view' <- readTVarIO $ view myview + + cdir <- getCurrentDir myview + let cdirp = path cdir + + -- update urlBar + entrySetText (urlBar myview) (P.fromAbs cdirp) + + rawModel' <- readTVarIO $ rawModel myview + + -- filtering + filteredModel' <- treeModelFilterNew rawModel' [] + writeTVarIO (filteredModel myview) filteredModel' + treeModelFilterSetVisibleFunc filteredModel' $ \iter -> do + hidden <- showHidden <$> readTVarIO (settings mygui) + item <- treeModelGetRow rawModel' iter >>= (P.basename . path) + if hidden + then return True + else return . not . hiddenFile . P.fromRel $ item + + -- sorting + sortedModel' <- treeModelSortNewWithModel filteredModel' + writeTVarIO (sortedModel myview) sortedModel' + treeSortableSetSortFunc sortedModel' 1 $ \iter1 iter2 -> do + cIter1 <- treeModelFilterConvertIterToChildIter filteredModel' iter1 + cIter2 <- treeModelFilterConvertIterToChildIter filteredModel' iter2 + item1 <- treeModelGetRow rawModel' cIter1 + item2 <- treeModelGetRow rawModel' cIter2 + return $ compare item1 item2 + treeSortableSetSortColumnId sortedModel' 1 SortAscending + + -- set values + treeModelSetColumn rawModel' (makeColumnIdPixbuf 0) + dirtreePix + treeModelSetColumn rawModel' (makeColumnIdString 1) + (P.toFilePath . fromJust . P.basename . path) + treeModelSetColumn rawModel' (makeColumnIdString 2) + packModTime + treeModelSetColumn rawModel' (makeColumnIdString 3) + packPermissions + + -- update model of view + case view' of + FMTreeView treeView -> do + treeViewSetModel treeView sortedModel' + treeViewSetRubberBanding treeView True + FMIconView iconView -> do + iconViewSetModel iconView (Just sortedModel') + iconViewSetPixbufColumn iconView + (makeColumnIdPixbuf 0 :: ColumnId item Pixbuf) + iconViewSetTextColumn iconView + (makeColumnIdString 1 :: ColumnId item String) + + -- add watcher + mi <- tryTakeMVar (inotify myview) + for_ mi $ \i -> killINotify i + newi <- initINotify + _ <- addWatch + newi + [Move, MoveIn, MoveOut, MoveSelf, Create, Delete, DeleteSelf] + (P.fromAbs cdirp) + (\_ -> postGUIAsync $ refreshView mygui myview cdir) + putMVar (inotify myview) newi - -- sorting - sortedModel' <- treeModelSortNewWithModel filteredModel' - writeTVarIO (sortedModel myview) sortedModel' - treeSortableSetSortFunc sortedModel' 1 $ \iter1 iter2 -> do - cIter1 <- treeModelFilterConvertIterToChildIter filteredModel' iter1 - cIter2 <- treeModelFilterConvertIterToChildIter filteredModel' iter2 - item1 <- treeModelGetRow rawModel' cIter1 - item2 <- treeModelGetRow rawModel' cIter2 - return $ compare item1 item2 - treeSortableSetSortColumnId sortedModel' 1 SortAscending - - -- set values - treeModelSetColumn rawModel' (makeColumnIdPixbuf 0) - dirtreePix - treeModelSetColumn rawModel' (makeColumnIdString 1) - (P.toFilePath . fromJust . P.basename . path) - treeModelSetColumn rawModel' (makeColumnIdString 2) - packModTime - treeModelSetColumn rawModel' (makeColumnIdString 3) - packPermissions - - -- update model of view - case view' of - FMTreeView treeView -> do - treeViewSetModel treeView sortedModel' - treeViewSetRubberBanding treeView True - FMIconView iconView -> do - iconViewSetModel iconView (Just sortedModel') - iconViewSetPixbufColumn iconView - (makeColumnIdPixbuf 0 :: ColumnId item Pixbuf) - iconViewSetTextColumn iconView - (makeColumnIdString 1 :: ColumnId item String) - - -- add watcher - mi <- tryTakeMVar (inotify myview) - for_ mi $ \i -> killINotify i - newi <- initINotify - _ <- addWatch - newi - [Move, MoveIn, MoveOut, MoveSelf, Create, Delete, DeleteSelf] - (P.fromAbs cdirp) - (\_ -> postGUIAsync $ refreshView mygui myview (Just $ cdirp)) - putMVar (inotify myview) newi - - return () + return ()