2008-12-08 01:24:46 -08:00
|
|
|
#include <Elementary.h>
|
|
|
|
#include "elm_priv.h"
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* @defgroup Hoversel
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* A hoversel is a button that pops up a list of items (automatically
|
|
|
|
* choosing the direction to display) that have a lable and/or an icon to
|
|
|
|
* select from. It is a convenience widget to avoid the need to do all the
|
2009-10-22 15:10:23 -07:00
|
|
|
* piecing together yourself. It is intended for a small number of items in
|
2009-05-31 14:59:31 -07:00
|
|
|
* the hoversel menu (no more than 8), though is capable of many more.
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* Signals that you can add callbacks for are:
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* clicked - the user clicked the hoversel button and popped up the sel
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* selected - an item in the hoversel list is selected. event_info is the item
|
|
|
|
* selected - Elm_Hoversel_Item
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* dismissed - the hover is dismissed
|
|
|
|
*/
|
2008-12-08 01:24:46 -08:00
|
|
|
typedef struct _Widget_Data Widget_Data;
|
|
|
|
|
|
|
|
struct _Widget_Data
|
|
|
|
{
|
2008-12-09 22:33:24 -08:00
|
|
|
Evas_Object *btn, *hover;
|
2008-12-08 01:24:46 -08:00
|
|
|
Evas_Object *hover_parent;
|
2009-01-07 05:49:08 -08:00
|
|
|
Eina_List *items;
|
2010-01-18 02:28:00 -08:00
|
|
|
Eina_Bool horizontal : 1;
|
2010-09-22 10:45:49 -07:00
|
|
|
Eina_Bool expanded : 1;
|
2008-12-15 16:15:34 -08:00
|
|
|
};
|
|
|
|
|
2009-02-25 11:50:45 -08:00
|
|
|
struct _Elm_Hoversel_Item
|
2008-12-15 16:15:34 -08:00
|
|
|
{
|
2010-09-09 19:05:45 -07:00
|
|
|
Elm_Widget_Item base;
|
2008-12-15 16:15:34 -08:00
|
|
|
const char *label;
|
|
|
|
const char *icon_file;
|
2009-08-14 04:17:06 -07:00
|
|
|
const char *icon_group;
|
2008-12-15 16:15:34 -08:00
|
|
|
Elm_Icon_Type icon_type;
|
2010-03-16 08:31:38 -07:00
|
|
|
Evas_Smart_Cb func;
|
2008-12-08 01:24:46 -08:00
|
|
|
};
|
|
|
|
|
2010-03-08 22:15:39 -08:00
|
|
|
static const char *widtype = NULL;
|
2008-12-08 01:24:46 -08:00
|
|
|
static void _del_pre_hook(Evas_Object *obj);
|
|
|
|
static void _del_hook(Evas_Object *obj);
|
2010-09-22 10:45:43 -07:00
|
|
|
static void _activate(Evas_Object *obj);
|
|
|
|
static void _activate_hook(Evas_Object *obj);
|
2009-08-26 09:43:17 -07:00
|
|
|
static void _disable_hook(Evas_Object *obj);
|
2008-12-08 01:24:46 -08:00
|
|
|
static void _sizing_eval(Evas_Object *obj);
|
|
|
|
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
|
|
|
static void _parent_del(void *data, Evas *e, Evas_Object *obj, void *event_info);
|
|
|
|
|
|
|
|
static void
|
|
|
|
_del_pre_hook(Evas_Object *obj)
|
|
|
|
{
|
2009-04-22 20:51:50 -07:00
|
|
|
Elm_Hoversel_Item *it;
|
2008-12-08 01:24:46 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2010-03-09 19:47:33 -08:00
|
|
|
if (!wd) return;
|
2008-12-15 16:15:34 -08:00
|
|
|
elm_hoversel_hover_end(obj);
|
2009-11-13 14:22:05 -08:00
|
|
|
elm_hoversel_hover_parent_set(obj, NULL);
|
2009-04-22 20:51:50 -07:00
|
|
|
EINA_LIST_FREE(wd->items, it)
|
|
|
|
{
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_widget_item_pre_notify_del(it);
|
2009-07-06 23:46:51 -07:00
|
|
|
eina_stringshare_del(it->label);
|
|
|
|
eina_stringshare_del(it->icon_file);
|
2009-08-14 04:17:06 -07:00
|
|
|
eina_stringshare_del(it->icon_group);
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_widget_item_del(it);
|
2009-04-22 20:51:50 -07:00
|
|
|
}
|
2009-11-13 14:22:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_del_hook(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2010-03-09 19:47:33 -08:00
|
|
|
if (!wd) return;
|
2008-12-08 01:24:46 -08:00
|
|
|
free(wd);
|
|
|
|
}
|
|
|
|
|
2009-09-02 05:48:00 -07:00
|
|
|
static void
|
|
|
|
_theme_hook(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
char buf[4096];
|
|
|
|
if (!wd) return;
|
2010-01-18 02:28:00 -08:00
|
|
|
elm_hoversel_hover_end(obj);
|
|
|
|
if (wd->horizontal)
|
2010-10-07 00:44:50 -07:00
|
|
|
snprintf(buf, sizeof(buf), "hoversel_horizontal/%s", elm_widget_style_get(obj));
|
2010-01-18 02:28:00 -08:00
|
|
|
else
|
2010-10-07 00:44:50 -07:00
|
|
|
snprintf(buf, sizeof(buf), "hoversel_vertical/%s", elm_widget_style_get(obj));
|
2009-10-17 22:49:23 -07:00
|
|
|
elm_object_style_set(wd->btn, buf);
|
2010-10-07 00:44:50 -07:00
|
|
|
elm_object_disabled_set(wd->btn, elm_widget_disabled_get(obj));
|
2009-09-02 05:48:00 -07:00
|
|
|
}
|
|
|
|
|
2009-08-26 09:43:17 -07:00
|
|
|
static void
|
|
|
|
_disable_hook(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2010-03-09 19:47:33 -08:00
|
|
|
if (!wd) return;
|
2010-10-07 00:44:50 -07:00
|
|
|
elm_object_disabled_set(wd->btn, elm_widget_disabled_get(obj));
|
2009-08-26 09:43:17 -07:00
|
|
|
}
|
|
|
|
|
2008-12-08 01:24:46 -08:00
|
|
|
static void
|
|
|
|
_sizing_eval(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
|
2009-09-27 13:10:03 -07:00
|
|
|
if (!wd) return;
|
2008-12-09 22:33:24 -08:00
|
|
|
evas_object_size_hint_min_get(wd->btn, &minw, &minh);
|
|
|
|
evas_object_size_hint_max_get(wd->btn, &maxw, &maxh);
|
2008-12-08 01:24:46 -08:00
|
|
|
evas_object_size_hint_min_set(obj, minw, minh);
|
|
|
|
evas_object_size_hint_max_set(obj, maxw, maxh);
|
|
|
|
}
|
|
|
|
|
2010-10-05 12:09:52 -07:00
|
|
|
static void
|
|
|
|
_on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return;
|
|
|
|
if (elm_widget_focus_get(obj))
|
|
|
|
elm_widget_focus_steal(wd->btn);
|
|
|
|
}
|
|
|
|
|
2008-12-08 01:24:46 -08:00
|
|
|
static void
|
2010-03-09 09:51:30 -08:00
|
|
|
_changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
2008-12-08 01:24:46 -08:00
|
|
|
{
|
|
|
|
_sizing_eval(data);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2010-03-09 09:51:30 -08:00
|
|
|
_hover_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
2008-12-08 01:24:46 -08:00
|
|
|
{
|
|
|
|
elm_hoversel_hover_end(data);
|
|
|
|
}
|
|
|
|
|
2008-12-15 16:15:34 -08:00
|
|
|
static void
|
2010-03-09 09:51:30 -08:00
|
|
|
_item_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
2008-12-15 16:15:34 -08:00
|
|
|
{
|
2009-02-25 11:50:45 -08:00
|
|
|
Elm_Hoversel_Item *it = data;
|
2010-09-09 19:05:45 -07:00
|
|
|
Evas_Object *obj2 = it->base.widget;
|
2009-09-27 13:10:03 -07:00
|
|
|
|
2008-12-23 21:04:33 -08:00
|
|
|
elm_hoversel_hover_end(obj2);
|
2010-09-09 19:05:45 -07:00
|
|
|
if (it->func) it->func((void *)it->base.data, obj2, it);
|
2009-01-07 13:08:36 -08:00
|
|
|
evas_object_smart_callback_call(obj2, "selected", it);
|
2008-12-15 16:15:34 -08:00
|
|
|
}
|
|
|
|
|
2008-12-09 22:33:24 -08:00
|
|
|
static void
|
2009-03-19 06:36:46 -07:00
|
|
|
_activate(Evas_Object *obj)
|
2008-12-09 22:33:24 -08:00
|
|
|
{
|
2009-03-19 06:36:46 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2008-12-09 22:33:24 -08:00
|
|
|
Evas_Object *bt, *bx, *ic;
|
2009-02-25 11:50:45 -08:00
|
|
|
const Eina_List *l;
|
|
|
|
const Elm_Hoversel_Item *it;
|
2009-09-02 05:48:00 -07:00
|
|
|
char buf[4096];
|
2009-02-25 11:50:45 -08:00
|
|
|
|
2009-09-27 13:10:03 -07:00
|
|
|
if (!wd) return;
|
2010-09-22 10:45:49 -07:00
|
|
|
if (wd->expanded)
|
|
|
|
{
|
|
|
|
elm_hoversel_hover_end(obj);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
wd->expanded = EINA_TRUE;
|
|
|
|
|
2009-09-27 13:10:03 -07:00
|
|
|
if (elm_widget_disabled_get(obj)) return;
|
2009-03-19 06:36:46 -07:00
|
|
|
wd->hover = elm_hover_add(obj);
|
2010-01-18 02:28:00 -08:00
|
|
|
if (wd->horizontal)
|
|
|
|
snprintf(buf, sizeof(buf), "hoversel_horizontal/%s", elm_widget_style_get(obj));
|
|
|
|
else
|
|
|
|
snprintf(buf, sizeof(buf), "hoversel_vertical/%s", elm_widget_style_get(obj));
|
2009-10-17 22:52:20 -07:00
|
|
|
elm_object_style_set(wd->hover, buf);
|
2009-03-19 06:36:46 -07:00
|
|
|
evas_object_smart_callback_add(wd->hover, "clicked", _hover_clicked, obj);
|
2008-12-09 22:33:24 -08:00
|
|
|
elm_hover_parent_set(wd->hover, wd->hover_parent);
|
|
|
|
elm_hover_target_set(wd->hover, wd->btn);
|
|
|
|
|
|
|
|
bx = elm_box_add(wd->hover);
|
|
|
|
elm_box_homogenous_set(bx, 1);
|
2010-03-09 19:47:33 -08:00
|
|
|
|
2010-01-18 02:28:00 -08:00
|
|
|
elm_box_horizontal_set(bx, wd->horizontal);
|
|
|
|
|
|
|
|
if (wd->horizontal)
|
|
|
|
snprintf(buf, sizeof(buf), "hoversel_horizontal_entry/%s",
|
|
|
|
elm_widget_style_get(obj));
|
|
|
|
else
|
|
|
|
snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s",
|
|
|
|
elm_widget_style_get(obj));
|
2009-02-25 11:50:45 -08:00
|
|
|
EINA_LIST_FOREACH(wd->items, l, it)
|
2008-12-15 16:15:34 -08:00
|
|
|
{
|
2009-07-06 23:46:51 -07:00
|
|
|
bt = elm_button_add(wd->hover);
|
2009-10-17 22:49:23 -07:00
|
|
|
elm_object_style_set(bt, buf);
|
2009-07-06 23:46:51 -07:00
|
|
|
elm_button_label_set(bt, it->label);
|
|
|
|
if (it->icon_file)
|
|
|
|
{
|
|
|
|
ic = elm_icon_add(obj);
|
|
|
|
elm_icon_scale_set(ic, 0, 1);
|
|
|
|
if (it->icon_type == ELM_ICON_FILE)
|
2009-08-14 04:17:06 -07:00
|
|
|
elm_icon_file_set(ic, it->icon_file, it->icon_group);
|
2009-07-06 23:46:51 -07:00
|
|
|
else if (it->icon_type == ELM_ICON_STANDARD)
|
|
|
|
elm_icon_standard_set(ic, it->icon_file);
|
|
|
|
elm_button_icon_set(bt, ic);
|
|
|
|
evas_object_show(ic);
|
|
|
|
}
|
2010-09-18 19:30:14 -07:00
|
|
|
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
|
|
|
|
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
2009-07-06 23:46:51 -07:00
|
|
|
elm_box_pack_end(bx, bt);
|
|
|
|
evas_object_smart_callback_add(bt, "clicked", _item_clicked, it);
|
|
|
|
evas_object_show(bt);
|
2008-12-15 16:15:34 -08:00
|
|
|
}
|
2008-12-09 22:33:24 -08:00
|
|
|
|
2010-01-18 02:28:00 -08:00
|
|
|
if (wd->horizontal)
|
|
|
|
elm_hover_content_set(wd->hover,
|
|
|
|
elm_hover_best_content_location_get(wd->hover,
|
|
|
|
ELM_HOVER_AXIS_HORIZONTAL),
|
|
|
|
bx);
|
|
|
|
else
|
|
|
|
elm_hover_content_set(wd->hover,
|
|
|
|
elm_hover_best_content_location_get(wd->hover,
|
|
|
|
ELM_HOVER_AXIS_VERTICAL),
|
|
|
|
bx);
|
2008-12-09 22:33:24 -08:00
|
|
|
evas_object_show(bx);
|
2009-07-06 23:46:51 -07:00
|
|
|
|
2008-12-09 22:33:24 -08:00
|
|
|
evas_object_show(wd->hover);
|
2009-03-19 06:36:46 -07:00
|
|
|
evas_object_smart_callback_call(obj, "clicked", NULL);
|
2010-01-13 19:47:28 -08:00
|
|
|
|
2010-01-18 02:28:00 -08:00
|
|
|
// if (wd->horizontal) evas_object_hide(wd->btn);
|
2009-03-19 06:36:46 -07:00
|
|
|
}
|
|
|
|
|
2010-09-22 10:45:43 -07:00
|
|
|
static void
|
|
|
|
_activate_hook(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
_activate(obj);
|
|
|
|
}
|
|
|
|
|
2009-03-19 06:36:46 -07:00
|
|
|
static void
|
2010-03-09 09:51:30 -08:00
|
|
|
_button_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
2009-03-19 06:36:46 -07:00
|
|
|
{
|
2010-03-09 19:47:33 -08:00
|
|
|
_activate(data);
|
2008-12-09 22:33:24 -08:00
|
|
|
}
|
|
|
|
|
2008-12-08 01:24:46 -08:00
|
|
|
static void
|
2010-03-09 09:51:30 -08:00
|
|
|
_parent_del(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
2008-12-08 01:24:46 -08:00
|
|
|
{
|
|
|
|
Widget_Data *wd = elm_widget_data_get(data);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2008-12-08 01:24:46 -08:00
|
|
|
wd->hover_parent = NULL;
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Add a new Hoversel object
|
|
|
|
*
|
|
|
|
* @param parent The parent object
|
|
|
|
* @return The new object or NULL if it cannot be created
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI Evas_Object *
|
|
|
|
elm_hoversel_add(Evas_Object *parent)
|
|
|
|
{
|
|
|
|
Evas_Object *obj;
|
|
|
|
Evas *e;
|
|
|
|
Widget_Data *wd;
|
2009-07-06 23:46:51 -07:00
|
|
|
|
2008-12-08 01:24:46 -08:00
|
|
|
wd = ELM_NEW(Widget_Data);
|
|
|
|
e = evas_object_evas_get(parent);
|
|
|
|
obj = elm_widget_add(e);
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_SET_WIDTYPE(widtype, "hoversel");
|
2009-05-13 05:21:52 -07:00
|
|
|
elm_widget_type_set(obj, "hoversel");
|
|
|
|
elm_widget_sub_object_add(parent, obj);
|
2008-12-08 01:24:46 -08:00
|
|
|
elm_widget_data_set(obj, wd);
|
|
|
|
elm_widget_del_pre_hook_set(obj, _del_pre_hook);
|
|
|
|
elm_widget_del_hook_set(obj, _del_hook);
|
2010-01-14 12:06:41 -08:00
|
|
|
elm_widget_theme_hook_set(obj, _theme_hook);
|
2009-08-26 09:43:17 -07:00
|
|
|
elm_widget_disable_hook_set(obj, _disable_hook);
|
2010-09-22 10:45:43 -07:00
|
|
|
elm_widget_activate_hook_set(obj, _activate_hook);
|
2010-10-05 12:09:52 -07:00
|
|
|
elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
|
|
|
|
elm_widget_can_focus_set(obj, EINA_TRUE);
|
2009-07-06 23:46:51 -07:00
|
|
|
|
2008-12-09 22:33:24 -08:00
|
|
|
wd->btn = elm_button_add(parent);
|
2010-09-22 10:45:49 -07:00
|
|
|
wd->expanded = EINA_FALSE;
|
2008-12-09 22:33:24 -08:00
|
|
|
elm_widget_resize_object_set(obj, wd->btn);
|
|
|
|
evas_object_event_callback_add(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
|
|
|
|
_changed_size_hints, obj);
|
|
|
|
evas_object_smart_callback_add(wd->btn, "clicked", _button_clicked, obj);
|
2010-10-19 07:17:11 -07:00
|
|
|
elm_widget_sub_object_add(obj, wd->btn);
|
|
|
|
|
2010-07-17 01:54:51 -07:00
|
|
|
elm_hoversel_hover_parent_set(obj, parent);
|
2010-10-19 07:17:11 -07:00
|
|
|
_theme_hook(obj);
|
2008-12-08 01:24:46 -08:00
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Set the Hover parent
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2010-04-07 00:37:49 -07:00
|
|
|
* Sets the hover parent object. Should probably be the window that the hoversel
|
|
|
|
* is in. See Hover objects for more information.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @param parent The parent to use
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI void
|
|
|
|
elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent)
|
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2008-12-08 01:24:46 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2008-12-08 01:24:46 -08:00
|
|
|
if (wd->hover_parent)
|
2009-10-22 15:10:23 -07:00
|
|
|
evas_object_event_callback_del_full(wd->hover_parent, EVAS_CALLBACK_DEL,
|
|
|
|
_parent_del, obj);
|
2008-12-08 01:24:46 -08:00
|
|
|
wd->hover_parent = parent;
|
|
|
|
if (wd->hover_parent)
|
2009-10-22 15:10:23 -07:00
|
|
|
evas_object_event_callback_add(wd->hover_parent, EVAS_CALLBACK_DEL,
|
2009-09-27 13:10:03 -07:00
|
|
|
_parent_del, obj);
|
2008-12-08 01:24:46 -08:00
|
|
|
}
|
|
|
|
|
2010-10-14 11:54:42 -07:00
|
|
|
/**
|
|
|
|
* Get the Hover parent
|
|
|
|
*
|
|
|
|
* Gets the hover parent object. Should probably be the window that the hoversel
|
|
|
|
* is in. See Hover objects for more information.
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @return The used parent
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI Evas_Object *
|
|
|
|
elm_hoversel_hover_parent_get(const Evas_Object *obj)
|
|
|
|
{
|
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return NULL;
|
|
|
|
return wd->hover_parent;
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Set the hoversel button label
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* This sets the label of the button that is always visible (before it is
|
|
|
|
* clicked and expanded). Also see elm_button_label_set().
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @param label The label text.
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI void
|
2008-12-09 22:33:24 -08:00
|
|
|
elm_hoversel_label_set(Evas_Object *obj, const char *label)
|
2008-12-08 01:24:46 -08:00
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2008-12-08 01:24:46 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2008-12-09 22:33:24 -08:00
|
|
|
elm_button_label_set(wd->btn, label);
|
|
|
|
}
|
|
|
|
|
2010-04-07 00:37:49 -07:00
|
|
|
/**
|
|
|
|
* Get the hoversel button label
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @return The label text.
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI const char *
|
|
|
|
elm_hoversel_label_get(const Evas_Object *obj)
|
|
|
|
{
|
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if ((!wd) || (!wd->btn)) return NULL;
|
|
|
|
return elm_button_label_get(wd->btn);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This sets the hoversel to expand horizontally. The initial button
|
|
|
|
* will display horizontally regardless of this setting.
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @param horizontal If true, the hover will expand horizontally to the right.
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2010-01-13 19:47:28 -08:00
|
|
|
EAPI void
|
|
|
|
elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
|
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2010-01-13 19:47:28 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2010-03-09 19:47:33 -08:00
|
|
|
if (!wd) return;
|
2010-01-13 19:47:28 -08:00
|
|
|
wd->horizontal = !!horizontal;
|
|
|
|
}
|
|
|
|
|
2010-03-30 13:41:56 -07:00
|
|
|
|
2009-08-11 03:44:49 -07:00
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* This returns whether the hoversel is set to expand horizontally.
|
2009-08-11 03:44:49 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
2010-04-07 00:37:49 -07:00
|
|
|
* @return If true, the hover will expand horizontally to the right.
|
2009-08-11 03:44:49 -07:00
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2010-04-07 00:37:49 -07:00
|
|
|
EAPI Eina_Bool
|
|
|
|
elm_hoversel_horizontal_get(const Evas_Object *obj)
|
2009-08-11 03:44:49 -07:00
|
|
|
{
|
2010-04-07 00:37:49 -07:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
|
2009-08-11 03:44:49 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2010-04-07 00:37:49 -07:00
|
|
|
if (!wd) return EINA_FALSE;
|
|
|
|
return wd->horizontal;
|
2009-08-11 03:44:49 -07:00
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Set the icon of the hoversel button
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* Sets the icon of the button that is always visible (before it is clicked
|
|
|
|
* and expanded). Also see elm_button_icon_set().
|
2010-10-14 11:54:42 -07:00
|
|
|
* Once the icon object is set, a previously set one will be deleted
|
|
|
|
* If you want to keep that old content object, use the
|
|
|
|
* elm_hoversel_icon_unset() function.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @param icon The icon object
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-09 22:33:24 -08:00
|
|
|
EAPI void
|
|
|
|
elm_hoversel_icon_set(Evas_Object *obj, Evas_Object *icon)
|
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2008-12-09 22:33:24 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2008-12-09 22:33:24 -08:00
|
|
|
elm_button_icon_set(wd->btn, icon);
|
|
|
|
}
|
2008-12-08 01:24:46 -08:00
|
|
|
|
2009-08-12 15:37:48 -07:00
|
|
|
/**
|
|
|
|
* Get the icon of the hoversel button
|
|
|
|
*
|
|
|
|
* Get the icon of the button that is always visible (before it is clicked
|
|
|
|
* and expanded). Also see elm_button_icon_get().
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @return The icon object
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI Evas_Object *
|
2010-03-23 20:06:00 -07:00
|
|
|
elm_hoversel_icon_get(const Evas_Object *obj)
|
2009-08-12 15:37:48 -07:00
|
|
|
{
|
2010-03-09 19:47:33 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
2009-08-12 15:37:48 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-09-27 13:10:03 -07:00
|
|
|
if ((!wd) || (!wd->btn)) return NULL;
|
2009-08-12 15:37:48 -07:00
|
|
|
return elm_button_icon_get(wd->btn);
|
|
|
|
}
|
|
|
|
|
2010-10-14 11:54:42 -07:00
|
|
|
/**
|
|
|
|
* Get the icon of the hoversel button
|
|
|
|
*
|
|
|
|
* Unparent and return the icon of the button that is always visible
|
|
|
|
* (before it is clicked and expanded). Also see elm_button_icon_unset().
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @return The icon object that was being used
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI Evas_Object *
|
|
|
|
elm_hoversel_icon_unset(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if ((!wd) || (!wd->btn)) return NULL;
|
|
|
|
return elm_button_icon_unset(wd->btn);
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* This triggers the hoversel popup from code, the same as though the
|
|
|
|
* user clicked the button.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2009-03-19 06:36:46 -07:00
|
|
|
EAPI void
|
|
|
|
elm_hoversel_hover_begin(Evas_Object *obj)
|
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2009-03-19 06:36:46 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return;
|
|
|
|
if (wd->hover) return;
|
|
|
|
_activate(obj);
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* This ends the hoversel popup as though the user clicked outside the hover.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-08 01:24:46 -08:00
|
|
|
EAPI void
|
|
|
|
elm_hoversel_hover_end(Evas_Object *obj)
|
|
|
|
{
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2008-12-08 01:24:46 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2009-09-27 13:10:03 -07:00
|
|
|
if (!wd->hover) return;
|
2010-09-22 10:45:49 -07:00
|
|
|
wd->expanded = EINA_FALSE;
|
2009-09-27 13:10:03 -07:00
|
|
|
evas_object_del(wd->hover);
|
|
|
|
wd->hover = NULL;
|
|
|
|
evas_object_smart_callback_call(obj, "dismissed", NULL);
|
2008-12-09 22:33:24 -08:00
|
|
|
}
|
|
|
|
|
2010-04-06 18:31:36 -07:00
|
|
|
/**
|
|
|
|
* Returns whether the hoversel is expanded.
|
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
2010-04-07 00:37:49 -07:00
|
|
|
* @return This will return EINA_TRUE if the hoversel
|
|
|
|
* is expanded or EINA_FALSE if it is not expanded.
|
2010-04-06 18:31:36 -07:00
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool
|
2010-10-25 07:34:22 -07:00
|
|
|
elm_hoversel_expanded_get(const Evas_Object *obj)
|
2010-04-06 18:31:36 -07:00
|
|
|
{
|
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
|
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return EINA_FALSE;
|
|
|
|
return (wd->hover) ? EINA_TRUE : EINA_FALSE;
|
|
|
|
}
|
|
|
|
|
2009-08-14 04:17:06 -07:00
|
|
|
/**
|
|
|
|
* This will remove all the children items from the hoversel. (should not be
|
2010-04-07 00:37:49 -07:00
|
|
|
* called while the hoversel is active; use elm_hoversel_expanded_get()
|
|
|
|
* to check first).
|
2009-10-22 15:10:23 -07:00
|
|
|
*
|
2009-08-14 04:17:06 -07:00
|
|
|
* @param obj The hoversel object
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI void
|
|
|
|
elm_hoversel_clear(Evas_Object *obj)
|
|
|
|
{
|
|
|
|
Elm_Hoversel_Item *it;
|
|
|
|
Eina_List *l, *ll;
|
2010-03-08 22:15:39 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype);
|
2009-08-14 04:17:06 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return;
|
2010-03-09 19:47:33 -08:00
|
|
|
EINA_LIST_FOREACH_SAFE(wd->items, l, ll, it) elm_hoversel_item_del(it);
|
2009-08-14 04:17:06 -07:00
|
|
|
}
|
|
|
|
|
2009-10-04 16:05:50 -07:00
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* Get the list of items within the given hoversel.
|
2009-10-04 16:05:50 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
|
|
|
* @return Returns a list of Elm_Hoversel_Item*
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI const Eina_List *
|
2010-03-23 20:06:00 -07:00
|
|
|
elm_hoversel_items_get(const Evas_Object *obj)
|
2009-10-04 16:05:50 -07:00
|
|
|
{
|
2010-03-09 19:47:33 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
2009-10-04 16:05:50 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
|
|
|
if (!wd) return NULL;
|
|
|
|
return wd->items;
|
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Add an item to the hoversel button
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-08-14 04:17:06 -07:00
|
|
|
* This adds an item to the hoversel to show when it is clicked. Note: if you
|
|
|
|
* need to use an icon from an edje file then use elm_hoversel_item_icon_set()
|
|
|
|
* right after the this function, and set icon_file to NULL here.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param obj The hoversel object
|
2010-04-07 00:37:49 -07:00
|
|
|
* @param label The text label to use for the item (NULL if not desired)
|
|
|
|
* @param icon_file An image file path on disk to use for the icon or standard
|
|
|
|
* icon name (NULL if not desired)
|
2009-05-31 14:59:31 -07:00
|
|
|
* @param icon_type The icon type if relevant
|
|
|
|
* @param func Convenience function to call when this item is selected
|
2010-04-07 00:37:49 -07:00
|
|
|
* @param data Data to pass to item-related functions
|
2009-05-31 14:59:31 -07:00
|
|
|
* @return A handle to the item added.
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-15 16:15:34 -08:00
|
|
|
EAPI Elm_Hoversel_Item *
|
2010-03-16 08:31:38 -07:00
|
|
|
elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data)
|
2008-12-09 22:33:24 -08:00
|
|
|
{
|
2010-03-09 19:47:33 -08:00
|
|
|
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
|
2008-12-09 22:33:24 -08:00
|
|
|
Widget_Data *wd = elm_widget_data_get(obj);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return NULL;
|
2010-09-09 19:05:45 -07:00
|
|
|
Elm_Hoversel_Item *it = elm_widget_item_new(obj, Elm_Hoversel_Item);
|
2008-12-15 16:15:34 -08:00
|
|
|
if (!it) return NULL;
|
|
|
|
wd->items = eina_list_append(wd->items, it);
|
|
|
|
it->label = eina_stringshare_add(label);
|
|
|
|
it->icon_file = eina_stringshare_add(icon_file);
|
|
|
|
it->icon_type = icon_type;
|
|
|
|
it->func = func;
|
2010-09-09 19:05:45 -07:00
|
|
|
it->base.data = data;
|
2009-02-25 11:50:45 -08:00
|
|
|
return it;
|
2008-12-09 22:33:24 -08:00
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* Delete an item from the hoversel
|
2009-07-06 23:46:51 -07:00
|
|
|
*
|
2009-05-31 14:59:31 -07:00
|
|
|
* This deletes the item from the hoversel (should not be called while the
|
2010-04-07 00:37:49 -07:00
|
|
|
* hoversel is active; use elm_hoversel_expanded_get()
|
|
|
|
* to check first).
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param it The item to delete
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2008-12-09 22:33:24 -08:00
|
|
|
EAPI void
|
2009-02-25 11:50:45 -08:00
|
|
|
elm_hoversel_item_del(Elm_Hoversel_Item *it)
|
2008-12-15 16:15:34 -08:00
|
|
|
{
|
2010-03-09 19:47:33 -08:00
|
|
|
if (!it) return;
|
2010-09-09 19:05:45 -07:00
|
|
|
Widget_Data *wd = elm_widget_data_get(it->base.widget);
|
2009-01-08 06:29:13 -08:00
|
|
|
if (!wd) return;
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_hoversel_hover_end(it->base.widget);
|
2008-12-15 16:15:34 -08:00
|
|
|
wd->items = eina_list_remove(wd->items, it);
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_widget_item_pre_notify_del(it);
|
2008-12-15 16:15:34 -08:00
|
|
|
eina_stringshare_del(it->label);
|
|
|
|
eina_stringshare_del(it->icon_file);
|
2009-08-14 04:17:06 -07:00
|
|
|
eina_stringshare_del(it->icon_group);
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_widget_item_del(it);
|
2008-12-08 01:24:46 -08:00
|
|
|
}
|
2009-03-31 04:58:56 -07:00
|
|
|
|
2009-11-08 14:20:46 -08:00
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* Set the function called when an item within the hoversel
|
|
|
|
* is freed. That function will receive these parameters:
|
|
|
|
*
|
|
|
|
* void *item_data
|
|
|
|
* Evas_Object *the_item_object
|
|
|
|
* Elm_Hoversel_Item *the_object_struct
|
2009-11-08 14:20:46 -08:00
|
|
|
*
|
|
|
|
* @param it The item to set the callback on
|
|
|
|
* @param func The function called
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI void
|
2010-03-16 08:31:38 -07:00
|
|
|
elm_hoversel_item_del_cb_set(Elm_Hoversel_Item *it, Evas_Smart_Cb func)
|
2009-11-08 14:20:46 -08:00
|
|
|
{
|
2010-09-09 19:05:45 -07:00
|
|
|
elm_widget_item_del_cb_set(it, func);
|
2009-11-08 14:20:46 -08:00
|
|
|
}
|
|
|
|
|
2009-05-31 14:59:31 -07:00
|
|
|
/**
|
|
|
|
* This returns the data pointer supplied with elm_hoversel_item_add() that
|
2010-04-07 00:37:49 -07:00
|
|
|
* will be passed to associated function callbacks.
|
2009-05-31 14:59:31 -07:00
|
|
|
*
|
|
|
|
* @param it The item to get the data from
|
|
|
|
* @return The data pointer set with elm_hoversel_item_add()
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
2009-03-31 04:58:56 -07:00
|
|
|
EAPI void *
|
2010-10-25 07:34:22 -07:00
|
|
|
elm_hoversel_item_data_get(const Elm_Hoversel_Item *it)
|
2009-03-31 04:58:56 -07:00
|
|
|
{
|
2010-09-09 19:05:45 -07:00
|
|
|
return elm_widget_item_data_get(it);
|
2009-03-31 04:58:56 -07:00
|
|
|
}
|
2009-08-12 04:18:08 -07:00
|
|
|
|
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* This returns the label text of the given hoversel item.
|
2009-08-12 04:18:08 -07:00
|
|
|
*
|
|
|
|
* @param it The item to get the label
|
2010-04-07 00:37:49 -07:00
|
|
|
* @return The label text of the hoversel item
|
2009-08-12 04:18:08 -07:00
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI const char *
|
2010-10-25 07:34:22 -07:00
|
|
|
elm_hoversel_item_label_get(const Elm_Hoversel_Item *it)
|
2009-08-12 04:18:08 -07:00
|
|
|
{
|
|
|
|
if (!it) return NULL;
|
|
|
|
return it->label;
|
|
|
|
}
|
2009-08-14 04:17:06 -07:00
|
|
|
|
|
|
|
/**
|
2010-04-07 00:37:49 -07:00
|
|
|
* This sets the icon for the given hoversel item. The icon can be loaded from
|
|
|
|
* the standard set, from an image file, or from an edje file.
|
2009-08-14 04:17:06 -07:00
|
|
|
*
|
|
|
|
* @param it The item to set the icon
|
|
|
|
* @param icon_file An image file path on disk to use for the icon or standard
|
|
|
|
* icon name
|
|
|
|
* @param icon_group The edje group to use if @p icon_file is an edje file. Set this
|
|
|
|
* to NULL if the icon is not an edje file
|
|
|
|
* @param icon_type The icon type
|
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI void
|
|
|
|
elm_hoversel_item_icon_set(Elm_Hoversel_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type)
|
|
|
|
{
|
|
|
|
if (!it) return;
|
2010-03-13 13:01:26 -08:00
|
|
|
eina_stringshare_replace(&it->icon_file, icon_file);
|
|
|
|
eina_stringshare_replace(&it->icon_group, icon_group);
|
2009-08-14 04:17:06 -07:00
|
|
|
it->icon_type = icon_type;
|
|
|
|
}
|
|
|
|
|
2009-09-16 12:13:55 -07:00
|
|
|
/**
|
|
|
|
* Get the icon object of the hoversel item
|
|
|
|
*
|
|
|
|
* @param it The item to get the icon from
|
|
|
|
* @param icon_file The image file path on disk used for the icon or standard
|
2010-04-07 00:37:49 -07:00
|
|
|
* icon name
|
2009-09-16 12:13:55 -07:00
|
|
|
* @param icon_group The edje group used if @p icon_file is an edje file. NULL
|
2010-04-07 00:37:49 -07:00
|
|
|
* if the icon is not an edje file
|
|
|
|
* @param icon_type The icon type
|
2009-09-16 12:13:55 -07:00
|
|
|
*
|
|
|
|
* @ingroup Hoversel
|
|
|
|
*/
|
|
|
|
EAPI void
|
2010-10-25 07:34:22 -07:00
|
|
|
elm_hoversel_item_icon_get(const Elm_Hoversel_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type)
|
2009-09-16 12:13:55 -07:00
|
|
|
{
|
|
|
|
if (!it) return;
|
|
|
|
if (icon_file) *icon_file = it->icon_file;
|
|
|
|
if (icon_group) *icon_group = it->icon_group;
|
|
|
|
if (icon_type) *icon_type = it->icon_type;
|
|
|
|
}
|
2009-10-04 16:05:50 -07:00
|
|
|
|