Safe Haskell | None |
---|---|
Language | Haskell98 |
Graphics.UI.Editor.Simple
Contents
Description
Module for making simple editors
- noEditor :: alpha -> Editor alpha
- boolEditor :: Editor Bool
- boolEditor2 :: Text -> Editor Bool
- enumEditor :: forall alpha. (Show alpha, Enum alpha, Bounded alpha) => [Text] -> Editor alpha
- clickEditor :: Bool -> Editor ()
- textEditor :: (Text -> Bool) -> Bool -> Editor Text
- stringEditor :: (String -> Bool) -> Bool -> Editor String
- multilineStringEditor :: Editor Text
- intEditor :: (Double, Double, Double) -> Editor Int
- genericEditor :: (Show beta, Read beta) => Editor beta
- fontEditor :: Editor (Maybe Text)
- colorEditor :: Editor Color
- comboSelectionEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor beta
- comboEntryEditor :: [Text] -> Editor Text
- staticListEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor beta
- staticListMultiEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor [beta]
- multiselectionEditor :: (Show beta, Eq beta) => Editor [beta]
- fileEditor :: Maybe FilePath -> FileChooserAction -> Text -> Editor FilePath
- otherEditor :: (alpha -> Text -> IO (Maybe alpha)) -> Editor alpha
- imageEditor :: Editor StockId
- okCancelFields :: FieldDescription ()
Documentation
boolEditor :: Editor Bool #
Editor for a boolean value in the form of a check button
boolEditor2 :: Text -> Editor Bool #
Editor for a boolean value in the form of two radio buttons
enumEditor :: forall alpha. (Show alpha, Enum alpha, Bounded alpha) => [Text] -> Editor alpha #
Editor for an enum value in the form of n radio buttons
clickEditor :: Bool -> Editor () #
An Editor for nothing (which may report a click) in the form of a button
stringEditor :: (String -> Bool) -> Bool -> Editor String #
Editor for a String in the form of a text entry
multilineStringEditor :: Editor Text #
Editor for a multiline string in the form of a multiline text entry
intEditor :: (Double, Double, Double) -> Editor Int #
Editor for an integer in the form of a spin entry
genericEditor :: (Show beta, Read beta) => Editor beta #
Editor for for any value which is an instance of Read and Show in the form of a | text entry
fontEditor :: Editor (Maybe Text) #
Editor for a font selection
colorEditor :: Editor Color #
Editor for color selection
comboSelectionEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor beta #
Editor for the selection of some element from a static list of elements in the | form of a combo box
comboEntryEditor :: [Text] -> Editor Text #
Like comboSelectionEditor but allows entry of text not in the list
staticListEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor beta #
Editor for the selection of some elements from a static list of elements in the | form of a list box
staticListMultiEditor :: Eq beta => [beta] -> (beta -> Text) -> Editor [beta] #
Editor for the selection of some elements from a static list of elements in the | form of a list box with toggle elements
multiselectionEditor :: (Show beta, Eq beta) => Editor [beta] #
Editor for the selection of some elements from a list of elements in the | form of a list box
fileEditor :: Maybe FilePath -> FileChooserAction -> Text -> Editor FilePath #
Editor for the selection of a file path in the form of a text entry and a button, | which opens a gtk file chooser
otherEditor :: (alpha -> Text -> IO (Maybe alpha)) -> Editor alpha #
An editor, which opens another editor You have to inject a value before the button can be clicked.
imageEditor :: Editor StockId #
An Editor to display an image
okCancelFields :: FieldDescription () #