Commit Graph

64 Commits

Author SHA1 Message Date
Daniel Juyung Seo 1c2a91353c elm_panes.c: formatting fix while reading the code. 2013-08-11 15:00:43 +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
Carsten Haitzler 3b46946a48 add rect event swallow for panes so handle thumb can be affected by
finger size.
2013-04-15 23:55:57 +09: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
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Daniel Juyung Seo 541ce8f603 elm panes: fixed unclear horizontal mode description.
SVN revision: 83974
2013-02-16 08:43:48 +00:00
Daniel Juyung Seo fd804d6153 elm elm_panes.c: fixed wrong eo description.
SVN revision: 83969
2013-02-16 06:07:22 +00:00
Daniel Juyung Seo 61348fd4d9 elm panes: fixed wrong signal name.
elm.panes.fixed/unfixed -> elm,panes,fixed/unfixed.
whoever added this signal should be spanked.
I left the signal emission from the code due to backward compatibility.
So there is no theme api break.
We should remove the previous one when we start EFL 2.0.

SVN revision: 83967
2013-02-16 05:37:44 +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 3b4551b058 elm panes: Added 'top' and 'bottom' part aliases for vertical panes. I did not change the swallow part name not to breatk theme api.
SVN revision: 79847
2012-11-29 18:43:39 +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
Gustavo Lima Chaves de362292af [elm] Panes now inheritable.
SVN revision: 74766
2012-08-01 21:04:56 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Gustavo Lima Chaves 1b276ab353 [Elm] Panes now a layout, too.
SVN revision: 70726
2012-05-03 22:43:05 +00:00
Carsten Haitzler c0f2f4be91 REVERT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this breaks theme api. so NO! come back with a version that doesn't
break it.



SVN revision: 70679
2012-05-03 01:19:05 +00:00
Gustavo Lima Chaves a2870932ac [Elm] Panes now a layout, too.
SVN revision: 70649
2012-05-02 16:59:45 +00:00
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +00:00
ChunEon Park 9bd243f89d elementary/panes - Patch to handle deletion of current contents while setting new ones
Attached to the mail is a patch for elm_panes.

I have a query that shall we hide the unset content in the widget itself or should application explicitly hide them after unsetting!
In case of edje_object_part_unswallow, application needs to do it explicitly and it is documented but in case of elm_object_part_content_unset, there is no documentation available.

Details of the patch:

Existing Issue before this change:
   1. Panes deletes the older content while setting a new content even though both are same.
   2. left and right content are being unswallowed in the content_left_set and _content_right_unset functions. So when the reparenting happens, say when the content is put inside a layout then only _sub_del gets called and  
unswallowing does not happen as these functions do not get called.
e.g.   @@ -253,8 +250,6 @@ _content_left_unset(Evas_Object *obj)
    if (!wd->contents.left) return NULL;
    Evas_Object *content = wd->contents.left;
    elm_widget_sub_object_del(obj, content); //wd->contents.left already gets set to NULL in _sub_del
-   edje_object_part_unswallow(wd->panes, content); // can be unswallowed in _sub_del as in case of reparenting like setting content in a layout, only _sub_del will get called, not this function
-   wd->contents.left = NULL; //this instruction is redundent as it happens in _sub_del anyway
    return content;
 }
Change Description:
  1. Unswallowing the contents now in _sub_del as this is a common function to be executed when subobject removal happens.
  2. Comparing the current content with new before deleting. 

Signed-Off-By: RAJEEV RANJAN<rajeev.r@samsumg.com>

Thanks.
Regards,
Rajeev



SVN revision: 69720
2012-03-29 07:08:22 +00:00
Sanjeev BA 86207ebc34 Implementation for elm_panes_content_right_size_get/set().
Thanks to jeremy@asynk.ch

Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68527
2012-02-29 03:01:58 +00:00
Daniel Juyung Seo e4e7658b0d elm elm_panes.c: Added EINA_DEPRECATED marks for deprecated APIs. This is useful to mark deprecated APIs.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68178
2012-02-21 00:33:38 +00:00
ChunEon Park 4e13dde318 elementary/panes - change the default to left content
my fault. left content would be better as a default content 



SVN revision: 65525
2011-11-23 02:47:57 +00:00
ChunEon Park af42bdf2fd elementary/panes - the return value is reverted.
SVN revision: 65472
2011-11-21 06:44:40 +00:00
ChunEon Park a138bd0a3e elementary/panes - fixed typo
SVN revision: 65471
2011-11-21 06:16:42 +00:00
ChunEon Park 6194ab2345 elementary/panes - should be return the unset objects.
SVN revision: 65470
2011-11-21 05:47:49 +00:00
Mike Blumenkrantz 31d8a4817f allow panes to accept full name of swallow when setting / getting / unsetting parts
SVN revision: 65395
2011-11-18 21:53:58 +00:00
ChunEon Park 085e500875 elemlentary - minor changes.
guarantee the compatibility for priveous content_set/get/unset changes. 



SVN revision: 65320
2011-11-17 00:42:14 +00:00
ChunEon Park 236192cd9a elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names
but in modified version, the part names chaned to simpler meaning names to use.

i.e for button

elm_object_content_part_set(button, "elm.swallow.icon", icon);
-> elm_object_content_part_set(button, "icon", icon);




SVN revision: 65295
2011-11-16 12:51:53 +00:00
ChunEon Park 1e3d557d25 elementary/panes - content_part_set/get/unset
SVN revision: 64524
2011-10-30 15:50:14 +00:00
ChunEon Park 1f80b885cb elementary/panes - added exception handlings
SVN revision: 64009
2011-10-12 05:23:26 +00:00
ChunEon Park 4b18c1f56a elementary/panes - trivial changes
SVN revision: 64008
2011-10-12 05:19:52 +00:00
Rajeev Ranjan 87e03cbfd3 elementary: Add support for fixed panes
Signed-off-by: Rajeev Ranjan <rajeev.r@samsung.com>
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63973
2011-10-11 02:38:49 +00:00
Bruno Dilly 7da46cfbbe Elementary: panes documentation
SVN revision: 61809
2011-07-27 17:06:40 +00:00
ChunEon Park 9420b44918 elementary/segment_control, panes, photocam, photo, win, toolbar, thumb, slideshow, spinner - updated signal callbacks.
made them use signal callbacks description table. 
removed never-called signals
updated doxygen. 




SVN revision: 58816
2011-04-22 00:42:32 +00:00
ChunEon Park 160084626b elementary / menu, notify, list, panes, module, map, pager, panel, mapbuf - removed white spaces
SVN revision: 58251
2011-04-01 11:26:58 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
Daniel Juyung Seo 11033734f3 Elementary doxygen: Fixed for the consistency with the other widget's
document format.

Patch by Jihoon Kim <jihoon48.kim@samsung.com>


SVN revision: 58007
2011-03-23 00:40:47 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Carsten Haitzler 0a8466f4e8 come on guys... lets at least be consistent and use EINA_TRUE eh?
SVN revision: 53504
2010-10-17 04:25:30 +00:00
Tiago Rezende Campos Falcao 82a28dafb9 Better focus next get to elm panes.
The previous have too much code.

SVN revision: 53459
2010-10-15 17:28:33 +00:00
Tiago Rezende Campos Falcao 738bfaa747 Review of content setters, getters and unsetters
Revised the parent, icon, end and content setter and getters of
elementary objects.
Review to smart objects and widgets items will be the next steps.

SVN revision: 53425
2010-10-14 18:54:42 +00:00
Tiago Rezende Campos Falcao ef18ffa4f4 Set const where need in focus_next_get functions set
SVN revision: 53114
2010-10-06 20:24:19 +00:00
Tiago Rezende Campos Falcao 198ca1fd95 Rename focus method from cycle to next_get
SVN revision: 53112
2010-10-06 20:24:13 +00:00
Tiago Rezende Campos Falcao c3e3585e83 Optimized Linear Focus Chain
Before, the focus_cycle try pass the focus to next, and try again if
need loop the objects. Now, the focus cycle return possible next
object and if is necessary loop or not to focus this returned object.

SVN revision: 53111
2010-10-06 20:24:09 +00:00