forked from enlightenment/efl
implement icon in hoversel - clean up todo's a bit.
SVN revision: 38202
This commit is contained in:
parent
70f4e87999
commit
9f035a7912
|
@ -334,46 +334,45 @@ extern "C" {
|
||||||
//// (bugs - high priority)
|
//// (bugs - high priority)
|
||||||
// * scale change for hover doesnt seem to do new size alloc nicely
|
// * scale change for hover doesnt seem to do new size alloc nicely
|
||||||
// * left/right arrow broken with password mode for entry + utf8 chars...
|
// * left/right arrow broken with password mode for entry + utf8 chars...
|
||||||
// * edje entry selections broke
|
|
||||||
// * entry signal "changed" not called when deleting
|
// * entry signal "changed" not called when deleting
|
||||||
// * bubble doesnt handle child size changes right
|
// * bubble doesnt handle child size changes right
|
||||||
//
|
//
|
||||||
//// (incomplete - medium priority)
|
//// (incomplete - medium priority)
|
||||||
// * buttons need a "bigbutton" option
|
// * entry selection conflicts with finger scroll (make selection start/stop work on signals?)
|
||||||
|
// * add test for photo widget
|
||||||
|
// * add test for hoversel
|
||||||
// * disabled not supported
|
// * disabled not supported
|
||||||
// * tab widget focusing (not useful for touchscreen tho...)
|
// * tab widget focusing (not useful for touchscreen tho...)
|
||||||
// * on the fly theme changes - test (should work)
|
// * on the fly theme changes - test (should work)
|
||||||
// * entry selection conflicts with finger scroll (make selection start/stop work on signals?)
|
|
||||||
// * need a hold-scroll counter in elm_widget
|
// * need a hold-scroll counter in elm_widget
|
||||||
// * add fullscreen mode on/off for windows
|
// * add fullscreen mode on/off for windows
|
||||||
// * add test for photo widget
|
|
||||||
//
|
//
|
||||||
//// (more widgets/features - medium priority)
|
//// (more widgets/features - medium priority)
|
||||||
// * need multi-sel (with button + hover + ...)
|
// * biglist widget (restricted format label + icon intended for massive lists)
|
||||||
// * toolbar widget (edje + box + button + separators)
|
// * listitem widget (can contain anything)
|
||||||
// * in-window dialog container widget
|
// * treeview widget (like biglist - but items can expand to sub-items)
|
||||||
// * listitem widget (simple label + icon)
|
|
||||||
// * page widget (for pushing/popping pages and going back and forward and flipping)
|
|
||||||
// * radio widget + group handling
|
// * radio widget + group handling
|
||||||
// * checkbox widget (like toggle)
|
// * checkbox widget (like toggle)
|
||||||
// * need separator widget (h/v)
|
// * page widget (for pushing/popping pages and going back and forward and flipping)
|
||||||
// * need slide-open "panel" that can hold stuff and optionally scroll
|
// * slider widget
|
||||||
// * need calendar widget (select date)
|
//
|
||||||
// * need slider widget
|
// * toolbar widget (edje + box + button + separators)
|
||||||
// * need range selector (select range of values from X to Y over an interval)
|
// * in-window dialog container widget
|
||||||
// * need "dialogbutton" widget (bigger button for bottom of wins)
|
// * separator widget (h/v)
|
||||||
// * need dialog window widget
|
// * slide-open "panel" that can hold stuff and optionally scroll
|
||||||
// * need a phone-number widget (hilight country dial prefixes, add flags,
|
// * calendar widget (select date)
|
||||||
// photos of contacts that match etc.)
|
// * range selector (select range of values from X to Y over an interval)
|
||||||
// * need imageview widget (for large not iconic images)
|
// * "dialogbutton" widget (bigger button for bottom of wins)
|
||||||
|
// * dialog window widget
|
||||||
|
// * phone-number widget (hilight country dial prefixes, add flags, photos of contacts that match etc.)
|
||||||
|
// * imageview widget (for large not iconic images)
|
||||||
// * tiled image + zoom widget (tiled map viewer)
|
// * tiled image + zoom widget (tiled map viewer)
|
||||||
// * dialpad widget - need one with a phone dialpad
|
// * dialpad widget - need one with a phone dialpad
|
||||||
//
|
//
|
||||||
//// (improvements - low priority)
|
//// (improvements - low priority)
|
||||||
// * return list of toplevel window objects
|
// * return list of toplevel window objects
|
||||||
// * widgets should show who is focused (not useful for touchscreen)
|
// * widgets should show who is focused (not useful for touchscreen)
|
||||||
// * scroller could do with page up/down/left/right buttons and and idea of
|
// * scroller could do with page up/down/left/right buttons and and idea of a page size
|
||||||
// a page size
|
|
||||||
// * current sizing tree inefficient
|
// * current sizing tree inefficient
|
||||||
// * need a way to filter entry data for entry (eg for phone numbers)
|
// * need a way to filter entry data for entry (eg for phone numbers)
|
||||||
// * win should emit signals based on vkbd type - if it gets a message and is a vkbd win
|
// * win should emit signals based on vkbd type - if it gets a message and is a vkbd win
|
||||||
|
|
|
@ -96,8 +96,17 @@ _button_clicked(void *data, Evas_Object *obj, void *event_info)
|
||||||
bt = elm_button_add(wd->hover);
|
bt = elm_button_add(wd->hover);
|
||||||
elm_button_style_set(bt, "hoversel_vertical_entry");
|
elm_button_style_set(bt, "hoversel_vertical_entry");
|
||||||
elm_button_label_set(bt, it->label);
|
elm_button_label_set(bt, it->label);
|
||||||
// FIXME: add icon
|
if (it->icon_file)
|
||||||
// elm_button_icon_set(bt, it->icon_file);
|
{
|
||||||
|
ic = elm_icon_add(data);
|
||||||
|
elm_icon_scale_set(ic, 0, 1);
|
||||||
|
if (it->icon_type == ELM_ICON_FILE)
|
||||||
|
elm_icon_file_set(ic, it->icon_file, NULL);
|
||||||
|
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);
|
||||||
|
}
|
||||||
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
evas_object_size_hint_weight_set(bt, 1.0, 0.0);
|
||||||
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
evas_object_size_hint_align_set(bt, -1.0, -1.0);
|
||||||
elm_box_pack_end(bx, bt);
|
elm_box_pack_end(bx, bt);
|
||||||
|
@ -199,9 +208,9 @@ elm_hoversel_item_del(Elm_Hoversel_Item *item)
|
||||||
{
|
{
|
||||||
Item *it = (Item *)item;
|
Item *it = (Item *)item;
|
||||||
Widget_Data *wd = elm_widget_data_get(it->obj);
|
Widget_Data *wd = elm_widget_data_get(it->obj);
|
||||||
|
elm_hoversel_hover_end(it->obj);
|
||||||
wd->items = eina_list_remove(wd->items, it);
|
wd->items = eina_list_remove(wd->items, it);
|
||||||
eina_stringshare_del(it->label);
|
eina_stringshare_del(it->label);
|
||||||
eina_stringshare_del(it->icon_file);
|
eina_stringshare_del(it->icon_file);
|
||||||
free(it);
|
free(it);
|
||||||
// FIXME: if hover up - this will be bad and break
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue