Safe Haskell | Safe-Infered |
---|
Module for making composite editors
- maybeEditor :: Default beta => (Editor beta, Parameters) -> Bool -> String -> Editor (Maybe beta)
- disableEditor :: Default beta => (Editor beta, Parameters) -> Bool -> String -> Editor (Bool, beta)
- pairEditor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> Editor (alpha, beta)
- tupel3Editor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> (Editor gamma, Parameters) -> Editor (alpha, beta, gamma)
- splitEditor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> Editor (alpha, beta)
- eitherOrEditor :: (Default alpha, Default beta) => (Editor alpha, Parameters) -> (Editor beta, Parameters) -> String -> Editor (Either alpha beta)
- multisetEditor :: (Show alpha, Default alpha, Eq alpha) => ColumnDescr alpha -> (Editor alpha, Parameters) -> Maybe ([alpha] -> [alpha]) -> Maybe (alpha -> alpha -> Bool) -> Editor [alpha]
- data ColumnDescr row = ColumnDescr Bool [(String, row -> [AttrOp CellRendererText])]
- filesEditor :: Maybe FilePath -> FileChooserAction -> String -> Editor [FilePath]
- stringsEditor :: (String -> Bool) -> Bool -> Editor [String]
- versionEditor :: Editor Version
- versionRangeEditor :: Editor VersionRange
- dependencyEditor :: [PackageIdentifier] -> Editor Dependency
- dependenciesEditor :: [PackageIdentifier] -> Editor [Dependency]
Documentation
maybeEditor :: Default beta => (Editor beta, Parameters) -> Bool -> String -> Editor (Maybe beta)Source
An editor with a subeditor which gets active, when a checkbox is selected or deselected (if the positive Argument is False)
disableEditor :: Default beta => (Editor beta, Parameters) -> Bool -> String -> Editor (Bool, beta)Source
An editor with a subeditor which gets active, when a checkbox is selected or grayed out (if the positive Argument is False)
pairEditor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> Editor (alpha, beta)Source
An editor which composes two subeditors
tupel3Editor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> (Editor gamma, Parameters) -> Editor (alpha, beta, gamma)Source
splitEditor :: (Editor alpha, Parameters) -> (Editor beta, Parameters) -> Editor (alpha, beta)Source
Like a pair editor, but with a moveable split
eitherOrEditor :: (Default alpha, Default beta) => (Editor alpha, Parameters) -> (Editor beta, Parameters) -> String -> Editor (Either alpha beta)Source
An editor with a subeditor which gets active, when a checkbox is selected or deselected (if the positive Argument is False)
:: (Show alpha, Default alpha, Eq alpha) | |
=> ColumnDescr alpha | |
-> (Editor alpha, Parameters) | |
-> Maybe ([alpha] -> [alpha]) | The |
-> Maybe (alpha -> alpha -> Bool) | The |
-> Editor [alpha] |
An editor with a subeditor, of which a list of items can be selected
data ColumnDescr row Source
ColumnDescr Bool [(String, row -> [AttrOp CellRendererText])] |
filesEditor :: Maybe FilePath -> FileChooserAction -> String -> Editor [FilePath]Source