Commit Graph

84 Commits

Author SHA1 Message Date
Jee-Yong Um ef491e697e edje: implement methods for mouse_events with edje_part for Edje Embryo script.
Summary:
In edje_embryo.c, there are the list for supported methods in script.
However, methods listed from line 175 to 188 don't exist actually.
This patch implements 4 methods among them.
   set_mouse_events(part_id, ev)
   get_mouse_events(part_id)
   set_repeat_events(part_id, rep)
   get_repeat_events(part_id)

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:21:09 +02:00
Mike Blumenkrantz 172a0ccf0c edje: reformat all C files
this has been unreadable for years due to the french tabber.
2015-06-08 14:43:00 -04:00
katpavalli ff1184df2e edje: add ability to change the language on one specific edje object.
Summary:
   Add a new property to edje_object.eo for setting the language on one Edje_Object.

Test Plan:
Test Code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc
   edje_cc -md <dir path>/efl/src/examples/edje/ text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore eo`
   ./edje-text

   1) Click On the text "Click here"
      The language gets changed as per the specific edje object.

   2) Click on the text object at bottom. "Click here"
      The system language gets changed and the below two edje objects language are changed globally.

Reviewers: cedric, shilpasingh

Subscribers: poornima.srinivasan, govi, rajeshps, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-01 17:50:02 +02:00
katpavalli dca95fb45a edje: support translation on static strings in edc.
Summary:
   Internationalisation of the static text specified as part of the edc is implemented.
   Problem: Static text when specified in the edc, remains unchanged when the system language is changed.
   Solution: Language support is provided even for the static strings in the edc.

Test Plan:
   Test code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc
   Compile the code with the below  command
   edje_cc -md <dir path>/efl/src/examples/edje/ text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore`
   ./edje-text

   1) change the language of the system using the command
      export LANGUAGE=hi
      ./edje.text

      Not the text Loading gets displayed in hindi language

   2) change the language of the system using the command
      export LANGUAGE=ta
      ./edje.text

      Not the text Loading gets displayed in tamil language

   3) change the language of the system using the command
      export LANGUAGE=en
      ./edje.text

      Not the text Loading gets displayed in english language
As the number of .mo files in the /edje folder can be increased, those many languages can be supported

Reviewers: cedric, shilpasingh

Reviewed By: shilpasingh

Subscribers: cedric, rajeshps, govi, poornima.srinivasan

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-14 18:41:47 +02:00
Andrii Kroitor d985ae7ed4 edje_util: fix memory leak
Summary:
list returned by evas_object_box_children_get should be freed

@fix

Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2413
2015-04-24 16:03:16 +09:00
Mike Blumenkrantz c3dc01ef32 edje: fix edje_mmap_color_class_iterator_new() iterator
not actually the same iterator as a certain frenchman originally wrote

 #cedric
2015-04-06 15:11:06 -04:00
Mike Blumenkrantz 052d27c9f1 edje: remove recalc when unswallowing objects
I can't test this as thoroughly as I'd like due to ref T2272, but
it appears that this calc was also unnecessary
2015-04-06 12:59:07 -04:00
Mike Blumenkrantz 0ae06207af edje: flag param as unused 2015-04-03 21:26:34 -04:00
Mike Blumenkrantz 12acac7035 edje: immediately return NULL when no color classes exist in edje_color_class_active_iterator_new() 2015-04-03 21:26:02 -04:00
Mike Blumenkrantz 5a61ee107c edje: return immediately when setting color class if class is not in use 2015-04-02 15:15:31 -04:00
Mike Blumenkrantz abf3c3c470 edje object swallowing no longer forces a full recalc
this (and/or related prior commits) seems to have hugely improved
edje performance across the board. particularly noticeable in the
settings pane animations for terminology

 #aprilfools
2015-03-31 19:16:55 -04:00
Mike Blumenkrantz f534103c95 edje object scale factor changes now trigger deferred recalcs
as with the previous commit, any user who wants geometry immediately
will be calling calc functions, so this is just going to be redundant
except in cases where calc is not wanted, in which case it is unnecessary
overhead
2015-03-31 19:16:54 -04:00
Cedric BAIL 11a4e1ae83 edje: add edje_mmap_color_class_iterator_new().
This function make it possible to list the Color class of a specific Edje file.
2015-03-31 21:57:23 +02:00
Cedric BAIL 6ee3805cf4 edje: get the color class value by iterating over all possible value provider. 2015-03-31 05:36:38 +02:00
Cedric BAIL 5906569f7f edje: add edje_color_class_active_iterator_new()
This function make it possible to get a list of active Edje_Color_Class
in an application. Think about Enlightenment color class configuration,
but can now be done on any application dynamically.

@feature
2015-03-31 04:26:06 +02:00
Cedric BAIL 431e73eed5 edje: force NULL initialization of desc pointer. 2015-03-30 22:31:34 +02:00
Sohyun Kim 10670094c1 edje: add text_class_get() APIs
Summary: No APIs to get text_class for global hash and object hash

Reviewers: woohyun, cedric, raster

Reviewed By: cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2213
2015-03-26 02:53:22 +09:00
Sung-Taek Hong 54b233690d edje: correct order of functions
Summary:
_edje_object_part_text_raw_set() has to locate before
_edje_user_define_string().

 - _edje_user_define_string takes one of its parameters
   rp->typedata.text->text, and this is set
   by _edje_object_part_text_raw_set().

Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>

Reviewers: cedric, seoz

Subscribers: seoz, cedric

Differential Revision: https://phab.enlightenment.org/D2118
2015-03-10 16:31:32 +09:00
Mike Blumenkrantz 1cf630f2bd edje color classes can now have text descriptions
@feature
2015-03-07 13:44:52 -05:00
ChunEon Park 3dff8b0a43 edje: code refactoring.
use a constant vairable for maintainance.
2015-03-04 22:52:12 +09:00
ChunEon Park 2e4f4d502f lib/edje_util: fix logically wrong here.
print err message only if edje has a non-fixed textblock.

This dosen't affect any application ui results,
but err message will point out the problem textblock parts exactly.
2015-03-04 22:47:43 +09:00
ChunEon Park 32f3f858d6 edje/edje_util: code refactoring.
change internal variables to more descriptive ones.

no logic change.
2015-03-03 22:37:28 +09:00
Carsten Haitzler e1e1850d0e edje - fix uninitialized coord sizes if swallow obj is invalid
this fixes invalid sizing calcs if shallowed obj is invalid and we
cant get geometry etc.

@fix
2015-01-07 17:23:24 +09:00
ChunEon Park 382c41e42d edje: support anti_alias option
set anti_alias in part section.
default is enabled.

part { name: "test";
   type: XXX;
   anti_alias: 0;
   ...
}

@feature
2014-12-24 16:29:49 +09:00
Jaehwan Kim 1e21a4c323 scale: add the API edje_object_base_scale_get.
This function returns the base_scale factor set on the
Edje object.
The base_scale can be set in the collection of edc.
If it isn't set, the default value is 1.0.
2014-10-16 13:45:30 +09:00
Jihoon Kim 000f5fee84 ecore_imf: Add ecore_imf_context_bidi_direction_set/get API
Some Input Methods want to know the bidi direction (LTR/RTL) at the current cursor position.
2014-09-23 10:18:35 +09:00
Jihoon Kim 715da43d3a Add edje_object_part_text_input_hint_set/get API
Sets or get the input hint which allows input methods to fine-tune their behavior.
2014-09-01 19:01:54 +09:00
Carsten Haitzler 4124ed6946 edje - fix null return check in src description get
fix CID 1210812 1210811
2014-08-27 17:30:42 +09:00
Carsten Haitzler 4771d25e9f edje swallow resize handling
this fixes some deadcode in CID 1039646 that suggests we should do a
check for rp->typedata.swallow first before we go using it.
2014-08-14 19:36:40 +09:00
Carsten Haitzler 1cf526286a fix edje file fetch
this fixes CID 1210811
2014-08-14 16:31:45 +09:00
Carsten Haitzler 9cb92e3727 fix null check of edje file data
this fixes CID 1210812
2014-08-14 16:29:03 +09:00
Carsten Haitzler f6ef5c229f edje - remove logically dead code
fixes CID 1224348 - coverity is right
2014-08-13 20:46:52 +09:00
Carsten Haitzler 65ec494c32 edje - fix coverity complaint about invalid mem access
fixes real issue for invalid object - CID 1224349
2014-08-13 20:39:17 +09:00
Cedric BAIL b95165201c edje: factorize call to eo_do to reduce eo_do_start cost. 2014-07-07 13:44:11 +02:00
Cedric BAIL 142a0ceb48 edje: fix typos. 2014-07-07 13:44:11 +02:00
Cedric BAIL 1b54047ac4 edje: reduce overhead of setting text and color class in theme.
This reduce by 10% some elementary tests case that was provided
by some crazy french.
2014-07-06 22:50:32 +02:00
Tom Hacohen aa450fa8dd Edje eolian: Fix namespaces for all of the edje classes. 2014-06-30 17:47:06 +01:00
Cedric BAIL 8dcb75ad09 edje: simplify and deprecate stub function. 2014-06-07 18:13:39 +02:00
Tom Hacohen 0fc3279db9 Efl: Update code to use the new class names generated by eolian. 2014-06-03 11:28:01 +01:00
Mike Blumenkrantz 5f376fde36 edje now correctly supports text.source and text.text_source for swallowed parts
fix T1186
2014-04-25 10:52:15 -04:00
Cedric Bail 7ec6a9afee edje: let's call this function before returning.
CID 1194718.
2014-04-17 21:29:31 +02:00
Mike Blumenkrantz 3c20b89765 +edje_object_part_object_name_get() 2014-03-31 11:23:06 -04:00
Yossi Kantor 2be615916a Eolian: Integration of Edje and Edje Edit 2014-03-24 08:14:30 +02:00
Youngbok Shin af69be766c edje/util: set flag to all_part_change when edje class member is added.
Summary:
When edje class member is added, edje need to change member according to
the edje class.

@fix

Reviewers: raster, tasn, woohyun, seoz, Hermet, cedric

Reviewed By: raster

CC: cedric, herdsman

Differential Revision: https://phab.enlightenment.org/D637
2014-03-17 20:23:47 +09:00
Cedric BAIL dc4bad17dd edje: let's allow to reset escaped text to NULL.
@fix T821.
2014-03-05 15:12:17 +09:00
Amitesh Singh 257607cc69 edje: add support of last input entered in password mode to be always visible in entry.
@feature

Requirement: Last input entered in password mode should be always visible in
entry. e.g. **a -> ***b.

Reviewers: cedric, raster, seoz

Reviewed By: cedric

CC: cedric

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-03-03 09:34:31 -03:00
Sohyun Kim 85b2a8f5dc reset textblock cache when text_class is changed
If text_class in the textblock is changed, it is not applied because of the cache.
When text_class is changed, reset cache to update text information.
2014-02-27 13:31:42 +09:00
Carsten Haitzler 87e717ae45 edje - fix bunch of possible null return errors with checks
fixes CID 1135274 CID 1135272 CID 1135275
2014-02-13 19:11:52 +09:00
Mike Blumenkrantz a5a907023d edje freeze count can no longer become negative 2014-02-03 11:52:06 -05:00
Jihoon Kim f241646370 Edje: add edje_object_part_text_input_panel_show_on_demand_set/get() 2013-12-27 13:24:54 +09:00