Safe Haskell | None |
---|
Data types being standard interface between any GUI and underlying application. Heavy usage of lenses, which has disadvantage of huge amount of API documentation without proper comments.
- data InputFieldType
- action :: forall b m. MonadState InputFieldType m => StateT (IO ()) m b -> m b
- cbValue :: forall b m. MonadState InputFieldType m => StateT Bool m b -> m b
- selString :: forall b m. MonadState InputFieldType m => StateT [String] m b -> m b
- selValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Int) m b -> m b
- daValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Day) m b -> m b
- stValue :: forall b m. MonadState InputFieldType m => StateT String m b -> m b
- inValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Int) m b -> m b
- flValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Double) m b -> m b
- isSelectionJust :: InputFieldType -> Bool
- isInputJust :: InputFieldType -> Bool
- isCheckBox :: InputFieldType -> Bool
- setCheckBox :: Bool -> InputFieldType -> InputFieldType
- newSelection :: Int -> InputFieldType -> InputFieldType
- data Attributes = Attributes {}
- errMssg :: forall b m. MonadState Attributes m => StateT String m b -> m b
- isError :: forall b m. MonadState Attributes m => StateT Bool m b -> m b
- editable :: forall b m. MonadState Attributes m => StateT Bool m b -> m b
- visible :: forall b m. MonadState Attributes m => StateT Bool m b -> m b
- validated :: forall b m. MonadState Attributes m => StateT Bool m b -> m b
- rawValue :: forall b m. MonadState Attributes m => StateT String m b -> m b
- data InputField = InputField {
- idOf_ :: Int
- val_ :: InputFieldType
- att_ :: Attributes
- att :: forall b m. MonadState InputField m => StateT Attributes m b -> m b
- val :: forall b m. MonadState InputField m => StateT InputFieldType m b -> m b
- idOf :: forall b m. MonadState InputField m => StateT Int m b -> m b
- val_flValue :: MonadState InputField m => StateT (Maybe Double) (StateT InputFieldType m) b -> m b
- val_inValue :: MonadState InputField m => StateT (Maybe Int) (StateT InputFieldType m) b -> m b
- val_stValue :: MonadState InputField m => StateT String (StateT InputFieldType m) b -> m b
- val_daValue :: MonadState InputField m => StateT (Maybe Day) (StateT InputFieldType m) b -> m b
- val_cbValue :: MonadState InputField m => StateT Bool (StateT InputFieldType m) b -> m b
- val_selValue :: MonadState InputField m => StateT (Maybe Int) (StateT InputFieldType m) b -> m b
- val_selString :: MonadState InputField m => StateT [String] (StateT InputFieldType m) b -> m b
- val_action :: MonadState InputField m => StateT (IO ()) (StateT InputFieldType m) b -> m b
- att_rawValue :: MonadState InputField m => StateT String (StateT Attributes m) b -> m b
- att_validated :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m b
- att_visible :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m b
- att_editable :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m b
- att_isError :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m b
- att_errMssg :: MonadState InputField m => StateT String (StateT Attributes m) b -> m b
Documentation
data InputFieldType Source
Abstract input types. Denote UI fields.
Fl | Float value |
In | Integer value |
Str | String value |
Da | Date value |
Selection | Selection list (no syntax validation) |
| |
CheckBox | Check Box (no syntax validation) |
Action | Very general action. |
NoDataJustAttributes | In case no data needed for a widget. |
action :: forall b m. MonadState InputFieldType m => StateT (IO ()) m b -> m bSource
cbValue :: forall b m. MonadState InputFieldType m => StateT Bool m b -> m bSource
selString :: forall b m. MonadState InputFieldType m => StateT [String] m b -> m bSource
selValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Int) m b -> m bSource
daValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Day) m b -> m bSource
stValue :: forall b m. MonadState InputFieldType m => StateT String m b -> m bSource
inValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Int) m b -> m bSource
flValue :: forall b m. MonadState InputFieldType m => StateT (Maybe Double) m b -> m bSource
errMssg :: forall b m. MonadState Attributes m => StateT String m b -> m bSource
isError :: forall b m. MonadState Attributes m => StateT Bool m b -> m bSource
editable :: forall b m. MonadState Attributes m => StateT Bool m b -> m bSource
visible :: forall b m. MonadState Attributes m => StateT Bool m b -> m bSource
validated :: forall b m. MonadState Attributes m => StateT Bool m b -> m bSource
rawValue :: forall b m. MonadState Attributes m => StateT String m b -> m bSource
data InputField Source
Abstraction of widget. It consists of id, value with type and attributes. This is main data type to use as widget field. It consist of all what needed: its ID, its value of one of allowed types and attributes.
InputField | |
|
att :: forall b m. MonadState InputField m => StateT Attributes m b -> m bSource
val :: forall b m. MonadState InputField m => StateT InputFieldType m b -> m bSource
idOf :: forall b m. MonadState InputField m => StateT Int m b -> m bSource
val_flValue :: MonadState InputField m => StateT (Maybe Double) (StateT InputFieldType m) b -> m bSource
Boilerplating not provided by Lenses.Template
val_inValue :: MonadState InputField m => StateT (Maybe Int) (StateT InputFieldType m) b -> m bSource
val_stValue :: MonadState InputField m => StateT String (StateT InputFieldType m) b -> m bSource
val_daValue :: MonadState InputField m => StateT (Maybe Day) (StateT InputFieldType m) b -> m bSource
val_cbValue :: MonadState InputField m => StateT Bool (StateT InputFieldType m) b -> m bSource
val_selValue :: MonadState InputField m => StateT (Maybe Int) (StateT InputFieldType m) b -> m bSource
val_selString :: MonadState InputField m => StateT [String] (StateT InputFieldType m) b -> m bSource
val_action :: MonadState InputField m => StateT (IO ()) (StateT InputFieldType m) b -> m bSource
att_rawValue :: MonadState InputField m => StateT String (StateT Attributes m) b -> m bSource
att_validated :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m bSource
att_visible :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m bSource
att_editable :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m bSource
att_isError :: MonadState InputField m => StateT Bool (StateT Attributes m) b -> m bSource
att_errMssg :: MonadState InputField m => StateT String (StateT Attributes m) b -> m bSource