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

HTk.Toolkit.InputWin

Description

Basic input window for record values and their fields.

Synopsis

Documentation

data InputWin a Source

The InputWin datatype.

Instances

GUIObject (InputWin a)

Internal.

createInputWinSource

Arguments

:: String

the title

-> (Box -> IO (InputForm a))

the InputForm-function

-> [Config Toplevel]

configuration for the toplevel

-> IO (InputWin a, InputForm a)

the InputWindow and InputForm

createInputWin'Source

Arguments

:: String

the message for the headline

-> [Config Message]

configs for the header message, e.g. font or aspect

-> (Box -> IO (InputForm a))

the InputForm-function

-> [Config Toplevel]

configuration for the toplevel (e.g. title)

-> IO (InputWin a, InputForm a)

the InputWindow and InputForm

Create an InputWindow with a generic message box title

waitSource

Arguments

:: InputWin a

the InputWindow to wait for

-> Bool

grep focus

-> IO (Maybe a)

Nothing or Just (the data stored in the IputForm)

Wait for the user to end the dialog.

waitValidateSource

Arguments

:: InputWin a

the InputWindow to wait for

-> (a -> IO Bool)

grep focus

-> Bool

check the value of the form

-> IO (Maybe a)

Nothing or Just (the data stored in the IputForm)

Wait for the user to end the dialog, and validate the result