Commit Graph

98 Commits

Author SHA1 Message Date
Daniel Juyung Seo f232ff14be image: Remove unnecessary parameter for elm_obj_image_editable_set.
This parameter was introduced as an internal funciton parameter long ago and migrated to eo as it was.
But this parameter is not needed. obj pointer is already there.

Thanks to Yakov for the report.
2014-01-02 09:21:16 +09:00
Jihoon Kim 2f3525f518 image: add NULL check 2013-12-31 11:36:43 +09:00
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
ChunEon Park 45ed80a0c8 image - fix the elm_image_prescale_set() to work properly.
before this, it had the insane logic so the prescale_set() never work.
Now, it works well and the prescale won't be set in default. (before, the default value is 64. why?)
2013-11-25 20:48:22 +09:00
Daniel Juyung Seo 5567837cf5 button,check,colorselector,diskselector,flipselector,image,radio,toolbar: fixed formatting of smart_event functions before working on it.
Now they look more consistent.
2013-11-13 09:54:37 +09:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00
Daniel Zaoui b66233d128 DnD: multi-callbacks support
This features permits execution of more than one set of functions during
DnD.
Delete function API has been modified to give the developer the
possibility to remove a specific set of functions.
2013-11-05 08:28:54 +02:00
Daniel Juyung Seo cee446d308 elm_slider.c, elm_image.c: Removed executable permission from c source.
Please be more careful of file permission.
2013-11-04 22:46:50 +09:00
Cedric Bail 1f442e4a8e elm_image: add mmap_set infrastructure. 2013-11-04 12:19:04 +09:00
Amitesh Singh 72c30bb3e2 [image] - Added support for "clicked" callback on Return/space/KP_Enter key press.
Summary: [image] - Added support for "clicked" callback on Return/space/KP_Enter key press.

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D278
2013-10-30 08:32:44 +09:00
Daniel Juyung Seo 6397761c6a elm_test: Fixed formatting. tab to space.
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
Daniel Juyung Seo a4fb4efcd7 elm_config/elm_image: Internal small refactoring.
1. Use more ELM_SAFE_FREE macro.
2. Use correct more descriptive macro for timer callback.
2013-10-02 20:18:51 +09:00
Jean-Philippe Andre 6078f040fb elm_image: Fix preload for normal files
grmbl, elm_image must explicitely start preload or the
image will stay blank if evas_object_show() is called before
elm_image_file_set().
2013-10-01 19:09:52 +09:00
Jean-Philippe Andre fada635034 elm_image: Remove double callback on mouse_up
In case of MOUSE_UP event, both the hit rectangle and the
smart image object received the event, thus producing double
clicks.
2013-10-01 19:09:52 +09:00
Daniel Juyung Seo e756f97dae elm: Longwaited trailing white space removal. Clean elm up! 2013-09-30 22:15:01 +09:00
Jean-Philippe Andre 39fe09b137 elm_image: Fix remote image loading
Fixes commit dcb8b54aee3a545a1:
 - elm_image: do not preload full image on file_set.

elementary_test "Image Remote" was not working anymore because
the image was never loaded after download.
2013-09-26 18:57:16 +09:00
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