uni-htk-2.2.1.0: Graphical User Interface for Haskell Programs

HTk.Toolkit.GenericBrowser

Description

A generic data browser.

Synopsis

Documentation

newGenericBrowserSource

Arguments

:: (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 GBObject o => GenericBrowser o Source

The GenericBrowser datatype.

Instances

GBObject o => GUIObject (GenericBrowser o)

Internal.

GBObject o => Widget (GenericBrowser o)

Internal.

class CItem o => GBObject o whereSource

Browsed data needs to instantiate the class CItem.

Methods

getChildren :: o -> IO [o]Source

isObjectNode :: o -> IO BoolSource

bindGenericBrowserEvSource

Arguments

:: 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.