2016-01-30 12:29:35 -08:00
|
|
|
class Elm.Combobox (Elm.Button, Evas.Selectable_Interface,
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Atspi_Widget_Action,
|
2016-03-10 14:24:50 -08:00
|
|
|
Elm.Entry, Elm.Genlist, Elm.Hover, Elm.Multibuttonentry)
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_combobox;
|
|
|
|
methods {
|
|
|
|
@property expanded {
|
|
|
|
get {
|
|
|
|
[[Returns whether the combobox is expanded.
|
|
|
|
|
|
|
|
This will return EINA_TRUE if the combobox is expanded or
|
|
|
|
EINA_FALSE if it is not expanded.
|
2016-01-06 08:33:54 -08:00
|
|
|
|
|
|
|
@since 1.17
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
]]
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
}
|
2016-03-10 14:24:50 -08:00
|
|
|
@property multiple_selection {
|
|
|
|
get {
|
|
|
|
[[Returns whether the combobox allows multiple selection.
|
|
|
|
@since 1.18
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
[[Enables or disables multiple selection in combobox.
|
|
|
|
|
|
|
|
Warning: This API should be set before any other API on
|
|
|
|
combobox, if you wish to avoid complications.
|
|
|
|
@since 1.18
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
enabled: bool; [[$true if multiple selection is enabled,
|
|
|
|
$false otherwise.]]
|
|
|
|
}
|
|
|
|
}
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
hover_begin {
|
|
|
|
[[This triggers the combobox popup from code, the same as if the user
|
|
|
|
had clicked the button.
|
2016-01-06 08:33:54 -08:00
|
|
|
|
|
|
|
@since 1.17
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
hover_end {
|
|
|
|
[[This dismisses the combobox popup as if the user had clicked
|
|
|
|
outside the hover.
|
2016-01-06 08:33:54 -08:00
|
|
|
|
|
|
|
@since 1.17
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
class.constructor;
|
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.hide;
|
|
|
|
Evas.Object_Smart.show;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.resize;
|
|
|
|
Elm.Widget.part_text.set;
|
|
|
|
Elm.Widget.part_text.get;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.translate;
|
|
|
|
Elm.Widget.event;
|
|
|
|
Elm.Button.admits_autorepeat.get;
|
2016-01-22 10:44:03 -08:00
|
|
|
Elm.Genlist.filter.set;
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Atspi_Widget_Action.elm_actions.get;
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
dismissed;
|
|
|
|
expanded;
|
|
|
|
clicked;
|
2016-01-19 11:33:47 -08:00
|
|
|
item,selected;
|
combobox: add new widget.
Summary:
Combobox is a combinational widget of a drop-down list and single line entry.
Based on the text entered in the entry, the list items are filtered accordingly.
Signed-Off By: Cedric Bail <cedric.bail@free.fr>
Signed-Off By: Divyesh Purohit <div.purohit@samsung.com>
Test Plan: test_combobox.c is added to elementary test
Reviewers: raster, shilpasingh, cedric, jpeg, stefan_schmidt
Reviewed By: raster, shilpasingh, cedric
Subscribers: SanghyeonLee, shashank0990, singh.amitesh, tasn, raster, seoz, poornima.srinivasan, rajeshps, govi
Differential Revision: https://phab.enlightenment.org/D2537
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:22:46 -08:00
|
|
|
item,pressed;
|
|
|
|
filter,done;
|
|
|
|
}
|
|
|
|
}
|