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.
Constructs an alert window with the given text
Constructs an error window with the given text
Constructs an warning window with the given text
Constructs an confirm window with the given text
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