ltk-0.12.1.0: Leksah tool kit

Safe Haskell | None

Graphics.UI.Editor.Simple

Description

Module for making simple editors

Synopsis

- noEditor :: alpha -> Editor alpha
- boolEditor :: Editor Bool
- boolEditor2 :: String -> Editor Bool
- enumEditor :: forall alpha. (Show alpha, Enum alpha, Bounded alpha) => [String] -> Editor alpha
- clickEditor :: Bool -> Editor ()
- stringEditor :: (String -> Bool) -> Bool -> Editor String
- multilineStringEditor :: Editor String
- intEditor :: (Double, Double, Double) -> Editor Int
- genericEditor :: (Show beta, Read beta) => Editor beta
- fontEditor :: Editor (Maybe String)
- colorEditor :: Editor Color
- comboSelectionEditor :: Eq beta => [beta] -> (beta -> String) -> Editor beta
- staticListEditor :: Eq beta => [beta] -> (beta -> String) -> Editor beta
- staticListMultiEditor :: Eq beta => [beta] -> (beta -> String) -> Editor [beta]
- multiselectionEditor :: (Show beta, Eq beta) => Editor [beta]
- fileEditor :: Maybe FilePath -> FileChooserAction -> String -> Editor FilePath
- otherEditor :: (alpha -> String -> IO (Maybe alpha)) -> Editor alpha
- imageEditor :: Editor StockId
- okCancelFields :: FieldDescription ()

# Documentation

noEditor :: alpha -> Editor alphaSource

An invisible editor without any effect

boolEditor :: Editor Bool Source

Editor for a boolean value in the form of a check button

boolEditor2 :: String -> Editor Bool Source

Editor for a boolean value in the form of two radio buttons

enumEditor :: forall alpha. (Show alpha, Enum alpha, Bounded alpha) => [String] -> Editor alphaSource

Editor for an enum value in the form of n radio buttons

clickEditor :: Bool -> Editor ()Source

An Editor for nothing (which may report a click) in the form of a button

stringEditor :: (String -> Bool) -> Bool -> Editor String Source

Editor for a string in the form of a text entry

multilineStringEditor :: Editor String Source

Editor for a multiline string in the form of a multiline text entry

intEditor :: (Double, Double, Double) -> Editor Int Source

Editor for an integer in the form of a spin entry

genericEditor :: (Show beta, Read beta) => Editor betaSource

Editor for for any value which is an instance of Read and Show in the form of a | text entry

fontEditor :: Editor (Maybe String)Source

Editor for a font selection

colorEditor :: Editor Color Source

Editor for color selection

comboSelectionEditor :: Eq beta => [beta] -> (beta -> String) -> Editor betaSource

Editor for the selection of some element from a static list of elements in the | form of a combo box

staticListEditor :: Eq beta => [beta] -> (beta -> String) -> Editor betaSource

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 -> String) -> Editor [beta]Source

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]Source

Editor for the selection of some elements from a list of elements in the | form of a list box

fileEditor :: Maybe FilePath -> FileChooserAction -> String -> Editor FilePath Source

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 -> String -> IO (Maybe alpha)) -> Editor alphaSource

An editor, which opens another editor You have to inject a value before the button can be clicked.

imageEditor :: Editor StockId Source

An Editor to display an image

okCancelFields :: FieldDescription ()Source