sifflet-lib-1.0: Library of modules shared by sifflet and its tests and its exporters.Source codeContentsIndex
Sifflet.UI.GtkUtil
Synopsis
suppressScimBridge :: IO ()
showChoicesDialog :: String -> String -> [String] -> [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 aSource
Show a message and a set of choices; run the action corresponding to the selected choice; you might want to include a Cancel option with the action return (). There *should* be as many actions as there are options.
defaultDialogPosition :: WindowPositionSource
Where to put a dialog window. Possible values are WinPosNone WinPosCenter WinPosMouse WinPosCenterAlways WinPosCenterOnParent
runDialogM :: Dialog -> a -> (a -> IO (Maybe b)) -> IO (Maybe b)Source
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
type Reader a b = a -> SuccFail bSource
createEntryDialog :: String -> [String] -> [String] -> Reader [String] a -> Int -> IO (EntryDialog a)Source
runEntryDialog :: Show a => EntryDialog a -> IO (Maybe a)Source
addEntryWithLabel :: VBox -> (String, Entry, String) -> IO ()Source
Add a labeled text entry to the vbox.
Produced by Haddock version 2.6.1