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

HTk.Toolkit.DialogWin

Description

Basic dialog window and a couple of predefined abstractions.

Synopsis

Documentation

data Dialog a Source

The Dialog datatype.

Instances

GUIObject (Dialog a)

Internal.

HasPhoto (Dialog a)

A dialog can have an image

HasMarkupText (Dialog a)

The programm message is displayed as MarkupText

GUIValue v => HasText (Dialog a) v

The message displayed as plain text.

dialogSource

Arguments

:: Bool

the available button in this window

-> [Choice a]

true if we just want a label to display message, false if we want a fancy read-only text editor

-> Maybe Int

default button

-> [Config (Dialog a)]

the list of configuration options for this separator

-> [Config Toplevel]

the list of configuration options for the window

-> IO (Dialog a)

a dialog

Creates a new dialogue with its label, text and buttons.

createAlertWinSource

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an alert window with the given text

createErrorWinSource

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an error window with the given text

createWarningWinSource

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an warning window with the given text

createConfirmWinSource

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO Bool

True(Ok) or False(Cancel)

Constructs an confirm window with the given text

createMessageWinSource

Arguments

:: String

the string to be displayed

-> [Config Toplevel] 
-> IO ()

()

Constructs a message (info) window with the given string.

createAlertWin'Source

Arguments

:: [MarkupText]

the markuptext to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an alert window with the given markuptext

createErrorWin'Source

Arguments

:: [MarkupText]

the markuptext to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an error window with the given markuptext

createWarningWin'Source

Arguments

:: [MarkupText]

the markuptext to be displayed

-> [Config Toplevel] 
-> IO () 

Constructs an warning window with the given markuptext

createConfirmWin'Source

Arguments

:: [MarkupText]

the markuptext to be displayed

-> [Config Toplevel] 
-> IO Bool

True(Ok) or False(Cancel)

Constructs an confirm window with the given markuptext

createMessageWin'Source

Arguments

:: [MarkupText]

the markup text to be displayed

-> [Config Toplevel] 
-> IO ()

()

Constructs a message (info) window with the given markuptext

createDialogWinSource

Arguments

:: [Choice a]

the available buttons in this window

-> Maybe Int

default button

-> [Config (Dialog a)]

the list of configuration options for this separator

-> [Config Toplevel]

the list of configuration options for the window

-> IO a 

Constructs a new dialogue window for plain text

createDialogWin'Source

Arguments

:: [Choice a]

the available buttons in this window

-> Maybe Int

default button

-> [Config (Dialog a)]

the list of configuration options for this separator

-> [Config Toplevel]

the list of configuration options for the window

-> IO a 

Constructs a new dialow window for markup text