Commit Graph

29 Commits

Author SHA1 Message Date
Carsten Haitzler 71dc4b5392 Revert "Elm helper: add the posix regex validator."
NO! this breaks compiling anything against elementary UNLESS you
enable eo beta api support. NO NO NO NO.

This reverts commit cad6de2a8ef93d994f9dedb8e980efe5fbf6d77e.
2015-04-02 09:48:29 +09:00
Vyacheslav Reutskiy 4c041aee9a Elm helper: add the posix regex validator.
Summary:
Added to Entry new signal "validate", this signal called from entry every
time when the text inputed to entry.
The regex validation add as elm_helper.
The styles of Entries scrollers are changed to allow highlightion that
is needed by regex processing.

For use regex with entry need register the regex helper as callback
to event: ELM_ENTRY_EVENT_VALIDATE

@feature

Test Plan:
See elementary_test "Entry Regex" test.
Note: when the string matches to regex the highlighting (green) is reset on unfocusing.

Reviewers: herdsman, raster, cedric, tasn

Reviewed By: cedric, tasn

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D2043
2015-04-01 16:11:18 +01:00
Jihoon Kim cdec9a9e85 Add elm_entry_input_hint_set/get API
Sets or get the input hint which allows input methods to fine-tune their behavior.
2014-09-01 19:04:05 +09:00
Daniel Juyung Seo 5a4ca7008f widget: added warnings to internal headers.
These headers are installed in the system but not officially supported
as they are considered as internal headers.
The reason why they still need to be installed is that
   - they were exposed even in the previous releases.
   - they are needed for widget customization (unofficially)
   - or it will break ewe.

Special thanks to Stefan for the reporting.
2014-08-08 01:29:39 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Daniel Zaoui f660fc7456 Eolian: Integration of Entry 2014-03-23 10:56:44 +02:00
Thiep Ha fcd164b4b0 Fix bug of moving cursor handler
Summary:
In elm entry, cursor handlers are placed and moved incorrectly if we do selection from bottom to top.
Ex: In elementary_test -> Entry -> Right click -> choose Select -> do selection from bottom to top (or press Shift + <- keys to do selection).
Look at selection handlers: they are incorrectly placed.
Try to move selection handlers: They suddenly move to near each other.

Minor: Remove unused variable.

@fix

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D583
2014-03-06 20:14:11 +09:00
Thiep Ha 771887df2b [Dnd] Fix double text insert issue in elm_entry, drop at disable, non-editable entry
Summary:
Issue 1: If you drop text to elm_entry, text is inserted twice.
Reason: Drop callbacks are registered multiple times in elm_entry.
Resolve: Register only one drop callback at entry side.

Issue 2: Even thought entry is disabled, non-editable, you still can drop text, image file. (Example, run Entry Scrolled and drop text, image file to disabled or non-editable entries).
Reason: Drop callback are registered but not remove when entry is set to disabled, non-editable mode.
Resolve: Correct registering and removing drop callbacks in entry.

Reviewers: JackDanielZ, raster

Reviewed By: raster

CC: woohyun

Differential Revision: https://phab.enlightenment.org/D565
2014-02-19 12:25:08 +09:00
Ryuan Choi 37ffb188bb elm_widget_xxx.h: Adopt EINA_UNLIKELY and fix indentation in FOO_DATA_GET macros. 2014-01-16 03:34:55 +09:00
Jihoon Kim 81d880cfae entry: Add elm_entry_input_panel_show_on_demand_set/get API
This API sets the attribute to show the input panel in case of only an user's explicit Mouse Up event.
It doesn't request to show the input panel even though it has focus.
2014-01-13 19:32:01 +09:00
Jihoon Kim 99321e8ca8 Revert "entry: Add elm_entry_input_panel_show_on_demand_set/get API"
It's feature freeze period, so I will add after ending freeze period.
2014-01-03 19:46:21 +09:00
Jihoon Kim 22e697fb98 entry: Add elm_entry_input_panel_show_on_demand_set/get API
This API sets the attribute to show the input panel in case of only an user's explicit Mouse Up event.
It doesn't request to show the input panel even though it has focus.
2014-01-03 18:51:38 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
ChunEon Park e434c377ed Revert "elementary/entry - clean up the magnifier code."
This reverts commit 46b007a7c9d0028aeab43587bc773724c06d0ec8.

sorry, this is wrong fix. clip should be removed explicitly.
2013-11-13 14:36:22 +09:00
ChunEon Park 704416f56e elementary/entry - clean up the magnifier code. 2013-11-13 14:25:21 +09:00
Carsten Haitzler acfe62f10a fix formatting, typose and downed naming 2013-11-08 17:25:51 +09:00
Thiep Ha ac54eff80c Move selection handler from edje to elm
Reviewers: cedric, raster, seoz, Hermet, tasn

CC: raster

Differential Revision: https://phab.enlightenment.org/D311
2013-11-08 17:25:51 +09:00
Chris Michael e797cd9e50 Sorry Jihoon, need to revert this. The code pushed to EFL to add this
feature did not build (missing the matching ecore_imf code) so I had
to revert it from EFL, which means this needs to be reverted also.

Revert "Add elm_entry_input_panel_show_on_demand_set/get()"

This reverts commit 3fc38ccc41d9b61efb4b5a8db08ea8290182bb7a.
2013-08-15 07:43:31 +01:00
Jihoon Kim c69f560ea1 Add elm_entry_input_panel_show_on_demand_set/get() 2013-08-14 18:32:42 +09:00
Daniel Juyung Seo 19cec53fff elm_widget_entry.h: added more comment for entry + formatting fix. 2013-07-03 13:13:11 +09:00
Carsten Haitzler 0c13ec5ced part of the entry magnifier feature set from thiep. still more to go. 2013-06-07 17:17:30 +09:00
Youngbok Shin e847b65e2f entry: elm_entry_markup_filter_remove() has a problem when internally defined filters are used. fixed.
When we call elm_entry_markup_filter_remove() with internally defined filter callbacks,
it doesn't work. So we need a one of pointer for saving the address of data.

10 Elm_Entry_Filter_Limit_Size lim;
11 lim.max_char_count = 20;
12 lim.max_byte_count = 0;
13 elm_entry_markup_filter_append(en, elm_entry_filter_limit_size,
&lim);
14
15 elm_entry_markup_filter_remove(en, elm_entry_filter_limit_size,
&lim);
16 lim.max_char_count = 50;
17 lim.max_byte_count = 0;
18 elm_entry_markup_filter_append(en, elm_entry_filter_limit_size,
&lim);

In this code, we expect to see the filter of entry will be renewed.
But elm_entry_markup_filter_remove() doesn't work.
Because, markup_filter does not hold the address of data when we use
the filter callback which is defined in elm_entry.c

_filter_new() in elm_entry.c
You can see that _filter_new allocates new pointer and names as lim2.
lim2 is saved in data of _Elm_Entry_Markup_Filter. So the address of
data doesn't equal to the input data.
2013-05-16 18:10:13 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo f8bc84d439 elm: fixed documentation + fixed formatting. 2013-04-03 21:26:04 +09:00
Jihoon Kim 1b8ad509fc Add APIs - elm_entry_input_panel_layout_variation_set/get 2013-03-27 17:34:19 +09:00
Carsten Haitzler 56d4729538 Change description:
Issue: Currently There is no possibility in entry to get currently
selected context menu item’s contents i.e., Label, icon etc:- due
to this issue a separate callback has to be added per item or the
item's contents has to be sent in data.

Fix: This patch fixes this problem by sending item pointer as
event_info and providing APIs to access the item pointer. This fix is
very useful for applications which add their own context menu items to
entry's context menu.

Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)
2013-02-27 21:06:05 +09:00
WooHyun Jung 733e98473d elementary/entry : Removing unused codes.
SVN revision: 82144
2013-01-04 04:32:30 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Gustavo Lima Chaves a9b1707fcd [elm] Entry now a scrollable layout.
SVN revision: 75890
2012-08-30 16:45:15 +00:00