ltk-0.8.0.8: Leksah tool kit

Graphics.UI.Editor.Simple

Description

Module for making simple editors

Synopsis

Documentation

noEditor :: alpha -> Editor alphaSource

An invisible editor without any effect

boolEditor :: Editor BoolSource

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

boolEditor2 :: String -> Editor BoolSource

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 :: Editor ()Source

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

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

Editor for a string in the form of a text entry

multilineStringEditor :: Editor StringSource

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

intEditor :: (Double, Double, Double) -> Editor IntSource

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 ColorSource

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 FilePathSource

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 StockIdSource

An Editor to display an image