Hets - the Heterogeneous Tool Set

Copyright(c) C. Maeder, Uni Bremen 2002-2005
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilitynon-portable (cpp)
Safe HaskellNone

GUI.Utils

Description

Utilities on top of HTk or System.IO

Synopsis

Documentation

listBox

Arguments

:: String

Title

-> [String]

Rows to display

-> IO (Maybe Int)

Selected row

create a window with title and list of options, return selected option

createTextSaveDisplay

Arguments

:: String

Title

-> FilePath

Filename

-> String

Message

-> IO () 

Display some (longish) text in an uneditable, scrollable editor.

askFileNameAndSave

Arguments

:: FilePath

default filename for saving the text

-> String

text to be saved

-> IO () 

opens a FileDialog and saves to the selected file if Save is clicked

createTextDisplay

Arguments

:: String

Title

-> String

Message

-> IO () 

Display some (longish) text in an uneditable, scrollable editor.

infoDialog

Arguments

:: String

Title

-> String

Message

-> IO () 

create a window which displays a given text

errorDialog

Arguments

:: String

Title

-> String

Message

-> IO () 

create a window which displays a given error

warningDialog

Arguments

:: String

Title

-> String

Message

-> IO Bool 

create a window which displays a given warning and ask for continue

questionDialog

Arguments

:: String

Title

-> String

Message

-> IO Bool 

create a window which displays a given question

fileOpenDialog

Arguments

:: FilePath

Defaultname for file

-> [(String, [String])]

Filter (name, pattern list)

-> Maybe (FilePath -> IO ())

Action on open

-> IO (Maybe FilePath) 

fileSaveDialog

Arguments

:: FilePath

Defaultname for file

-> [(String, [String])]

Filter (name, pattern list)

-> Maybe (FilePath -> IO ())

Action on save

-> IO (Maybe FilePath) 

displayTheoryWithWarning

Arguments

:: String

Kind of theory

-> String

Name of theory

-> String

Warning

-> G_theory

Theory

-> IO () 

displays a theory with warning in a window

progressBar

Arguments

:: String

Title

-> String

Description

-> IO (Double -> String -> IO (), IO ()) 

pulseBar

Arguments

:: String

Title

-> String

Description

-> IO (String -> IO (), IO ())