Tom Hacohen
5e433f1956
Evas bidi: Changed the design a bit so it'll be easy to implement async-rendering with it.
...
Fixed a couple of issues with unwanted cleans and generally data corruption.
Cleaned up async-rendering.
SVN revision: 51806
2010-09-01 13:15:04 +00:00
Tom Hacohen
e6304cafaf
Evas textblock: Fixed updating BiDi properties when we delete.
...
SVN revision: 51801
2010-09-01 08:25:19 +00:00
Tom Hacohen
c128fa4d80
Evas textblock: Fixed @intrenal -> @internal in some docs.
...
SVN revision: 51746
2010-08-30 11:27:39 +00:00
Tom Hacohen
58319c5715
Evas textblock: fixed breakages of paragraph direction when merging/splitting text nodes.
...
SVN revision: 51723
2010-08-29 12:16:32 +00:00
Tom Hacohen
d4c2078f8d
Evas textblock: Fixed 'up' and 'down' when pointing to the end of the last line when it ends with a visible format.
...
SVN revision: 51717
2010-08-29 09:19:04 +00:00
Tom Hacohen
649ad7a890
Evas textblock: Fixed 'Home' and 'End' in the last line when it ends with a visible format.
...
SVN revision: 51716
2010-08-29 09:13:48 +00:00
Tom Hacohen
71490cad70
Evas textblock: Fixed segfault when clearing a textblock and then trying to delete while it's empty. And fixed cursor position in cases when there's a visible format after a \n
...
SVN revision: 51709
2010-08-29 08:27:13 +00:00
Tom Hacohen
2ab7f0f809
Evas textblock: Fixed ignoring of unicode object replacement char.
...
SVN revision: 51658
2010-08-26 13:04:13 +00:00
Tom Hacohen
07f7a9bd88
Evas textblock: Fixed tab causing weird spacing and unwanted linewraps.
...
SVN revision: 51655
2010-08-26 11:14:03 +00:00
Tom Hacohen
ee3b20d11a
Evas textblock: Fixed a bit of formatting.
...
SVN revision: 51653
2010-08-26 09:22:31 +00:00
Tom Hacohen
9a5dba89eb
Evas textblock: Paired formats (e.g <b> and </b>) are now only deleted if they point to the same place. This makes everything nice and clean.
...
SVN revision: 51646
2010-08-25 14:37:52 +00:00
Tom Hacohen
735487e18e
Evas textblock: simplified descent calculation.
...
SVN revision: 51516
2010-08-22 12:26:40 +00:00
Tom Hacohen
818c1dbf64
Evas textblock: fixed most of the cases on which a cursor was not drawn correctly.
...
SVN revision: 51515
2010-08-22 11:00:45 +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
Tom Hacohen
7967a59ef8
Evas textblock: Fixed range_text_get, no works when selecting text from multiple paragraphs.
...
SVN revision: 51392
2010-08-19 14:07:45 +00:00
Tom Hacohen
75a676f945
Evas textblock: Improved the docs of the size get functions. It should now be clear exactly what they are about.
...
SVN revision: 51385
2010-08-19 07:46:32 +00:00
Christopher Michael
76bc67ea7c
Initialize var to Zero (remove compiler warning).
...
Remove Whitespace in cs_server.
SVN revision: 51283
2010-08-18 15:27:37 +00:00
Tom Hacohen
f9db3d6b84
Evas textblock: Fixed range_delete with multiple paragraphs + cursor position after deletion.
...
Switched int -> size_t in a couple of places I forgot.
Fixed all of gcc's warnings when compiling with -Wextra.
SVN revision: 51278
2010-08-18 13:56:34 +00:00
Tom Hacohen
71f8122aab
Evas textblock: Fixed range_delete.
...
SVN revision: 51275
2010-08-18 12:29:20 +00:00
Tom Hacohen
35f14c47e2
Evas textblock: render should be allowed to be passed an object with no paragraphs, but should just return and do nothing.
...
SVN revision: 51263
2010-08-17 17:55:48 +00:00
Tom Hacohen
a0c3f2a405
Evas textblock: Added comment about styles in the docs.
...
SVN revision: 51209
2010-08-16 12:56:01 +00:00
Tom Hacohen
2f68e9299e
Evas: Fixed many compilation warnings.
...
1. Fixed evas_common_encoding_utf8 functions to get char * instead of unsigned char * and return Eina_Unicode instead of int.
2. Removed a couple of unused variables.
3. Removed deprecated evas_common_font_utf8* functions.
SVN revision: 51200
2010-08-16 10:46:56 +00:00
Tom Hacohen
1a979c596c
Evas textblock: Fix the inefficent ways used to get string length. No need to get length twice and strbuf has a very fast function to getting length, no need to get the string and the calc it's length.
...
SVN revision: 51182
2010-08-16 09:44:50 +00:00
Tom Hacohen
9a1e0eecda
Evas textblock: Fixed evas_textblock_cursor_paragraph_text_get to return markup.
...
SVN revision: 51181
2010-08-16 09:40:01 +00:00
Tom Hacohen
128e61649d
Evas textblock: removed two unwanted fixmes.
...
SVN revision: 51178
2010-08-16 09:18:09 +00:00
Tom Hacohen
424b7ed6b7
Evas textblock: Another fix to 'range_get' fixes the text getting and not just the mishandling of formats.
...
SVN revision: 51176
2010-08-16 09:08:01 +00:00
Tom Hacohen
9ed2feb59e
Evas textblock: Fixed a bug with getting text in range.
...
SVN revision: 51170
2010-08-16 08:52:18 +00:00
Tom Hacohen
5d3fc4a03e
Evas textblock: Use the unicode object replacement char, not the regular replacement char.
...
Drop the object replacement char if passed as text.
SVN revision: 51168
2010-08-16 08:36:08 +00:00
Tom Hacohen
0f184462d1
Evas textblock: Updated usage documentation.
...
SVN revision: 51166
2010-08-16 08:22:18 +00:00
Tom Hacohen
25d7564726
Evas textblock: Fixed the bug with going up/down lines when the cursor points to an <item>.
...
With this fix I also fixed a couple of potential bugs with cursor geometry in places with mixed visible+invisible formatting.
SVN revision: 51133
2010-08-15 16:04:34 +00:00
Tom Hacohen
660a7b8ee4
Evas bidi: Added defines for bidi paragraph types (instead of using the fribidi defines).
...
SVN revision: 51131
2010-08-15 14:36:20 +00:00
Tom Hacohen
b2b95df2be
Evas: Removed deprecated 'lines' from Evas_Object_Textblock.
...
SVN revision: 51129
2010-08-15 09:10:15 +00:00
Tom Hacohen
3686e9d295
Evas textblock: Remove an unused function.
...
SVN revision: 51127
2010-08-15 08:59:39 +00:00
Tom Hacohen
2c2a0cb928
Evas textblock: Free paragraphs as well as lines.
...
Fixes a small memory leak.
SVN revision: 51126
2010-08-15 08:17:21 +00:00
Tom Hacohen
2ecda40ecd
Evas textblock: Fixed cursor sizes in rare situations, for example the text from expedite textblock_basic test and point the 'c' in COLOR you would get a badly shaped cursor.
...
SVN revision: 51050
2010-08-12 15:49:43 +00:00
Tom Hacohen
86adc683d0
Evas: Textblock fixed formating.
...
SVN revision: 51045
2010-08-12 15:04:47 +00:00
Tom Hacohen
5cc418c333
Evas: Textblock - Fixed a couple of segs/invalid memory access.
...
SVN revision: 51044
2010-08-12 14:59:42 +00:00
Tom Hacohen
d8fadf706b
Evas: Each paragraph has at least one layout item in order to mark it's existence.
...
SVN revision: 51039
2010-08-12 14:20:19 +00:00
Tom Hacohen
3ec81c0b3e
Evas: textblock - made _format_fill faster.
...
SVN revision: 51032
2010-08-12 09:35:53 +00:00
Tom Hacohen
eda4539c2c
Evas: textblock - Made _format_param_parse sane and cleaner and fixed compilation warnings about unused functions.
...
SVN revision: 51031
2010-08-12 09:31:43 +00:00
Tom Hacohen
fd04d4c5d3
Evas: fixed textblock compiler warnings.
...
SVN revision: 51029
2010-08-12 07:02:30 +00:00
Tom Hacohen
d408865797
Evas: textblock - fixed arabic shaping and fixed an issue with persistant paragraph direction (regarding RTL).
...
SVN revision: 50996
2010-08-11 13:03:24 +00:00
Tom Hacohen
af31abca35
Evas: Improved evas_textblock_cursor_range_text_get to return markup text instead of plain text.
...
SVN revision: 50992
2010-08-11 12:29:20 +00:00
Tom Hacohen
41ebc486dc
Evas: Textblock - Sanitized format init and shutdown.
...
SVN revision: 50991
2010-08-11 11:20:10 +00:00
Tom Hacohen
af1dc88234
Evas: Cursor updates is now done in one function and it's updated correctly everywhere.
...
SVN revision: 50990
2010-08-11 10:27:44 +00:00
Tom Hacohen
62b8c6e43d
Evas: fix range text get in textblock.
...
SVN revision: 50988
2010-08-11 08:33:22 +00:00
Tom Hacohen
c3759fb4a2
Evas: Added align=auto format to textblock.
...
This is the default. This lets you make textblock (or parts affected by this tag) auto align according to the natural paragraph direction.
SVN revision: 50985
2010-08-11 07:46:37 +00:00
Tom Hacohen
3c7627035e
Evas: Added auto lines alignment to textblock. RTL lines will automatically align to the right and LTR lines to the left.
...
This is not done per line, but per paragraph so a line break will not force recalculation of auto-alignment, only a PS.
SVN revision: 50984
2010-08-11 07:23:48 +00:00
Tom Hacohen
2b762c0f3b
Evas: Update documentation of evas_object_textblock.
...
SVN revision: 50965
2010-08-10 14:36:48 +00:00
Tom Hacohen
10a14f3994
Evas: Fixed a bug when erasing the last paragraph of a textblock.
...
SVN revision: 50958
2010-08-10 08:34:47 +00:00