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

HTk.Toolkit.InputForm

Description

the inputform

Synopsis

Documentation

data InputForm a Source

The InputForm datatype.

Constructors

InputForm Box (Ref (FormState a)) 

newInputFormSource

Arguments

:: Box

parent container in which the form is embedded

-> Maybe a

the datatype which contains the initial field values and the results

-> [Config (InputForm a)]

list of configuration options for this form

-> IO (InputForm a)

a InputForm

Creates a new InputForm

data EntryField a b Source

The EntryField datatype.

newEntryFieldSource

Arguments

:: GUIValue b 
=> InputForm a

the form to which the field is added

-> [Config (EntryField a b)]

a list of configuration options for this field

-> IO (EntryField a b)

a EntryField

Add a new EntryField to the form

newNumEntryFieldSource

Arguments

:: (Ord b, Num b, GUIValue b) 
=> InputForm a

the form to which the field is added

-> (b, b)

upper and lower bound (for the spin only)

-> b

increment/decrement for the spin button

-> [Config (NumEntryField a b)]

a list of configuration options for this field

-> IO (NumEntryField a b)

a NumEntryField

Add a new NumEntryField to the form

newCheckboxFieldSource

Arguments

:: GUIValue b 
=> InputForm a

the form to which the field is added

-> b

initial value

-> [Config (CheckboxField a b)]

a list of configuration options for this field

-> IO (CheckboxField a b)

a CheckbuttonField

Add a new CheckboxField to the form

data EnumField a b Source

The EnumField datatype.

newEnumFieldSource

Arguments

:: GUIValue b 
=> InputForm a

the form to which the field is added

-> [b]

the list of choices in this field

-> [Config (EnumField a b)]

a list of configuration options for this field

-> IO (EnumField a b)

a EnumField

Add a new EnumField to the form

data TextField a b Source

The TextField datatype.

newTextFieldSource

Arguments

:: GUIValue b 
=> InputForm a

the form to which the field is added

-> [Config (TextField a b)]

a list of configuration options for this field

-> IO (TextField a b)

a TextField

Add a new TextField to the form