elm_prefs: move Elm Prefs_Reset_Mode to elm_general.eo

This commit is contained in:
Larry 2016-02-19 21:43:33 -02:00 committed by Felipe Magno de Almeida
parent b0695e712c
commit f53ac2533f
3 changed files with 30 additions and 36 deletions

View File

@ -207,3 +207,33 @@ enum Elm.App.View_State
shallow,
}
enum Elm.Prefs.Reset_Mode
{
[[Modes of resetting a prefs widget.
see elm_prefs_reset()
@since 1.8]]
legacy: elm_prefs_reset;
defaults, [[reset to default values, declared in its <b>.epb</b> file]]
last [[prefs will keep a small history of changes, so this resets back to last batch of changes on the UI elements. it does <b>not</b> work on autosave mode]]
}
enum Elm.Prefs.Item_Type
{
[[Elm Prefs item types.
@since 1.8]]
legacy: elm_prefs_type;
unknown = 0,
action, [[action type, bound to button-like UI elements]]
bool, [[boolean type, bound to checkbox-like UI elements]]
int, [[integer type, bound to spinner-like UI elements]]
float, [[floating point type, bound to spinner-like UI elements]]
label, [[label type, bound to read-only, label UI elements]]
date, [[date type, bound to date selection UI elements]]
text, [[text type, bound to single-line, text entry UI elements]]
textarea, [[text area type, bound to multi-line, text entry UI elements]]
page, [[page type, used to nest pages]]
reset, [[values resetting trigger type, bound to button-like UI elements]]
save, [[saving trigger type, bound to button-like UI elements]]
separator, [[separator type, bound to separator-like UI elements]]
swallow [[swallow type, bound to an empty 'spot' on the UI meant to receive and display external content]]
}

View File

@ -4,19 +4,6 @@
* @{
*/
/**
* Modes of resetting a prefs widget.
*
* @see elm_prefs_reset()
*
* @since 1.8
*/
typedef enum
{
ELM_PREFS_RESET_DEFAULTS, /**< reset to default values, declared in its @b .epb file */
ELM_PREFS_RESET_LAST /**< prefs will keep a small history of changes, so this resets back to last batch of changes on the UI elements. it does @b not work on autosave mode */
} Elm_Prefs_Reset_Mode;
/**
* @brief Add a new prefs widget
*

View File

@ -30,29 +30,6 @@
* @{
*/
/**
* Elm Prefs item types.
*
* @since 1.8
*/
typedef enum _Elm_Prefs_Item_Type
{
ELM_PREFS_TYPE_UNKNOWN = 0,
ELM_PREFS_TYPE_ACTION, /***< action type, bound to button-like UI elements */
ELM_PREFS_TYPE_BOOL, /**< boolean type, bound to checkbox-like UI elements */
ELM_PREFS_TYPE_INT, /**< integer type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_FLOAT, /**< floating point type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_LABEL, /**< label type, bound to read-only, label UI elements */
ELM_PREFS_TYPE_DATE, /**< date type, bound to date selection UI elements */
ELM_PREFS_TYPE_TEXT, /**< text type, bound to single-line, text entry UI elements */
ELM_PREFS_TYPE_TEXTAREA, /**< text area type, bound to multi-line, text entry UI elements */
ELM_PREFS_TYPE_PAGE, /**< page type, used to nest pages */
ELM_PREFS_TYPE_RESET, /**< values resetting trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SAVE, /**< saving trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SEPARATOR, /**< separator type, bound to separator-like UI elements */
ELM_PREFS_TYPE_SWALLOW /**< swallow type, bound to an empty 'spot' on the UI meant to receive and display external content */
} Elm_Prefs_Item_Type;
/**
* Types of events a given prefs data handle may issue.
*