Commit Graph

402 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 3c3a21d614 Edje_edit: generate states of the text part edc code with inheritance.
Generate inheritance text attributes from similar state.
2016-05-16 15:53:31 +03:00
Mykyta Biliavskyi 303fea96ca Edje_edit: generate state code with inheritance map block.
Add ability to generate inherited code for map block.
2016-05-16 15:53:26 +03:00
Mykyta Biliavskyi bbeae532ac Edje_edit: generate state code with inheritance rel block.
Add ability to generate inherited code for relative block.
2016-05-16 15:53:20 +03:00
Mykyta Biliavskyi 2d63b59221 Edje_edit: generate state code with inheritance general attributes.
Support inheritance for part states on the edc code generate time.
Only for general attributes are supported, except relative and
map blocks.
Added functions for calculation coefficient of similarity
between two different states of the same part.
2016-05-16 15:53:16 +03:00
Mykyta Biliavskyi f4379eaa4c Edje_edit: move text state edc code generate to standalone func.
Created internal function _edje_generate_source_state_text.
This is needed for implementation generate inheritance
states in edc code.
2016-05-16 15:53:09 +03:00
Vitalii Vorobiov e80d8d9a71 Edje_Edit: more API for proxy fields like source_clip and source_visible
Setters and getters like
edje_edit_state_proxy_source_clip_set
edje_edit_state_proxy_source_clip_get
edje_edit_state_proxy_source_visible_set
edje_edit_state_proxy_source_visible_get
2016-05-12 19:31:49 +03:00
Andrii Kroitor 0413c26f82 edje_edit: fix edje_edit_group_copy
Summary:
Writing copy directly to file.
Old way (adding directly to collection cache) leads to possible segfaults
on edje_collection_cache_flush.

Reviewers: reutskiy.v.v, cedric

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-05-10 16:36:22 -07:00
Carsten Haitzler 90e8ad8d7d edje - file set - use vpath for edje files now too like evas images 2016-05-09 19:37:48 +09:00
Cedric BAIL 10c9ef771f edje: do not check against eet if strings where never allocated. 2016-05-06 16:47:56 -07:00
Mykyta Biliavskyi e8138ee7b5 Edje edit: remove color generate from SPACER source.
It is possible situation when SPACER structure has colors values.
For example:
group { name: "abc";
  parts {
    part { name: "rect"; type: RECT;
      description { "default" 0.0;
        color: 7 7 7 255;
      }
    }
  }
}
group { name:"abc_2";
  inherit: "abc";
  parts {
    part { name: "rect"; type: SPACER;
    }
  }
}
To avoid failing compilation of generated source code, need avoid
generate color source code for a SPACER part.
2016-04-29 11:26:58 +03:00
Jean-Philippe Andre 566a156eda Edje Edit: Fix compilation warning 2016-04-29 13:33:13 +09:00
Vitalii Vorobiov e6d4c34449 Edje_Edit: update function that return image usage to include sets
Image can be also used not only inside of any image parts, but also
inside of any sets (and plenty of times)
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov 9ec49c3f4f Edje_Edit: API to delete set of images
Allow to delete set if it is not used by any part
Function to check if set is used by any part is:
edje_edit_set_usage_list_get

Since it uses same struct as image_used_list_get function, it
can be freed by edje_edit_image_usage_list_free.
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov a8afffe105 Edje_Edit: setter and getter for set image's scale_by
edje_edit_image_set_image_border_scale_set
edje_edit_image_set_image_border_scale_get
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov 0d0e9e13bd Edje_Edit: functions to set and get set's images border
edje_edit_image_set_image_border_set
edje_edit_image_set_image_border_get
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov 4589816309 Edje_Edit: setters and getters for set's image size (min and max)
Functions are:
edje_edit_image_set_image_min_get
edje_edit_image_set_image_min_set
edje_edit_image_set_image_max_get
edje_edit_image_set_image_max_set
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov 49f6baa7aa Edje_Edit: some API to manipulate set's images
get list of images of set (edje_edit_image_set_images_list_get)
add image to set (edje_edit_image_set_image_add)
delete image from set by it's place (edje_edit_image_set_image_del)
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov a9240d86a4 Edje_Edit: image set API
list of sets (edje_edit_image_set_list_get)
renaming set (edje_edit_image_set_rename)
add new set (edje_edit_image_set_add)
set's id (edje_edit_image_set_id_get)
2016-04-28 16:22:26 +03:00
Vitalii Vorobiov 2f6bdde1dd Edje_Edit: API to check if given name of "image set" is exist
edje_edit_image_set_exists
2016-04-28 16:22:25 +03:00
Vitalii Vorobiov ac9dc723c4 Edje_Edit: get "set's name" if it was set as image normal or tween
Sets and Images, they might have same id but different names
2016-04-28 16:22:25 +03:00
Mykyta Biliavskyi b1fce61caa Edje edit: improve state code generation.
Split function _edje_generate_source_of_state into
separated smallest functions, that represent generation
of source code for different blocks.
List of added internal functions:
  - _edje_generate_source_state_map
  - _edje_generate_source_state_box
  - _edje_generate_source_state_table
  - _edje_generate_source_state_image
  - _edje_generate_source_state_proxy
  - _edje_generate_source_state_relative

Add support collapse blocks, in cases when
block contain only one attribute.
For example:
next EDC code
  description { state: "default";
    {
      rel1 {
         relative: 0.5 0;
      }
    }

now will be replaced by:
  description { state: "default";
    {
       rel1.relative: 0.5 0;
    }
2016-04-26 18:12:07 +03:00
Andrii Kroitor 0e9cf93c30 edje_edit: fix mempools in group/alias add
Summary: moved mempools adding to separate method to avoid this problem in future

Reviewers: cedric, reutskiy.v.v

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-04-22 16:12:29 -07:00
Mykyta Biliavskyi b63b00c1b8 Edje edit: fix aspect_preference value into generate code function.
Add value "SOURCE" as one of possible values for aspect_preference
attributes.
@fix
2016-04-21 11:47:38 +03:00
Mykyta Biliavskyi 2006c01c06 Edje edit: add new program actions into code generate function.
Generate edc source code for next action types:
  - EDJE_ACTION_TYPE_FOCUS_SET
  - EDJE_ACTION_TYPE_FOCUS_OBJECT
  - EDJE_ACTION_TYPE_PARAM_COPY
  - EDJE_ACTION_TYPE_PARAM_SET
2016-04-21 11:47:30 +03:00
Mykyta Biliavskyi e634a7cc86 Edje edit: fix get list of program tagrets.
Correct support all types of program actions for constructing
list of targets.
There are 3 group of actions, that related to targets:
 - Does not support targets at all.
 - Support only parts as targets.
 - ACTION_STOP, that supported parts and other programs as targtes.

@fix
2016-04-21 11:47:23 +03:00
Andrii Kroitor 29a9be35ee edje_edit: add missing mempools on group copy
Reviewers: reutskiy.v.v, cedric

Subscribers: cedric, FurryMyad, NikaWhite, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-04-18 16:32:36 -07:00
Tom Hacohen 4d0494574b Edje: Reparent when swallowing/unswallowing.
On swallow make the edje object the parent, on unswallow the canvas.
2016-04-18 10:10:23 +01:00
Vitalii Vorobiov e64c30caab edje_edit: program's source and signal CAN be NULL
Or else user can't remove them, only by writing source/signal like "" or some
gibberish which is still getting interprettered as source and signal
2016-03-18 14:00:51 +02:00
Tom Hacohen f24210caac Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757.
2016-03-11 12:29:03 +00:00
Tom Hacohen 4f949a2757 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:14 +00:00
Tom Hacohen f21ade6123 Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 09:58:08 +00:00
Tom Hacohen 02b0c5878d Edje edit: Fix wrong return value type. 2016-02-29 11:50:52 +00:00
Vitalii Vorobiov 1e12897455 Edje_Edit: return accidently removed clip_to in code generation
Oops...
2016-02-24 13:55:14 +00:00
Vitalii Vorobiov 9f9032befa Edje_Edit: support image border_scale and border_scale_by setters and getters 2016-02-24 13:50:36 +00:00
Vitalii Vorobiov 0cb676395d Edje_Edit: support use_alternate_font_metrics setters and getters 2016-02-24 11:45:49 +00:00
Vitalii Vorobiov ed59f8589e Edje_Edit: allow to set NULL as text_class (unset text_class) into part's state 2016-02-23 18:54:04 +00:00
Vitalii Vorobiov 7923e9799d Edje_Edit: ability to set size class into certain part's state
API looks like this edje_edit_state_size_class_set
2016-02-23 18:54:04 +00:00
Vitalii Vorobiov 710dbac046 Edje_Edit: Edje_Edit: update source generation to print size classes 2016-02-23 18:54:04 +00:00
Vitalii Vorobiov d4b622e9eb Edje_Edit: support new edje top block "size classes" with edje_edit API
Plenty of new API:
edje_edit_size_classes_list_get - to return total list of size_classes inside of
loaded collection of groups
edje_edit_size_class_add - add new size class into loaded collection
edje_edit_size_class_del - deleting
edje_edit_size_class_name_set - renaming existing size class into something new
and some setters and getters for min and max (width and height) of size class.
2016-02-23 18:54:03 +00:00
Vitalii Vorobiov 861a0b6d55 Edje_Edit: update source generation to print text classes 2016-02-23 14:02:57 +00:00
Vitalii Vorobiov 559cf1e73c Edje_Edit: support new edje top block "text classes" with edje_edit API
Plenty of new API:
edje_edit_text_classes_list_get - to return total list of text_classes inside of
loaded collection of groups
edje_edit_text_class_add - add new text class into loaded collection
edje_edit_text_class_del - deleting
edje_edit_text_class_name_set - renaming existing text class into something new
edje_edit_text_class_font_{get|set} - get/set font name
edje_edit_text_class_size_{get|set} - get/set font size
2016-02-23 14:01:55 +00:00
Vitalii Vorobiov dcbb62739c Edje_Edit: target can be insert into different place in program's target list
Here is API for that:
> edje_edit_program_target_insert_at
2016-02-19 14:19:50 +00:00
Vitalii Vorobiov 5c0c87cbe8 Edje_Edit: fix defect found by Coverity in ...state_tween_insert_at
Check constraits before creating image structures

CID 1351558
2016-02-19 11:22:07 +00:00
Vitalii Vorobiov 41d92d0893 Edje_Edit: fix warning on unsigned and signed int comparation
Oops!
Sorry, missed this one:

lib/edje/edje_edit.c: In function 'edje_edit_program_after_insert_at':
lib/edje/edje_edit.c:9980:14: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
    if (place >= eina_list_count(epr->after))
              ^

Now fixed
2016-02-18 17:19:19 +00:00
Vitalii Vorobiov 2f6cf2c74f Edje_Edit: ability to insert "after" program into specific position
API looks like this:
> edje_edit_program_after_insert_at
2016-02-18 17:10:24 +00:00
Vitalii Vorobiov e2051e334b Edje_Edit: new API to insert tween into specified place
> edje_edit_state_tween_insert_at
2016-02-18 15:46:52 +00:00
Vitalii Vorobiov 7907c7b88c edje_edit.c: it should be able to change item position
Few new API for inserting/mving items inside of BOX/TABLE
> edje_edit_part_item_insert_before
> edje_edit_part_item_insert_after
> edje_edit_part_item_insert_at
> edje_edit_part_item_move_below
> edje_edit_part_item_move_above
2016-02-18 11:58:44 +00:00
Vyacheslav Reutskiy 7f4f215cd0 edje/edje_edit: make posible to unset the program filter part and state
@fix
2016-01-19 15:44:34 +02:00
Vincent Torri 4f242fb48a efl: add binary mode to fdopen() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:05:23 +01:00
Jean-Philippe Andre 1ab1b24e4e Edje edit: Free textblock styles with the proper function 2015-11-23 19:41:30 +09:00
Yeshwanth Reddivari 1caea15703 Edje: Remove duplicate NULL reassignment
Summary:
Remove duplicate code of variable 's' assignment to NULL in edje_edit_style_del.

Signed-off-by: Yeshwanth Reddivari <r.yeshwanth@samsung.com>

Reviewers: Hermet, alok25, mvsovani, singh.amitesh, jpeg

Reviewed By: jpeg

Subscribers: sachin.dev, cedric

Differential Revision: https://phab.enlightenment.org/D3358
2015-11-23 19:41:30 +09:00
Chris Michael 897132245f edje_edit: Fix clang warning of unused variables
Summary: clang reports that these static variables are not being used
anywhere (and grep confirms this), so remove them.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-10-14 09:43:12 -04:00
Amitesh Singh 27f313c2fe edje_edit: fix typo in error message 2015-09-28 15:45:44 +05:30
Andrii Kroitor d595149178 edje: fix internal colorclass field
Summary:
Its value is never modified directly and should not be modifiled by mistake
in future.

@fix

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-23 12:34:22 -07:00
Vyacheslav Reutskiy 27b81e44bc edje: edje_edit - add getters/setters for a container item spans
This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's
2015-09-22 09:23:46 +03:00
Vyacheslav Reutskiy eddcb69391 edje: edje_edit - add getters/setters for a container item position
This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's
2015-09-22 09:23:46 +03:00
Vyacheslav Reutskiy dbea1f9f3d edje: edje_edit - add getters/setters for container align
This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.
2015-09-22 09:23:46 +03:00
Vyacheslav Reutskiy 2f87a20c3b edje: edje_edit - add getters/setters for container padding
This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.
2015-09-22 09:23:46 +03:00
Vyacheslav Reutskiy f73174f980 edje: edje_edit - add getters/setters for min container size
This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.

TODO:
 * separate edje_edit_state_container_padding_get/set
 * separate edje_edit_state_container_align_set/set
 * separate edje_edit_part_item_position_get/set
 * separate edje_edit_part_item_span_get/set
2015-09-22 09:23:46 +03:00
Andrii Kroitor 77541f7ba2 edje_edit: remove save from group_del and group_copy
Summary:
edje_edit_save_all includes source code generation that is way more expensive
than save itself. User should be able to save manually with or without sources

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-09-21 23:46:36 +02:00
Vyacheslav Reutskiy 45fe7f5980 edje_edit: return EINA_TRUE for unset color_class
For unset color_class for part used edje_edit_state_color_class_set and NULL
value for color_class, it's a string, is valid. In this case function must
return EINA_TRUE.
@fix
2015-07-08 15:24:43 +03:00
Vyacheslav Reutskiy 7f3b54d924 edje edit: don't set the color_class color as main
@fix
2015-07-08 15:24:37 +03:00
Jee-Yong Um 2b29f4dfbf edje: add "mask_flags" instruction for "part" block
Summary:
Elementary widgets dealing with Evas Events usually mask event_flags with
EVAS_EVENT_FLAG_ON_HOLD, to show that this event is already handled.
However, widget like Elm_Button, it does not handle EVAS_CALLBACK_MOUSE_DOWN directly,
but it handles Edje_Signal instead, so there's no chance to mask event_flags.
Developers can block event propagation by putting rectangle the very last part of EDC,
but this instruction can help the case making elementary widget with only Edje_Signal handling.
This is not required essentially, so please check the necessity of this function.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:21:09 +02:00
Jean-Philippe Andre 75ec3a7338 Edje: Add clip as a property of a part description
Since masking, for performance and themeing reasons, it becomes
interesting to be able to switch clippers on the fly. In particular,
switching from an IMAGE mask to a standard RECT clipper can save a
lot of power when masking is not required.

This new flag "description.clip_to" will behave a bit like a mix of
rel.to and visible:

- It points to a part by name, just like part.clip_to. This will
  override the clipper set by the part, or override the default clipper.

- Like "visible", it can not be interpolated between two values, so
  it will switch only at the end of a transition.

- By default there is no clip override, which means Edje will fallback
  to the part's clipper, if any, or the base (group's) clipper.

NOTE:
- Since a clipper that does not clip anything becomes a standard object,
  it is visible and rendered. This will in 99.999% cases not be the
  intended behaviour. Currently we can simply use a transparent RECT
  in order to always have something clipped by the clipper, but this is
  a hack and this will trigger rendering of masks in their surfaces even
  when they are not actually used.
  Ideally, there should be a flag indicating to Edje & Evas that an object
  should be considered a clipper in all situations, and never be rendered
  on screen.

TODO:
- Support Edje Edit
- Add Embryo & Lua functions
- Add support in edje_convert
- Add Edje/Evas flag to mark objects as "no_render"

@feature
2015-06-15 16:59:41 +09: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
Tom Hacohen 6efbfe227a Eo: Add a return value to eo_constructor().
From now on, constructors should return a value, usually the object
being worked on, or NULL (if the constructor failed). This can also
be used for implementing singletons, by just always returning the same
object from the constructor.

This is one of the final steps towards stabilizing Eo.

@feature
2015-05-20 13:03:24 +01:00
Andrii Kroitor 179e36f5fc edje: _check_recursive_reference reworked to fix segv in Edje_Edit.
Summary:
in some cases collections cache "ref" can be NULL and old code fails.
Replaced with reliable way of getting part list that was found in
_edje_edit_group_references_update

@fix

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-05 10:46:13 +02:00
Jean-Philippe Andre 98f56df657 Edje edit: Fix clang warning
Remove useless variable
2015-04-21 20:28:44 +09:00
Chris Michael 62b8c967b4 edje: Fix dereference null return value
Summary: Fix Coverity CID1287154. _alloc function can return null
however 'color' was never checked after call to _alloc and thus Could
be NULL.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-12 21:13:18 -04:00
Vitalii Vorobiov dea4bcf47c Edje: Edje_Edit - new part addition should initialise threshold as -1
After adding new part all draggable fields should contain default values.

@fix
2015-04-10 17:36:28 +03:00
Andrii Kroitor 9fdcecebe3 edje: fix program transition generation by Edje_Edit.
Summary:
fix possible CURRENT option omission (0-time transition + non-LINEAR
transition type. fix extra ';' for omitted 0-time LINEAR transition

Reviewers: cedric, seoz, raster, Hermet

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-06 16:37:53 +02:00
Andrii Kroitor 0de1bde1ca edje: fix possible segfault in Edje_Edit _check_recursive_reference
Summary: if we don't force object loading ref can be NULL

Reviewers: seoz, raster, Hermet, Sergeant_Whitespace, cedric

Reviewed By: Sergeant_Whitespace, cedric

Subscribers: Sergeant_Whitespace, cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-06 16:37:53 +02:00
Andrii Kroitor a30091ee93 edje_edit: add program action DRAG_* support to code generation
Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2281
2015-04-06 13:52:28 +09:00
Andrii Kroitor e7d48d39ca edje_edit: fix box/table items source generation
Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2282
2015-04-06 13:44:22 +09:00
Andrii Kroitor 77004c5154 edje_edit: fix STATE_SET and SIGNAL_EMIT generation
Summary:
edje_cc allows state, signal and source to be "". So edje_edit also should
handle this values as valid and souldn't break programs, that are using them.

Reviewers: cedric, seoz, raster, Hermet

Reviewed By: Hermet

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D2280
2015-04-06 13:40:27 +09:00
Andrii Kroitor 7bbb04d6fa edje_edit: add 'fixed' support to code generation
Reviewers: cedric, seoz, Hermet, raster, Sergeant_Whitespace

Reviewed By: Sergeant_Whitespace

Subscribers: Sergeant_Whitespace, cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D2267
2015-04-06 13:24:40 +09:00
Vyacheslav Reutskiy 9e2aa810cc edje: edje_edit - recalculate object after chenge aspect preference 2015-03-27 11:31:31 +02:00
Vitalii Vorobiov 7ba3a2bd7c Edje: Edje_Edit - code generation for TABLE part (description.table section) 2015-03-25 17:56:47 +02:00
Vitalii Vorobiov e4487a31fe Edje: Edje_Edit - fix typo in code generation of BOX part
@fix
2015-03-25 17:17:49 +02:00
Vitalii Vorobiov a21f053571 Edje: edje edit - ability to remove last item in BOX/TABLE
Removing last item in BOX/TABLE part is actually successful
but then we shouldn't realloc an array of items for 0 items.
That's ridiculous
(and because of that function removes EINA_FALSE,
so user could think that it's unable to remove last item).

So simply array can be set into NULL.

@fix
2015-03-19 15:19:55 +02:00
Cedric BAIL aab01a80b2 edje: remove deprecated use of Eina_Binbuf functions. 2015-03-17 09:58:21 +01:00
Mykyta Biliavskyi 1690c58680 edje: Edje_Edit - add data items into generated code for the group.
Summary:
Include data items, that present in edje object.
Data items, which data ends with '\n' recognized as data.file item and not included into the generated source code.
@fix

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

Reviewed By: cedric

Subscribers: cedric

Projects: #efl

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-13 09:44:46 +01:00
Maksym Volodin 8909f76055 edje: add edje_edit_full_source_generate() as a public API.
Summary: added full source code generation as public API for Edje Editor application.

Reviewers: Hermet, seoz, raster, cedric

Reviewed By: cedric

Subscribers: reutskiy.v.v, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-13 09:33:29 +01:00
Andrii Kroitor 473be85757 edje: Edje_Edit - fix program transition source generation
Summary:
added missing in some cases ";\n"
@fix

Reviewers: Hermet, seoz, raster, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-13 09:33:29 +01:00
Mike Blumenkrantz 1cf630f2bd edje color classes can now have text descriptions
@feature
2015-03-07 13:44:52 -05:00
Andrii Kroitor 4ad20ac8e4 edje: Edje_Edit - fix part alias source generation.
Summary:
generating correct part alias string 'alias: "theme_part_path" "real_part_path";'
@fix

Reviewers: cedric, seoz, Hermet, raster

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-06 20:19:22 +01:00
Vitalii Vorobiov 3c925a1ea6 Edje: Edje_Edit - code style fix accoring to Coding Convention
Oops!
According to Coding Convention it should be like that:
...
>>> function forward declaration/prototype should be a single line;
>>> function definition should have the return at one line, then function name starts at next line, column 0;
...
2015-02-24 13:16:11 +02:00
Vitalii Vorobiov 54b090b0af Edje: Edje_Edit - setter and getter for min param of TABLE/BOX parts
Add new functions for set and get whether
minimum size's of the box are equal to the minimum vertical or horizontal size
of the items or not.

@feature
2015-02-24 12:36:25 +02:00
Vitalii Vorobiov 34c8d3a52d Edje: new set/get API omogeneous, paddings and align for BOX/TABLE in Edje Edit
Those include such functions like:
> edje_edit_state_table_homogeneous_set/get (function for TABLE only)
> edje_edit_state_container_padding_get
(container means that functions both for TABLE and BOX)
> edje_edit_state_container_align_get (also for TABLE and BOX)

@feature
2015-02-19 16:57:17 +02:00
Vitalii Vorobiov 87a5388919 edje: Edje_Edit - functions to edit layouts of BOX parts
New functions for setting such BOX's params like primary and fallback layouts:
> edje_edit_state_box_layout_set
> edje_edit_state_box_layout_get
> edje_edit_state_box_alt_layout_set
> edje_edit_state_box_alt_layout_get

@feature
2015-02-13 19:08:40 +02:00
Vitalii Vorobiov b552cfb50b edje: edje_edit - fix group source generation of box params
Need to generate such params of box like align, padding, min and layouts
(both primary and alternative).

@fix
2015-02-13 18:43:04 +02:00
Vitalii Vorobiov eaad731abe edje: edje_edit - fix group source generation of item 'weight' param
@fix
2015-02-13 18:42:14 +02:00
Vitalii Vorobiov 1d4e8c2f1d Edje: edje_edit - fix Segmentation Fault on new BOX part
After adding new part (with type BOX) there was a SIGSEV because
of structure that wasn't initialized.

@fix
2015-02-09 18:58:26 +02:00
Vitalii Vorobiov bac07e79ce Edje: edje_edit - abort Recursive Reference in edje_edit_part_source_set
It is unable to do recursive reference such as:
>   Having group A with GROUP part that has group B as source.
>   Having group B with GROUP part that has group A as source.
Here we have a loop that is not allowed by edje_cc, so edje_edit also need
to check this case.

@fix
2015-02-02 11:37:20 +02:00
Vitalii Vorobiov 60b1f44fdf edje: Edje_Edit - fix setting NULL into string pointer
Some of edje_edit functions allows to set up NULL instead of string,
but by using _edje_if_string_free() function it should set variable into NULL,
so previous data won't appear anymore.

@fix
2015-01-28 16:40:09 +02:00
Andrii Kroitor 56d75b755f edje: Edje_Edit - fix memory leak in edje_edit_image_usage_list_get
Summary:
freeing iterator when necessary

@fix

Reviewers: Hermet, seoz, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-14 14:57:02 +01:00
Mike Blumenkrantz 3ada34f2b3 edje shadow warning--
added in c501f2ce

ref D1768
2015-01-06 14:56:39 -05:00
Cedric BAIL bc34291e67 edje: Edje_Edit - add Proxy to Edje_Part_Collection_Directory_Entry initializatoin.
Summary:
Add proxy while init Edje_Part_Collection_Directory_Entry at edje_edit_group_add and edje_edit_group_alias_add.

@fix

@fix

Reviewers: Hermet, seoz, cedric, raster

Subscribers: reutskiy.v.v

Projects: #efl

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-06 12:43:03 +01:00
Cedric BAIL a5183ee424 edje: Edje_Edit - add API for renaming of image.
Reviewers: Hermet, raster, seoz, cedric

@feature

Subscribers: reutskiy.v.v

Projects: #efl

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-05 10:54:11 +01:00
Cedric BAIL 93da127573 edje: Edje_Edit - remake deletion and replacing of strings
Summary: Add new function for replacing string with using eina_stringshare_replace() and change _edje_if_string_free() to setup passed string to NULL.

@fix

Reviewers: raster, Hermet, seoz, cedric

Reviewed By: cedric

Subscribers: reutskiy.v.v

Projects: #efl

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-05 10:52:59 +01:00
ChunEon Park 3f9d952774 Edje_Edit: Add sound samples into generated code for the group.
Summary:
Include sound samples, that uses in programs of this group in collections block.
@fix

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

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1824
2014-12-29 12:01:21 +09:00
ChunEon Park 671b04faee edje/edje_edit: remove unrelated call 2014-12-26 10:21:32 +09:00
Andrii Kroitor 4d0695d284 edje: fix memory leak in edje_edit_source_generate.
Reviewers: cedric, seoz, Hermet, raster, reutskiy.v.v

@fix

Reviewed By: reutskiy.v.v

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-25 21:57:57 +01:00
Mykyta Biliavskyi eae8a62009 edje: add tween images into generated code for the group.
Summary:
Include images, that uses as tweens in parts in Edje_Edit.
@fix

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

Reviewed By: reutskiy.v.v, cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-25 21:51:25 +01:00
Vyacheslav Reutskiy 2eebeb8b61 edje: edje_edit - add getter/setter for anti_alias attribute 2014-12-24 11:17:03 +00: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
Kateryna Fesyna 56a8f13e5c edje: Edje_Edit - add generation of 'filter' parameter of program
Reviewers: raster, Hermet, cedric

@feature

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-12 04:37:45 +01:00
Andrii Kroitor d2d35a66b4 edje: Edje_Edit - add API for program actions PLAY_SAMPLE and PLAY_TONE
Summary:
Added initialisation, deletion, getters and setters for following
programs fields: sample_name, speed, channel, tone_name, duration.

@feature

Reviewers: cedric, seoz, Hermet

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-12 04:33:30 +01:00
Maksym Volodin c501f2ce11 edje: Edje_Edit - generate alias parameter for 'parts' block.
Summary: add alias parameter to code generation.

@feature

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-12 04:20:21 +01:00
Maksym Volodin 4abdd758f0 edje: Edje_Edit - generate missed properties of 'text' block
Summary:
missed souce, text-source, repch, size_range, style are added.
TODO is added for filter property.

Reviewers: Hermet, raster, cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-10 03:52:52 +01:00
Maksym Volodin f83d23a327 edje: Edje_Edit - generate 'perspective' block
Summary: Adds focal and zplane perspective to the part when generating an EDC.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-09 03:13:56 +01:00
Kateryna Fesyna 2f8121d66e edje: Edje_Edit - add generation of missed properties of 'image' block.
Summary: add generation of missed parameters: scale_hint, border_scale and border_scale_by.

Reviewers: Hermet, cedric, raster

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-09 03:13:56 +01:00
Kateryna Fesyna cccd1b25d4 edje: add formating for floating point numbers in EDC.
Summary:
this commit contains calculation of format string for floating point numbers in order to print them with at least one symbol after point. (For example: 'relateve: 1.0 0.45;')
@fix

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

Reviewed By: reutskiy.v.v

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-14 07:03:25 +01:00
Kateryna Fesyna 35ac38e880 edje: fix wrong generation of 'minmul' and 'text.min' parameters in EDC.
Summary:
minmul: add check of 'minmul.have' value and fix check on default vales of minmul (0.0 0.0 -> 1.0 1.0)
min: delete quotation marks from 'w' and 'h' values

@fix

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-14 06:58:25 +01:00
Kateryna Fesyna f5d5071210 edje: Edje_Edit - add generation of 'limits' parameter of group in EDC.
Summary: the generation of limits of group is added with this commit.

@feature

Reviewers: Hermet, cedric, raster

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-14 06:53:58 +01:00
Kateryna Fesyna 8ceef8c6ca edje: Edje_Edit - fix segfault on copying state of IMAGE part with twins
Summary:
The copying of state of IMAGE part with twins caused the sefmentation fault due to the extra memory freing in _edje_edit_part_state_copy() that is deleted with this commit.
The data that is freed was previously copied from the structure of state 'from' and freeing of this data leads to freeing data of 'from' part.
Later, on copying of tweens to 'to' state array of tweens appears segmentation fault because we try to access freed data of 'from' state.

@fix

Reviewers: cedric, Hermet, raster, seoz

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-06 06:18:38 +01:00
Kateryna Fesyna 41ea6e81d6 edje: Edje_Edit - fix segfaults on restacking of text parts with set 'text_source'.
Summary:
This commit fixes segfault on restacking text parts with set 'text_source'
that is caused by wrong updaiting of 'text_source' IDs on restacking of parts due to typo.

@fix

Reviewers: Hermet, seoz, raster, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-11-06 06:04:43 +01:00
Vyacheslav Reutskiy 890ad5dd95 edje: edje_edit - fix posible resource leak
Fixes: https://phab.enlightenment.org/T1760

@fix
2014-10-27 10:28:25 +00:00
Vyacheslav Reutskiy 4d7c0fe3d9 edje: edje_edit - don't unlick(NULL)
Summery: fix, posible to delete file by 'NULL' path (T1760)

@fix
2014-10-27 09:21:45 +00:00
Kateryna Fesyna f8db9a85fb edje: Edje_Edit - fix edje_edit_state_aspect_pref_set() function to setup Source and None aspect preferences
Summary:
This commit fixes check of passed value of aspect preference in edje_edit_state_aspect_pref_set() because it ignores None and Sorce values.
@fix

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-10-20 17:30:57 +02:00
Maksym Volodin 9eb1093424 edje: Edje_Edit - add state alloc for PROXY part.
Summary:
To allow edje_edit_state_add work properly for PROXY part, EDIT_ALLOC_POOL for PROXY is added.
@fix

Reviewers: Hermet, seoz, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-10-18 13:48:51 +02:00
Kateryna Fesyna dad54f4f75 edje: Edje_Edit - fix edje_edit_image_usage_list_get() to return usage list with images with USER compression.
Summary:
add recalculating of image id in edje_edit_image_usage_list_get() to fix wrong behavior of this function when the image has USER compression.

@fix

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-10-18 13:47:30 +02:00
Igor Gala 7366caab1a edje: Edje_Edit - get the source name of the sample
@feature

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-10-18 13:44:30 +02:00
Vitalii Vorobiov d8955625ce Edje_Edit: creating new hash in global data if it is not created yet
Summary: edje_edit_data_add doesn't work if loaded EDJ file doesn't contain
any data items. It can't add new data item to emptry (NULL) hash.
Now, if there is no data in EDJ yet (so hash is empty), by adding new data it
will create hash and after that will add new data.

@fix
2014-10-13 16:57:08 +03:00
Tom Hacohen a7560dbc61 Eo: Change eo_add/del/unref behaviour.
Before this change eo_add() used to create an object with 1 ref, and if
the object had a parent, a second ref.
Now, eo_add() always returns an object with 1 ref, and eo_add_ref()
    preserves the old behaviour (for bindings).

eo_unref now un-parents if refcount is 0, and eo_del() is an alias for
eo_unref (will change to be a way to ensure an object is dead and goes
        to zombie-land even if still refed).
2014-09-25 17:38:45 +01:00
Igor Gala 6baada490e edje: Edje_Edit - get the buffer with sound's data
Summary:
add opportunity get the buffer with sound data for certain sound
from the given edje object. It is needed to play some sound with logic API.
@feature

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Andrii Kroitor d4f92b987f edje: Edje_Edit: fixing text properties setting
Summary:
edje_edit_state_text_source_set shouldn't replace existing text.
edje_edit_state_text_set should update text in other parts, that are using given part as text.text_source

Reviewers: seoz, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Andrii Kroitor 51a5f852c2 edje: Edje_Edit: add missing part type checks
Summary: added necessary type checks before using typedata

Reviewers: seoz, Hermet, cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Andrii Kroitor 520809864d edje: Edje_Edit - add edje_edit_program_transition_state_set
Summary:
Set parts into intermediate state of programs transition.
0.0 represents the start state, 1.0 - the final state. Other values will set
parts to an intermediate state taking into account programs transition type.

Reviewers: seoz, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-12 23:04:53 +02:00
Andrii Kroitor 38561202bf edje: Edje_Edit - add edje_edit_program_stop_all
Summary:
Stops all running programs. If any program has "after" field its value
will be ignored.

Reviewers: cedric, seoz, Hermet

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-12 23:00:52 +02:00
Stefan Schmidt a7fb8cd7fe edje_edit: Use eina_file_mkstemp() to avoid problems with umask
CID 1039613
2014-09-11 11:55:49 +02:00
Stefan Schmidt debb51e5df edje_edit: Check return of _edje_part_description_find_byname
If this retruns NULL we would do a NULL deref some lines below. Better check.

CID 1222458 1222457
2014-09-04 15:09:17 +02:00
Stefan Schmidt ffd1031d2b edje_edit: Another instance where we need to check the return of eet_list
Return could be NULL so check here before derefenrcing ent.

CID 1224764
2014-09-04 14:44:33 +02:00
Stefan Schmidt 703d179eb6 edje_edit: Check return value of eet_list() to avoid NULL dereference.
We check eet_list elsewhere and it might retrun NULL. Don't just hope
keys will never be NULL. Check it.

CID 1232733
2014-09-04 14:20:56 +02:00
Stefan Schmidt cfba724a37 edje_edit: Check return of _edje_edit_edje_file_save and close files if we fail
We check the retrun of _edje_edit_edje_file_save everywhere else and should do
here as well.

CID 1224759
2014-09-04 11:28:33 +02:00
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