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

Safe HaskellNone
LanguageHaskell98

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) Source #

Internal.

HasPhoto (Dialog a) Source #

A dialog can have an image

HasMarkupText (Dialog a) Source #

The programm message is displayed as MarkupText

GUIValue v => HasText (Dialog a) v Source #

The message displayed as plain text.

Methods

text :: v -> Config (Dialog a) Source #

getText :: Dialog a -> IO v Source #

dialog Source #

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.

createAlertWin Source #

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Deprecated: Please use the functions in util/Messages instead

Constructs an alert window with the given text

createErrorWin Source #

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Deprecated: Please use the functions in util/Messages instead

Constructs an error window with the given text

createWarningWin Source #

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO () 

Deprecated: Please use the functions in util/Messages instead

Constructs an warning window with the given text

createConfirmWin Source #

Arguments

:: String

the text to be displayed

-> [Config Toplevel] 
-> IO Bool

True(Ok) or False(Cancel)

Deprecated: Please use the functions in util/Messages instead

Constructs an confirm window with the given text

createMessageWin Source #

Arguments

:: String

the string to be displayed

-> [Config Toplevel] 
-> IO ()

()

Deprecated: Please use the functions in util/Messages instead

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

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