ParentContentsIndex
Graphics.UI.Port.CommonDialogs
Portability portable
Stability provisional
Maintainer ka2_mail@yahoo.com
Description
Standard file selection dialogs.
Synopsis
runDirectoryDialog :: String -> WindowHandle -> IO (Maybe FilePath)
runInputFileDialog :: String -> [(String, [String])] -> WindowHandle -> IO (Maybe FilePath)
runInputFilesDialog :: String -> [(String, [String])] -> WindowHandle -> IO [FilePath]
runOutputFileDialog :: String -> [(String, [String])] -> FilePath -> WindowHandle -> IO (Maybe FilePath)
runColorDialog :: WindowHandle -> IO (Maybe Color)
runFontDialog :: WindowHandle -> IO (Maybe FontDef)
runAboutDialog :: String -> String -> String -> String -> [String] -> [String] -> String -> Bitmap -> WindowHandle -> IO ()
Documentation
runDirectoryDialog :: String -> WindowHandle -> IO (Maybe FilePath)
Runs a dialog to select a directory. Returns Nothing when cancelled.
runInputFileDialog :: String -> [(String, [String])] -> WindowHandle -> IO (Maybe FilePath)
Run a dialog to select an input file. Returns Nothing when cancelled.
runInputFilesDialog :: String -> [(String, [String])] -> WindowHandle -> IO [FilePath]
Run a dialog to select multiple input files. Returns empty list when canceled.
runOutputFileDialog :: String -> [(String, [String])] -> FilePath -> WindowHandle -> IO (Maybe FilePath)
Run a dialog to select an output file. Takes both a dialog title and a suggested filename as arguments. Returns Nothing when cancelled.
runColorDialog :: WindowHandle -> IO (Maybe Color)
Run a dialog to select a color. Returns Nothing when cancelled.
runFontDialog :: WindowHandle -> IO (Maybe FontDef)
Run a dialog to select a font. Returns Nothing when cancelled.
runAboutDialog
:: String application name
-> String application version
-> String copyright
-> String comments
-> [String] authors
-> [String] documenters
-> String translator credits
-> Bitmap logo
-> WindowHandle
-> IO ()
Produced by Haddock version 0.4