Commit Graph

217 Commits

Author SHA1 Message Date
Irfan Abdul 13773009de edje: Edje_Edit - add code to generate edc source for all transition types in programs
Summary:
Add code to generate edc source for all transition types used in program block.

_edje_generate_source_of_program() api generates program source code from the edje object.
Very few transition types are handled in the function. Added code to generate edc source
code for all the transition types.

Reviewers: govi, raster, jpeg, zmike, cedric

@feature

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-03 22:11:00 +02:00
Carsten Haitzler ec3c84b61e edje_edit - fix Dereference after null check
fix CID 1224350
2014-09-01 19:40:47 +09:00
Tom Hacohen ceada9523f Efl interfaces: Drop interface namespace from the used interfaces.
We don't need this namespace, it just makes the names long and complicated.
2014-08-21 11:02:11 +01:00
Tom Hacohen 3a468f7ad3 Efl interface file: Start using the new interface. 2014-08-21 11:02:11 +01:00
Andrii Kroitor 9a1fb1b88d edje: Edje_Edit - fix support for program's targets
Summary:
added support of all action types that use targets to
edje_edit_program_target_add and edje_edit_program_target_del

added targets cleaning to edje_edit_program_action_set to avoid usage of program id
as part id and vise versa.

@fix

Reviewers: cedric, seoz, Hermet

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-08-21 12:04:53 +02:00
Daniel Kolesa bb24b60638 eolian: generate implicit typedef for each class
And use these typedefs instead of just Eo in API.
2014-08-21 09:26:03 +01:00
Carsten Haitzler 6682add15d edje edit - clarify src a bit better (change no logic) 2014-08-13 23:50:26 +09:00
Carsten Haitzler 3eb9e586ef edje edit - make source set api clearer as to what it does for coverity
this addresses CID 1222452 - this fallthough is intended, so
document it and make the code clearer
2014-08-13 23:37:54 +09:00
Stefan Schmidt 0f658dc09d edje_edit: Actually check for z if we want to append z
Classical copy and paste error.

CID: 1224760
2014-08-08 14:37:27 +02:00
Andrii Kroitor fd3f5f4615 edje_edit: fixing return value of edje_edit_program_name_set
Summary: If name of program is setted to its current value EINA_TRUE should be returned

Reviewers: cedric, seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1290
2014-08-07 23:48:22 +09:00
Mykyta Biliavskyi c037b3e80a edje: Edje_Edit - delete unnecessary check id's in edje_edit_part_restack_part_below(above).
Summary:
In case when reorder part below or above part with id 0, function return
EINA_FALSE. But part shoud restacked normaly.

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-14 15:55:47 +02:00
Maksym Volodin 93d3b5e285 edje: Edje_edit - edje_edit_state_text_source_set and edje_edit_state_text_text_source_set logic fix.
Summary: Patch make it possible to set NULL value for text_text_source and text_source.

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

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-10 11:51:32 +02:00
Mykyta Biliavskyi 3d2a46a417 edje: Edje_Edit - fix size memory calculating for realloc array of tweens.
Summary:
If in _Edje_Part_Description_Spec_Image->tweens wasn't added no one image,
when edje object was loaded from file, then realloc will work as free(), because size
of reallocating memory always will equal 0.

@fix

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-10 10:38:32 +02:00
Mykyta Biliavskyi 3e79b47e80 edje: Edje_Edit - add edje_edit_part_item_row/col_span functions.
Summary:
Getter and setter of span for box/table items.
Following functions were added:
   edje_edit_part_item_span_set
   edje_edit_part_item_span_get

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

CC: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 19:08:41 +02:00
Vorobiov Vitalii e35e18f8e0 edje: Edje_Edit - fix Documentation generation error's and warning's
Summary:
Fixing errors and warning with Edje_Edit documentation,
for example, adding documentation for enum and structs,
adding missed @see, @params, @returns etc.

@fix

Reviewers: Hermet, seoz, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 19:02:55 +02:00
Vorobiov Vitalii 05cad6fc7a edje: Edje_Edit - add edje_edit_part_item_spread functions.
Summary:
Add four main functions to deal with TABLE or BOX items:
- edje_edit_part_item_spread_w_get
- edje_edit_part_item_spread_w_set
- edje_edit_part_item_spread_h_get
- edje_edit_part_item_spread_h_set

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 18:55:20 +02:00
Kateryna Fesyna 6f8d017d93 edje: Edje_Edit - Change names of two functions to match the other sounds api
Summary:
This commit provides small cleanup for sounds api.
The next functions are renamed:
edje_edit_sounds_samples_list_get() -> edje_edit_sound_samples_list_get()
edje_edit_sounds_tones_list_get() -> edje_edit_sound_tones_list_get()

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

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 15:51:12 +02:00
Vorobiov Vitalii 9fc7929829 edje: Edje_Edit - add edje_edit_part_item_weight functions.
Summary:
Add four main functions to deal with TABLE or BOX items:
- edje_edit_part_item_weight_x_get
- edje_edit_part_item_weight_x_set
- edje_edit_part_item_weight_y_get
- edje_edit_part_item_weight_y_set

@feature

Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-07-07 15:51:12 +02:00
Vorobiov Vitalii 325d760c55 edje_edit: adding code generation for map functions
Summary:
After changing edj file with edje_edit functions which deals
with map, it require to regenerate source code including map block
with all changes.

Reviewers: cedric, Hermet, seoz, raster

Reviewed By: Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1105
2014-07-04 21:25:56 +09:00
Vorobiov Vitalii 75d65aef9c edje_edit: fixing -Wshadow compile warning with edje_edit_access_set
Summary:
There was -Wshadow compile warning with edje_edit_access_set
and one of it's param called access.
Changed it's name to avoid such annoying warning

Reviewers: Hermet, raster, cedric, seoz

Reviewed By: Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1106
2014-07-04 21:22:35 +09:00
Igor Gala 6fbcf48fe0 edje: Edje-Edit: edje_edit_state_map_on_xet()
Summary:
There are new 'get and set' API for block 'map'.
Those functions return or set flag which enables mapping for the part.
Default is 0.
@feature

Reviewers: seoz, cedric, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1051
2014-07-03 19:37:16 +09:00
Andrii Kroitor d8316bcc07 Edje_Edit: added clean save function
Summary:
This save function removes all unnecessary string from internal eet
distionary in .edj file. Needed after removing some objects from edje_object
e.g. groups, parts, limits etc.

Reviewers: cedric, seoz, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1090
2014-07-03 19:23:11 +09:00
Kateryna Fesyna f0f5c393d0 edje_edit: fix edc code generation for image fill tipe parameter and PLAY_SAMPLE and PLAY_TONE actions.
Summary: This commit fixes edc code generation for image fill tipe parameter and PLAY_SAMPLE and PLAY_TONE actions.

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

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1091
2014-07-03 18:54:37 +09:00
Vorobiov Vitalii 2447bc3556 edje_edit: Add edje_edit_state_map_point_color functions.
Summary:
Add two main functions for working with map colors of part vertexes/points:
- edje_edit_state_map_point_color_get
- edje_edit_state_map_point_color_set

@feature

Reviewers: seoz, raster, cedric, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1086
2014-07-03 17:27:53 +09:00
Maksym Volodin 8b66dc0e7c edje_edit: Add edje_edit_part_item_position_get/set.
Summary: Edje_edit_part_item_position_set/get operates with column/row part`s item position, only for "TABLE" type part.

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

CC: reutskiy.v.v, cedric, c

Differential Revision: https://phab.enlightenment.org/D1078
2014-07-03 17:15:10 +09:00
Vorobiov Vitalii 2155e8a3fb edje_edit: Add edje_edit_part_item_aspect_mode functions.
Summary:
Add two main functions for TABLE and BOX part items:
- edje_edit_part_item_aspect_mode_get
- edje_edit_part_item_aspect_mode_set

Also add support to generate source code of changed aspect mode for an item

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1075
2014-07-03 16:59:16 +09:00
Andrii Kroitor 8c74a8fbb0 Edje_Edit: added API for group.limits
Summary:
added functions:
edje_edit_group_limits_vertical_list_get
edje_edit_group_limits_vertical_add
edje_edit_group_limits_vertical_del
edje_edit_group_limits_horizontal_list_get
edje_edit_group_limits_horizontal_add
edje_edit_group_limits_horizontal_del
edje_edit_limits_list_free

Reviewers: cedric, seoz, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1073
2014-07-03 16:54:44 +09:00
Igor Gala ddac21534f edje: Edje-Edit: edje_edit_state_map_perspective_xet()
Summary:
There are new 'get and set' API for block 'map'.
Those functions return or set  part's name which is used as 'perspective point'
for giving a part '3d look'.
@feature

Reviewers: seoz, cedric, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D1047
2014-07-03 16:23:15 +09:00
Tom Hacohen aa450fa8dd Edje eolian: Fix namespaces for all of the edje classes. 2014-06-30 17:47:06 +01:00
Kateryna Fesyna 7c1a78cfd2 edje: Edje_Edit - add edje_edit_sound_tone_add() function that allows user to add new tone to collection
Summary:
New function provides the ability to add new tones to currently loaded collection.
It takes the name that will define new tone in collection and its frequency as parameters.

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-23 11:33:25 +02:00
Kateryna Fesyna 244d42b280 edje: Edje_Edit - add functions that provide the ability to set and get source for proxy parts state
Summary:
This commit contains two new functions that provide the ability to set and get
source property of proxy parts state:
edje_edit_state_proxy_source_get() and edje_edit_state_proxy_source_set().
Also it contains the implementation of printing source data on
edc code generation.

@feature

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

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-23 11:33:24 +02:00
Kateryna Fesyna 7c8764bf39 edje: Edje_Edit - add missed iterator and object deletion in _delete_play_actions() function
Summary:
this commit adds missed eina_iterator_free() and evas_object_del() calls
in _delete_play_actions() functions.

@feature

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

Reviewed By: reutskiy.v.v

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-23 11:33:24 +02:00
Maksym Volodin 748e548763 edje: Edje_Edit - add edje_edit_part_item_del.
Summary:
Delete exist item from part. This part should have BOX or TABLE type.
In parametr - name of exist item to delete it from BOX or TABLE.

@feature

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

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-23 11:33:24 +02:00
Andrii Kroitor cdc477e2f7 edje: Edje_Edit - add API for missing map properties
Summary:
added getters & setters for
collections.group.parts.part.description.perspective.zplane
collections.group.parts.part.description.perspective.focal
collections.group.parts.part.description.map.rotation: x, y, z
collections.group.parts.part.description.map.smooth
collections.group.parts.part.description.map.alpha
collections.group.parts.part.description.map.perspective_on
collections.group.parts.part.description.map.backface_cull

@feature

Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-23 11:33:24 +02:00
Jean-Philippe Andre 476d5245ec Edje_Edit: Fix shadow warnings 2014-06-18 16:28:37 +09:00
Jean-Philippe Andre b06af7ace0 Edje: Add LOSSY_ETC2 to Edje_Edit
Found out using edje_inspector...
2014-06-18 16:28:37 +09:00
Mykyta Biliavskyi e7550e7bbf edje: Edje_Edit - add edje_edit_without_source save function.
Summary:
Add function, which provide fast save group(s) back into edj file,
bypassing the source code generation.

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

CC: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 17:08:27 +02:00
Vorobiov Vitalii 7d381a01ef edje: Edje_Edit - fix compiler warnings for edje_edit_part_item_source_get/set
Summary:
Just fixing compiler warning giving NULL to the main variable inside of those functions.

@fix

Reviewers: cedric, seoz, Hermet, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 17:07:27 +02:00
Igor Gala 8370b22fa8 edje: Edje_Edit - add edje_edit_part_entry_mode_xet()
Summary:
There are new 'get and set' API for block 'entry_mode'. These
 properties have only parts with type 'TEXTBLOCK'. These functions return or set
entry mode for a given part.
@feature

Reviewers: seoz, cedric, Hermet, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 16:04:43 +02:00
Igor Gala 036267c4f5 edje: Edje_Edit - add edje_edit_state_map_rotation_center_xet()
Summary:
There are new 'get and set' API for block 'map'.
Those functions return or set part's name which is used as center for rotation.
@feature

Reviewers: seoz, cedric, raster, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 16:04:43 +02:00
Vorobiov Vitalii bb878758e6 edje: Edje_Edit - add edje_edit_part_item_align functions.
Summary:
Getters and setters of align for box/table items.
Following functions were added:
- edje_edit_part_item_align_x_set
- edje_edit_part_item_align_x_get
- edje_edit_part_item_align_y_set
- edje_edit_part_item_align_y_get
@feature

Reviewers: raster, seoz, cedric, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 16:04:43 +02:00
Igor Gala 7e4b9b6f09 edje: Edje_Edit - add edje_edit_state_map_light_xet()
Summary:
There are new 'get and set' API for block 'map'.
Those functions return or set part's name which is used as 'light'
for calculating the brightness.
@feature

Reviewers: cedric, seoz, raster, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-17 16:04:43 +02:00
Kateryna Fesyna 782b93a65e edje: Edje_Edit - add functions that allow user to set and get the value of states limit property
Summary:
This commit contains two new functions edje_edit_state_limit_get() and
edje_edit_state_limit_set(). These functions allow user to set and get value of
states 'limit' property value. Also it provides an internal type to represent
limits (Edje_Edit_State_Limit) and implements printing of limits value on edc code
generation.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-16 17:01:31 +02:00
Vorobiov Vitalii 32024b076a edje: Edje_Edit - add edje_edit_part_item_padding functions.
Summary:
1. Changing item's paddings and getting current padding of the item.
Add getter and setter functions for padding of the item.
- edje_edit_part_item_padding_get
- edje_edit_part_item_padding_set

2. Also some code generatings fixes for paddings, box/table and max values.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-16 16:59:02 +02:00
Kateryna Fesyna 8ae41a547b edje: Edje_Edit - add functions that allow user to set and get value of fill type
Summary:
This commit contains two new functions for setting and getting value of
fill type of IMAGE and PROXY parts: edje_edit_state_fill_type_get() and edje_edit_state_fill_type_set()
Also with this commit printing of not default value of fill type (TILE) on generation of edc code is added.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-16 16:56:32 +02:00
Igor Gala 0500f4f33f edje: Edje_Edit - edje_edit_sound_compression_type_xet()
Summary:
There are new 'get and set' API for block 'sound'.
Those functions return or set compression type for a given sound.
@feature

Reviewers: cedric, raster, Hermet, seoz

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-16 16:51:31 +02:00
Igor Gala 6d62dab6ab edje: Edje_Edit - edje_edit_part_select_mode_xet()
Summary:
There are new 'get and set' API for block 'select_mode'. These
properties have only parts with type 'TEXTBLOCK'. These functions return or set
select mode for a given part.
@feature

Reviewers: seoz, cedric, Hermet, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 18:13:01 +02:00
Vorobiov Vitalii 08075be885 edje: Edje_Edit - add bunch of BOX and TABLE param get/set functions.
Summary:
Add some functions for setting and getting params of the items in BOX or TABLE parts.
Next item's params are added:
- min
- max
- prefer
- aspect

Functions of them looks like that:
- edje_edit_part_item_min_w_get
- edje_edit_part_item_min_w_set
- edje_edit_part_item_min_h_get
- edje_edit_part_item_min_h_set
- edje_edit_part_item_prefer_w_set
- ... etc

Also this commit adds code generation for them.

@feature

Reviewers: cedric, seoz, raster, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 18:11:29 +02:00
Vorobiov Vitalii 246df08184 edje: Edje_Edit - add edje_edit_part_item_source functions.
Summary:
Changing item's sources and getting current source of the item.
Add getter and setter for functions with source value in item.
Main functions:
- edje_edit_part_item_source_get
- edje_edit_part_item_source_set

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 18:02:37 +02:00
Kateryna Fesyna ad1c183897 edje: Edje_Edit - add functions that allows user to set and get frequency value of tones in collection
Summary:
This commit contains two new functions for tones editing:
edje_edit_sound_tone_frequency_set() and edje_edit_sound_tone_frequency_det()
To avoid code duplication the macross GET_TONE_BY_NAME is added and the
lines that performed the search of tone by name are replaced with this macro.

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 18:01:26 +02:00
Igor Gala 76d02d1e70 edje: Edje_Edit - some minor edits
Summary:
rename function edje_edit_sound_xxxxx_get in h-file for matching
like in c-file. This function has not called anywhere. So it should be no problem.
@fix

Reviewers: seoz, raster, Hermet, cedric

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 18:00:26 +02:00
Kateryna Fesyna a06279e4ef edje: Edje_Edit - add functions to provide the ability to set and get the values of step parameter in parts state description
Summary:
This commit contains two new functions that provide the ability to set and
get the values of step parameter in parts state description. Also the printing of step value
on code generation is added.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-13 17:54:58 +02:00
Maksym Volodin fe734165cb edje: Edje_Edit - add edje_edit_part_items_list_get.
Summary: Get the list of names of all part items in the given edje.
@feature

Reviewers: cedric, raster, seoz, Hermet

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 19:16:08 +02:00
Igor Gala e8cebd6ce7 edje: Edje_Edit - edje_edit_sound_compression_rate_xet()
Summary:
There are new 'get and set' API for block 'sound'.
Those functions return or set quality of the compression for a given sound.
@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 19:11:59 +02:00
Kateryna Fesyna a810012d57 edje: Edje_Edit - add edje_edit_sound_sample_add() function that allows user to add new sound sample to collection
Summary:
New function provides the ability to add new sound samples to currently loaded collection.
It takes path to the sound-file and name that will define this sound in collection as parameters.
The sound-file of created sample will be imported to .edj-file. Due to the fact that the
edje_import_font_file() function performs the same actions as we need to perform for importing
sound file, it is renamed to _edje_edit_file_import() that takes one additional
parameter that specifies the compression level for eet_write(). This renaming is done to
avoid code duplication.
Also this commit provides small fix that shifts all the items of arrays of tones and samples
after deletion of tone or sample correspondingly. This fix simplifies the calculation of
id of item on adding new sample or tone. Also it makes generated .edc-code look better.

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 18:46:34 +02:00
Igor Gala 873eb4151f edje: Edje_Edit - edje_edit_state_text_size_range_min_max_xet()
Summary:
There are new 'get and set' API for block 'text.size_range'.
Those functions return or set the min and max font size for a given text part.
@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 02:24:26 +02:00
Vorobiov Vitalii 206722a6e9 edje: Edje_Edit - add edje_edit_program_transition functions.
Summary:
Add getter and setter for functions with transition value.
Next functions are prepared:
- edje_edit_program_transition_value1_set
- edje_edit_program_transition_value1_get
- ...
Functions are made for value1, value2, value3 and value4.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 02:16:38 +02:00
Igor Gala 6f7233b473 edje: Edje_Edit - edje_edit_state_text_repch_xet()
Summary:
There are new 'get and set' API for block 'text.repch'.
Those functions return or set replacement character for a given text part.
This string is used to replace every character to hide the details of the entry.
Normally you would use a "*", but you can use anything you like.
@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 02:15:23 +02:00
Kateryna Fesyna 9c79b7f0f8 edje: Edje_Edit - add edje_edit_sound_tone_del() function that provides the ability to delete tone from collection.
Summary:
Added new function that allows user to delete tonefrom collection.
After successfull deletion this function will check if this sound was in use in any
PLAY_TONE action in any program of current collections groups. If such actions
are found, they will be deleted.
This commit moves action deletion into the static _delete_play_actions() function
and replaces corresponding part of  edje_edit_sound_sample_del() with
the call of this function.

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-12 02:14:40 +02:00
Vorobiov Vitalii 64a79017ad edje: Edje_Edit - add edje_edit_state_minmul functions.
Summary:
Add two main functions
- edje_edit_state_minmul_w_set
- edje_edit_state_minmul_h_set
- edje_edit_state_minmul_w_get
- edje_edit_state_minmul_h_get
Also support minmul into state's source code generation.

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-10 17:39:44 +02:00
Vorobiov Vitalii 942322a1eb edje: Edje_Edit - add edje_edit_part_item_append functions.
Summary:
First function of the "BOX and TABLE support" feature.
Implements only few stuff
- edje_edit_part_item_append function, that append new item to the items of BOX or TABLE part
- support TABLE and PART source code generation

@feature

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-10 17:39:44 +02:00
Igor Gala 16d79850a8 edje: Edje_Edit - edje_edit_state_text_text_source_xeg()
Summary:
There are new 'get and set' API for block 'text.source'. Those function
return or set the name of part which is source of text for given part.
@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-10 17:39:44 +02:00
Igor Gala e15b8c27ac remove unnecessary second checks on validity
Summary:
Some checks were removed, becouse they are useless, due macross
GET_PD_OR_RETURN(NULL) does all this work.
@fix

Reviewers: seoz, cedric, raster, Hermet

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D980
2014-06-10 17:39:44 +02:00
Kateryna Fesyna 05a8f2eac6 edje: Edje_Edit - add edje_edit_sound_sample_del() function that provides the ability to delete sound sample from collection.
Summary:
Added new function that allows user to delete sound sample from collection.
After successfull deletion this function will check if this sound was in use in any
PLAY_SAMPLE action in any program of current collections groups. If such actions
are found, they will be deleted.
Also, this commit fixes code generation on edj-file saving:
- sound block generation is added.
- PLAY_SAMPLE and PLAY_TONE actions code generation is added.

@festure

Reviewers: cedric, Hermet, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-10 17:39:44 +02:00
Igor Gala e1b4c70f3d edje: Edje_Edit - edje_edit_state_text_class_xet()
Summary:
There are new 'get and set' API for block 'text_class'. Those function
return or set the name of text class which would be used similar to color_class,
this is the name used by the application to alter the font family and size at runtime.
@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-10 17:39:44 +02:00
Igor Gala 18beac3732 edje: Edje_Edit - fix func edje_edit_state_text_source_set()
Summary:
There are new API for block 'text.source' get and set. Those function
return or set the name of part which is source style for given part.

@fix

Reviewers: seoz, Hermet, cedric, raster

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-09 20:54:54 +02:00
Daniel Zaoui b9b90ac204 Edje Edit: Fix shadow declarations. 2014-06-08 12:40:42 +03:00
Maksym Volodin 60674b5444 edje: Edje_Edit - add edje_edit_group_broadcast_signal_set/_get.
Summary:
Add two main functions:
edje_edit_group_broadcast_signal_set/_get.
_get return EINA_FALSE if group not accept broadcast signal, EINA_TRUE otherwise (Default to true since 1.1.).
Also support access into group's source code generation.

Reviewers: seoz, Hermet, raster, cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-07 23:04:43 +02:00
Mykyta Biliavskyi 031216369a edje: Edje_Edit - add parameters to generate source code for part.
Summary:
Add generate source code for absent parameters for part description.
Also use fields from internal structure Edje_Real_Part instead call public API

@feature

Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-06 18:29:17 +02:00
Jérémy Zurcher 82b852850f fix memory leak in Eina_Strbuf usage
buf was not freed on error, and never on success

CID 1194715
2014-06-06 00:13:11 +02:00
Jérémy Zurcher 70092ae92e fix memory leak in Eina_Strbuf usage
buf wasn't freed on success neighter on
edje_edit_image_compression_type_get(...) failure

CID 1194716
2014-06-06 00:13:11 +02:00
Vorobiov Vitalii 125bbf67b9 edje: Edje_Edit - add edje_edit_part_cursor_mode functions.
Summary:
Add two main functions
- edje_edit_part_cursor_mode_get
- edje_edit_part_cursor_mode_set
Also support cursor_mode into part's source code generation.

@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-05 19:43:52 +02:00
Vorobiov Vitalii f587307a94 edje: Edje_Edit - add edje_edit_part_multiline functions.
Summary:
Add two main functions
- edje_edit_part_multiline_get
- edje_edit_part_multiline_set
Also support multiline into part's source code generation.

@feature

Reviewers: seoz, Hermet, cedric, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-05 19:43:07 +02:00
Mykyta Biliavskyi 793cef0d04 edje: Edje_Edit - Improved speed generate source code for program.
Summary:
_edje_generate_source_program gets Edje_Program pointer from _edje_program_get_byname
at start of function,but in body calls public methods for get parameters of programs.
Each of this methods calls _edje_program_get_byname, what make generation of source
whole program is  slow.
Replaced public API calls with using fields of Edje_Program structure.

Reviewers: cedric, raster, seoz, Hermet

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-05 19:41:51 +02:00
Maksym Volodin 5cbceec23f edje: Edje_Edit - add edje_edit_group_orientation_set/_get.
Summary:
Set or get orientation for group:
0 for EDJE_ORIENTATION_AUTO, 1 for EDJE_ORIENTATION_LTR, 2 for EDJE_ORIENTATION_RTL.
_get return 0 (AUTO), 1 (LTR), 2(RTL) orientation was setted for the group. -1 if an error occurred.
_set return EINA_TRUE if successful, EINA_FALSE otherwise.

@feature

Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-05 19:38:27 +02:00
Vorobiov Vitalii 5e7a9b1225 edje: Edje_Edit - add edje_edit_part_access functions.
Summary:
Add two main functions
- edje_edit_part_access_get
- edje_edit_part_access_set
Also support access into part's source code generation.

@feature

Reviewers: seoz, Hermet, raster, cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 20:08:32 +02:00
Vorobiov Vitalii 30885daafa edje: Edje_Edit - add edje_edit_part_precide_is_inside functions.
Summary:
Add two main functions
- edje_edit_part_precise_is_inside_get
- edje_edit_part_precise_is_inside_set
Also support precise_is_inside into part's source code generation.

@feature

Reviewers: cedric, seoz, Hermet, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 20:02:56 +02:00
Andrii Kroitor 184720bf16 edje: Edje_Edit - add getters and setters for source2-source6 TEXTBLOCK properties
Reviewers: cedric, raster, seoz, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 19:57:13 +02:00
Vorobiov Vitalii bebcc49bd0 edje: Edje_Edit - add edje_edit_part_pointer_mode functions.
Summary:
Add two main functions
- edje_edit_part_pointer_mode_get
- edje_edit_part_pointer_mode_set

Also support pointer mode into part's source code generation.
EVAS_OBJECT_POINTER_MODE_AUTOGRAB is default value,
so generation won't add "AUTOGRAB" into source code if this type of
pointer mode is set.

@feature

Reviewers: cedric, seoz, Hermet, raster

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 19:45:34 +02:00
Vorobiov Vitalii f1000b5c36 edje: Edje_Edit - add edje_edit_part_copy function that copy parts within whole group.
Summary:
Add ability to copy whole part and create same part but with new name).
This feature also require to slightly remake function edje_edit_state_copy to make
it able to copy state from one part to different one (only for part_copy usage).

@feature

Reviewers: cedric, seoz, raster, Hermet

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 19:39:39 +02:00
Andrii Kroitor aec9cf0a3e edje: Edje_Edit - fix edje_edit_part_source_set
Summary:
Fixed edje_edit_part_source_set so that it does not destroy TEXTBLOCK.
Changed type check to switch-case to stress allowed types.

@fix

Reviewers: cedric, raster, seoz, Hermet

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 19:15:27 +02:00
Igor Gala f0e4cba71c edje: Edje_Edit - add sounds list accessor.
Summary:
make "get" functions for block "sounds" which return
a sounds or tones list (Eina_List *) off the given edje object.
@feature

Reviewers: raster, cedric, seoz, Hermet

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 00:51:56 +02:00
Maksym Volodin fb89f79b6a edje: Edje_Edit - add new feature edje_edit_image_compression_set.
Summary:
Set compression type for the given image. Has object being edited,
the name of the image and Edje_Edit_Image_Comp(EDJE_EDIT_IMAGE_COMP_RAW,
EDJE_EDIT_IMAGE_COMP_USER, EDJE_EDIT_IMAGE_COMP_COMP,
EDJE_EDIT_IMAGE_COMP_LOSSY[_ETC1]) as in parametrs.
Return EINA_TRUE if successful, EINA_FALSE - otherwise.

Reviewers: cedric, raster, seoz, Hermet

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
2014-06-04 00:51:56 +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
Vorobiov Vitalii cf0ff2ba91 edje: Edje_Edit - fix wrong behaviour on draggable.event processing while deleting parts.
Summary:
the draggable.event field (in edje) is pointing on the id of the part it is assigned to.
The main problem is about deleting parts.
After part being deleted, all other parts (that are below the deleted part) have their id shifted,
but event doesnt shift.

For example,
1) draggable.event at some part pointing at part with id=7,
2) some other part is being deleted
3) part with id=7 have new id now (id=6)
4) draggable.event DOESN'T change it's pointer and still points at part with id=7 (which is now has id=6)
5) if there is no parts with id=7 anymore, then it could give you SEGFAULT someday (or not, depending on luck).

This commit contains next changes:
1) after deleting part, draggable.event also shifts (if required)
2) after deleting part that is being pointed with event by someone, it will remove all event points at it
@fix

Reviewers: cedric, raster, seoz

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-21 06:14:23 +02:00
Vyacheslav Reutskiy e8c4e99a3c edje/Edje_Edit: _edje_edit_real_part_add init field of Edje_Real_part
Summary:
To correcly display the added pats using the edje edit api, update
init the filds of Edje_Real_Part. Initialize the next filds: type and
typedata. It filds initialized accordingly to Edje_Part_Type value.

@fix

Reviewers: raster, cedric, seoz, Hermet

CC: cedric

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-14 11:11:47 +02:00
Mike Blumenkrantz 894c36ff11 de-elipsis edje
the word is "ellipsis". it's bad enough that we have released misspelled api, but we can at least spell things correctly internally.
2014-05-13 16:20:41 -04:00
Jérémy Zurcher f8c2c57406 do not use EINA_FALSE instead of NULL 2014-05-07 17:45:11 +02:00
se.osadchy 709c1d86c0 Edje/Edje_edit: corrected type of input parameter for offset value
Summary: Input type for offset value must be Integer in the "edje_edit_rel1(2)_offset_x(y)_set" functions

Reviewers: cedric, Hermet

CC: cedric, Hermet, raster

Differential Revision: https://phab.enlightenment.org/D562
2014-04-25 11:19:58 +09:00
Jean-Philippe Andre f6eae69eb2 Edje: Use LOSSY_ETC1 instead of LOSSY
Add a new flag in EDC files to specify ETC1 compression
should be enabled. It follows the same rules as the
current LOSSY flag for JPEG compression.

@feature
2014-04-18 16:50:01 +09:00
Andrii Kroitor c17d08d2ab edje_edit: image_del fixed
Summary: fixed segfault on broken refs in edje object

Reviewers: cedric, seoz, raster

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-04-17 19:40:36 +02:00
Tom Hacohen 35525a53e0 Adjust eo_do calls to work with the eo2 api. 2014-04-10 04:20:21 +01:00
Vorobiov Vitalii 9f5ea9cdae edje_edit: fix wrong generation of part's source code (effect field).
There is a static array that is used for parsing the current effect
(in Part's struction the effect type is represented by a number) from a number
to text. But there is one type of effects (SHADOW) that has a number combined from
two types. First four bits are always used for defining the effect's type,
but if it is a SHADOW effect, then there is four more bits. They are representing
the direction of the shadow in TEXT block.
This patch fixes code regeneration after saving edje_edit object, so now
it splits the number into two pieces, so we can fully regenerate type of effect.

So, in this path:
- added static array that represents shadow's direction.
- part's source code generaton has been modified.

Reviewers: seoz, raster, cedric

Reviewed By: cedric

CC: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
2014-04-01 22:00:13 +09:00
Vorobiov Vitalii caad83c988 edje_edit: function that will return the source code of the loaded edje edit object.
Summary:
This function will return the source code of the edje edit object that is given to that function.
Also, that function will collect all resources required by this group.
That means all images, fonts, styles, data and color_classes that is mentioned
and set in descriptions of parts in this group (that is represented by given
Edje Edit object).
@feature

Added function for generating source code:
- edje_edit_source_generate(Evas_Object *obj);

Reviewers: cedric, seoz, raster

Reviewed By: raster

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D649
2014-03-24 16:05:53 +09:00
Yossi Kantor 2be615916a Eolian: Integration of Edje and Edje Edit 2014-03-24 08:14:30 +02:00
Cedric BAIL f26b370584 edje: let's be more careful with string.
Fix CID 1193213.
2014-03-20 16:51:48 +09:00
Cedric BAIL 48aca12d22 edje: external is already used directly before, so checking it is unnecessary.
CID 1191908.
2014-03-13 10:29:27 +09:00
perepelits.m a4d2e42042 edje_edit: adding of NULL-checks
Summary:
New NULL-checks have been added in:

edje_edit_state_color_class_set
edje_edit_state_external_param_get
edje_edit_state_external_param_int_get
edje_edit_state_external_param_bool_get
edje_edit_state_external_param_double_get
edje_edit_state_external_param_string_get
edje_edit_state_external_param_choice_get
edje_edit_state_external_param_set

Reviewers: cedric, seoz, raster

Reviewed By: cedric

CC: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D629
2014-03-13 10:26:20 +09:00
Cedric BAIL 1b1e0450a2 edje: do not leak in case of error.
@fix CID 1191310 and CID 1191311
2014-03-07 15:01:36 +09:00
se.osadchy e60e56aada edje/edje_edit: Check for NULL
Summary: Add check for NULL to the edje_edit_state_external_param_set function

@fix

Reviewers: cedric, raster, seoz

Reviewed By: cedric

CC: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2014-03-06 18:27:27 +09:00