Commit Graph

97 Commits

Author SHA1 Message Date
Cedric BAIL de165727bb elementary: improve doc.
Patch by Jérôme Pinot <ngc891@gmail.com>.

- #link on the beginning of a new line does give ugly output:
http://ngc891.blogdns.net/pub/projects/debug/doxygen-formating-eww.png
- some typos
- some missing @c
- in elm_web, convert remaining @li parameter lists to @param
- minor random fixes


SVN revision: 71486
2012-05-29 03:09:06 +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
Leif Middelschulte 40e93fac34 Fix possible segv in smart_del callback.
Patch by glima

SVN revision: 71373
2012-05-23 21:56:44 +00:00
WooHyun Jung 68555430a3 elementary/elm_layout : Sync with old elm_layout. elm_widget_sub_object_add
should be called prior to edje_object_part_swallow. This is because
evas-callback function(about EVAS_CALLBACK_CHANGED_SIZE_HINTS) which is
registered by _smart_sub_object_add should be called after the one
registered by edje_object_part_swallow.


SVN revision: 70985
2012-05-14 06:13:47 +00:00
Cedric BAIL a666de6518 elementary: reload theme when it change on disk.
NOTE: This is not very robust yet. But that's not related to this patch.
You can see the issue when switching between two different theme in
elementary_config. At some point elementary_test start to loose information.


SVN revision: 70895
2012-05-09 10:46:14 +00:00
Gustavo Lima Chaves 57b7d52466 [Elm] Helper on resize_object_add()
SVN revision: 70712
2012-05-03 22:41:47 +00:00
Gustavo Lima Chaves f4e29b50ee [Elm] 2nd specialization of Elm's new base smart
class: elm_layout.
This will be, besides the codebase for the elm_layout widget, a common
base for all other widgets which got an edje layout as a basis for
their decoration.

From now on, all elm_layout_* namespaced fuctions will function
on objects inheriting from this base:

- elm_layout_content_set
- elm_layout_content_get
- elm_layout_content_unset
- elm_layout_text_set
- elm_layout_text_get

(recovered from deprecated header -> not anymore)

- elm_layout_sizing_eval
- elm_layout_data_get
- elm_layout_edje_get

- elm_layout_file_set
- elm_layout_theme_set

- elm_layout_box_append
- elm_layout_box_prepend
- elm_layout_box_insert_before
- elm_layout_box_insert_at
- elm_layout_box_remove
- elm_layout_box_remove_all
- elm_layout_table_pack
- elm_layout_table_unpack
- elm_layout_table_clear

Three missing functions on layouts were added, then:

- elm_layout_signal_emit
- elm_layout_signal_callback_add
- elm_layout_signal_callback_del

Naturally, the elm_object_ namespaced counterparts of those will also
function (they will be deprecated on the future).



SVN revision: 70708
2012-05-03 22:41:26 +00:00
WooHyun Jung f83917a420 elementar/focus : New feature - focus movement in all direction. By
using elm_widget_focus_direction_go function, focus will be moved from
the current focused object to the near object in one direction.
Direction can be set by degree(for easy usability). Degree changes
clockwise, i.e. 0 means UP, 90 means RIGHT, 180 means DOWN, and 270
means LEFT. You can select any direction by changing this degree.


SVN revision: 70681
2012-05-03 03:02:54 +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 ca072667db [Elm] Helper on resize_object_add()
SVN revision: 70635
2012-05-02 16:58:31 +00:00
Gustavo Lima Chaves e6ab50005c [Elm] 2nd specialization of Elm's new base smart
class: elm_layout.
This will be, besides the codebase for the elm_layout widget, a common
base for all other widgets which got an edje layout as a basis for
their decoration.

From now on, all elm_layout_* namespaced fuctions will function
on objects inheriting from this base:

- elm_layout_content_set
- elm_layout_content_get
- elm_layout_content_unset
- elm_layout_text_set
- elm_layout_text_get

(recovered from deprecated header -> not anymore)

- elm_layout_sizing_eval
- elm_layout_data_get
- elm_layout_edje_get

- elm_layout_file_set
- elm_layout_theme_set

- elm_layout_box_append
- elm_layout_box_prepend
- elm_layout_box_insert_before
- elm_layout_box_insert_at
- elm_layout_box_remove
- elm_layout_box_remove_all
- elm_layout_table_pack
- elm_layout_table_unpack
- elm_layout_table_clear

Three missing functions on layouts were added, then:

- elm_layout_signal_emit
- elm_layout_signal_callback_add
- elm_layout_signal_callback_del

Naturally, the elm_object_ namespaced counterparts of those will also
function (they will be deprecated on the future).



SVN revision: 70631
2012-05-02 16:58:10 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
Daniel Zaoui 2af393e43b elm layout: Fixed handling of NULL in part_content_set.
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 69918
2012-04-04 09:04:39 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Jiyoun Park d207667980 remove deprecated function related with elm_layout_XXX
SVN revision: 69083
2012-03-09 09:28:04 +00:00
Gustavo Lima Chaves 1b6ec78896 [Elm] More future-proofness on elm layout: returning values on methods.
There were others with boolean returns already, let's planify that.



SVN revision: 68848
2012-03-06 20:25:29 +00:00
Sanjeev BA 05780e9b14 Deprecate elm_object_cursor_engine_only_set/get.
Signed-off-by: Sanjeev BA <as2902.b@samsung.com>

SVN revision: 68683
2012-03-05 09:15:04 +00:00
Hyoyoung Chang d3c51a78f5 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_layout - set default style to new cursor obj
Date: Thu, 12 Jan 2012 17:29:39 +0900

Dear all.

I made a small patch to add default style to new cursor obj.
Normally it's not useful but sometimes _part_cursor_part_apply() is needed.
Also duplicated layout setting is removed in cursor testing at elementary_test.

Thanks.


SVN revision: 67189
2012-01-13 23:43:17 +00:00
Bruno Dilly 8c83961e72 Elementary Layout: Fix cursor set on parts
New part cursors was leaking, not added to cursor parts list.


SVN revision: 64618
2011-11-01 21:13:39 +00:00
Daniel Juyung Seo bafe9c7426 elm: Use appropriate add/del_full for evas event callbacks.
SVN revision: 64536
2011-10-31 00:13:32 +00:00
ChunEon Park dc180b67ce elementary/layout - deprecated elm_layout_content_set/get_unset
SVN revision: 64403
2011-10-26 00:46:16 +00:00
Gustavo Lima Chaves 31a3e6180a [elementary] All docs to elm's header, as Raster wishes.
Discomfitor, now it's time to split the header and/or write another novel.



SVN revision: 62315
2011-08-10 21:03:21 +00:00
Rafael Antognolli d4e4106f47 elementary/layout - adding description and moving function reference docs.
SVN revision: 61538
2011-07-20 20:58:24 +00:00
ChunEon Park 73887edbf8 elementary/elm_layout - trivial changes.
don't need to pass the theme path. 



SVN revision: 61519
2011-07-20 08:44:32 +00:00
ChunEon Park fd5c5be393 elementary/layout - added theme changed hook
Because the user can use their' own edj objs and call the signals for the edj objs, 
They have a responsibility to reset the status of the edj objs when layout theme is changed. 

This "theme,changed" signal provides to user a chance to reset (signal-emit) again. 




SVN revision: 61518
2011-07-20 08:36:40 +00:00
Daniel Juyung Seo df8c860de8 elm layout: Fixed theme hook bug.
SVN revision: 61103
2011-07-07 04:48:49 +00:00
Tom Hacohen 4b0af66c91 Elementary: Rename elm_object_label_* -> elm_object_text_part_*.
This name is better as it also applies for entries, and not just
for labels.

SVN revision: 60975
2011-07-04 09:18:16 +00:00
Tom Hacohen 43c18d35b5 Elm layout: add the elm_object_text_set/get hooks.
deprecate: elm_layout_label_set/get

SVN revision: 60807
2011-06-29 09:30:56 +00:00
Daniel Juyung Seo d770d6f74d Elementary elm_layout.c: Removed unnecessary lines. Sorry I don't like
you :)


SVN revision: 59373
2011-05-14 03:24:46 +00:00
Daniel Juyung Seo 72f19bf5c1 Elementary layout: Removed 'const' from elm_layout_content_get() API.
This API callers can handle layout content. ex)
evas_object_del(content);


SVN revision: 59035
2011-04-29 12:33:36 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
ChunEon Park b880342a74 elementary - entry, genlist, gengrid, image, icon, hover, frame, diskselector, index, layout, label, conform, flip, flipselector - removed white spaces
SVN revision: 58252
2011-04-01 11:32:33 +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
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
Nicolas Aguirre 7a26737343 Add more info in the doc about the return value.
SVN revision: 56227
2011-01-19 19:25:49 +00:00
Nicolas Aguirre a865fab5ad Add elm_layout_data_get function to retrieve data associated to the underlying edje object.
Data that comes from block like data.item: "key" "value" in the EDC.



SVN revision: 56225
2011-01-19 18:28:01 +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
Bruno Dilly 7db634e8f9 Fix missing ingroups on elm_layout docs
SVN revision: 54165
2010-11-05 00:47:19 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Iván Briano 7801aade62 And as Bruno Dilly pointed out, we already have hooks for these things, so better use them.
SVN revision: 53963
2010-10-28 15:54:35 +00:00
Iván Briano 16cead1e35 Wrap the signal functions in the layout and use them in the little macros for setting icons
SVN revision: 53958
2010-10-28 13:54:57 +00:00
Iván Briano 5074503bba content_get for layout and some macros to make it easier to set
things in common layouts


SVN revision: 53929
2010-10-27 17:41:25 +00:00
Iván Briano 51856aac90 Adding text_set/get to elm_layout.
SVN revision: 53925
2010-10-27 16:58:35 +00:00
Tiago Rezende Campos Falcao 15d0643b10 Getters should received const pointers
Only two getters continue without const:
* elm_theme_get
Need name review, or comportament.

* elm_toolbar_item_menu_get
Need comportament review, but will be fixed by bdilly.

SVN revision: 53874
2010-10-25 14:34:22 +00:00
Tiago Rezende Campos Falcao 4672a51b0c Remove tests == 0 and != 0
SVN revision: 53787
2010-10-22 21:41:27 +00:00
Tiago Rezende Campos Falcao bd97572adf Alloc the data before registry it as callback data.
SVN revision: 53420
2010-10-14 17:57:58 +00:00
Gustavo Sverzut Barbieri 5fdee26795 box & table are handled in elm_layout.
so far they're just managing the lifetime of objects, same as swallow.



SVN revision: 53385
2010-10-14 02:36:37 +00:00