Commit Graph

82 Commits

Author SHA1 Message Date
Jean-Philippe Andre cdf8137da7 elm_image: do not preload full image on file_set. 2013-09-25 18:39:42 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
ChunEon Park d461a8be05 elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary multiple setups when obj and subobj has connected.
2013-08-27 14:19:19 +09:00
Daniel Juyung Seo c5b0d63838 fixed documentation for consistency. Gets -> Get.
Occurance of Get is super much higher than Gets.
So change Gets to Get for consistency.
2013-08-22 05:24:46 +09:00
Cedric Bail 1baaa321a7 elm_image: add support for url. 2013-08-09 21:13:15 +09:00
Cedric Bail 118918d42c elm_image: let's only propagate the event from one object.
NOTE: Why do we destroy and recreate the image object, couldn't we just reset its state ?
2013-07-29 11:31:23 +09:00
Daniel Juyung Seo 59c5970c72 elm_image.c: eo refactoring. place internal functions into a better place. 2013-06-25 11:15:15 +09:00
Daniel Juyung Seo d0d4afd590 elm: refactoring. no printf in the library. use eina log instead. 2013-06-05 14:40:03 +09:00
Daniel Juyung Seo 9a7bbbf3be elm_image.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:56:07 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Carsten Haitzler 3091ccc3f6 flesh out a lot more of dnd support in elm and add apis to set up dnd
targets for objects as well as initiate a dnd.



SVN revision: 84282
2013-02-21 13:21:08 +00:00
Cedric BAIL 1aaa6e41e1 elementary: as previously stated sizeof (long) != sizeof (void*)
SVN revision: 84014
2013-02-17 03:53:02 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
Daniel Juyung Seo ffa9c1e793 elm: Refactoring.
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.

SVN revision: 82228
2013-01-04 19:10:19 +00:00
ChunEon Park a4c735c632 elementary/image - +FIXME
SVN revision: 81413
2012-12-20 01:54:57 +00:00
ChunEon Park 8680aa4ec9 elementary/image - fix the image to show the image right away if the image preloading is disabled.
SVN revision: 81207
2012-12-18 07:06:42 +00:00
ChunEon Park da7e0b5e62 elementary/image - removed unnecessary lines.
SVN revision: 81205
2012-12-18 06:13:01 +00:00
Jaehwan Kim 4cf133cf15 Set the color of the hit_rect (0, 0, 0, 0), when the image is set the color.
SVN revision: 80002
2012-12-03 03:53:13 +00:00
Jaehwan Kim 81dc417ea7 Add the hit_rect in elm_image. When the image is changed, the evas callback cannot be called.
So hit_rect gets the mouse events in a top of the widget.


SVN revision: 79740
2012-11-27 09:29:16 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Daniel Juyung Seo f05a7001f1 elm image, photo, plug, segment_control, thumb: Check button type and on_hold flag on mouse_down/up.
SVN revision: 79284
2012-11-14 10:49:54 +00:00
Jaehwan Kim 869f71a514 Fix the elm_image which is made up of a edje object can call a callback function
SVN revision: 79261
2012-11-14 03:27:15 +00:00
Gustavo Lima Chaves 5e1126935a Gotta love those leftovers.
SVN revision: 79156
2012-11-12 12:56:21 +00:00
Cedric BAIL 07bfc8e14d elementary: fix elm_image_orient_get/set and add a test case.
SVN revision: 74793
2012-08-02 08:15:05 +00:00
Gustavo Lima Chaves 451c8e6791 [elm] Image now (better) inheritable.
SVN revision: 74607
2012-07-30 22:36:19 +00:00
Seunggyun Kim 133937ed6d From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [PATCH] elm_icon is disappeared when theme hook is
called.

[Current Issue]
 - The elm_icon can be disappeared when theme hook is called.
    You can see the problem in the below situation.
        a) elementary_test -> Layout select
            b) elementary_config -> Fonts(toolbar) -> select some font
class, font,
style, size
    c) Select "Apply" button
       then two icons in title layout are disappeared.
       
       [Main cause]
        - when theme hook is called, internally
_elm_image_smart_sizing_eval
function is called.
   The function calculates icon's min, max size. 
      But min, max size is calculated  only in case no_scale is true or
      resize_down or resize_up is false.
         If application isn't set no_scale or resize_down/up, minw and
minh value
is just -1.
   So when theme hooks is called then sizing_eval is called, icon's
min size
is -1 and that is disappeared.

[Change Description]
 - I just added evas_object_size_hint_min_get(obj, &minw, minh) in
 _elm_image_smart_sizing_eval.
     Patch is working well, but I don't think this is right solution
because
that would break image(icon) min,max concept



SVN revision: 74163
2012-07-19 08:10:02 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Daniel Juyung Seo 5575df4a09 elm image: Removed existing trailing whitespace while reading the
code.

SVN revision: 74031
2012-07-18 02:25:38 +00:00
Daniel Juyung Seo 6c7791d580 elm image: Renamed internal variable/function name to be less confusing. They could be confused by no_scale option.
SVN revision: 74030
2012-07-18 02:25:34 +00:00
Gustavo Lima Chaves 1e5389754e [elm] Fix init on image.
SVN revision: 74015
2012-07-17 18:45:09 +00:00
Carsten Haitzler c7fad4ef42 fix discomfitors list scalign thing.. was actually image/icon madness.
:)



SVN revision: 72109
2012-06-14 07:55:55 +00:00
Gustavo Lima Chaves b15d43ef71 [elm] Oops, forgotten class smart cbs setting
paths.
This will also unb0rk Edje externals signal proxying.



SVN revision: 71868
2012-06-08 21:05:45 +00:00
Gustavo Lima Chaves f61af030b6 [elm] Fixing typo, sorry.
SVN revision: 71511
2012-05-29 19:38:24 +00:00
Gustavo Lima Chaves f72b6c8ad6 [elm] Warn about deprecation of some icon calls
The ones just wrapping their image counterparts should die eventually.
The signal callbacks on icons will die, too, eventually.



SVN revision: 71468
2012-05-28 20:35:35 +00:00
Gustavo Lima Chaves 1ee046765a [elm] Image animation should be in the base
(image), not just icon.



SVN revision: 71467
2012-05-28 20:35:29 +00:00
Gustavo Lima Chaves 4f8b51b1aa [elm] And here comes image, icon and photo on the
new schema.
els_icon smart object was brought to be the base of the image widget,
in the form of an image class.

An elm icon is now a elm image, with a little more on top of it.

An elm photo is a now base widget aggregating an icon.

Toolbar's internal usage of the former els_icon is now changed to
icons, instead.

Some naviframe instantiations were set to enable events during
transitions, because this code is buggy and my chages exposed the
problem. It will be fixed as soon as I get to port Naviframe.



SVN revision: 71429
2012-05-25 19:53:59 +00:00
Jiyoun Park edd0df25aa remove deprecated code related with
elm_image_scale_set/get
function.


SVN revision: 69277
2012-03-13 01:41:02 +00:00
Daniel Juyung Seo 0ad0ac6ff2 elm: fixed build break. sorry.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68881
2012-03-07 06:54:17 +00:00
Daniel Juyung Seo 22b98643a0 elm image: Added elm_image_preload_disabled_set(). Patch by Shinwoo Kim.
On Wed, Mar 7, 2012 at 12:21 PM, cnook <kimcinoo@gmail.com> wrote:
> Dear All, Hello.
>
> There was no API for preload cancel. simple
>
> Sincerely,
> Shinwoo Kim.

SVN revision: 68879
2012-03-07 06:26:20 +00:00
WooHyun Jung 6009652735 [elementary] change API name from _scale_set to _resizable_set in
elm_image + elm_icon.


SVN revision: 68719
2012-03-05 13:36:01 +00:00
Mike Blumenkrantz 59528e6551 void function returning a void function confuses my small american brain
SVN revision: 68043
2012-02-16 22:41:52 +00:00
Mike Blumenkrantz 8638957866 aspect_ratio_retained -> aspect_fixed
SVN revision: 66926
2012-01-06 05:55:51 +00:00
Carsten Haitzler 2bdda6fe40 fix some of sanjeev's api review commentry.
SVN revision: 65752
2011-12-01 06:43:06 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Rafael Antognolli c30abbba25 elementary/image - Improve documentation and add an example.
Doxygen comments moved out from .c and in to Elementary.h.in. They
received better descriptions for most of the API too.



SVN revision: 61388
2011-07-14 20:48:00 +00:00