Elm_Dialoguegroup_Item_Style style;
const char *location;
Eina_Bool press;
- Eina_Bool line_show;
+// Eina_Bool line_show;
};
elm_layout_theme_set(item->bg_layout, "dialoguegroup", "editfield", location);
}
+/*
static void _set_line_show(Dialogue_Item *item, Dialogue_Item *after)
{
if(!item || !after) return;
else if (item->style == ELM_DIALOGUEGROUP_ITEM_STYLE_EDITFIELD)
item->line_show = EINA_TRUE;
}
+*/
static void _change_item_bg(Dialogue_Item *item, const char *location)
{
else
edje_object_signal_emit(elm_layout_edje_get(item->bg_layout), "elm,state,press,off", "elm");
- if(item->line_show == EINA_FALSE)
- edje_object_signal_emit(elm_layout_edje_get(item->bg_layout), "elm,state,line,hide", "elm");
+/* if(item->line_show == EINA_FALSE)
+ edje_object_signal_emit(elm_layout_edje_get(item->bg_layout), "elm,state,line,hide", "elm");*/
}
item->content = subobj;
item->press = EINA_TRUE;
item->style = style;
- item->line_show = EINA_TRUE;
+// item->line_show = EINA_TRUE;
eina_stringshare_replace(&item->location, location);
item->bg_layout = elm_layout_add(wd->parent);
_change_item_bg(item, "middle");
}
new_item = _create_item(obj, subobj, style, "bottom");
- _set_line_show(item, new_item);
+// _set_line_show(item, new_item);
}
elm_box_pack_end(wd->box, new_item->bg_layout);
wd->items = eina_list_append(wd->items, new_item);
_change_item_bg(item, "middle");
}
new_item = _create_item(obj, subobj, style, "top");
- _set_line_show(new_item, item);
+// _set_line_show(new_item, item);
}
if(wd->title_layout)
elm_box_pack_after(wd->box, new_item->bg_layout, wd->title_layout);
elm_box_pack_after(wd->box, item->bg_layout, after_item->bg_layout);
wd->items = eina_list_append_relative(wd->items, item, after_item);
- _set_line_show(after, item);
+ // _set_line_show(after, item);
}
}
else if( !strcmp(before_item->location, "middle") || !strcmp(before_item->location, "bottom") ) {
item = _create_item(obj, subobj, style, "middle");
prev = eina_list_prev(l);
- _set_line_show(prev->data, item);
+ // _set_line_show(prev->data, item);
}
elm_box_pack_before(wd->box, item->bg_layout, before_item->bg_layout);
wd->items = eina_list_prepend_relative(wd->items, item, before_item);
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
#include <Elementary.h>
#include "elm_priv.h"
Eina_Bool needs_size_calc:1;
Eina_Bool show_guide_text:1;
Eina_Bool editing:1;
- Eina_Bool single_line : 1;
+ Eina_Bool single_line:1;
};
static const char *widtype = NULL;
if (!elm_widget_focus_get(obj) && !(elm_widget_disabled_get(obj)) )
{
wd->editing = EINA_FALSE;
- edje_object_signal_emit(wd->base, "elm,action,unfocus", "elm");
edje_object_signal_emit(wd->base, "elm,state,over,show", "elm");
- text = elm_entry_entry_get(wd->entry);
- edje_object_part_text_set(wd->base, "elm.content.no.edit", text);
- edje_object_signal_emit(wd->base, "elm,action,no,edit", "elm");
if(_empty_entry(wd->entry))
{
if(wd->guide_text)
if(!_empty_entry(wd->entry))
{
- text = elm_entry_entry_get(wd->entry);
- edje_object_part_text_set(wd->base, "elm.content.no.edit", text);
if(wd->guide_text)
{
edje_object_signal_emit(wd->base, "elm,state,guidetext,hidden", "elm");
Widget_Data *wd = elm_widget_data_get(data);
if(!wd || !wd->base) return;
- if(strcmp(source, "left_icon") && strcmp(source, "right_icon") && strcmp(source, "over_change_bg"))
+ if(!strcmp(source, "eraser"))
+ {
+ elm_entry_entry_set(wd->entry, "");
+ }
+ else if(strcmp(source, "left_icon") && strcmp(source, "right_icon") && strcmp(source, "eraser"))
{
- edje_object_signal_emit(wd->base, "elm,action,focus", "elm");
edje_object_signal_emit(wd->base, "elm,state,over,hide", "elm");
- edje_object_signal_emit(wd->base, "elm,action,edit", "elm");
elm_widget_focus_set(wd->entry, EINA_TRUE);
if(wd->editing == EINA_FALSE)
elm_entry_cursor_end_set(wd->entry);
-// if(!_empty_entry(wd->entry))
-// {
- if(wd->guide_text)
- {
+ if(wd->guide_text)
+ {
edje_object_signal_emit(wd->base, "elm,state,guidetext,hidden", "elm");
wd->show_guide_text = EINA_FALSE;
- }
-// }
+ }
evas_object_smart_callback_call(data, "clicked", NULL);
wd->editing = EINA_TRUE;
}
if (!wd || !wd->base)
return;
- return; // design is not supported
+ if (visible)
+ edje_object_signal_emit(wd->base, "elm,state,eraser,show", "elm");
+ else
+ edje_object_signal_emit(wd->base, "elm,state,eraser,hidden", "elm");
+
+ return;
}