Safe Haskell | None |
---|---|
Language | Haskell2010 |
- suppressScimBridge :: IO ()
- showChoicesDialog :: String -> String -> [String] -> [IO a] -> IO a -> IO a
- defaultDialogPosition :: WindowPosition
- runDialogM :: Dialog -> a -> (a -> IO (Maybe b)) -> IO (Maybe b)
- runDialogS :: Dialog -> a -> (a -> IO (SuccFail b)) -> IO (Maybe b)
- showInputErrorMessage :: String -> IO ()
- showErrorMessage :: String -> IO ()
- showInfoMessage :: String -> String -> IO ()
- showMessage :: Maybe String -> MessageType -> ButtonsType -> String -> IO ()
- data EntryDialog a
- type Reader a b = a -> SuccFail b
- createEntryDialog :: String -> [String] -> [String] -> Reader [String] a -> Int -> IO (EntryDialog a)
- runEntryDialog :: Show a => EntryDialog a -> IO (Maybe a)
- addEntryWithLabel :: VBox -> (String, Entry, String) -> IO ()
Documentation
suppressScimBridge :: IO () Source
showChoicesDialog :: String -> String -> [String] -> [IO a] -> IO a -> IO a Source
Show a message and a set of choices; run the action corresponding to the selected choice. The last argument is an action corresponding to the Cancel option (a Cancel button is automatically inserted) and is also used for strange actions like closing the dialog window. A good value for this might be return ().
defaultDialogPosition :: WindowPosition Source
Where to put a dialog window. Possible values are WinPosNone WinPosCenter WinPosMouse WinPosCenterAlways WinPosCenterOnParent
runDialogS :: Dialog -> a -> (a -> IO (SuccFail b)) -> IO (Maybe b) Source
Customizable framework for running a dialog
showInputErrorMessage :: String -> IO () Source
showErrorMessage :: String -> IO () Source
showInfoMessage :: String -> String -> IO () Source
showMessage :: Maybe String -> MessageType -> ButtonsType -> String -> IO () Source
data EntryDialog a Source
createEntryDialog :: String -> [String] -> [String] -> Reader [String] a -> Int -> IO (EntryDialog a) Source
runEntryDialog :: Show a => EntryDialog a -> IO (Maybe a) Source