Source codeContentsIndex
GenericBrowser
Description
A generic data browser.
Synopsis
newGenericBrowser :: (GBObject o, Container par) => par -> [o] -> [Config (GenericBrowser o)] -> IO (GenericBrowser o)
data GenericBrowser o
class (CItem o) => GBObject o where
getChildren :: o -> IO [o]
isObjectNode :: o -> IO Bool
data GenericBrowserEvent o
= SelectedInTreeList (Maybe o)
| FocusedInTreeList (Maybe o)
| Dropped (o, [o])
| SelectedInNotepad o
| DeselectedInNotepad o
| Doubleclick o
| Rightclick [o]
bindGenericBrowserEv :: (GBObject o) => GenericBrowser o -> IO (Event (GenericBrowserEvent o), IO ())
Documentation
newGenericBrowser
:: (GBObject o, Container par)
=> par the parent widget (which has to be a container widget).
-> [o] the list of top level objects.
-> [Config (GenericBrowser o)] the list of configuration options for this generic browser.
-> IO (GenericBrowser o) A generic browser.
Constructs a new generic browser and returns a handler.
data GenericBrowser o
The GenericBrowser datatype.
class (CItem o) => GBObject o where
Browsed data needs to instantiate the class CItem.
Methods
getChildren :: o -> IO [o]
isObjectNode :: o -> IO Bool
data GenericBrowserEvent o
Constructors
SelectedInTreeList (Maybe o)
FocusedInTreeList (Maybe o)
Dropped (o, [o])
SelectedInNotepad o
DeselectedInNotepad o
Doubleclick o
Rightclick [o]
bindGenericBrowserEv
:: (GBObject o)
=> GenericBrowser o the concerned generic browser.
-> IO (Event (GenericBrowserEvent o), IO ()) A pair of (event, unbind action).
Binds a listener for generic browser events to the tree list and returns a corresponding event and an unbind action.
Produced by Haddock version 0.3