Commit Graph

177 Commits

Author SHA1 Message Date
Tom Hacohen e6031a23e8 Revert "Automatic migration to the new eo_add syntax."
This reverts commit d1a1819813d74361b25fd5c1123f7ac76be9b84f.
2016-03-11 12:36:19 +00:00
Tom Hacohen c788486398 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:17 +00:00
Tom Hacohen 75569ec561 Fix warnings following migration to Eo4.
Mostly unused variables.
2016-03-03 10:08:27 +00:00
Tom Hacohen d16aa5956b Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 10:08:27 +00:00
Tom Hacohen 9316ab5bf2 Eo events: Migrate all of elm to the new event callback signatures 2016-02-29 11:33:41 +00:00
divyesh purohit f297faaa6b multibuttonentry: fix Segfault on pressing Delete Key
Summary:
Pressing "Delete" Key in MBE layout causes Segfault as MBE item is not deleted properly and also focus is not transferred back to MBE.

@fix

Signed-off-by: divyesh purohit <div.purohit@samsung.com>

Test Plan: Run MultibuttonEntry example from elementart_test . Add some MBE items, now press the delete key, it should delete items without causing segfaults and transfer focus to previous MBE item.

Reviewers: raster, cedric, CHAN, shilpasingh

Reviewed By: shilpasingh

Subscribers: rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D3635

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
woochan lee 5e19488932 multibuttonentry: Add item unfocused callback.
Summary:
Even MBE item lose focus, item state did not changed before.
So i send a signal to make item state as default when item lose own focus.

Signed-off By: Kumar Navneet <k.navneet@samsung.com>

@fix

Test Plan:
Run MBE sample.
Click any item.
Click out of MBE area.
See the item still got a highlight.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D2994

Conflicts:
	data/themes/edc/elm/multibuttonentry.edc
2016-02-02 20:38:14 +09:00
Felipe Magno de Almeida 4f44ca0a16 efl-js: JavaScript Eolian binding
To configure elementary sources with bindings to use in nodejs add
––with-js=nodejs in configure flags in EFL compilation to generate
node files, then compile elementary normally:

path/to/efl$ configure --with-js=nodejs
path/to/efl$ make
path/to/efl$ make install

path/to/elm$ configure
path/to/efl$ make
path/to/efl$ make install

To use, you have to require elm:

elm = require('elm')

The bindings is divided in two parts: generated and manually
written. The generation uses the Eolian library for parsing Eo files
and generate C++ code that is compiled against V8 interpreter library
to create a elm.node file that can be required in a node.js instance.

@feature
2015-12-23 22:23:46 -02:00
Lukasz Stanislawski 8e3b8d947e multibutton_entry: improve atspi support
Expose multibutton items as push buttons supported with three
possible actions: activate, longpress and delete.
2015-12-16 14:00:10 +01:00
woochan lee f0e3e97ff6 multibuttonentry: internal entry cnp mode set as "ELM_CNP_MODE_PLAINTEXT".
Summary:
To prevent pasted markup text in entry.
User want tags removed text when paste text into entry.

@fix

Reviewers: jaehwan, Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3333

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
woochan lee bccb4efe1c multibuttonentry: change default format count.
Summary:
There is no need ellipsis, space as well before "%d".
The "%d" will show the actual invisible item count.

@fix

Reviewers: jaehwan, Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3332

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-23 08:45:33 +01:00
woochan lee d7b2b4facc multibuttonentry: fix internal entry be an orphan when editable set API called.
Summary:
When user called "elm_multibuttonetnry_editable_set()" API as false.
the internal entry will be unpacked from box.

Then called that API as true again.
the internal entry just show without box packed.

Also, editable set API should not work in MBE shrink mode.

Test Plan:
Alternately Call elm_multibuttonentry_ediable_set API as true, false.
Then check the internal entry state.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3134

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Shilpa Singh ffaee8f599 multibuttonentry: when item is clicked/selected, select function not called issue fix.
Summary:
The select function set in item_append does not get called on item selection issue fix.
As per documentation, the function has to get called.

@fix

Test Plan: elementary_test is updated with the demo

Reviewers: navnbeet, Hermet, CHAN, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3158

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
woochan lee 859e9a91ce multibuttonentry: fix label packed many times in internal box.
Summary:
The Internal box can has a lot of label for child when user set text many times.
Fix this wrong implement. It has to get only one label for child.

@fix

Test Plan:
Call elm_object_text_set() many times for MBE.
Check the label got a wrong geometry.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3133

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-26 01:20:56 +01:00
Shilpa Singh ab20dd4b39 elc_multibuttonentry: add item disable support
Summary:
Add item disable support in multibuttonentry widget

@feature

Test Plan: elm_object_item_disabled_set on MBE item

Reviewers: CHAN, Hermet

Reviewed By: Hermet

Subscribers: CHAN, Hermet, navnbeet

Differential Revision: https://phab.enlightenment.org/D3084
2015-10-01 19:55:02 +09:00
woochan lee a191fdb908 multibuttonentry: Fix MBE item box min size calc error.
Summary:
Before item packed again in mbe box. box calc own min height.
In this case, there is no need to increase line number when  entry is box item.
Actually the min height of box calculated wrong here.

@fix

Test Plan:
Give a color to internal box.
Then items add.
Check the internal box area got a wrong height value.

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3102
2015-10-01 19:50:23 +09:00
ChunEon Park 4d3a21fb44 multibuttonentry: code refactoring.
remove duplicated computations.
2015-10-01 19:41:06 +09:00
woochan lee 6f46c328a3 multibuttonentry: Fix padding to be affected by base_scale in edc.
Summary:
MBE internal box get its padding size from edc.
Previously, it does not consider when calculating the padding size.
In this commit, the padding size from edc is divided by its base_scale
so that desirable size can be calculated.

@fix

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D3103
2015-10-01 19:35:59 +09:00
Shilpa Singh 3f40e53fbf elc_multibuttonentry: Memory leak fix.
Summary:
If item filters are appended and multibuttonentry is deleted, the
filter list is not freed causing leak
Signed-Off By: Kumar Navneet <k.navneet@samsung.com>
Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>

Test Plan:
append item filters and when multibuttonentry is deleted leak is
observed, run valgrind in this scenario.

Reviewers: Hermet, cedric, CHAN

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D3118
2015-10-01 19:03:29 +09:00
Woochan Lee 59a14b4a81 multibuttonentry: fix MBE item clear, item delete logic error.
Summary:
elm_multibuttonentry_clear API not worked well.
It deleted only odd items. Because of the sd->items has been modified inside elm_widget_item_del().

Then we don't have to search target item inside of _item_del().

@fix

Test Plan:
Add MBE items.
Call elm_multibuttonentry_clear API.
Check the bug state.

Reviewers: Hermet, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3065

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-26 08:34:44 +02:00
Vivek Ellur 9f6821d161 elc_multibuttonentry: ported eo_event callbacks to use eo_event callback array
Summary:
Changed eo_event_callback_add to use eo_event_callback_array_add

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3097

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 15:30:18 -07:00
Shilpa Singh 644cfdf435 elc_multibuttonentry: Input panel should be controlled only if
multibuttonentry is editable

Summary:
Input panel should be controlled only if Multibuttonentry is editable, else causes issues in applications controlling keypad by themselves

@fix

Reviewers: CHAN, Hermet

Reviewed By: Hermet

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D3050
2015-09-16 10:25:18 +09:00
Jaehwan Kim 0dedfc9248 focus: add the APIs to set the focus next about item.
Add elm_object_focus_next_item_set/get,
elm_object_item_focus_next_object_set/get and
elm_object_item_focus_next_item_set/get.

If the item and object is set at the same time,
the item is preference to object when the focus moves.

This feature is implemented about gengrid.
It will be implemented about ohter widgets.

@feature
2015-09-15 19:53:23 +09:00
Woochan Lee 8c30b69453 multibuttonentry: Fix box item append rtl when mirror enabled.
Summary:
MBE item append logic changed when mirrored set as true.

The item appended from left side of internal box to right side, even mirrored set as true.

@fix

Test Plan:
Precondition : elm_widget_mirrored_set as true.

Run mbe sample in elementary_test.
Add item.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2975
2015-09-14 20:53:34 +09:00
Shilpa Singh 6ec080c400 Elc_Multibuttonentry: Item resize issue on text set
Summary:
When text is set on a multibuttonentry item, item does not resize
again based on text.

Signed-off By: Kumar Navneet <k.navneet@samsung.com>

@fix

Test Plan: Set long text to multibuttonentry item, after item is created and shown.

Reviewers: woohyun, CHAN, Hermet

Reviewed By: CHAN, Hermet

Subscribers: navnbeet

Differential Revision: https://phab.enlightenment.org/D2967
2015-08-28 19:52:17 +09:00
woochan lee 08cb9b61fd multibuttonentry: Use elm focus for items instead of evas focus.
Summary:
Item layout will be added in elm focus tree.
evas_object_focus_set is no meaning here for MBE operation.
So i changed focus API from "evas_object_focus_set()" to "elm_object_focus_set()"

elm_object_focus_allow_set() already called in item adding function.

@fix

Reviewers: Hermet, cedric

Differential Revision: https://phab.enlightenment.org/D2993
2015-08-28 15:51:16 +09:00
Stefan Schmidt 4557dd9ab8 multibuttonentry: check return value from elm_layout_theme_set
CID: 1294253
2015-08-17 13:32:14 +02:00
Youngbok Shin 7ba3140373 multibuttonentry/spinner: Fix memory leak when eina_strbuf_string_steal is misused.
Summary:
_elm_access_say() does not free the given text.
But, the text from eina_strbuf_string_steal() is not cared
from outside of _elm_access_say(), too.
It should be changed to eina_strbuf_string_get().

Test Plan: N/A

Reviewers: cedric, woohyun, kimcinoo, JackDanielZ, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2918
2015-08-07 15:15:45 +09:00
Shilpa Singh 190c774d04 mbe: remove unnecessary keypad hide call from multibuttonentry.
Summary:
When editable set is set to FALSE, there is no need to specifically
hide the keypad as keypad will automatically hide when entry is hidden.

@fix

Signed-off By: Kumar Navneet <k.navneet@samsung.com>

Reviewers: woohyun, Hermet, CHAN, cedric

Reviewed By: cedric

Subscribers: subodh6129, navnbeet

Differential Revision: https://phab.enlightenment.org/D2907

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:49:45 +02:00
woochan lee 79242eb4cc multibuttonentry: item object scale set is not need when theme applied.
Summary:
An item size calculated with scale value when item appended.
This code is not need.

@fix

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2840

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 16:02:29 +02:00
Woochan Lee 8ca5d9c333 multibuttonentry: add horizontal, vertical padding between items.
Summary:
There is no way to give padding between each items, previously.
So i added horizontal, vertical padding here.

I will add APIs for set, get padding size set, get.

@feature

Test Plan:
Change the horizontal, vertical paddidng value in multibuttonentry.edc
Run elementary_test
Execute multibuttonentry sample.
Add items.
Check the padding between items.

Reviewers: woohyun, seoz, Hermet, raster

Reviewed By: Hermet, raster

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D2534

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:21:40 +02:00
woochan lee 4890319e3e multibuttonentry: internal label object status, box pack, unpack logic clean up.
Summary:
Even user sets empty string here for text, label still packed in box with min size(finger size).
label_set internal logic is not clear before.
ex: object min set, resize check the string length then sending signal, min set again.
so i deleted the signal emit code here, we can handle label show, hide status in code and it's more clear.
Besides "sd->label" is always true all of the case. we need to check whether it's packed or not.

The label will be added to parent's sub object when it's packed into box.
label_set as empty string in adding time also meaningless.

@fix

Test Plan:
Run multibuttonentry sample.
Set a text somthing for it then set an empty string here.

Reviewers: Hermet, woohyun

Differential Revision: https://phab.enlightenment.org/D2841

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
woochan lee ed154ace3b multibuttonentry: update end text(item count) even mbe shrinked.
Summary:
In some MBE use case, Application can append item using only item_append API.
in that case, the end text(item count) doesn't update properly.
So, i add a code for fix it.

@fix

Test Plan:
1. Add a button for call "elm_multibuttonentry_item_append()" in test_multibbutonentry.c
2. Make MBE shrink mode.
3. Click button to append item to shrinked MBE.
4. Check the MBE end text state.

Reviewers: Hermet, woohyun

Differential Revision: https://phab.enlightenment.org/D2848

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
woochan lee 7c8f7e057a multibuttonentry: fix bug with uneditable MBE use case.
Summary:
If there is a uneditable MBE, the MBE doesn't have to get a entry inside of the box.
It breaks MBE box layout, resize logic.

And check the box focus, entry visible is not enough to cover MBE is uneditable case.
If MBE is uneditable, box_resize callback called when item added. in this case,
we need to check what view type user want. if its not shrink view here, do not make
MBE to shrink mode.

@fix

Test Plan: Run elementary_test -> execute multibuttonentry  sample with editable set as false.

Reviewers: Hermet, seoz, woohyun, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D2824

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
woochan lee 15ede0ce70 multibuttonentry: delete clicked signal preventing code when mbe shrinked.
Summary:
We don't have event block area in mbe.
Item clicked callback is not called when user clicked the item in mbe shrinked state.
However, item press effect will be shown.

@fix

Test Plan:
Delete the line always calling expanded set API in MBE clicked callback.
Execute MBE sample in elementary_test.
Check the item got a click event but not call the clicked callback.

Reviewers: Hermet, woohyun

Differential Revision: https://phab.enlightenment.org/D2870

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
Daniel Zaoui 95910aed72 Focus: concentrate focused events in widget
The focused/unfocused events should be only defined in a common widget,
which is Elm.Widget.
2015-07-06 14:47:31 +03:00
Avi Levin c0d43de914 elc_multibuttonentry: porting evas smart callbacks to eo 2015-07-05 13:05:37 +03:00
woochan lee 6044a5743f multibuttonentry: Delete item size min set when first box resize time.
Summary:
The mbe items has to get own min size to calc each items locate, box size etc...
but when first time box resize it will ignored.
It makes item wrong size issue when mbe located at some part of layout in runtime.

Reviewers: Hermet, seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D2657
2015-07-01 10:54:47 +09:00
Daniel Kolesa 3904cc7175 elm: constify Eolian methods correctly because of recent Eolian changes 2015-06-25 12:21:00 +01:00
Tom Hacohen 27b72840c8 Adjust usage of eo_constructor() according to recent changes. 2015-05-20 13:03:28 +01:00
Vitalii Vorobiov 1cdbbcde90 elm_multibuttonentry: fix label position and size defects
Summary:
1.) Fixing defective label position.
Whenever user create multibuttonentry and set some text into label,
label will be shown at zero point (0,0) of MultiButtonEntry parent.
But then, after clicking on any button of MBE object, label position forced to
be recalculated and changes it's position.

2.) Fixing wrong size when label is not used.
When label is not being used, buttons shift by few pixels,
and it looks like if label is actually there, which is wrong.

@fix

Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Reviewed By: Hermet

Subscribers: NikaWhite

Differential Revision: https://phab.enlightenment.org/D2416
2015-04-27 10:47:22 +09:00
Vitalii Vorobiov 4e1e187fdb elm_multibuttonentry: change theme_set API to provide full widget theming
Summary:
While setting theme currently changes style and theme to all button and
whole multibuttonentry object, it doesn't change few other parts of this object.
Part are, for examples, "guidetext", "label" and "closedbutton".

Fixing this sad mistake leads to be able to create different styles for such
wonderful widget.

@fix

Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Reviewed By: Hermet

Subscribers: NikaWhite

Differential Revision: https://phab.enlightenment.org/D2407
2015-04-23 11:05:31 +09:00
Amitesh Singh f3025cf2ed multibuttonentry: This fixes item,clicked cb broken issue.
Summary: This fixes T2334.

Test Plan: elementary_test -> multibuttonentry

Reviewers: raster, Hermet

Reviewed By: Hermet

Subscribers: DaveMDS, seoz, sachin.dev

Maniphest Tasks: T2334

Differential Revision: https://phab.enlightenment.org/D2379
2015-04-21 11:58:32 +09:00
ChunEon Park 5c56171bb8 multibuttonentry: changed longpress callback name.
contextually, the longpress triggered by item.

so the name should be item,longpressed

thank Davide Andreoli for reporting.
2015-04-17 16:32:04 +09:00
ChunEon Park 699f5efe05 multibuttonentry: use layout apis instead of edje,
the internal view type has been changed to layout.
2015-04-06 10:34:39 +09:00
woochan lee 0cfbc39b67 multibuttonentry: btn item theme set API change.
Summary: I missed this during btn object type change to layout from edje object .

Reviewers: Hermet, seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D2289
2015-04-06 10:21:48 +09:00
woochan lee 93a4b8b4e3 multibuttonentry: Add item long pressed callback.
Summary: Add long pressed callback for application. test code changed to following this change as well.

@feature

Reviewers: seoz, woohyun, Jaehyun, Hermet

Differential Revision: https://phab.enlightenment.org/D2103

Conflicts:

	src/lib/elc_multibuttonentry.c
2015-03-28 15:09:27 +09:00
Daniel Juyung Seo f5d144e421 elm: Use eo_isa() to check object types instead of manual string comparison. 2015-03-10 22:52:29 +09:00
woochan lee d66a2555a8 multibuttonentry: registered object change for callback add.
Summary:
API changed from "edje_object_signal_callback_add()" to "elm_layout_signal_callback_add"
to following code refactoring.

Reviewers: seoz, woohyun, Jaehyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2102
2015-03-10 17:19:47 +09:00
woochan lee 03af867581 multibuttonentry: Item width size set policy change.
Summary:
Item width max size set as 130 in edc before, i thinks that value doen't have any meaning,
so i changed the item max width size to follow container width size.

For modification, item size calc, box resize logic changed.

Test Plan:
1. Run elementary_test
2. Execute multibuttonentry sample.
3. Input some text for make item.

Reviewers: Hermet, seoz, woohyun, Jaehyun

Differential Revision: https://phab.enlightenment.org/D1970
2015-03-04 20:38:04 +09:00