Reduce difference of CAPI between mobile/wearable and others. 39/104239/11
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 13 Dec 2016 01:46:28 +0000 (10:46 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 14 Dec 2016 06:47:50 +0000 (15:47 +0900)
At least, the devel pacakage should be unified for every profile.
As a first patch of such objectives, this minimizes the difference
between mobile/wearable and other profiles caused by src/mobile_lib
files.

This patch handles the obvious ones only and a following commit
will remove the duplicated files from mobile/lib.
This commit does not remove such files for reviews to review
the commit easily.

The C files touched are added with dummy functions to keep
the same header across all profiles.

Change-Id: I3c1e1da3d0cb2af913054b53d1d8e2d5c3be8ca7
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
14 files changed:
src/lib/elc_ctxpopup.c
src/lib/elc_ctxpopup.h
src/lib/elc_ctxpopup_legacy.h
src/lib/elm_ctxpopup.eo
src/lib/elm_ctxpopup_item.eo
src/lib/elm_genlist.h
src/lib/elm_genlist_common.h
src/lib/elm_genlist_item.eo
src/mobile_lib/elc_ctxpopup.c
src/mobile_lib/elc_ctxpopup.h
src/mobile_lib/elm_ctxpopup.eo
src/mobile_lib/elm_ctxpopup_item.eo
src/mobile_lib/elm_genlist.h
src/mobile_lib/elm_genlist_common.h

index 2383897535d603de9803d379a65470c1c2338fb0..ddd7d53ae52cdbd00235ace0733dcb913e0ab74f 100644 (file)
@@ -964,6 +964,19 @@ _elm_ctxpopup_item_elm_widget_item_signal_emit(Eo *eo_ctxpopup_it EINA_UNUSED,
    elm_object_item_signal_emit(ctxpopup_it->list_item, emission, source);
 }
 
+//TIZEN ONLY(20161213): dummy functions to provide a common programming interface for all profiles
+EOLIAN static void
+_elm_ctxpopup_item_elm_widget_item_style_set(Eo *eo_item EINA_UNUSED,
+                                             Elm_Ctxpopup_Item_Data *item EINA_UNUSED,
+                                             const char *style EINA_UNUSED)
+{}
+EOLIAN static Eina_Bool
+_elm_ctxpopup_item_elm_widget_item_del_pre(Eo *eo_item EINA_UNUSED, Elm_Ctxpopup_Item_Data *item EINA_UNUSED)
+{
+   return EINA_FALSE;
+}
+//
+
 EOLIAN static void
 _elm_ctxpopup_item_elm_widget_item_focus_set(Eo *eo_ctxpopup_it EINA_UNUSED,
                                              Elm_Ctxpopup_Item_Data *ctxpopup_it,
@@ -1508,6 +1521,21 @@ _elm_ctxpopup_item_init(Eo *eo_item,
    sd->dir = ELM_CTXPOPUP_DIRECTION_UNKNOWN;
 }
 
+//TIZEN ONLY(20161213): support the same programming interface with mobile/wearable profiles for tizen platform packages
+EOLIAN static const char*
+_elm_ctxpopup_elm_interface_atspi_accessible_name_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   // Only available for Tizen Mobile/Wearable
+   return NULL;
+}
+EOLIAN Eina_List*
+_elm_ctxpopup_elm_interface_atspi_accessible_children_get(Eo *eo_item EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   // Only available for Tizen Mobile/Wearable
+   return NULL;
+}
+//
+
 EOLIAN static const Elm_Atspi_Action*
 _elm_ctxpopup_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
 {
@@ -1614,5 +1642,19 @@ _elm_ctxpopup_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED
 }
 //
 
+//TIZEN ONLY(20161213): dummy functions to provide a common programming interface for all profiles
+EOLIAN static Eina_Bool
+_elm_ctxpopup_item_elm_interface_atspi_component_highlight_grab(Eo *eo_it EINA_UNUSED, Elm_Ctxpopup_Item_Data *it EINA_UNUSED)
+{
+   return EINA_FALSE;
+}
+EOLIAN static Eina_Bool
+_elm_ctxpopup_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it EINA_UNUSED, Elm_Ctxpopup_Item_Data *it EINA_UNUSED)
+{
+   return EINA_TRUE;
+}
+//
+
+
 #include "elm_ctxpopup_item.eo.c"
 #include "elm_ctxpopup.eo.c"
index 3a559cca1b5890efd5358854af08123149f7539d..b1f4699d42b74557f5fe88eb4dec6d7e92518b86 100644 (file)
@@ -5,8 +5,8 @@
  * @image html ctxpopup_inheritance_tree.png
  * @image latex ctxpopup_inheritance_tree.eps
  *
- * @image html img/widget/ctxpopup/preview-00.png
- * @image latex img/widget/ctxpopup/preview-00.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/ctxpopup/preview-00.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/ctxpopup/preview-00.eps @endif
  *
  * @brief Context popup widget.
  *
@@ -56,7 +56,7 @@
  * @li @ref elm_object_item_focus_set
  * @li @ref elm_object_item_focus_get
  *
- * @ref tutorial_ctxpopup shows the usage of a good deal of the API.
+ * @ref @if MOBILE @elif WEARABLE @else tutorial_ctxpopup shows the usage of a good deal of the API. @endif
  * @{
  */
 
index 44d1cb0451f9e3680a7288b3a6644ae8acb85977..cf65dbf3e48c9bdeb4292bcb7f65f203cd2c87ca 100644 (file)
@@ -1,16 +1,38 @@
 /**
  * @brief Add a new Ctxpopup object to the parent.
  *
- * @param parent Parent object
- * @return New object or @c NULL, if it cannot be created
- *
- * @ingroup Ctxpopup
- *
  * @if MOBILE @since_tizen 2.3
  * @elseif WEARABLE @since_tizen 2.3.1
  * @endif
+ *
+ * @param[in] parent Parent object
+ * @return New object or @c NULL, if it cannot be created
+ *
+ * @ingroup Ctxpopup
  */
 EAPI Evas_Object                 *elm_ctxpopup_add(Evas_Object *parent);
 
 #include "elm_ctxpopup_item.eo.legacy.h"
 #include "elm_ctxpopup.eo.legacy.h"
+
+/**
+ * @deprecated Deprecated since 2.4
+ * @brief Get the possibility that the direction would be available
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
+ *
+ * @ingroup Ctxpopup
+ *
+ * @param[in] obj The ctxpopup object
+ * @param[in] direction A direction user wants to check
+ *
+ * Use this function to check whether input direction is proper for ctxpopup.
+ * If ctxpopup cannot be at the direction since there is no sufficient area it can be,
+ *
+ * @return @c EINA_FALSE if you cannot put it in the direction.
+ *         @c EINA_TRUE if it's possible.
+ */
+EAPI Eina_Bool
+elm_ctxpopup_direction_available_get(Evas_Object *obj, Elm_Ctxpopup_Direction direction);
index addcbc49ddcb893133f864bc815fca589ca55c62..d2b59bedad2c3007c68bfc5347ffe131a16ce8fe 100644 (file)
@@ -56,11 +56,15 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
               @since 1.9
             ]]
          }
-         get @internal {
+         get {
             [[Get ctxpopup auto hide mode triggered by ctxpopup policy.
 
               See also @.auto_hide_disabled.set for more information.
 
+              \@if MOBILE \@since_tizen 1.0
+              \@elseif WEARABLE \@sinze_tizen 1.0
+              \@endif
+
               @since 1.9
             ]]
          }
@@ -280,12 +284,20 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
       Elm.Layout.sizing_eval;
       Elm_Interface_Atspi_Widget_Action.elm_actions.get;
       Elm_Interface_Atspi_Accessible.state_set.get;
+      Elm_Interface_Atspi_Accessible.children.get;
+      //TIZEN ONLY(20160918): name interface added
+      Elm_Interface_Atspi_Accessible.name.get;
+      //
       Elm_Interface_Atspi_Component.extents.get;
       Elm_Interface_Atspi_Component.highlight_grab;
       Elm_Interface_Atspi_Component.highlight_clear;
    }
    events {
-      dismissed;
+      language,changed;
+      access,changed;
+      focused;
+      unfocused;
+         dismissed;
    }
 
 }
index 8abaf68b0fb9ae4cee2662248c76412a172c9b76..575b478e437c0ac07b20516873ff99588e78810c 100644 (file)
@@ -42,13 +42,19 @@ class Elm.Ctxpopup_Item(Elm.Widget_Item, Elm_Interface_Atspi_Widget_Action)
         Eo.Base.destructor;
         Elm.Widget_Item.disable;
         Elm.Widget_Item.signal_emit;
+        Elm.Widget_Item.style.set;
         Elm.Widget_Item.part_text.get;
         Elm.Widget_Item.part_text.set;
         Elm.Widget_Item.part_content.get;
         Elm.Widget_Item.part_content.set;
+        Elm.Widget_Item.del_pre;
         Elm.Widget_Item.focus.set;
         Elm.Widget_Item.focus.get;
+        Elm_Interface_Atspi_Accessible.name.get;
         Elm_Interface_Atspi_Widget_Action.elm_actions.get;
-         Elm_Interface_Atspi_Accessible.name.get;
+        //TIZEN ONLY(20161014) : Accessibility: scroll the content when highlight frame goes out of view port
+        Elm_Interface_Atspi_Component.highlight_grab;
+        Elm_Interface_Atspi_Component.highlight_clear;
+        //
    }
 }
index 11d2a892b3f7b642ad38655029a5114c41156a30..17a83e12fef58fddd3d7a47143909aed985c42a4 100644 (file)
@@ -5,8 +5,8 @@
  * @image html genlist_inheritance_tree.png
  * @image latex genlist_inheritance_tree.eps
  *
- * @image html img/widget/genlist/preview-00.png
- * @image latex img/widget/genlist/preview-00.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-00.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-00.eps @endif
  * @image html img/genlist.png
  * @image latex img/genlist.eps
  *
  * - default
  * - default_style - The text part is a textblock
  *
- * @image html img/widget/genlist/preview-04.png
- * @image latex img/widget/genlist/preview-04.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-04.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-04.eps @endif
  *
  * - double_label
  *
- * @image html img/widget/genlist/preview-01.png
- * @image latex img/widget/genlist/preview-01.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-01.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-01.eps @endif
  *
  * - icon_top_text_bottom
  *
- * @image html img/widget/genlist/preview-02.png
- * @image latex img/widget/genlist/preview-02.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-02.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-02.eps @endif
  *
  * - group_index
  *
- * @image html img/widget/genlist/preview-03.png
- * @image latex img/widget/genlist/preview-03.eps
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-03.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-03.eps @endif
  *
  * - one_icon - Only 1 icon (left) (since 1.7)
  * - end_icon - Only 1 icon (at end/right) (since 1.7)
  * - no_icon - No icon (at end/right) (since 1.7)
  * - full - Only 1 icon, elm.swallow.content,  which consumes whole area of
- * genlist itemj (since 1.7)
+ * genlist item (since 1.7)
  *
  * If one wants to use more icons and texts than are offered in theme, there
  * are two solutions. One is to use 'full' style that has one big swallow part.
index dd2cdbffff31e61e2be3abe55aa59f516dba11db..d5d2c445ef987941082c5109b117be1ec169a377 100644 (file)
@@ -1,6 +1,48 @@
 #define ELM_GENLIST_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
 #define ELM_GENLIST_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
 
+/**
+ * @brief Enumeration that defines whether the item is of a special type (has subitems or it's the
+ * index of a group), or it is just a simple item.
+ */
+typedef enum
+{
+       ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
+       ELM_GENLIST_ITEM_TREE = (1 << 0), /**< this may be expanded and have child items. */
+       ELM_GENLIST_ITEM_GROUP = (1 << 1), /**< an index item of a group of items. this item can have child items. */
+
+       ELM_GENLIST_ITEM_MAX = (1 << 2)
+} Elm_Genlist_Item_Type;
+
+/**
+ * @brief Enumeration that defines the type of the item field.
+ * @remarks It is used while updating the item field.
+ * @remarks It can be used for updating multi fields.
+ */
+typedef enum
+{
+       ELM_GENLIST_ITEM_FIELD_ALL = 0, /**< The item contains all fields */
+       ELM_GENLIST_ITEM_FIELD_TEXT = (1 << 0), /**< The item contains a text field */
+       ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1), /**< The item contains a content field */
+       ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2) /**< The item contains a state field */
+} Elm_Genlist_Item_Field_Type;
+
+
+/**
+ * @brief Enumeration that defines where to position the item in the genlist.
+ */
+typedef enum
+{
+       ELM_GENLIST_ITEM_SCROLLTO_NONE = 0,   /**< Scrolls to nowhere */
+       ELM_GENLIST_ITEM_SCROLLTO_IN = (1 << 0),   /**< Scrolls to the nearest viewport */
+       ELM_GENLIST_ITEM_SCROLLTO_TOP = (1 << 1),   /**< Scrolls to the top of the viewport */
+       ELM_GENLIST_ITEM_SCROLLTO_MIDDLE = (1 << 2),   /**< Scrolls to the middle of the viewport */
+// @tizen_feature
+       ELM_GENLIST_ITEM_SCROLLTO_BOTTOM = (1 << 3)   /**< Scrolls to the bottom of the viewport */
+///
+} Elm_Genlist_Item_Scrollto_Type;
+
+
 /**
  * @see Elm_Gen_Item_Class
  */
@@ -31,113 +73,131 @@ typedef Elm_Gen_Item_Del_Cb Elm_Genlist_Item_Del_Cb;
  */
 typedef Elm_Gen_Item_Reusable_Content_Get_Cb Elm_Genlist_Reusable_Content_Get_Cb;
 
+
 /**
- * Create a new genlist item class in a given genlist widget.
+ * @brief Create a new genlist item class in a given genlist widget.
  *
- * @return New allocated genlist item class.
+ * @details This adds genlist item class for the genlist widget.
+ *          When adding an item, genlist_item_{append, prepend, insert}
+ *          function needs item class of the item.
+ *          Given callback parameters are used at retrieving {text, content} of
+ *          added item. Set as NULL if it's not used.
+ *          If there's no available memory, return can be NULL.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
  *
- * This adds genlist item class for the genlist widget. When adding an item,
- * genlist_item_{append, prepend, insert} function needs item class of the item.
- * Given callback parameters are used at retrieving {text, content} of
- * added item. Set as NULL if it's not used.
- * If there's no available memory, return can be NULL.
+ * @return New allocated genlist item class.
  *
  * @see elm_genlist_item_class_free()
  * @see elm_genlist_item_append()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI Elm_Genlist_Item_Class *elm_genlist_item_class_new(void);
 
 /**
- * Remove an item class in a given genlist widget.
+ * @brief Remove an item class in a given genlist widget.
  *
- * @param itc The itc to be removed.
+ * @details This removes item class from the genlist widget.
+ *          Whenever it has no more references to it,
+ *          item class is going to be freed.
+ *          Otherwise it just decreases its reference count.
  *
- * This removes item class from the genlist widget.
- * Whenever it has no more references to it, item class is going to be freed.
- * Otherwise it just decreases its reference count.
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
  *
  * @see elm_genlist_item_class_new()
  * @see elm_genlist_item_class_ref()
  * @see elm_genlist_item_class_unref()
  *
- * @ingroup Genlist
+ * @param itc The itc to be removed.
  *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
+ * @ingroup Genlist
  */
 EAPI void elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc);
 
 /**
- * Increments object reference count for the item class.
+ * @brief Increments object reference count for the item class.
  *
- * @param itc The given item class object to reference
+ * @details This API just increases its reference count for item class management.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
  *
- * This API just increases its reference count for item class management.
+ * @param itc The given item class object to reference
  *
  * @see elm_genlist_item_class_unref()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc);
 
 /**
- * Decrements object reference count for the item class.
+ * @brief Decrements object reference count for the item class.
  *
- * @param itc The given item class object to reference
+ * @details This API just decreases its reference count for item class management.
+ *          Reference count can't be less than 0.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
  *
- * This API just decreases its reference count for item class management.
- * Reference count can't be less than 0.
+ * @param itc The given item class object to reference
  *
  * @see elm_genlist_item_class_ref()
  * @see elm_genlist_item_class_free()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc);
 
 /**
  * @MOBILE_ONLY
  *
- * Set the text to be shown in a given genlist item's tooltips.
+ * @brief Set the text to be shown in a given genlist item's tooltips.
  *
- * @param it The genlist item
- * @param text The text to set in the content
+ * @details This call will setup the text to be used as tooltip to that item
+ *          (analogous to elm_object_tooltip_text_set(), but being item
+ *          tooltips with higher precedence than object tooltips).
+ *          It can have only one tooltip at a time, so any previous tooltip data
+ *          will get removed.
  *
- * This call will setup the text to be used as tooltip to that item
- * (analogous to elm_object_tooltip_text_set(), but being item
- * tooltips with higher precedence than object tooltips). It can
- * have only one tooltip at a time, so any previous tooltip data
- * will get removed.
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
- * In order to set a content or something else as a tooltip, look at
- * elm_genlist_item_tooltip_content_cb_set().
+ * @remarks In order to set a content or something else as a tooltip, look at
+ *          elm_genlist_item_tooltip_content_cb_set().
  *
- * @ingroup Genlist
+ * @param it The genlist item
+ * @param text The text to set in the content
  *
- * @if MOBILE @since_tizen 2.3
- * @endif
+ * @ingroup Genlist
  */
 EAPI void                          elm_genlist_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
 
 /**
  * @MOBILE_ONLY
  *
- * Set the content to be shown in a given genlist item's tooltips
+ * @brief Set the content to be shown in a given genlist item's tooltips
+ *
+ * @details This call will setup the tooltip's contents to @p item
+ *          (analogous to elm_object_tooltip_content_cb_set(), but being
+ *          item tooltips with higher precedence than object tooltips).
+ *          It can have only one tooltip at a time, so any previous tooltip
+ *          content will get removed. @p func (with @p data) will be called
+ *          every time Elementary needs to show the tooltip and it should
+ *          return a valid Evas object, which will be fully managed by the
+ *          tooltip system, getting deleted when the tooltip is gone.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
+ *
+ * @remarks In order to set just a text as a tooltip, look at
+ *          elm_genlist_item_tooltip_text_set().
  *
  * @param it The genlist item.
  * @param func The function returning the tooltip contents.
@@ -148,79 +208,66 @@ EAPI void                          elm_genlist_item_tooltip_text_set(Elm_Object_
  *        dies. This callback receives as its first parameter the
  *        given @p data, being @p event_info the item handle.
  *
- * This call will setup the tooltip's contents to @p item
- * (analogous to elm_object_tooltip_content_cb_set(), but being
- * item tooltips with higher precedence than object tooltips). It
- * can have only one tooltip at a time, so any previous tooltip
- * content will get removed. @p func (with @p data) will be called
- * every time Elementary needs to show the tooltip and it should
- * return a valid Evas object, which will be fully managed by the
- * tooltip system, getting deleted when the tooltip is gone.
- *
- * In order to set just a text as a tooltip, look at
- * elm_genlist_item_tooltip_text_set().
- *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
  */
 EAPI void                          elm_genlist_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
 
 /**
  * @MOBILE_ONLY
  *
- * Unset a tooltip from a given genlist item
+ * @brief Unset a tooltip from a given genlist item
  *
- * @param it genlist item to remove a previously set tooltip from.
+ * @brief This call removes any tooltip set on @p item. The callback
+ *        provided as @c del_cb to elm_genlist_item_tooltip_content_cb_set()
+ *        will be called to notify it is not used anymore
+ *        (and have resources cleaned, if need be).
  *
- * This call removes any tooltip set on @p item. The callback
- * provided as @c del_cb to
- * elm_genlist_item_tooltip_content_cb_set() will be called to
- * notify it is not used anymore (and have resources cleaned, if
- * need be).
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @see elm_genlist_item_tooltip_content_cb_set()
  *
- * @ingroup Genlist
+ * @param it genlist item to remove a previously set tooltip from.
  *
- * @if MOBILE @since_tizen 2.3
- * @endif
+ * @ingroup Genlist
  */
 EAPI void                          elm_genlist_item_tooltip_unset(Elm_Object_Item *it);
 
 /**
  * @MOBILE_ONLY
  *
- * Set a different @b style for a given genlist item's tooltip.
+ * @brief Set a different @b style for a given genlist item's tooltip.
+ *
+ * @details Tooltips can have <b>alternate styles</b> to be displayed on,
+ *          which are defined by the theme set on Elementary. This function
+ *          works analogously as elm_object_tooltip_style_set(), but here
+ *          applied only to genlist item objects. The default style for
+ *          tooltips is @c "default".
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
+ *
+ * @remarks before you set a style you should define a tooltip with
+ *          elm_genlist_item_tooltip_content_cb_set() or
+ *          elm_genlist_item_tooltip_text_set()
  *
  * @param it genlist item with tooltip set
  * @param style the <b>theme style</b> to use on tooltips (e.g. @c
  * "default", @c "transparent", etc)
  *
- * Tooltips can have <b>alternate styles</b> to be displayed on,
- * which are defined by the theme set on Elementary. This function
- * works analogously as elm_object_tooltip_style_set(), but here
- * applied only to genlist item objects. The default style for
- * tooltips is @c "default".
- *
- * @note before you set a style you should define a tooltip with
- *       elm_genlist_item_tooltip_content_cb_set() or
- *       elm_genlist_item_tooltip_text_set()
- *
  * @see elm_genlist_item_tooltip_style_get()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
  */
 EAPI void                          elm_genlist_item_tooltip_style_set(Elm_Object_Item *it, const char *style);
 
 /**
  * @MOBILE_ONLY
  *
- * Get the style set a given genlist item's tooltip.
+ * @details Get the style set a given genlist item's tooltip.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it genlist item with tooltip already set on.
  * @return style the theme style in use, which defaults to
@@ -230,9 +277,6 @@ EAPI void                          elm_genlist_item_tooltip_style_set(Elm_Object
  * @see elm_genlist_item_tooltip_style_set() for more details
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
  */
 EAPI const char                   *elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it);
 
@@ -240,15 +284,19 @@ EAPI const char                   *elm_genlist_item_tooltip_style_get(const Elm_
  * @MOBILE_ONLY
  *
  * @brief Disable size restrictions on an object's tooltip
- * @param it The tooltip's anchor object
- * @param disable If @c EINA_TRUE, size restrictions are disabled
- * @return @c EINA_FALSE on failure, @c EINA_TRUE on success
  *
- * This function allows a tooltip to expand beyond its parent window's canvas.
- * It will instead be limited only by the size of the display.
+ * @details This function allows a tooltip to expand beyond its parent window's canvas.
+ *          It will instead be limited only by the size of the display.
  *
  * @if MOBILE @since_tizen 2.3
  * @endif
+ *
+ * @brief Disable size restrictions on an object's tooltip
+ * @param it The tooltip's anchor object
+ * @param disable If @c EINA_TRUE, size restrictions are disabled
+ * @return @c EINA_FALSE on failure, @c EINA_TRUE on success
+ *
+ * @ingroup Genlist
  */
 EAPI Eina_Bool                     elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable);
 
@@ -256,49 +304,58 @@ EAPI Eina_Bool                     elm_genlist_item_tooltip_window_mode_set(Elm_
  * @MOBILE_ONLY
  *
  * @brief Get size restriction state of an object's tooltip
- * @param it The tooltip's anchor object
- * @return If @c EINA_TRUE, size restrictions are disabled
  *
- * This function returns whether a tooltip is allowed to expand beyond
- * its parent window's canvas.
- * It will instead be limited only by the size of the display.
+ * @details This function returns whether a tooltip is allowed to expand beyond
+ *          its parent window's canvas.
+ *          It will instead be limited only by the size of the display.
  *
  * @if MOBILE @since_tizen 2.3
  * @endif
+ *
+ * @param it The tooltip's anchor object
+ * @return If @c EINA_TRUE, size restrictions are disabled
+ *
+ * @ingroup Genlist
  */
 EAPI Eina_Bool                     elm_genlist_item_tooltip_window_mode_get(const Elm_Object_Item *it);
 
 /**
- * Set the type of mouse pointer/cursor decoration to be shown,
- * when the mouse pointer is over the given genlist widget item
+ * @MOBILE_ONLY
  *
- * @param it genlist item to customize cursor on
- * @param cursor the cursor type's name
+ * @brief Set the type of mouse pointer/cursor decoration to be shown,
+ *        when the mouse pointer is over the given genlist widget item
+ *
+ * @details This function works analogously as elm_object_cursor_set(), but
+ *          here the cursor's changing area is restricted to the item's
+ *          area, and not the whole widget's. Note that that item cursors
+ *          have precedence over widget cursors, so that a mouse over @p
+ *          item will always show cursor @p type.
  *
- * This function works analogously as elm_object_cursor_set(), but
- * here the cursor's changing area is restricted to the item's
- * area, and not the whole widget's. Note that that item cursors
- * have precedence over widget cursors, so that a mouse over @p
- * item will always show cursor @p type.
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
- * If this function is called twice for an object, a previously set
- * cursor will be unset on the second call.
+ * @remarks If this function is called twice for an object, a previously set
+ *          cursor will be unset on the second call.
+ *
+ * @param it genlist item to customize cursor on
+ * @param cursor the cursor type's name
  *
  * @see elm_object_cursor_set()
  * @see elm_genlist_item_cursor_get()
  * @see elm_genlist_item_cursor_unset()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI void                          elm_genlist_item_cursor_set(Elm_Object_Item *it, const char *cursor);
 
 /**
- * Get the type of mouse pointer/cursor decoration set to be shown,
- * when the mouse pointer is over the given genlist widget item
+ * @MOBILE_ONLY
+ *
+ * @brief Get the type of mouse pointer/cursor decoration set to be shown,
+ *        when the mouse pointer is over the given genlist widget item
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it genlist item with custom cursor set
  * @return the cursor type's name or @c NULL, if no custom cursors
@@ -309,48 +366,52 @@ EAPI void                          elm_genlist_item_cursor_set(Elm_Object_Item *
  * @see elm_genlist_item_cursor_unset()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI const char                   *elm_genlist_item_cursor_get(const Elm_Object_Item *it);
 
 /**
- * Unset any custom mouse pointer/cursor decoration set to be
- * shown, when the mouse pointer is over the given genlist widget
- * item, thus making it show the @b default cursor again.
+ * @MOBILE_ONLY
+ *
+ * @brief Unset any custom mouse pointer/cursor decoration set in genlist.
+ *
+ * @details Unset any custom mouse pointer/cursor decoration set to be shown,
+ *          when the mouse pointer is over the given genlist widget item,
+ *          thus making it show the @b default cursor again.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it a genlist item
  *
- * Use this call to undo any custom settings on this item's cursor
- * decoration, bringing it back to defaults (no custom style set).
+ * @remarks Use this call to undo any custom settings on this item's cursor
+ *          decoration, bringing it back to defaults (no custom style set).
  *
  * @see elm_object_cursor_unset()
  * @see elm_genlist_item_cursor_set() for more details
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI void                          elm_genlist_item_cursor_unset(Elm_Object_Item *it);
 
 /**
- * Set a different @b style for a given custom cursor set for a
- * genlist item.
+ * @MOBILE_ONLY
+ *
+ * @brief Set a different @b style for a given custom cursor set for a
+ *        genlist item.
+ *
+ * @details This function only makes sense when one is using custom mouse
+ *          cursor decorations <b>defined in a theme file</b> , which can
+ *          have, given a cursor name/type, <b>alternate styles</b> on
+ *          it. It works analogously as elm_object_cursor_style_set(), but
+ *          here applied only to genlist item objects.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it genlist item with custom cursor set
  * @param style the <b>theme style</b> to use (e.g. @c "default",
  * @c "transparent", etc)
  *
- * This function only makes sense when one is using custom mouse
- * cursor decorations <b>defined in a theme file</b> , which can
- * have, given a cursor name/type, <b>alternate styles</b> on
- * it. It works analogously as elm_object_cursor_style_set(), but
- * here applied only to genlist item objects.
- *
  * @warning Before you set a cursor style you should have defined a
  *       custom cursor previously on the item, with
  *       elm_genlist_item_cursor_set()
@@ -359,16 +420,16 @@ EAPI void                          elm_genlist_item_cursor_unset(Elm_Object_Item
  * @see elm_genlist_item_cursor_style_get()
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI void                          elm_genlist_item_cursor_style_set(Elm_Object_Item *it, const char *style);
 
 /**
- * Get the current @b style set for a given genlist item's custom
- * cursor
+ * @MOBILE_ONLY
+ *
+ * @brief Get the current @b style set for a given genlist item's custom cursor
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it genlist item with custom cursor set.
  * @return style the cursor style in use. If the object does not
@@ -377,41 +438,45 @@ EAPI void                          elm_genlist_item_cursor_style_set(Elm_Object_
  * @see elm_genlist_item_cursor_style_set() for more details
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI const char                   *elm_genlist_item_cursor_style_get(const Elm_Object_Item *it);
 
 /**
- * Set if the (custom) cursor for a given genlist item should be
- * searched in its theme, also, or should only rely on the
- * rendering engine.
+ * @MOBILE_ONLY
  *
- * @param it item with custom (custom) cursor already set on
- * @param engine_only Use @c EINA_TRUE to have cursors looked for
- * only on those provided by the rendering engine, @c EINA_FALSE to
- * have them searched on the widget's theme, as well.
+ * @brief Set if the cursor for a given genlist item is relying on the rendering engine only.
+ *
+ * @details Set if the (custom) cursor for a given genlist item should be
+ *          searched in its theme, also, or should only rely on the rendering engine.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
- * @note This call is of use only if you've set a custom cursor
+ * @remarks This call is of use only if you've set a custom cursor
  * for genlist items, with elm_genlist_item_cursor_set().
  *
- * @note By default, cursors will only be looked for between those
+ * @remarks By default, cursors will only be looked for between those
  * provided by the rendering engine.
  *
- * @ingroup Genlist
+ * @param it item with custom (custom) cursor already set on
+ * @param engine_only Use @c EINA_TRUE to have cursors looked for
+ * only on those provided by the rendering engine, @c EINA_FALSE to
+ * have them searched on the widget's theme, as well.
  *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
+ * @ingroup Genlist
  */
 EAPI void                          elm_genlist_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only);
 
 /**
- * Get if the (custom) cursor for a given genlist item is being
- * searched in its theme, also, or is only relying on the rendering
- * engine.
+ * @MOBILE_ONLY
+ *
+ * @brief Get if the cursor for a given genlist item is relying on the rendering engine only.
+ *
+ * @details Get if the (custom) cursor for a given genlist item is being
+ *          searched in its theme, also, or is only relying on the rendering engine.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @endif
  *
  * @param it a genlist item
  * @return @c EINA_TRUE, if cursors are being looked for only on
@@ -421,10 +486,6 @@ EAPI void                          elm_genlist_item_cursor_engine_only_set(Elm_O
  * @see elm_genlist_item_cursor_engine_only_set(), for more details
  *
  * @ingroup Genlist
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
  */
 EAPI Eina_Bool                     elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it);
 
index 7f692a70801ba4ccee30497c1f1e6bd1099d9750..df5884abbdd1033fb8ac4d6e38ef04413d7f1e3e 100644 (file)
@@ -1,41 +1,5 @@
 import elm_general;
 
-enum Elm.Genlist.Item.Type
-{
-   [[Defines if the item is of any special type (has subitems or it's the
-     index of a group), or is just a simple item.
-   ]]
-   legacy: elm_genlist_item;
-   none = 0, [[Simple item.]]
-   tree = (1 << 0), [[This may be expanded and have child items.]]
-   group = (1 << 1), [[An index item of a group of items. this item can have child items.]]
-   max = (1 << 2)
-}
-
-enum Elm.Genlist.Item.Field_Type
-{
-   [[Defines the type of the item part
-     Used while updating item's parts
-     It can be used at updating multi fields.
-   ]]
-   legacy: elm_genlist_item_field;
-   all = 0,
-   text = (1 << 0),
-   content = (1 << 1),
-   state = (1 << 2)
-}
-
-enum Elm.Genlist.Item.Scrollto_Type
-{
-   [[Defines where to position the item in the genlist.]]
-   legacy: elm_genlist_item_scrollto;
-   none = 0,   [[No scrollto.]]
-   in = (1 << 0),   [[To the nearest viewport.]]
-   top = (1 << 1),   [[To the top of viewport.]]
-   middle = (1 << 2),   [[To the middle of viewport.]]
-   bottom = (1 << 3)   [[To the bottom of viewport.]]
-}
-
 class Elm.Genlist_Item(Elm.Widget_Item)
 {
       eo_prefix: elm_obj_genlist_item;
index cbdd17094f779be7c03e53c0a0ba96f6f11b67b8..b55840f6a9532e192a03f5091a5ed6564df97fe6 100644 (file)
@@ -1923,6 +1923,53 @@ _elm_ctxpopup_class_constructor(Eo_Class *klass)
    evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
 }
 
+/* The following 6 functions are to keep the same programming interfaces for all Tizen profiles */
+EOLIAN static const Eina_List*
+_elm_ctxpopup_items_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   return NULL; /* Not supported in mobile/wearable */
+}
+
+EOLIAN static Elm_Object_Item*
+_elm_ctxpopup_first_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   return NULL; /* Not supported in mobile/wearable */
+}
+
+EOLIAN static Elm_Object_Item*
+_elm_ctxpopup_last_item_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED)
+{
+   return NULL; /* Not supported in mobile/wearable */
+}
+
+EOLIAN static Elm_Object_Item*
+_elm_ctxpopup_item_prepend(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd EINA_UNUSED, const char *label EINA_UNUSED, Evas_Object *icon EINA_UNUSED, Evas_Smart_Cb func EINA_UNUSED, const void *data EINA_UNUSED)
+{
+   return NULL; /* Not supported in mobile/wearable */
+}
+
+EOLIAN static Elm_Object_Item *
+_elm_ctxpopup_item_prev_get(Eo *eo_item EINA_UNUSED, Elm_Ctxpopup_Item_Data *item EINA_UNUSED)
+{
+   return NULL; /* Not supported in mobile/wearable */
+}
+/* Until here, they are dummies for common interfaces (*.h files) */
+
+EOLIAN static Elm_Object_Item *
+_elm_ctxpopup_item_next_get(Eo *eo_item EINA_UNUSED, Elm_Ctxpopup_Item_Data *item)
+{
+   Eina_List *l;
+
+   ELM_CTXPOPUP_DATA_GET(WIDGET(item), sd);
+
+   if (!sd->items) return NULL;
+
+   l = eina_list_data_find_list(sd->items, eo_item);
+   if (l && l->next) return eina_list_data_get(l->next);
+
+   return NULL;
+}
+
 EAPI Evas_Object *
 elm_ctxpopup_add(Evas_Object *parent)
 {
index d5a3eb2a34d2ab8c8b333dcc9e5ea97133c499b5..b1f4699d42b74557f5fe88eb4dec6d7e92518b86 100644 (file)
@@ -5,6 +5,8 @@
  * @image html ctxpopup_inheritance_tree.png
  * @image latex ctxpopup_inheritance_tree.eps
  *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/ctxpopup/preview-00.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/ctxpopup/preview-00.eps @endif
  *
  * @brief Context popup widget.
  *
@@ -54,6 +56,7 @@
  * @li @ref elm_object_item_focus_set
  * @li @ref elm_object_item_focus_get
  *
+ * @ref @if MOBILE @elif WEARABLE @else tutorial_ctxpopup shows the usage of a good deal of the API. @endif
  * @{
  */
 
index ceae5177ea053eca1158151f80aea7c62fc2509e..d2b59bedad2c3007c68bfc5347ffe131a16ce8fe 100644 (file)
@@ -14,12 +14,21 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
    methods {
       @property horizontal {
          set {
-            [[Change the ctxpopup's orientation to horizontal or vertical.]]
+            [[Change the ctxpopup's orientation to horizontal or vertical.
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
+            ]]
          }
          get {
             [[Get the value of current ctxpopup object's orientation.
 
               See also @.horizontal.set.
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
          }
          values {
@@ -40,6 +49,10 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
 
               See also @.auto_hide_disabled.get.
 
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
+
               @since 1.9
             ]]
          }
@@ -48,6 +61,10 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
 
               See also @.auto_hide_disabled.set for more information.
 
+              \@if MOBILE \@since_tizen 1.0
+              \@elseif WEARABLE \@sinze_tizen 1.0
+              \@endif
+
               @since 1.9
             ]]
          }
@@ -66,12 +83,20 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
 
               See also \@ref elm_ctxpopup_add,
               \@ref elm_hover_parent_set.
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
          }
          get {
             [[Get the Ctxpopup's parent
 
               See also @.hover_parent.set for more information
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
          }
          values {
@@ -87,12 +112,20 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
               requested direction.
 
               See also @.Direction.
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
          }
          get {
             [[Get the direction priority of a ctxpopup.
 
               See also @.direction_priority.set for more information.
+
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
          }
          values {
@@ -108,20 +141,84 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
 
               Warning: Once the ctxpopup showed up, the direction would be determined
 
+              \@if MOBILE \@since_tizen 2.3
+              \@elseif WEARABLE \@since_tizen 2.3.1
+              \@endif
             ]]
             return: Elm.Ctxpopup.Direction(Elm.Ctxpopup.Direction.unknown);
          }
       }
+      @property items {
+         get @internal {
+            [[Get the internal list of items in a given ctxpopup widget.
+
+              This list is not to be modified in any way and must not be
+              freed. Use the list members with functions like
+              \@ref elm_object_item_text_set,
+              \@ref elm_object_item_text_get,
+              \@ref elm_object_item_del.
+
+              Warning: This list is only valid until $obj object's internal
+              items list is changed. It should be fetched again with another
+              call to this function when changes happen.
+
+              @since 1.11
+            ]]
+            return: const(list<Elm.Object.Item*>)*; [[The list of items or
+            $null on errors.]]
+
+         }
+      }
+      @property first_item {
+         get @internal {
+            [[Get the first item in the given ctxpopup widget's list of
+              items.
+
+              See also  @.item_append,
+              @.last_item.get.
+
+              @since 1.11
+            ]]
+            return: Elm.Widget_Item *; [[The first item or $null, if it has no items (and on
+              errors).]]
+
+         }
+      }
+      @property last_item {
+         get @internal {
+            [[Get the last item in the given ctxpopup widget's list of
+              items.
+
+              See also @.item_prepend,
+              @.first_item.get.
+
+              @since 1.1
+            ]]
+            return: Elm.Widget_Item *; [[The last item or $null, if it has no items (and on
+              errors).]]
+
+         }
+      }
       dismiss {
          [[Dismiss a ctxpopup object
 
          Use this function to simulate clicking outside of the ctxpopup to dismiss it.
          In this way, the ctxpopup will be hidden and the "clicked" signal will be
-         emitted.]]
+         emitted.
+
+         \@if MOBILE \@since_tizen 2.3
+         \@elseif WEARABLE \@since_tizen 2.3.1
+         \@endif
+       ]]
 
       }
       clear {
-         [[Clear all items in the given ctxpopup object.]]
+         [[Clear all items in the given ctxpopup object.
+
+           \@if MOBILE \@since_tizen 2.3
+           \@elseif WEARABLE \@since_tizen 2.3.1
+           \@endif
+         ]]
       }
       item_append {
          [[Add a new item to a ctxpopup object.
@@ -131,6 +228,29 @@ class Elm.Ctxpopup (Elm.Layout, Elm_Interface_Atspi_Widget_Action)
            time. When an item is added, any previous content will be removed.
 
            See also \@ref elm_object_content_set.
+
+           \@if MOBILE \@since_tizen 2.3
+           \@elseif WEARABLE \@since_tizen 2.3.1
+           \@endif
+         ]]
+         return: Elm.Widget_Item *; [[A handle to the item added or $null, on errors.]]
+
+         params {
+            @in label: const(char)*; [[The Label of the new item]]
+            @in icon: Evas.Object * @optional; [[Icon to be set on new item]]
+            @in func: Evas_Smart_Cb @optional; [[Convenience function called when item selected]]
+            @in data: const(void)* @optional; [[Data passed to $func]]
+         }
+      }
+      item_prepend @internal {
+         [[Prepend a new item to a ctxpopup object.
+
+           Warning: Ctxpopup can't hold both an item list and a content at the same
+           time. When an item is added, any previous content will be removed.
+
+           See also \@ref elm_object_content_set.
+
+           @since 1.11
          ]]
          return: Elm.Widget_Item *; [[A handle to the item added or $null, on errors.]]
 
index 1b2376d488273e94e0c914372f59ee2c4ca2a143..575b478e437c0ac07b20516873ff99588e78810c 100644 (file)
@@ -2,7 +2,35 @@ class Elm.Ctxpopup_Item(Elm.Widget_Item, Elm_Interface_Atspi_Widget_Action)
 {
    eo_prefix: elm_obj_ctxpopup_item;
    methods {
-      init {
+      @property prev {
+         get @internal {
+            [[Get the item before $ it in a ctxpopup widget's internal list of
+              items.
+
+              See also \@ref elm_ctxpopup_item_next_get.
+
+              @since 1.11
+            ]]
+         }
+         values {
+              item: Elm.Widget_Item *; [[The item before the object in its parent's list. If there is no previous item for $ it or there's an error, $null is returned.]]
+         }
+      }
+      @property next {
+         get @internal {
+            [[Get the item after $ it in a ctxpopup widget's
+              internal list of items.
+
+              See also \@ref elm_ctxpopup_item_prev_get.
+
+              @since 1.11
+            ]]
+         }
+         values {
+              item: Elm.Widget_Item *; [[The item after the object in its parent's list. If there is no previous item for $ it or there's an error, $null is returned.]]
+         }
+      }
+      init @internal {
          params {
             func: Evas_Smart_Cb @nullable;
             data: const(void) * @optional;
index 08add55d97dd4717266ed0a6309525e08737c9a4..17a83e12fef58fddd3d7a47143909aed985c42a4 100644 (file)
@@ -5,6 +5,8 @@
  * @image html genlist_inheritance_tree.png
  * @image latex genlist_inheritance_tree.eps
  *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-00.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-00.eps @endif
  * @image html img/genlist.png
  * @image latex img/genlist.eps
  *
  * available item styles:
  * - default
  * - default_style - The text part is a textblock
+ *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-04.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-04.eps @endif
+ *
  * - double_label
+ *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-01.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-01.eps @endif
+ *
  * - icon_top_text_bottom
+ *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-02.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-02.eps @endif
+ *
  * - group_index
+ *
+ * @if MOBILE @elseif WEARABLE @else @image html img/widget/genlist/preview-03.png @endif
+ * @if MOBILE @elseif WEARABLE @else @image latex img/widget/genlist/preview-03.eps @endif
+ *
  * - one_icon - Only 1 icon (left) (since 1.7)
  * - end_icon - Only 1 icon (at end/right) (since 1.7)
  * - no_icon - No icon (at end/right) (since 1.7)
  * are two solutions. One is to use 'full' style that has one big swallow part.
  * You can swallow anything there. The other solution is to customize genlist
  * item style in application side by using elm_theme_extension_add() and its
- * own edc.
+ * own edc. Please refer @ref theme_example_01 for that.
  *
  * @section Genlist_Items Structure of items
  *
  * "states", respectively. For each of those properties, if more than one
  * part is provided, they must have names listed separated by spaces in the
  * data fields. For the default genlist item theme, we have @b one text
- * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
+ * part (@c "elm.text"), @b two content parts (@c "elm.swallow.icon" and @c
  * "elm.swallow.end") and @b no state parts.
  *
  * A genlist item may be at one of several styles. Elementary provides one
  * fill the width of the viewport of the scroller. If it is
  * ELM_LIST_LIMIT, items will be expanded to the viewport width
  * if larger than the item, but genlist widget witdh is
- * limited to the largest item. Do not use ELM_LIST_LIMIT mode with homogenous
+ * limited to the largest item. Do not use ELM_LIST_LIMIT mode with homogeneous
  * mode turned on. ELM_LIST_COMPRESS can be combined with a different style
  * that uses edjes' ellipsis feature (cutting text off like this: "tex...").
  *
  *   was unhighlighted.
  * - @c "focused" - When the genlist has received focus. (since 1.8)
  * - @c "unfocused" - When the genlist has lost focus. (since 1.8)
- * - @c "item,focused" - When the genlist item has recieved focus. (since 1.10)
+ * - @c "item,focused" - When the genlist item has received focus. (since 1.10)
  * - @c "item,unfocused" - When the genlist item has lost focus. (since 1.10)
  *
  *
  * @li @ref elm_object_item_part_content_unset
  * @li @ref elm_object_item_part_text_set
  *
+ * @section Genlist_Examples Examples
+ *
+ * Here is a list of examples that use the genlist, trying to show some of
+ * its capabilities:
+ * - @ref genlist_example_01
+ * - @ref genlist_example_02
+ * - @ref genlist_example_03
+ * - @ref genlist_example_04
+ * - @ref genlist_example_05
  */
 
 /**
index 76f6ee8db211b0ceb0b00da75169a118379cfa44..d5d2c445ef987941082c5109b117be1ec169a377 100644 (file)
@@ -302,6 +302,7 @@ EAPI Eina_Bool                     elm_genlist_item_tooltip_window_mode_set(Elm_
 
 /**
  * @MOBILE_ONLY
+ *
  * @brief Get size restriction state of an object's tooltip
  *
  * @details This function returns whether a tooltip is allowed to expand beyond