Commit Graph

568 Commits

Author SHA1 Message Date
Ji-Youn Park b76f9c8f6e elm_entry: revert drag_target_set API in elm_entry.
elm_entry, editable value is used not only drag_target but also other editable feature
2016-03-22 19:47:51 +08:30
Ji-Youn Park 07fa35da20 Evas.Draggable_Interface: move editable_set/get to lecacy API
Elm_XXX_editable_set/get is related with drag and drop.

Elm_entry, Elm_image, Elm_photo, Elm_thumb has editable API.
If user call elm_entry_editable_set(obj, EINA_TRUE),
elm entry's content(text) can be changed into dragging text.
elm_image(photo,thumb also) is same. its content(image) also
can be changed into dragging image.

so changed for these widget to use drag_target property in evas_draggable_interface
2016-03-19 10:40:25 +08:30
Mike Blumenkrantz 2f8b8ff1f3 entry: do not set selection on selection,start signal
this is already handled by the selection,changed signal and creates
duplicated events

@fix
2016-03-17 15:12:58 -04:00
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 1546c9c107 App client/server and entry: Mix of automatic migration and manual adjustments.
The script couldn't handle everything correctly on its own.
2016-03-03 10:05:00 +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
Amitesh Singh 32c64f5d6c entry: send focus/unfocus signals to scroller interface
In case of scrollable entry, send focus/unfocus signals to scroller
interface edje.
2016-02-26 20:00:12 +05:30
Subodh Kumar 12480dcc6f Elm entry: No use of top object if not editable.
Summary: No use of top object if not editable.

Reviewers: cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3719
2016-02-23 20:33:24 +09:00
Youngbok Shin 39f3af47d7 entry: add elm.swallow.background part to all of groups
Summary:
elm.swallow.background part will be a default part for
widget's background image.
When entry widget's scrollable status is changed,
the background object will be moved to scr_edje or entry_edje.

Test Plan: N/A

Reviewers: kimcinoo, woohyun, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-17 17:05:39 -08:00
Youngbok Shin b01d3c9e1b entry: add elm_entry_select_region_get() API
Summary:
Already, there is a way to set a selection region:
elm_entry_select_region_set()
The get() API also useful and there is needs for this
inside of elm_entry.c. Add the API and replace codes
in atspi_text_selection_get with the API.
@feature

Test Plan:
1. Run "elementary_test -to entry3"
2. Make a selection on text.
3. Press "Sel" button.

Reviewers: tasn, herdsman, cedric, woohyun, Jaehyun, Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D3639
2016-02-12 20:18:05 +09:00
Thiep Ha 1048ce14b3 entry: remove unnecessary variables
remove unnecessary dw, dh variables
2016-02-05 15:43:06 +09:00
Shilpa Singh 14c75857dc Elm_Entry: Magnifier Not working properly on corner areas issue fix.
Summary:
When magnifier is moved across corners and outside entry, working of magnifier
is not proper.

Magnifier is Restricted with in the window and to entry area and its position depends
on cursor.
Signed-off-by: Thiep Ha <thiepha@gmail.com>
Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>

@fix

Test Plan:
1. Enable Magnifier export ELM_MAGNIFIER_ENABLE=1
2. Launch elementary test and launch entry3 demo
3. Move magnifier on corners and outside of second entry

The contents of magnifiers are undefined when moved outside entry
and clipper moves in a different direction as magnifier.

Reviewers: cedric, raster, thiepha

Reviewed By: thiepha

Subscribers: buds, govi, rajeshps, subodh6129

Differential Revision: https://phab.enlightenment.org/D3586
2016-02-05 15:05:57 +09:00
Subodh Kumar d3deb1e6a7 Elm entry: Fix selection using handlers.
Summary:
Fix item selection using selection handler

In case of selection using handler, there is a problem in case the entry
has the item, mouse down over handler consider the current down
coordinate to start selection and it becomes very difficult to select in the
situation shown in the test plan. So I consider the next/previous  line
geometry to fix it.

@fix

Test Plan:
1.Enable selection handler
2. Have a look at the setup in the attached image
{F27396}

3. Start selecting from last item and extent to cover the last text.
4.Observe that its impossible to select the last text until you move mouse out of the window
So, in mobile device its almost impossible to select using handlers in this situation.

Please use the attached application to test it.
{F27402}

Reviewers: thiepha, herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3479
2016-02-02 10:22:30 +00:00
Subodh Kumar 02332b5b3d Elm entry: Use edje api and simplify empty check logic
Summary: Use edje api and simplify empty check logic

Test Plan: NA

Reviewers: herdsman, tasn

Reviewed By: tasn

Subscribers: shilpasingh, cedric

Differential Revision: https://phab.enlightenment.org/D3505
2016-02-02 10:22:30 +00:00
Jean-Philippe Andre 48b561b8e0 elm: Replace EO_EV_ by EO_BASE_EVENT_
EO_EV_ stuff is deprecated
2016-01-21 14:45:05 +09:00
Carsten Haitzler 7c71cf6d59 elm entry: check for null return from eina_rectangle_new
this will handle if eina_rectangle_new can't allocate a rect
(basically never will happen...)

@fix
2016-01-11 16:42:05 +09:00
divyesh purohit 666bc393eb hoversel: fix hover position in hoversel, when it goes out of the viewport
Summary:
Hoversel Widget is designed in such a way that it accepts top/bottom/left/right directions , internally it uses hover widget which does not take care if its content goes of it's parent (Elm_Win in most cases) . this patch ensures that the drop-down content remains restricted in visible hover_parent. it would fix  T2965
Signed-off-by: divyesh purohit <div.purohit@samsung.com>
Signed-off-by: Jee-Yong Um <conr2d@gmail.com>

Test Plan:
Open entry widget and right click to show a hoversel widget, check if the hoversel or hover content goes out of the window.

this is what hoversel would look like after this patch {F27551}

Screenshots of top-left / top-right/ bottom-left and bottom-right corners in entry after this patch

{F27553}

{F27554}

{F27555}

{F27557}

Reviewers: shilpasingh, conr2d, raster, cedric, Hermet

Subscribers: rajeshps, govi

Projects: #elementary

Maniphest Tasks: T2965

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:08:52 -08: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
Subodh Kumar 7f38944ac6 Elm entry: Fix to hide magnifier when menu is disabled.
Summary:
Fix to hide magnifier when menu is disabled

@fix

Test Plan:
1. Enable magnifier
2. Disable menu
3. Long press and mouse up
4. observe magnifier is not hidden.

Reviewers: tasn, herdsman, thiepha

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3490
2015-12-23 13:05:11 +00:00
Tom Hacohen 2b8c9217e8 Entry: clean up single line init function. 2015-12-21 14:45:34 +00:00
Subodh Kumar 1adf598584 Entry: Add newline filter for single line entry
Summary:
Add newline filter

Using the present filter infra
a newline or paragraph separator filter
is being added for single line entry.

@fix

Test Plan:
Copy multiline text from
and paste it to single line entry.

it will fix T2660

Reviewers: herdsman, tasn

Subscribers: thiepha, DaveMDS

Maniphest Tasks: T2660

Differential Revision: https://phab.enlightenment.org/D3109
2015-12-21 14:41:28 +00:00
Subodh Kumar aadac4388d Elm entry: Fix a typo
Summary:
Fix a typo.

Test Plan: NA

Reviewers: tasn, herdsman

Differential Revision: https://phab.enlightenment.org/D3476
2015-12-21 11:41:47 +00:00
Lukasz Stanislawski 7b690b61d1 atspi: return previous name in overloaded getters
Some overloaded accessible name getters did not respect
values set by developer.

@fix
2015-12-17 11:38:43 +01:00
Vaibhav Gupta 394a7e1d4d Entry: Context Menu is now configurable
Summary:
Added a config variable Context_Menu_Disabled to make the appearance
of the context menu configurable.

@feature

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: Hermet, SanghyeonLee, raster, singh.amitesh

Subscribers: stefan_schmidt, alok25, cedric, thiepha, sachin.dev

Differential Revision: https://phab.enlightenment.org/D2463
2015-12-11 16:08:54 +09:00
Daniel Hirt 616a0c1832 Elm entry: fix null item in item provider.
Item anchors can have null items likes <item size=10x10>. That is,
there is no "href". The problem is that Elm Entry segfaults as it
expects a non-null item. I prefer this fix over passing "" from Edje
Entry, and leave the decision to be made by Elm Entry. It will now just
show the error emoticon if there is no "href".

@fix
2015-12-09 13:38:21 +02:00
Daniel Hirt a77cee43d3 Entry: add markup cnp handlers
In Elm_Cnp, a markup data preparer was missing, which resulted
in _x11_notify_handler_targets not requesting
"application/x-elementary-markup" (requested "UTF8_STRING" instead) when
trying to paste markup text from one entry to another (or itself).

Also, there was a missing handling in the selection data callback for
ELM_SEL_FORMAT_MARKUP data format.

This fixes issues like not being able to paste "item" formats to the
entry widget.

@fix
2015-11-30 16:41:50 +02:00
indefini 64467c0c32 Entry focus region : if single line, show the whole object.
Summary:
If the entry is a single line, rather than return the cursor height,
it is better to return the height of the object.

Reviewers: herdsman, tasn

Differential Revision: https://phab.enlightenment.org/D3169
2015-11-23 16:44:57 +00:00
Subodh Kumar 7f8973ede6 Elm entry: Keep cursor at inserted position after dnd.
Summary:
Keep cursor at inserted position after dnd.

For good user experience, after dnd users expect
the cursor should be at the last inserted position.

@feature

Test Plan: NA

Reviewers: thiepha, herdsman, cedric, tasn

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3267
2015-11-18 11:57:49 +09:00
Daniel Juyung Seo 24797adcf5 elm: Fix typos fun! 2015-10-29 02:08:16 +09:00
Lukasz Stanislawski f15796036e atspi: add global event emitter
Introduce global event emitter for accessibility events. With such emitter
there is no need to register array of callbacks on every accessibility object.
2015-10-01 16:00:28 +02: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
Daniel Hirt efa7d7ebe7 Entry: fix cursor repositioning on theme_apply
Summary:
The original code did not consider the case where the text will be
reapplied by chunks. The repositioning of the cursor should be postponed
to when the idler work is done, or not required at all.
Fixes T2646.
@fix

Reviewers: NikaWhite

Reviewed By: NikaWhite

Maniphest Tasks: T2646

Differential Revision: https://phab.enlightenment.org/D2952
2015-08-17 08:34:21 +03:00
Daniel Hirt 4fc69f0f44 entry: Add null safety check in _elm_entry_entry_paste function.
Summary: Add null safety check for the given text.

Reviewers: tasn, woohyun, thiepha, herdsman

Reviewed By: herdsman

Subscribers: thiepha, JackDanielZ

Differential Revision: https://phab.enlightenment.org/D2868
2015-08-06 09:12:24 +03:00
Daniel Kolesa ba983afef8 cnp, entry: misc warning fixes 2015-07-29 15:26:14 +01:00
Prince Kumar Dubey 261a5966ff entry: few times the hit_rect is not clipped properly during genlist scrolling, with entry as content.
Summary: It has been observed that while scrolling of genlist with entry, clipping is not happening and "hit_rect" comes over navi item title. e.g. During theme change such scenario comes.

@fix

Test Plan: Scenario not in elementary test. Entry as content of genlist item. Same genlist should be the content of naviframe item. In this scenario genlist height must be grater than viewport sie so scrolling possible.

Reviewers: cedric, raster, Hermet, woohyun

Subscribers: rajeshps, govi

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-28 23:58:23 +02:00
Tom Hacohen f3be634e87 Entry: Fix behaviour of markup filters when setting entry text.
The issue was introduced in 28e6878f7cce36efae1438b5e032eb9c0878016a.
While this is a fix in the sense that it reverts to the previously
defined behaviour (defined both in docs and code), the previous
behaviour was stupid and inconsistent. So now we are back to stupid and
inconsistent.

I can't fix this further, because unfortunately, the fix requires
intrusive changes that are just too dangerous to make this late in the
release cycle. Luckily for us, the issues only surface in a very
specific case that is quite uncommon. In order to trigger the bug you
need to set a very long piece of text on an entry that has text filters
set.

Fixes T2561

@fix
2015-07-13 17:57:50 +01:00
Daniel Hirt 6a54630f41 Elm Entry: Fix context menu dismissal
The wrong event was used during the port from smart callbacks to eo
callbacks. Now the correct ELM_HOVERSEL_EVENT_DISMISSED event is used.
2015-07-09 16:40:44 +03: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 9b9725707c elm_entry: porting evas smart callbacks to eo 2015-07-05 13:05:38 +03:00
Amitesh Singh 78b759454d entry: Remove unused variable. 2015-07-03 15:58:24 +05:30
Vaibhav Gupta 514f1a954b Entry: Add chunked append in case of _elm_entry_entry_append
Summary:
Summary
Fixed FIXME: Add chunked appending here (like in entry_set)

@fix

Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com>

Reviewers: raster, Hermet, herdsman, singh.amitesh, tasn

Subscribers: thiepha, sachin.dev, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D2732
2015-07-03 11:08:23 +01:00
Vitor Sousa 2e7b6d38af elm_entry: use Efl.File in Elm_Entry
Summary:
Also using the second optional string parameter of efl_file_set as the
text format specifier.
Added string constants to represent the possible values.

Address the issue:
- Elm entry and the file interface clash on file_set.
Specified in the page:
https://phab.enlightenment.org/w/efl_interfaces/

Reviewers: felipealmeida, tasn

Reviewed By: tasn

Subscribers: thiepha, raster

Differential Revision: https://phab.enlightenment.org/D2353
2015-07-01 18:30:23 +01:00
Daniel Kolesa 3904cc7175 elm: constify Eolian methods correctly because of recent Eolian changes 2015-06-25 12:21:00 +01:00
Daniel Zaoui 50fa3bfe7c X11/CnP: remove X11 invocations from elm_entry
Code specific to X11 should not be part of elm_entry and can be easily
replaced with elm_cnp APIs.

@fix T2183
2015-06-24 08:26:38 +03:00
Minwoo, Lee 9818f2a7d2 elm_entry: modify to not allocate Eina_Rectangle
Summary: modify to not allocate Eina_Rectangle and use it directly on the stack with EINA_RECTANGLE_SET

Reviewers: raster, woohyun, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-22 12:36:57 +02:00
Thiep Ha dd67ff133f entry: emit changed,user signal when text is pasted or dropped
Summary:
When text is pasted or dropped into entry, the "changed,user" signal
should be emitted, not "changed" signal.
Currently, the "changed" signal is emitted.
This patch fixes this issue.

@fix

Reviewers: herdsman, tasn

Subscribers: tasn

Differential Revision: https://phab.enlightenment.org/D2710
2015-06-16 14:41:55 +01:00
Thiep Ha 8fe80fc6a3 entry: add dnd image handling
When image is dropped into entry, we should insert image to it.
This patch adds image inserting in dropping.

@fix
2015-06-12 11:53:57 +03:00
Thiep Ha 99ab88c1c7 Cnp/X11: move entry-only code in elm_cnp to entry
There is code in elm_cnp.c which is used to paste data to entry widget only.
This can cause error if widget is not entry.
This patch removes that code in elm_cnp.c and adds datacb to entry
to insert content to entry.

@fix
2015-06-12 11:53:34 +03:00
Lukasz Stanislawski dd19750273 entry: improve at-spi2 accessibility support
* return guide text instead of content
* mask passwords
* set proper at-spi roles when entry enables password mode.
2015-06-03 17:38:34 +02:00