elm_datetime: Move enums to elm_datetime.eo
authorYakov Goldberg <yakov.g@samsung.com>
Tue, 7 Jul 2015 11:31:53 +0000 (14:31 +0300)
committerYakov Goldberg <yakov.g@samsung.com>
Wed, 8 Jul 2015 07:23:38 +0000 (10:23 +0300)
Move enums from elm_datetime_common.h to elm_datetime.eo in order to make them
more accessible for bindings.

src/lib/elm_datetime.eo
src/lib/elm_datetime_common.h

index d6bd832b939a67fd42257a092cb8848a45c70a94..4f03b486b38eb0b7aba9e7d6d1ee305dce90799b 100644 (file)
@@ -1,3 +1,20 @@
+enum Elm.Datetime.Field_Type
+{
+   [[
+      @addtogroup Datetime
+      Identifies a Datetime field, The widget supports 6 fields : Year, month,
+      Date, Hour, Minute, AM/PM
+   ]]
+
+   legacy: elm_datetime;
+   year    = 0, [[Indicates Year field.]]
+   month   = 1, [[Indicates Month field.]]
+   date    = 2, [[Indicates Date field.]]
+   hour    = 3, [[Indicates Hour field.]]
+   minute  = 4, [[Indicates Minute field.]]
+   ampm    = 5, [[Indicates AM/PM field .]]
+}
+
 class Elm.Datetime (Elm.Layout)
 {
    eo_prefix: elm_obj_datetime;
@@ -100,7 +117,7 @@ class Elm.Datetime (Elm.Layout)
          @ingroup Datetime */
 
          params {
-            @in fieldtype: Elm_Datetime_Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
+            @in fieldtype: Elm.Datetime.Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
             @in min: int; /*@ Reference to field's minimum value */
             @in max: int; /*@ Reference to field's maximum value */
          }
@@ -119,7 +136,7 @@ class Elm.Datetime (Elm.Layout)
          @see elm_datetime_field_limit_set()
          @ingroup Datetime */
          params {
-            @in fieldtype: Elm_Datetime_Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
+            @in fieldtype: Elm.Datetime.Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
             @out min: int; /*@ Reference to field's minimum value */
             @out max: int; /*@ Reference to field's maximum value */
          }
@@ -238,7 +255,7 @@ class Elm.Datetime (Elm.Layout)
          @ingroup Datetime */
 
          params {
-            @in fieldtype: Elm_Datetime_Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
+            @in fieldtype: Elm.Datetime.Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc. */
             @in visible: bool; /*@ @c EINA_TRUE field can be visible, @c EINA_FALSE otherwise. */
          }
       }
@@ -252,7 +269,7 @@ class Elm.Datetime (Elm.Layout)
          @ingroup Datetime */
          return: bool;
          params {
-            @in fieldtype: Elm_Datetime_Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc */
+            @in fieldtype: Elm.Datetime.Field_Type; /*@ Type of the field. #ELM_DATETIME_YEAR etc */
          }
       }
       value_max_set {
index 9244b105c4671736697df8f18c59f86d4929605a..0115e0e17ec2cf325c1c66e56c101abf81358af4 100644 (file)
@@ -3,21 +3,6 @@
  *
  * @{
  */
-
-/**
- * Identifies a Datetime field, The widget supports 6 fields : Year, month,
- * Date, Hour, Minute, AM/PM
- */
-typedef enum
-{
-   ELM_DATETIME_YEAR    = 0, /**< Indicates Year field */
-   ELM_DATETIME_MONTH   = 1, /**< Indicates Month field */
-   ELM_DATETIME_DATE    = 2, /**< Indicates Date field */
-   ELM_DATETIME_HOUR    = 3, /**< Indicates Hour field */
-   ELM_DATETIME_MINUTE  = 4, /**< Indicates Minute field */
-   ELM_DATETIME_AMPM    = 5, /**< Indicates AM/PM field */
-} Elm_Datetime_Field_Type;
-
 /* temporary until better solution is found: is here because of eolian */
 typedef struct tm Elm_Datetime_Time;