Commit Graph

1622 Commits

Author SHA1 Message Date
Mike McCormack e5c1e7cc4f evas: remove extra CR
SVN revision: 63867
2011-10-06 02:23:57 +00:00
WooHyun Jung fb371c8aa6 evas/evas_object_textblock : When cursor_mode is BEFORE, dir_cur->node
can be NULL. So modified the conditional state.


SVN revision: 63824
2011-10-05 07:29:06 +00:00
Cedric BAIL 8edb994133 evas: cleanup and reorder video function call to be more usable.
SVN revision: 63799
2011-10-04 09:34:01 +00:00
EunMi Lee c6681aa189 From: EunMi Lee <eunmi15.lee@samsung.com>
Subject: [E-devel] [Patch] Evas touch event patch.

Nice to meet you.
I'm Eunmi Lee, developing mobile web browser and working on WebKit EFL port.
I need new type of event for touch, so I've made patch to add
EVAS_CALLBACK_TOUCH event to the evas.

I will explain history of this patch.
Currently, many web applications and sites use TouchEvent and they can
do everything(scrolling, zooming and so on) like native application
using TouchEvent.
So, I'm also want to provide TouchEvent for web in the WebKit EFL port,
but I got a problem during making TouchEvent because EFL's touch
event's structure (Mouse, Multi Event) is different from Web
TouchEvent's one.

Let me explain about Web TouchEvent firstly.
Web TouchEvent is consist of type and touch points list simply.
There are 3 kinds of type.
TouchStart: Happens every time a finger is placed on the screen.
TouchEnd: Happens every time a finger is removed from the screen.
TouchMove: Happens as a finger already placed on the screen is moved
across the screen.
for example, we can make (1 finger starts to touch), (2 fingers are
moving), (1 finger is released duirng 3 fingers are moving) and so on.
You can see the detailed information in the following url:
http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone

However, EFL's touch event is consist of six kinds of type :
MOUSE_DOWN, MOUSE_UP, MOUSE_MOVE, MULTI_DOWN, MULTI_UP, MULTI_MOVE.
So, I have to make a converter to make web touch event from EFL's
touch event.
You can reference attatched image file : evas_touch_event.png.

To tell the truth, converting code is not a big one.
But, I want to reduce this additional job and make code simple.
In the WebKit QT port, they don't have to make converting code for
TouchEvent,
because they have QTouchEvent, it has type and touchPoints list and
they can be mapped to Web TouchEvent one by one.
I think iPhone and Android also have such kind of event.

That's all why I want to add new touch event type to the evas.

about my patch:
- EVAS_CALLBACK_TOUCH event is added
- touch_points Eina_List is added to the Evas structure to maintain
current touch lists.
- process MOUSE/MULTI UP, DOWN, MOVE to make TOUCH event.

It is my first time to modify eves codes and actually I don't know too
much about evas.
So, I will be grateful if you send any feedback and comments.




SVN revision: 63796
2011-10-04 07:30:22 +00:00
Cedric BAIL d724205a6e evas: add basic support for video support.
SVN revision: 63758
2011-10-03 03:28:52 +00:00
Carsten Haitzler 7be30a23bf and another commit in an attempt to fix mouse grabs + event callbacks
to be consistent



SVN revision: 63607
2011-09-26 02:45:06 +00:00
Carsten Haitzler 0088ea3d8b new attempt to fix the hidden object event thing without breaking
dnd... this makes for consistent behavior. :)



SVN revision: 63599
2011-09-25 04:43:02 +00:00
Carsten Haitzler 64940b1bf4 oops - and dont need to sub the rgabbed count - i missed that it was
already done above. no bug there. move on.



SVN revision: 63586
2011-09-24 07:46:37 +00:00
Carsten Haitzler 0df0084dba as suspected... this breaks drag and drop! :( revert.
SVN revision: 63577
2011-09-24 04:01:36 +00:00
Carsten Haitzler 222644dc67 try this for fixing grab count when callbacks play with further events
in the in list copy (like moving, resizing, hiding etc. them).



SVN revision: 63554
2011-09-23 06:37:03 +00:00
Carsten Haitzler f3899ddecb fix grab event counter miss.
SVN revision: 63553
2011-09-23 06:19:20 +00:00
ChunEon Park b653b18526 evas_object_smart - trivial changes.
SVN revision: 63514
2011-09-21 10:56:23 +00:00
ChunEon Park ad59819a7d evas/evas_events - just removed white spaces.
SVN revision: 63511
2011-09-21 10:35:03 +00:00
Tom Hacohen 7b374f1dd3 Evas textblock: Fixed an issue when deleting A from <a><a>A</a></a>.
Reported by WooHyun. Thanks a lot, great catch, also told me where and what
the issue is exactly.

Also added a test to verify this works.

SVN revision: 63493
2011-09-20 08:05:50 +00:00
Cedric BAIL 3171f01b00 evas: remove a fixme by making the engine list dynamic.
SVN revision: 63481
2011-09-19 14:20:18 +00:00
Tom Hacohen 0de47ae436 Evas textblock: Replace the rbtree index with a fixed ptr array.
This possibly doesn't scale as good but it's good enough for everything I've
tried. It's a lot easier to maintain comparing to the rbtree, and takes a
lot less memory. Next step is probably changing the array size according
to the actual content of the textblock.

SVN revision: 63474
2011-09-19 09:17:17 +00:00
Daniel Juyung Seo 61b786c4e8 evas evas_name.c: Fixed indentation.
SVN revision: 63369
2011-09-14 04:41:12 +00:00
Tom Hacohen c0b309e43e Evas textblock: Added a workaround for the coords_recalc not being called.
Please, when you fix this annoying issue, revert this terrible commit. This
commit is intended to be a temporary fix.

SVN revision: 63267
2011-09-07 10:41:44 +00:00
Tom Hacohen fe8c41c6c5 Evas textblock: Use viewport for getting visible range, not clip.
SVN revision: 63191
2011-09-05 12:03:53 +00:00
Tom Hacohen 8f07a73106 Evas textblock: Fixed an issue when there are no available fonts.
The problem was that our rbtree implementation doesn't support chaining
duplicates and with no fonts, all the paragraphs had the same y coord (0).
Changing the paragraph index to work on line_no for sorting fixes it,
as line numbers are also correct when there are no fonts.

Thanks a lot to KaKaRoTo for letting me know about this issue.

SVN revision: 63188
2011-09-05 09:04:43 +00:00
Tom Hacohen 54ebd93cde Evas font: Fix compilation with C++ compilers.
Thanks to cnook for pointing that out.

SVN revision: 63186
2011-09-05 07:13:23 +00:00
Tom Hacohen c4229776de Evas textblock: Fixed compiler warnings.
SVN revision: 63185
2011-09-05 07:13:07 +00:00
Rafael Antognolli 92b98ad145 evas/canvas - Update the pointer to engine_data after pixels_get().
The "pixels" pointer was set in the beginning of evas_object_image_render(),
and never updated, even after pixels_get() changed the content of
o->engine_data.

This patch updates that pointer if it becomes different from engine_data.



SVN revision: 63090
2011-09-02 14:06:25 +00:00
Carsten Haitzler 6694437c15 lets up the max recalc count a bit now that things re-schedule
themselves more.



SVN revision: 62994
2011-08-30 15:33:46 +00:00
Carsten Haitzler 8833075666 lets do that again. recalc list instead of recalc array. why? fixes
nasty ordering issues where recalc items dont get pushed later into
the recalc queue after the things they depend on.



SVN revision: 62977
2011-08-29 23:45:24 +00:00
Cedric BAIL 26ee52dd61 evas: add NV12 and MT12 colorspace.
MT12 is has documented in Linux videodev documentation
a 64 * 32 macro block tiled colorspace format used on
Samsung hardware.


SVN revision: 62967
2011-08-29 20:56:48 +00:00
Vincent Torri 93ded6d380 revert rev. 62944
SVN revision: 62963
2011-08-29 19:05:03 +00:00
Carsten Haitzler e7c63bd333 i've found a subtle issue with how we queue recalcs of smart objs. if
an obj is already queued we dont push it FURTHEr down the queue if
smart recalc is enabled. now at least we keep order of operation/calc
correctly!



SVN revision: 62944
2011-08-29 12:14:55 +00:00
Carsten Haitzler f8c2a95c1a ok- we'll be nice and 0 your w & h - also x, y, w, h did this too.
SVN revision: 62942
2011-08-29 11:49:31 +00:00
Carsten Haitzler 9987945719 dont need ti check priv - macro did it anyway
SVN revision: 62941
2011-08-29 11:39:43 +00:00
Carsten Haitzler 3c456311b3 add a call to get the number of smart caluclation counts. very useful
for one evil situation in elementary factory.



SVN revision: 62856
2011-08-26 12:26:45 +00:00
Tom Hacohen 9f23c221d6 Evas callbacks: Do the same change daniel did to smart callbacks.
Spank Spank for not applying it here as well.

SVN revision: 62798
2011-08-25 10:06:12 +00:00
Daniel Juyung Seo 733ac6e274 evas evas_object_smart.c: Reverted smart callback calling sequence.
Now, smart callback is prepended among the same priorities. After the
discussion with hermet and raster.

I fixed this because I think it's better keeping the default behavior
even we have new priority option. This is for evas backward
compatibility and for the world peace. Although I know there is no
official policy and it's not recommended to rely on the smart callback
calling sequence in application, I really hope evas needs to have
compatibility. Otherwise we need to adopt the new policy in next
version of evas. 


SVN revision: 62792
2011-08-25 09:18:39 +00:00
Jiyoun Park 4b59fd460e From: Jiyoun Park <jy0703.park@samsung.com>
Subject: [E-devel] [Patch] evas gl engine's texture creation

Hello. 

1. _pool_tex_dynamic_new function, it didn’t set pt to NULL when secsym_eglCreateImage function failed.
In this case, it returns wrong pt pointer and it has possibility to make crash.
So I add free pt code and return NULL code into _pool_tex_dynamic_new function.

2. I modified eng_image_data_get of gl engine.

If Evas_GL_Image's texture creation failed and evas_gl_image's cache image was droped, 
Im->im can be NULL. So I add check code. 
Example: evas_gl_common_image_content_hint_set
     1) EVAS_IMAGE_CONTENT_HINT_DYNAMIC , it drop cache image
     2) if evas_gl_common_texture_dynamic_new failed
     3) then, im->im =NULL, im->tex=NULL
        In this situation, if application call's evas_object_image_data_get function, 
It make crash in evas_cache_image_load_data function.

3. I think function's related with evas_object's engine data have to be return NULL if it failed.
If function's returns null, evas object code can handle error more easily.  
But evas object's code was implemented differently each case. Does my suggestion right?
I add engine data null check code to evas_object_image based on upper consumtion.
If it is wrong , the patch code related with evas object image have to be removed.
If it is right , I will survey other evas object type also.  



SVN revision: 62775
2011-08-25 04:48:45 +00:00
Cedric BAIL efcceff953 evas: fix evas_object_image_data_convert.
SVN revision: 62722
2011-08-23 16:06:41 +00:00
Tom Hacohen f6724cc23b Evas font: Did some style fixes, we don't like tabs.
SVN revision: 62695
2011-08-22 14:45:23 +00:00
Tom Hacohen 54fd7dc69f Evas font: Fixed font cache.
Apparently someone (probably me) broke it a while ago, now it works.

SVN revision: 62694
2011-08-22 14:45:19 +00:00
Carsten Haitzler 0f2636921b warning--
SVN revision: 62647
2011-08-21 07:46:57 +00:00
Carsten Haitzler 6895455001 and clear out proxy region first.
SVN revision: 62632
2011-08-20 14:43:04 +00:00
Carsten Haitzler db56e7b36f fix proxy rendering!!!! ugh. i dont like the way i did it.. but its
quick and does the job.



SVN revision: 62631
2011-08-20 14:40:28 +00:00
Tom Hacohen ef8476152d Evas callbacks: Added priority to evas callbacks.
This includes evas_event, evas_object_event and evas_object_smart
callbacks.
See the added docs for more info.

SVN revision: 62533
2011-08-17 11:55:29 +00:00
Tom Hacohen 7addaa1eb4 Evas text: Set the object's size according to the advance, not width.
SVN revision: 62494
2011-08-16 07:16:06 +00:00
Christopher Michael 76acd92058 Evas: Fix formatting.
SVN revision: 62489
2011-08-15 20:17:18 +00:00
Tom Hacohen 73036290d6 Evas textblock: Fixed cursor_content_get's handling of formats.
Formats are now correctly enclosed with <> when returned, instead of just
the text being returned.

SVN revision: 62439
2011-08-14 11:26:45 +00:00
Daniel Juyung Seo 22459ef0ea evas: Fixed 'unsed variables' warnings.
SVN revision: 62388
2011-08-12 15:01:12 +00:00
Tom Hacohen d6752c9e1b Evas textblock: Fixed bug in range_formats get.
Thanks to Sanjeev for the rebort.

SVN revision: 62333
2011-08-11 06:58:53 +00:00
Jiyoun Park dae46003e7 From: Jiyoun Park <jy0703.park@samsung.com>
Subject: RE: [E-devel] [Patch] Animation gif feature patch

Animated gif suport in evas and api's to handle animated images and
frame flipping. from jy.



SVN revision: 62331
2011-08-11 06:04:08 +00:00
Tom Hacohen e5b331009b Evas textblock: Added cursor_visible_range_get and cursor_range_formats_get.
SVN revision: 62259
2011-08-09 13:55:42 +00:00
Tom Hacohen 202623daed Evas textblock: Fixed a bug in evas_textblock_cursor_char_coord_set.
SVN revision: 62258
2011-08-09 13:55:38 +00:00
Tom Hacohen f765f1e290 Evas textblock: Fixed a bug in evas_textblock_cursor_line_coord_set.
SVN revision: 62257
2011-08-09 13:55:31 +00:00