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

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.InputForm

Description

the inputform

Synopsis

Documentation

data InputForm a Source #

The InputForm datatype.

Constructors

InputForm Box (Ref (FormState a)) 

Instances

Eq (InputForm a) Source #

Internal.

Methods

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

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

Synchronized (InputForm a) Source # 

Methods

synchronize :: InputForm a -> IO b -> IO b #

GUIObject (InputForm a) Source #

Internal.

HasEnable (InputForm a) Source # 
HasFont (InputForm a) Source # 
HasBorder (InputForm a) Source # 
HasSize (InputForm a) Source # 
HasColour (InputForm a) Source # 
Widget (InputForm a) Source # 
Container (InputForm a) Source # 

newInputForm Source #

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

class InputField f where Source #

Minimal complete definition

selector, modifier

Methods

selector :: GUIValue b => (a -> b) -> Config (f a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (f a b) Source #

Instances

InputField RecordField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (RecordField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (RecordField a b) Source #

InputField EnumField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (EnumField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (EnumField a b) Source #

InputField TextField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (TextField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (TextField a b) Source #

InputField CheckboxField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (CheckboxField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (CheckboxField a b) Source #

InputField NumEntryField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (NumEntryField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (NumEntryField a b) Source #

InputField EntryField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (EntryField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (EntryField a b) Source #

data EntryField a b Source #

The EntryField datatype.

Instances

InputField EntryField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (EntryField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (EntryField a b) Source #

Eq (EntryField a b) Source # 

Methods

(==) :: EntryField a b -> EntryField a b -> Bool #

(/=) :: EntryField a b -> EntryField a b -> Bool #

Synchronized (EntryField a b) Source # 

Methods

synchronize :: EntryField a b -> IO b -> IO b #

GUIObject (EntryField a b) Source # 
HasEnable (EntryField a b) Source # 
HasFont (EntryField a b) Source # 
HasBorder (EntryField a b) Source # 
HasSize (EntryField a b) Source # 
HasColour (EntryField a b) Source # 
Widget (EntryField a b) Source # 
(GUIValue b, GUIValue c) => HasText (EntryField a b) c Source # 

Methods

text :: c -> Config (EntryField a b) Source #

getText :: EntryField a b -> IO c Source #

newEntryField Source #

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

data NumEntryField a b Source #

The NumEntryField datatype.

Instances

InputField NumEntryField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (NumEntryField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (NumEntryField a b) Source #

Eq (NumEntryField a b) Source # 

Methods

(==) :: NumEntryField a b -> NumEntryField a b -> Bool #

(/=) :: NumEntryField a b -> NumEntryField a b -> Bool #

Synchronized (NumEntryField a b) Source # 

Methods

synchronize :: NumEntryField a b -> IO b -> IO b #

GUIObject (NumEntryField a b) Source # 
HasEnable (NumEntryField a b) Source # 
HasFont (NumEntryField a b) Source # 
HasBorder (NumEntryField a b) Source # 
HasSize (NumEntryField a b) Source # 
HasColour (NumEntryField a b) Source # 
Widget (NumEntryField a b) Source # 
(GUIValue b, GUIValue c) => HasText (NumEntryField a b) c Source # 

Methods

text :: c -> Config (NumEntryField a b) Source #

getText :: NumEntryField a b -> IO c Source #

newNumEntryField Source #

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

data CheckboxField a b Source #

The CheckboxField datatype.

Instances

InputField CheckboxField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (CheckboxField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (CheckboxField a b) Source #

Eq (CheckboxField a b) Source # 

Methods

(==) :: CheckboxField a b -> CheckboxField a b -> Bool #

(/=) :: CheckboxField a b -> CheckboxField a b -> Bool #

Synchronized (CheckboxField a b) Source # 

Methods

synchronize :: CheckboxField a b -> IO b -> IO b #

GUIObject (CheckboxField a b) Source # 
HasEnable (CheckboxField a b) Source # 
HasFont (CheckboxField a b) Source # 
HasBorder (CheckboxField a b) Source # 
HasSize (CheckboxField a b) Source # 
HasColour (CheckboxField a b) Source # 
Widget (CheckboxField a b) Source # 
(GUIValue b, GUIValue c) => HasText (CheckboxField a b) c Source # 

Methods

text :: c -> Config (CheckboxField a b) Source #

getText :: CheckboxField a b -> IO c Source #

newCheckboxField Source #

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.

Instances

InputField EnumField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (EnumField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (EnumField a b) Source #

Eq (EnumField a b) Source # 

Methods

(==) :: EnumField a b -> EnumField a b -> Bool #

(/=) :: EnumField a b -> EnumField a b -> Bool #

Synchronized (EnumField a b) Source # 

Methods

synchronize :: EnumField a b -> IO b -> IO b #

GUIObject (EnumField a b) Source # 
HasEnable (EnumField a b) Source # 
HasFont (EnumField a b) Source # 

Methods

font :: FontDesignator f => f -> Config (EnumField a b) Source #

getFont :: EnumField a b -> IO Font Source #

HasBorder (EnumField a b) Source # 
HasSize (EnumField a b) Source # 
HasColour (EnumField a b) Source # 
Widget (EnumField a b) Source # 
GUIValue c => HasText (EnumField a b) c Source # 

Methods

text :: c -> Config (EnumField a b) Source #

getText :: EnumField a b -> IO c Source #

newEnumField Source #

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.

Instances

InputField TextField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (TextField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (TextField a b) Source #

Eq (TextField a b) Source # 

Methods

(==) :: TextField a b -> TextField a b -> Bool #

(/=) :: TextField a b -> TextField a b -> Bool #

Synchronized (TextField a b) Source # 

Methods

synchronize :: TextField a b -> IO b -> IO b #

GUIObject (TextField a b) Source # 
HasEnable (TextField a b) Source # 
HasFont (TextField a b) Source # 

Methods

font :: FontDesignator f => f -> Config (TextField a b) Source #

getFont :: TextField a b -> IO Font Source #

HasBorder (TextField a b) Source # 
HasSize (TextField a b) Source # 
HasColour (TextField a b) Source # 
(GUIValue b, GUIValue c) => HasText (TextField a b) c Source # 

Methods

text :: c -> Config (TextField a b) Source #

getText :: TextField a b -> IO c Source #

newTextField Source #

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

setFormValue :: InputForm a -> a -> IO () Source #

data RecordField a b Source #

Instances

InputField RecordField Source # 

Methods

selector :: GUIValue b => (a -> b) -> Config (RecordField a b) Source #

modifier :: GUIValue b => (a -> b -> a) -> Config (RecordField a b) Source #

Eq (RecordField a b) Source # 

Methods

(==) :: RecordField a b -> RecordField a b -> Bool #

(/=) :: RecordField a b -> RecordField a b -> Bool #

Synchronized (RecordField a b) Source # 

Methods

synchronize :: RecordField a b -> IO b -> IO b #

GUIObject (RecordField a b) Source # 
HasEnable (RecordField a b) Source # 
HasFont (RecordField a b) Source # 
HasBorder (RecordField a b) Source # 
HasSize (RecordField a b) Source # 
HasColour (RecordField a b) Source # 
Widget (RecordField a b) Source # 
GUIValue c => HasText (RecordField a b) c Source # 

Methods

text :: c -> Config (RecordField a b) Source #

getText :: RecordField a b -> IO c Source #