summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry <larry.olj@gmail.com>2016-02-19 21:43:33 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-25 23:16:09 -0300
commitdb77736b6a93a555f2d2bfc303fb366c319140f6 (patch)
tree847d59cba25d46a0b51d9f12f000f5f151e28672
parentfb551c7a3217805f83465bcec91cf25b28c77c49 (diff)
elm_prefs: move Elm Prefs_Reset_Mode to elm_general.eo
-rw-r--r--src/lib/elm_general.eot30
-rw-r--r--src/lib/elm_prefs_common.h13
-rw-r--r--src/lib/elm_prefs_data.h23
3 files changed, 30 insertions, 36 deletions
diff --git a/src/lib/elm_general.eot b/src/lib/elm_general.eot
index aac2e940e..c52dde5b5 100644
--- a/src/lib/elm_general.eot
+++ b/src/lib/elm_general.eot
@@ -207,3 +207,33 @@ enum Elm.App.View_State
207 shallow, 207 shallow,
208} 208}
209 209
210enum Elm.Prefs.Reset_Mode
211{
212 [[Modes of resetting a prefs widget.
213 see elm_prefs_reset()
214 @since 1.8]]
215 legacy: elm_prefs_reset;
216 defaults, [[reset to default values, declared in its <b>.epb</b> file]]
217 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]]
218}
219
220enum Elm.Prefs.Item_Type
221{
222 [[Elm Prefs item types.
223 @since 1.8]]
224 legacy: elm_prefs_type;
225 unknown = 0,
226 action, [[action type, bound to button-like UI elements]]
227 bool, [[boolean type, bound to checkbox-like UI elements]]
228 int, [[integer type, bound to spinner-like UI elements]]
229 float, [[floating point type, bound to spinner-like UI elements]]
230 label, [[label type, bound to read-only, label UI elements]]
231 date, [[date type, bound to date selection UI elements]]
232 text, [[text type, bound to single-line, text entry UI elements]]
233 textarea, [[text area type, bound to multi-line, text entry UI elements]]
234 page, [[page type, used to nest pages]]
235 reset, [[values resetting trigger type, bound to button-like UI elements]]
236 save, [[saving trigger type, bound to button-like UI elements]]
237 separator, [[separator type, bound to separator-like UI elements]]
238 swallow [[swallow type, bound to an empty 'spot' on the UI meant to receive and display external content]]
239}
diff --git a/src/lib/elm_prefs_common.h b/src/lib/elm_prefs_common.h
index 8d7ab7b94..17cd0fb09 100644
--- a/src/lib/elm_prefs_common.h
+++ b/src/lib/elm_prefs_common.h
@@ -5,19 +5,6 @@
5 */ 5 */
6 6
7/** 7/**
8 * Modes of resetting a prefs widget.
9 *
10 * @see elm_prefs_reset()
11 *
12 * @since 1.8
13 */
14typedef enum
15{
16 ELM_PREFS_RESET_DEFAULTS, /**< reset to default values, declared in its @b .epb file */
17 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 */
18} Elm_Prefs_Reset_Mode;
19
20/**
21 * @brief Add a new prefs widget 8 * @brief Add a new prefs widget
22 * 9 *
23 * @param parent The parent widget to hold the new one 10 * @param parent The parent widget to hold the new one
diff --git a/src/lib/elm_prefs_data.h b/src/lib/elm_prefs_data.h
index 54d350241..bf3b8af2c 100644
--- a/src/lib/elm_prefs_data.h
+++ b/src/lib/elm_prefs_data.h
@@ -31,29 +31,6 @@
31 */ 31 */
32 32
33/** 33/**
34 * Elm Prefs item types.
35 *
36 * @since 1.8
37 */
38typedef enum _Elm_Prefs_Item_Type
39{
40 ELM_PREFS_TYPE_UNKNOWN = 0,
41 ELM_PREFS_TYPE_ACTION, /***< action type, bound to button-like UI elements */
42 ELM_PREFS_TYPE_BOOL, /**< boolean type, bound to checkbox-like UI elements */
43 ELM_PREFS_TYPE_INT, /**< integer type, bound to spinner-like UI elements */
44 ELM_PREFS_TYPE_FLOAT, /**< floating point type, bound to spinner-like UI elements */
45 ELM_PREFS_TYPE_LABEL, /**< label type, bound to read-only, label UI elements */
46 ELM_PREFS_TYPE_DATE, /**< date type, bound to date selection UI elements */
47 ELM_PREFS_TYPE_TEXT, /**< text type, bound to single-line, text entry UI elements */
48 ELM_PREFS_TYPE_TEXTAREA, /**< text area type, bound to multi-line, text entry UI elements */
49 ELM_PREFS_TYPE_PAGE, /**< page type, used to nest pages */
50 ELM_PREFS_TYPE_RESET, /**< values resetting trigger type, bound to button-like UI elements */
51 ELM_PREFS_TYPE_SAVE, /**< saving trigger type, bound to button-like UI elements */
52 ELM_PREFS_TYPE_SEPARATOR, /**< separator type, bound to separator-like UI elements */
53 ELM_PREFS_TYPE_SWALLOW /**< swallow type, bound to an empty 'spot' on the UI meant to receive and display external content */
54} Elm_Prefs_Item_Type;
55
56/**
57 * Types of events a given prefs data handle may issue. 34 * Types of events a given prefs data handle may issue.
58 * 35 *
59 * @see elm_prefs_data_event_callback_add() 36 * @see elm_prefs_data_event_callback_add()