Commit Graph

144 Commits

Author SHA1 Message Date
Tom Hacohen 380351b5d3 Edje entry: Make sure we append at the end.
SVN revision: 59810
2011-05-30 12:02:54 +00:00
Carsten Haitzler abbf3767c5 back out freeze/thaw on edje entry.. seems to have some side effects
with entry in gnelist ... i wonder why... for how, back out.



SVN revision: 59798
2011-05-30 05:37:59 +00:00
Tom Hacohen 69e89c2666 Revert commit 59732
Read my comment in the email, and we even talked about it on irc. The
current call to "mainloop iterate" is hacky, Jihoon is already working
on an alternative solution.

SVN revision: 59734
2011-05-27 11:16:05 +00:00
Jihoon Kim 4ad4fadb35 From: Jihoon Kim <jihoon48.kim@samsung.com>
When elm_entry_entry_set() is called, the preedit text in the entry should
be cleared. ATM, it doesn’t works so.

This patch will resolve this problem.
 
When ecore_imf_context_reset() is called, the preedit text in the immodule
will be committed by calling ‘ecore_imf_context_commit_event_add()’.

ecore_imf_context_commit_event_add puts the event in ecore event queue, so
it will be processed in the idle state of ecore loop.

According to this mechanism, commit text is inserted later, so I use
‘ecore_main_loop_iterate();’ for inserting the commit string instantly.



SVN revision: 59732
2011-05-27 10:46:51 +00:00
Carsten Haitzler 66aef5074f add use of freeze+thaw for improvement in out-there scenarios.
SVN revision: 59730
2011-05-27 10:32:53 +00:00
Tom Hacohen f13ec69e34 Edje entry: Don't emit cursor,changed when not needed.
This includes setting the text and setting cursor position to the already
set position.

SVN revision: 59531
2011-05-19 12:08:29 +00:00
Tom Hacohen 70665bc1c5 Edje entry: Fix warnings.
SVN revision: 59521
2011-05-19 09:00:22 +00:00
Tom Hacohen 85ac9b3059 Edje entry: Remove the useless calls to "update_from_curs".
We don't really need or use the coordinates anywhere, we just saved them
and worked hard on maintaining them, but didn't really use them.
Now we only calculate them in the one specific case where we actually
need them. This speeds things up and also means the layouting may not be
called in some cases when there's no need to layout.

SVN revision: 59520
2011-05-19 08:38:42 +00:00
Tom Hacohen 134a6af626 Edje entry: Don't emit 'curosr,changed' when appended using a different curosr.
SVN revision: 59494
2011-05-18 10:08:03 +00:00
Tom Hacohen 30847d0bdc Edje text: Added edje_object_part_text_append.
SVN revision: 59407
2011-05-15 15:57:38 +00:00
Tom Hacohen e20db04ef0 Edje entry: Use the new textblock _format_list_get in anchors_get.
SVN revision: 59326
2011-05-11 10:19:01 +00:00
Tom Hacohen 811fde2504 Edje entry: Speed up anchor calculation.
SVN revision: 59285
2011-05-09 08:40:15 +00:00
Jihoon Kim 3d2d5eb51d From: Jihoon Kim <jihoon48.kim@samsung.com>
Subject: [E-devel] [PATCH] bug fix : preedit text was commited when
shift key was pressed

ATM, preedit text is commited when shift key is pressed.
This patch file is for solving this bug.



SVN revision: 58887
2011-04-25 05:57:49 +00:00
Jihoon Kim ac33622354 From: Jihoon Kim <imfine98@gmail.com>
Subject: [E-devel] [PATCH] bug fix in : "cursor, changed" signal is
not emitted when the content of entry is removed

I found the bug that "cursor,changed" signal is not emitted when the content
of entry is removed.

Let's assume the cursor position is equal to 10.
In this situation, elm_entry_entry_set(en, "") is called.
The content of entry is removed and the cursor position is equal to 0, but
"cursor,changed" signal is not emitted.

This patch is for solving this problem.

In addition, it lets the input method module know the cursor position using
ecore_imf_context_cursor_position_set API
in case that _edje_entry_set_cursor_{start, end} is called.

(Raster: actually it should always emit changed. not check pos at all.
technically pos could be the same BUT cursor moved on screen due to a
reformat). :)



SVN revision: 58886
2011-04-25 05:36:58 +00:00
Daniel Juyung Seo 87271e150e Edje edje_entry.c: Fixed formatting. Patch by Jihoon Kim
<jihoon48.kim@samsung.com>


SVN revision: 58370
2011-04-06 01:20:59 +00:00
Carsten Haitzler ae08dc6fc3 selection now works too.
SVN revision: 58209
2011-03-30 12:20:51 +00:00
Carsten Haitzler bcacff3111 now cursor setting works with newly valigned textbllocks. selection
next.



SVN revision: 58207
2011-03-30 12:18:21 +00:00
Brett Nash 6894af9d5e Edje: (trivial) Put the clipper/evas pointer in the base structure.
I say trivial in the sense it has no functional changes, however it's a large
patch.  Recommendation from Gustavo.

SVN revision: 58080
2011-03-25 03:21:07 +00:00
WooHyun Jung 0786e6c1bf From: WooHyun Jung <wh0705.jung@samsung.com>
Fix missing clicked signal from entry.



SVN revision: 57663
2011-03-10 10:12:32 +00:00
Tom Hacohen 7a66e72df5 Edje entry: Added edje_object_part_text_cursor_pos_get/set.
This adds the ability to control the text position of an edje_entry.
Patch by Jihoon Kim.

SVN revision: 57365
2011-02-27 10:25:22 +00:00
WooHyun Jung 4274d39f03 From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: RE: [E-devel] One bug in _edje_key_down_cb func (in
edje_entry.c)

I found one bug in _edje_key_down_cb func (in edje_entry.c)
 
When I input "Backspace" in an entry object,  _signal_cursor_chagned_func(in
elm_entry.c) is not called. 

This is because the following code in _edje_key_down_cb func (in edje_entry.c)
is not called. 
 
 if ((evas_textblock_cursor_compare(tc, en->cursor)) && (!cursor_changed))
    _edje_emit(ed, "cursor,changed", rp->part->name);
           
Why not called ? Because ~ evas_textblock_cursor_compare(tc, en->cursor)
returns 0.

(i.e. old cursor and current cursor have the same position information)
 
I think old cursor should keep its position without any updating. 
 
But in evas_textblock_cursor_char_delete() func, called by _backsapce func
(in edje_entry.c) - 

old cursor's postion is updated as the current position. 



SVN revision: 57199
2011-02-21 05:53:23 +00:00
Daniel Juyung Seo d125dcecb1 Edje edje_entry.c: Removed trailing whitespaces. Patch by Jihoon Kim <jihoon48.kim@samsung.com>
SVN revision: 57198
2011-02-21 01:48:41 +00:00
Tom Hacohen b34172c91e Edje entry: Added cursor_mode to edje to toggle between UNDER (efl/terminal) and BEFORE (gtk/rest of the world) cursor modes.
SVN revision: 56547
2011-01-30 10:46:33 +00:00
Vincent Torri b600427f5d gaurd ecore_imf functions
SVN revision: 55550
2010-12-14 07:05:52 +00:00
Vincent Torri c69cd7ec27 use size_t when it does not hurt
SVN revision: 55548
2010-12-14 06:19:30 +00:00
Vincent Torri 3aedf59c9b declare variables at the beginning of the block
SVN revision: 55545
2010-12-14 05:42:25 +00:00
Tom Hacohen d3b5301bbd Edje entry: Fixed bug with preedit string. The text was committed to the current cursor position instead of the preedit cursor position (which may be different if you click the mouse somewhere in the tetx). Patch by Jihoon Kim.
SVN revision: 55080
2010-11-30 11:06:22 +00:00
Tom Hacohen 2f30d52b93 Edje entry: Fix support mouse down/up/move filter events.
Passing the correct data to _edje_entry_imf_event_delete_surrounding_cb and _edje_entry_imf_retrieve_surrounding_cb
Fix indentation.
Patch by Jihoon Kim.

SVN revision: 54365
2010-11-09 13:36:52 +00:00
Jihoon Kim a69afcfb91 From: Jihoon Kim <jihoon48.kim@samsung.com>
Entry widget has not processed the key event of keypad such as KP_Left,
KP_Right, KP_Home, KP_End, and so on.
In this patch, those key events is processed.



SVN revision: 54359
2010-11-09 07:54:13 +00:00
Tom Hacohen aecc018012 Edje entry: Fixed _edje_entry_imf_event_delete_surrounding_cb to actually delete, which it wasn't doing. Patch by Jihoon Kim.
SVN revision: 53709
2010-10-21 08:23:45 +00:00
Tom Hacohen 7c586714ef Edje entry: Init preedit_len on focus out. Rename 'composition' to 'preedit' in the preedit handling. Patch by Jihoon Kim.
SVN revision: 53651
2010-10-20 10:34:26 +00:00
Tom Hacohen 958b6c7569 Edje entry: Fixed a memory leak. Removed an unwanted selection clear, and renamed preedit strings functions to have a more adequate name. - Patch by Jihoon Kim.
SVN revision: 53390
2010-10-14 07:50:32 +00:00
Tom Hacohen 96185ffaf5 Edje entry: removed some unwanted commented out code.
SVN revision: 53306
2010-10-12 14:13:22 +00:00
Tom Hacohen 0579401cb3 Edje entry: Fixed the hack that was used in edje_entry for drawing anchors (the hack was there because of a bug in textblock which is now fixed).
SVN revision: 53107
2010-10-06 18:23:01 +00:00
Carsten Haitzler 57d15d3ef8 actually hook in filter callbacks - have 2 types and pass in enum to
each as to what text they are seeing to filter. fix up other typdef
uses.



SVN revision: 52975
2010-10-02 03:34:00 +00:00
Christopher Michael 9916578131 And use Eina_Bool return values too.
SVN revision: 52833
2010-09-28 00:25:54 +00:00
Christopher Michael b7b1a25c41 Fix edje entry callback to use Eina_Bool like ecore_imf is expecting.
SVN revision: 52832
2010-09-28 00:24:44 +00:00
Vincent Torri 1e1bb3b6a4 Put everything in edje_private. It should fix a compilation
bug on Windows

SVN revision: 52736
2010-09-25 17:10:33 +00:00
Tom Hacohen f1f122bd72 Edje entry: Fixed a lot of formatting issues. Patch by Jihoon Kim.
SVN revision: 52461
2010-09-19 08:08:17 +00:00
Carsten Haitzler 2303255182 dont get item anchors so often!
SVN revision: 52187
2010-09-13 12:08:19 +00:00
Tom Hacohen 527a3f3579 Edje entry: Fixed a selection bug with IMF enabled and fix a couple of indentation issues, and a saftey check.
Patch by Jihoon Kim.

SVN revision: 52165
2010-09-12 08:15:35 +00:00
Tom Hacohen 3e1ddfdbad Edje entry: fix the usage of the new evas_textblock_cursor_geometry_get function.
SVN revision: 51980
2010-09-08 07:29:00 +00:00
Brett Nash 4bf9ee3df3 Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Tom Hacohen b12585ec57 Edje entry: started using the new evas_textblock_cursor_content_get.
SVN revision: 51899
2010-09-05 08:29:52 +00:00
Tom Hacohen 7258468265 Edje entry: Enabled Ecore_IMF.
Fixed formatting issues.
Fixed typos.
Fixed clearing of selection when pressing a key in a software keyboard.
Patch by Jihoon Kim and small adjustments by myself. Thanks a lot.

SVN revision: 51897
2010-09-05 07:20:47 +00:00
Tom Hacohen 87d2c74d3e Edje entry: Fixed setting cursor on mouse click.
SVN revision: 51841
2010-09-02 13:52:14 +00:00
Tom Hacohen ffe4d9bbe2 Edje entry: Started using evas_textblock_cursor_geometry_get for cursor position instead of char_geometry_get.
SVN revision: 51835
2010-09-02 11:50:52 +00:00
Tom Hacohen 293692f2ba Edje entry: Fixed drawing of anchors.
SVN revision: 51647
2010-08-25 14:54:08 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael 251834fcd1 Add UNUSED where needed.
Cleanup some formatting.



SVN revision: 51398
2010-08-19 14:57:23 +00:00