ltk-0.15.0.5: Leksah tool kit

Safe HaskellNone
LanguageHaskell98

Graphics.UI.Editor.Simple

Contents

Description

Module for making simple editors

Synopsis

Documentation

noEditor :: alpha -> Editor alpha #

An invisible editor without any effect

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

textEditor :: (Text -> Bool) -> Bool -> Editor Text #

Editor for a Text in the form of a text entry

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

Orphan instances