Safe Haskell | None |
---|---|
Language | Haskell98 |
Basic dialog window and a couple of predefined abstractions.
- data Dialog a
- dialog :: Bool -> [Choice a] -> Maybe Int -> [Config (Dialog a)] -> [Config Toplevel] -> IO (Dialog a)
- createAlertWin :: String -> [Config Toplevel] -> IO ()
- createErrorWin :: String -> [Config Toplevel] -> IO ()
- createWarningWin :: String -> [Config Toplevel] -> IO ()
- createConfirmWin :: String -> [Config Toplevel] -> IO Bool
- createMessageWin :: String -> [Config Toplevel] -> IO ()
- createAlertWin' :: [MarkupText] -> [Config Toplevel] -> IO ()
- createErrorWin' :: [MarkupText] -> [Config Toplevel] -> IO ()
- createWarningWin' :: [MarkupText] -> [Config Toplevel] -> IO ()
- createConfirmWin' :: [MarkupText] -> [Config Toplevel] -> IO Bool
- createMessageWin' :: [MarkupText] -> [Config Toplevel] -> IO ()
- createDialogWin :: [Choice a] -> Maybe Int -> [Config (Dialog a)] -> [Config Toplevel] -> IO a
- createDialogWin' :: [Choice a] -> Maybe Int -> [Config (Dialog a)] -> [Config Toplevel] -> IO a
- loadHTkImages :: ()
- questionImg :: Image
- useHTk :: IO ()
Documentation
The Dialog
datatype.
:: 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.
Deprecated: Please use the functions in util/Messages instead
Constructs an alert window with the given text
Deprecated: Please use the functions in util/Messages instead
Constructs an error window with the given text
Deprecated: Please use the functions in util/Messages instead
Constructs an warning window with the given text
Deprecated: Please use the functions in util/Messages instead
Constructs an confirm window with the given text
Deprecated: Please use the functions in util/Messages instead
Constructs a message (info) window with the given string.
:: [MarkupText] | the markuptext to be displayed |
-> [Config Toplevel] | |
-> IO () |
Constructs an alert window with the given markuptext
:: [MarkupText] | the markuptext to be displayed |
-> [Config Toplevel] | |
-> IO () |
Constructs an error window with the given markuptext
:: [MarkupText] | the markuptext to be displayed |
-> [Config Toplevel] | |
-> IO () |
Constructs an warning window with the given markuptext
:: [MarkupText] | the markuptext to be displayed |
-> [Config Toplevel] | |
-> IO Bool | True(Ok) or False(Cancel) |
Constructs an confirm window with the given markuptext
:: [MarkupText] | the markup text to be displayed |
-> [Config Toplevel] | |
-> IO () | () |
Constructs a message (info) window with the given markuptext
:: [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
:: [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
loadHTkImages :: () Source