Commit Graph

588 Commits

Author SHA1 Message Date
Bruno Dilly 17cfad1c80 Ooops.. fix homogenous / homogeneous inconsistency on elm_table
Actually it would be nice to fix these in the entire API.
Most widgets use homogenous, elm_genlist uses homogeneous,
that looks to be the name adopted on evas.



SVN revision: 54634
2010-11-17 16:30:05 +00:00
Bruno Dilly 5845793808 Add getters for anchorblock and anchorview hover style
SVN revision: 54475
2010-11-11 19:47:56 +00:00
Bruno Dilly bad1264722 Emit clicked on elm_bubble
Closes ticket #441


SVN revision: 54467
2010-11-11 18:04:45 +00:00
Bruno Dilly ed6cd22ddf Fix bubble corner and theme hook issues
SVN revision: 54466
2010-11-11 18:04:08 +00:00
Tiago Rezende Campos Falcao 7113956012 Transit Effect: Effect Translation whith variance
Effect Translation whith variance, not whith absolute value

Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54428
2010-11-10 18:06:17 +00:00
Tiago Rezende Campos Falcao 7e907f08ce Elm_Transit: changing architecture
Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54422
2010-11-10 18:06:00 +00:00
Tiago Rezende Campos Falcao a73df5636b Elm_Transit: missing getters
elm_transit_tween_mode_get
elm_transit_repeat_times_get
elm_transit_auto_reverse_get

Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54419
2010-11-10 18:05:51 +00:00
Tiago Rezende Campos Falcao 1d32e374c4 Elm_Transit: better organization of the code
static functions in the top, functions in order of Elementary.h.in

Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54418
2010-11-10 18:05:48 +00:00
Tiago Rezende Campos Falcao bd9873ef22 Elm_Transit: Following the style of efl
ELM_FX is now ELM_TRANSIT_EFFECT

Curve style like in edje

Changing names:
CURVE_IN -> TWEEN_DECELERATE
CURVE_OUT -> TWEEN_ACCELERATE
CURVE_IN_OUT -> TWEEN_SINUSOIDAL
Curve_Style -> Tween_Mode

Now, the calculation is done like in edje.

Changing function of type function() to function(void)
Elm_Transit: Changing calloc(1, to ELM_NEW

Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54417
2010-11-10 18:05:45 +00:00
Tiago Rezende Campos Falcao e691fe9d16 Fix elm_transit_{auto_reverse_set, repeat_times_set}
Now, if you set a negative number to repeat, it will repeat infinite
times.

Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54416
2010-11-10 18:05:42 +00:00
Bruno Dilly c1b147b3c7 Add getter for elm_radio
SVN revision: 54408
2010-11-10 14:10:08 +00:00
Bruno Dilly 0ddded2f0e Rename elm_flippicker to elm_flipselector
"Do you come from the land down under?
Where women glow and men plunder?
Can't you hear, can't you hear the thunder?
You better run, you better take cover."
  - Men at Work

commit msg suggested by glima  =D
%hua


SVN revision: 54407
2010-11-10 13:43:34 +00:00
Bruno Dilly 741d4b8878 Rename elm_diskpicker to elm_diskselector
Men at work. Sorry for the inconvenience.


SVN revision: 54406
2010-11-10 13:28:32 +00:00
Bruno Dilly 98ad22406b Rename elm_colorpicker to elm_colorselector
Suggested by k-s as part of our
"Beautiful, Consistent ELM API" effort.

colorpicker, diskpicker and flippicker should follow
fileselector name.


SVN revision: 54405
2010-11-10 13:14:50 +00:00
Bruno Dilly 3f8dbd2eb6 Add missing getters to elm_table
For padding and homogenous



SVN revision: 54399
2010-11-10 11:36:58 +00:00
Bruno Dilly 715dbba805 This small patch allows to get a smart callback when the scrollers in an
elm_list or in an elm_genlist fire the edge,{top,bottom,left,right}
signals, backporting them to the list object.

The new smart callbacks called are:
 · "scroll,edge,top" - the list is scrolled until the top edge
 · "scroll,edge,bottom" - the list is scrolled until the bottom edge
 · "scroll,edge,left" - the list is scrolled until the left edge
 · "scroll,edge,right" - the list is scrolled until the right edge

SVN revision: 3



SVN revision: 54393
2010-11-10 02:48:59 +00:00
Bruno Dilly 37a717a578 Change diskpicker items functions names
elm_diskpicker_item_prev/next ->
elm_diskpicker_item_prev_get/next_get

elm_diskpicker_item_selected_set(it) ->
elm_diskpicker_item_selected_set(it, bool selected)

elm_diskpicker_item_selected_get(obj) ->
elm_diskpicker_selected_item_get(obj)

Added bool elm_diskpicker_item_selected_get(it)
      item elm_diskpicker_first_item_get
      item elm_diskpicker_last_item_get



SVN revision: 54379
2010-11-09 20:27:32 +00:00
Bruno Dilly 9d43ab9489 Change flippicker items functions names
elm_flippicker_item_prev/next -> elm_flippicker_item_prev_get/next_get
elm_flippicker_item_selected_set(it) ->
   elm_flippicker_item_selected_set(it, bool selected)

Added bool elm_flippicker_item_selected_get(it)



SVN revision: 54377
2010-11-09 20:26:47 +00:00
Bruno Dilly 681443ff0a Remove const from flippicker item functions return
SVN revision: 54374
2010-11-09 20:25:32 +00:00
Carsten Haitzler ba1745c1db get rid of carousel - empty junk we dont need.
SVN revision: 54354
2010-11-09 05:00:49 +00:00
Carsten Haitzler e7b5941a4b patch from ChunEon Park <chuneon.park@samsung.com> with formatting
fixes, compile fixes etc. etc. as well as a general cleanup of header
and location of typedefs and so on.



SVN revision: 54353
2010-11-09 04:58:54 +00:00
Bruno Dilly 998d6de755 Adding functions to toolbar to set icon lookup order
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54346
2010-11-08 19:58:46 +00:00
Bruno Dilly 69159eff55 Include toolbar_item_state_del on Elm.h
SVN revision: 54334
2010-11-08 16:44:31 +00:00
Bruno Dilly a737b92bd3 Adding some missing const on getters on elm
SVN revision: 54333
2010-11-08 16:39:07 +00:00
Carsten Haitzler a2afe41e34 fmting
SVN revision: 54285
2010-11-08 04:39:56 +00:00
Carsten Haitzler 84d429884f allo icons to be orphaned
SVN revision: 54218
2010-11-06 07:05:00 +00:00
Bruno Dilly 8e67572fad Fixing comments in gengrid.
By: Otavio Pontes <otavio@profusion.mobi



SVN revision: 54191
2010-11-05 18:25:04 +00:00
Bruno Dilly 8538a6fe3f Adding a no select mode to toolbar.
In no select mode, toolbar items don't stay selected after click.


SVN revision: 54189
2010-11-05 18:23:15 +00:00
Carsten Haitzler 5400a9a7f1 elm theme can be copied, referenced and theme flush tries to ONLY
flush a specific theme if told so (and only those widgets and their
children).



SVN revision: 54169
2010-11-05 08:37:31 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Bruno Dilly b8200447ef Add bounce getter for remaining widgets
SVN revision: 54163
2010-11-05 00:45:59 +00:00
Bruno Dilly 77fbb50118 Add bounce setter/getter to elm_photocam
By: Li Suxia <suxia.li@samsung.com>



SVN revision: 54146
2010-11-04 12:19:00 +00:00
Bruno Dilly 81b68b08a9 Remove elm_notepad
Notepad had a big issue: users couldn't access the entry, so notepad
was something near to an useless widget.

We needed to choose between wrap all entry functions or add these file
save / load and autosave features to entries.

As discussed on the emails list, we decided to go with the second
option, so we won't have an extra widget with lots of wrap functions.

Notepad was internally just an elm_entry with a scroll, so using
a scrolled entry with a file set will do the job.

I've added a test called Entry Notepad that looks like the removed
Notepad test. But we will see the improvements - you can clear the entry
or whatever you want, because the entry is the object you are creating.

If you were using elm_notepad before, just s/notepad/scrolled_entry
and almost everything should work fine. Another change was the function
file_save(obj, file, format), is now just file_save(obj), and the
file and format used are defined by file_set().

At last, some getters were added.



SVN revision: 54145
2010-11-04 11:56:15 +00:00
Otavio Pontes eff9c70829 Calling callback when grid has changed.
Patch by: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54130
2010-11-03 18:31:31 +00:00
Otavio Pontes aec1fcd220 Calling callback 'unrealized' when an item is unrealized.
Patch by: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54129
2010-11-03 18:30:48 +00:00
Gustavo Lima Chaves e5ddc241f4 New elm config app's option: engine setting.
SVN revision: 54082
2010-11-01 21:10:14 +00:00
Bruno Dilly 1712bf1148 Add functions to create states for elm_toolbar_items.
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54009
2010-10-29 18:57:55 +00:00
Bruno Dilly 1d23d0ae54 Perform an animation when changing label/icon from a toolbar item.
When functions to change icon or labels are called a signal is sent to
edje that can perform an animation.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54005
2010-10-29 18:40:59 +00:00
Gustavo Lima Chaves 5113b69035 Elementary profiles managing revamped. Most importantly:
Changes in Elementary Config application's UI now *persist*.
Not doing right now, but should be simple:
- profile deletion
- profile addition



SVN revision: 53977
2010-10-28 20:57:44 +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
Tiago Rezende Campos Falcao ca382f2316 Explicit the correct return value type
SVN revision: 53957
2010-10-28 13:38:59 +00:00
Carsten Haitzler ef82b1451c 1. need calls return runtime failure if elm doesnt have the feature.
2. elm config dont use desktops if no efreet.



SVN revision: 53945
2010-10-28 04:13:09 +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
Tiago Rezende Campos Falcao 9bd54d59d6 Elm_Transit
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Transit is designed to set the various effects for the Evas_Object
such like translation, rotation, etc. For using Effects, Create
transit and insert effects which are interesting.

Once effects are inserted into transit, transit will manage those
effects (ex: deleting).

SVN revision: 53927
2010-10-27 17:02:02 +00:00
Tiago Rezende Campos Falcao 3a6369174d Revert. Remove INVALID enum option
SVN revision: 53926
2010-10-27 17:01:58 +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 dd8f59fc6f Setter isn't const
SVN revision: 53922
2010-10-27 14:38:51 +00:00
Tiago Rezende Campos Falcao 972ab9abb0 Add icon unsetter to elm_fileselector_entry
SVN revision: 53921
2010-10-27 14:38:48 +00:00
Tiago Rezende Campos Falcao 352893a5af Add missing getters to elm_button
SVN revision: 53920
2010-10-27 14:38:45 +00:00
Tiago Rezende Campos Falcao db336b896e Including EAPI method to .h
SVN revision: 53919
2010-10-27 14:38:43 +00:00
Tiago Rezende Campos Falcao 116cd3c6dc Setters/Getters fix 1.
Setters can't receive const pointers.
All setter need corresponding getter.

In this patch, i adjust getter in: Bg, Box, Icon, Image, Win and Main.

SVN revision: 53917
2010-10-27 14:38:37 +00:00
Bruno Dilly a544658e28 Add toolbar item data getter / setter
Useful for bindings


SVN revision: 53898
2010-10-26 13:15:32 +00:00
Bruno Dilly 473d8bfc3f Add a new shrink mode to elm_toolbar: SHRINK_HIDE
And fix the docs related to shrink mode:
SHRINK_HIDE -> hide excess items
SHRINK_NONE -> set toolbar minimun size to fit all the items



SVN revision: 53895
2010-10-26 10:30:45 +00:00
Bruno Dilly 01d04e55e0 Change toolbar API for consistency with other widgets
BIG FAT WARNING: lots of changes on toolbar API

Trying to get a lib with easy to use API, I'm changing toolbar API
to be consistent with genlist / gengrid widgets and to be more concise.

Functions select_next, select_first, select_last, unselect, unselect_all
get all are gone.
You can do this calling a combination of the others functions.

This commit changes toolbar to use inlist, and previous items can be
get.

So now we have:
Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *it)
Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *it)
Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item)
void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected)
Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj)

With these functions you can iterate over the items list getting /
selecting the item you need.

Another big change is that elm_toolbar_item_add is gone. Now you can
insert items in the position you want, with the functions append,
prepend, insert after, insert before (a relative item).

If you don't like any changes or have a case of use for something
that should be different, please ping me.

At last, includes ELM_TOOLBAR_ITEM_CHECK_OR_RETURN on EAPI that
receives items.



SVN revision: 53894
2010-10-26 10:29:24 +00:00
Gustavo Lima Chaves 1a0fae3aa9 Little changes at elm profile functios + some new free()-ing helpers.
SVN revision: 53878
2010-10-25 17:36:07 +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
Gustavo Lima Chaves b02dd546a4 Profile selection at Elementary config app.
New heading for persistent profile changes/editions.



SVN revision: 53868
2010-10-25 13:08:19 +00:00
Tiago Rezende Campos Falcao 36c799be6a Including missing EAPI methods in Elementary.h
SVN revision: 53734
2010-10-21 18:58:46 +00:00
Tiago Rezende Campos Falcao ece2114120 Review type checkers in main and widget
SVN revision: 53732
2010-10-21 18:58:40 +00:00
김지훈 53e6cfcc75 patch from: 김지훈 <jihoon48.kim@samsung.com>
Subject: elementary patch

In this elementary patch. type casting is used in elm_colorpicker.

In addition, Elementary.h.in is modified for indentation.



SVN revision: 53708
2010-10-21 08:01:52 +00:00
Carsten Haitzler e05bdd09d7 aaah fix non quicklaunch mode too.
SVN revision: 53703
2010-10-21 04:05:35 +00:00
Leandro Pereira 5174660ea7 [Elementary] Use elm_icon_standard_set() on Elm_Menu items.
This breaks the API *and* the ABI, but this should be consistent with
Elm_Toolbar.  We'll probably need a tweak here and there, but I really
think Elm_Menu should be rewritten.

SVN revision: 53694
2010-10-20 21:30:00 +00:00
Gustavo Lima Chaves d197de1f28 Missing const here.
SVN revision: 53681
2010-10-20 16:51:26 +00:00
Leandro Pereira ed008d269c [Elementary] Elm_Icon cleanups.
SVN revision: 53675
2010-10-20 15:35:45 +00:00
Carsten Haitzler 35e9272f4d quicklaunch works again. yes - it's semi-broken. but it works.
SVN revision: 53669
2010-10-20 14:12:17 +00:00
Tiago Rezende Campos Falcao b8ac8c0e80 Added focus_direction_go entry in API.
Also, exported the focus_cycle.

SVN revision: 53659
2010-10-20 12:38:27 +00:00
Gustavo Lima Chaves a8ac37368d New widget: Hoverlist.
This is one more widget whose idea came from Samsung Electronics.  Its
first name was "context popup". There was no common agreement on a
name for it, so... Trator mode, for now (using hoversel as a pattern).
If you have a better name suggestion for it, just change it -- but
soon, due to releasing plans (in a mailbox near in a jiffy).

While for hoversels you populate slots with thingies to later choose
one of them, which will hover up for you, with hoverlists you get a
single hovering list. It will smartly place this -- unique -- list
onto a fitting place inside its parent widget view. Just call
evas_object_show() on it, anytime you want (like for notifies).



SVN revision: 53644
2010-10-19 20:21:53 +00:00
Gustavo Lima Chaves 770b0df365 New hover direction: "smart".
This injects some inteligence into hovers which can then be shared
between other composed hover widgets. Also introducing four new
swallow slots one can place content at: the diagonal corners. Just
gotta fill all the styles with those, but no time right now.



SVN revision: 53642
2010-10-19 20:20:28 +00:00
Gustavo Lima Chaves 442cb3b9da Introducing item_disabled_set() for elm_lists, too.
I'm not implementing the default list themes WRT to it right now,
though, I get back to it soon (just implementing it for a new widget).



SVN revision: 53641
2010-10-19 20:19:57 +00:00
Gustavo Lima Chaves 7d4f42fe00 New list layout: horizontal.
Now one can set lists to dispose its items horizontally, too.
elm_list_horizontal_mode_set(), whose name was bogus and would
conflict with the new methods, got renamed to elm_mode_set(), along
with the getters.

This is coming along to help a widget using lists which has a
horizontal mode. The default theme for horizontal items is kinda ugly
for default lists, but one can always improve it :) (in a hurry
now).

Also, I'm introducing a new mode for Elementary lists: expand.



SVN revision: 53640
2010-10-19 20:19:12 +00:00
Tiago Rezende Campos Falcao 6e9551b087 Review Elm_fileselector_button.
Removed the selected_{get,set} because is the same of path_{get,set}.

Now it uses elm_button like hoversel.

SVN revision: 53622
2010-10-19 14:17:14 +00:00
Bruno Dilly 4c76631b4b Elementary Magnetslider, a new switcher with "magnet" property
This is one more widget whose idea come from Samsung set of
contributions to Elementary.



SVN revision: 53503
2010-10-17 01:44:57 +00:00
Iván Briano 1e773cefcb These functions don't exist anymore.
SVN revision: 53449
2010-10-15 13:19:50 +00:00
Leandro Pereira c563ef2370 [Elementary] Make it possible to lookup icons from Freedesktop in Elm_Icon.
With these changes, Elm_Icon will also look up icons from the chosen
Freedesktop (fd.o) icon theme.  Since this might incur in some performance
penalties if you're sure only theme icons will be used, icon lookup order
may be specified with the elm_icon_order_lookup_set() function call; using
the lookup parameter as follows:

 - ELM_ICON_ORDER_FDO_THEME (default) will look up first fd.o, then the theme;
 - ELM_ICON_ORDER_THEME_FDO will look up first the theme, then fd.o;
 - ELM_ICON_ORDER_FDO will look up only fd.o; and
 - ELM_ICON_ORDER_THEME (old behaviour) will lookup only from the theme.

Elm_Icon will also try to use a different resolution image if the widget is
resized and the image source is fd.o.

fd.o support requires Efreet, but it should work nicely (falling back to the
old behaviour) if it isn't available.

SVN revision: 53433
2010-10-14 22:21:43 +00:00
Leandro Pereira 8c518f2dae [Elementary] Add getter for the icon string.
SVN revision: 53432
2010-10-14 22:21:40 +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
Christopher Michael a1128c6d91 Make elm build again (remove duplicated function declarations which
had different params) ... come on people, at least build your code
before committing



SVN revision: 53422
2010-10-14 18:18:34 +00:00
Tiago Rezende Campos Falcao acd34bbc82 Adding new toolbar api to correct .h
Acidx maybe added the new API in Elementary.h, but this should be done
in Elementary.h.in

SVN revision: 53419
2010-10-14 17:57:55 +00:00
Leandro Pereira 5c10641510 [Elementary] Use themeable icons in Elm_Toolbar.
This allows having themeable icons for toolbar items -- inclusing lower
resolution ones for the More menu button. Changes to Elm_Menu_Item in the
same spirit will follow.

SVN revision: 53407
2010-10-14 15:27:31 +00:00
Leandro Pereira 00c778f00b [Elementary] Implement priority in Elm_Toolbar.
Toolbars can now be scrollable, non-scrollable, or hide icons selectively
according to a priority.  This changed the API slightly, thus

   elm_toolbar_scrollable_set(obj, 1)

Should be

   elm_toolbar_mode_expand_set(obj, ELM_TOOLBAR_EXPAND_SCROLL)

Values for non-scrollable and scrollable remain the same, so if constants
aren't being used, just the function name should be changed.

The new mode, ELM_TOOLBAR_EXPAND_MENU, will create a menu of items when the
space isn't large enough to hold all the items.  Which items will be kept on
the toolbar or which items will be added to the menu is controlled by the
priority of each item: higher ones will be kept if possible, lower ones will
be tratored on the first opportunity.

SVN revision: 53406
2010-10-14 15:27:25 +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
Gustavo Sverzut Barbieri cb2ebb9303 add elm_fileselector_entry
works, but focus chain is not giving focus to button.



SVN revision: 53384
2010-10-14 01:18:14 +00:00
Bruno Dilly b02c54321a Ignore colorpreview.edj and fix colorpicker signals documentation
SVN revision: 53367
2010-10-13 17:38:35 +00:00
Gustavo Sverzut Barbieri 5c03fe8b74 export missing toolbar_item method
SVN revision: 53317
2010-10-12 22:23:00 +00:00
Christopher Michael 6917435d00 Some colorpicker cleanups:
Don't need Ecore.h here, Elementary.h already includes it
  Fix formatting.
  Use #define for signal name rather than const char
  Initialize integer's with a value.
  Add 'changed' signal to Elementary.h so people know it emits changed
also.



SVN revision: 53314
2010-10-12 21:10:12 +00:00
Bruno Dilly 34fd688815 Elementary Colorpicker, widget designed to select a color.
This is one more widget whose idea come from Samsung set of
contributions to Elementary.



SVN revision: 53313
2010-10-12 20:38:00 +00:00
Christopher Michael 6a3bfc1a6a Add 2 new options for bg image: Center & Stretch.
Add a new Test for BG Options.
Add a new 'bg_overlay' in objects/test.edc for testing bg overlay stuff.

NB: There is an issue here that I cannot seem to get straight (perhaps
pebkac, not sure)...but basically it seems that showing/hiding the
overlay causes the other swallows of the edc to get recalc'd and makes
the 'image' not work well w/ Center.



SVN revision: 53307
2010-10-12 14:38:46 +00:00
Christopher Michael 4595005550 Better name(s) for the bg option enum.
SVN revision: 53302
2010-10-12 10:30:32 +00:00
Christopher Michael c178a21aca Add ability for elm_bg to have a color rectangle.
Add ability for elm_bg to have 'overlays' such as animated fog, etc.
Normalize elm_bg internal object names:
  Rename wd->img to the more generic wd->base.
Remove erroneous evas_object_resize(wd->base, 0, 0) (not needed).
Fix typo in doxy comment.
Add doxy for new functions (color_set, overlay_set)
Add swallow part in edc for bg color rectangle.
Fix overlay swallow part offsets.



SVN revision: 53299
2010-10-12 08:46:17 +00:00
Christopher Michael 042a9432d3 Add option for elm_bg to be Tiled, Scaled (more options to come).
SVN revision: 53290
2010-10-12 04:12:48 +00:00
Gustavo Sverzut Barbieri ada8ac0f82 gengrid more genlist-like.
use inlist so we don't have to find stuff to operate on.

export more methods, like elm_gengrid_item_next_get(),
elm_gengrid_item_prev_get() and elm_gengrid_first_item_get() and elm_gengrid_last_item_get()... so we don't expose elm_gengrid_items_get().

People using the old elm_gengrid_items_get() should move to
elm_gengrid_first_item_get() and then next variant.



SVN revision: 53248
2010-10-10 23:54:11 +00:00
Rafael Fonseca 0090ce210c Add more insertion types to Gengrid.
Gengrid now has modes append, prepend, insert_before and insert_after. To see
them working check the Gengrid 2 test on elementary_test.



SVN revision: 53242
2010-10-10 21:05:23 +00:00
Gustavo Sverzut Barbieri 3597572c8c elm_gengrid_item_update()
also missing are elm_gengrid_item_prepend(),
elm_gengrid_item_insert_before() and elm_gengrid_item_insert_after()!
I can't do them right now, so any help is appreciated.



SVN revision: 53236
2010-10-09 19:07:42 +00:00
Gustavo Sverzut Barbieri 17dfe16715 document new style.
SVN revision: 53224
2010-10-09 01:34:01 +00:00
Gustavo Sverzut Barbieri 3bdda23c70 ethumb reload function.
SVN revision: 53215
2010-10-08 22:14:50 +00:00
Gustavo Sverzut Barbieri 21f2f1c7c5 genlist's height-for-width mode is in.
I'll commit this to bring some attention to the topic, it is harmless
for people that do not use it, but for users it may be slow on list
resize.



SVN revision: 53160
2010-10-07 19:57:20 +00:00
Bruno Dilly eeeb5214a1 Add yet another kind of list widget to elm - diskpicker
This is one more widget whose idea come from Samsung set of
contributions to Elementary.



SVN revision: 53150
2010-10-07 18:44:43 +00:00
Iván Briano 4c8980e47e Filter input text in entries.
Users can set filters of their own (text only, no format now) or use the
predefined ones.


SVN revision: 53141
2010-10-07 12:50:00 +00:00
서주영 49b72fa771 From: 서주영 <juyung.seo@samsung.com>
Subject: [EFL] Small Patch for Genlist : elm_genlist_item_expanded_depth_get() API

I added one API to genlist : elm_genlist_item_expanded_depth_get(). This is 
used to get an item's expanded depth. I tested this with latest SVN revision
53090.

Can you review this patch and apply this to upstream?
 


SVN revision: 53134
2010-10-07 06:45:36 +00:00
Tiago Rezende Campos Falcao d959e612eb Adding custom chain to focus.
Added set, get, unset, prepend and append (relative or not).

Set - overwrite the custom chain
Unset - Delete the custom chain
Get- Return the custom chain
Append - append after the relative object or in the end
Prepend - prepend before the relative object or in the start

SVN revision: 53115
2010-10-06 20:24:22 +00:00
Gustavo Lima Chaves a3ba92f0dc Elementary Flippicker, a fresh new widget.
This is one more widget whose idea come from Samsung set of
contributions to Elementary.

There is a known bug involving embryo + string functions, which will,
if in "stress", appear at the labels of the widget. Not time to attack
it right now, though.



SVN revision: 53109
2010-10-06 18:40:04 +00:00
Tiago Rezende Campos Falcao 802673163b elm_list_item_bring_in
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

function bring_in in list, like genlist and gengrid

SVN revision: 53077
2010-10-05 19:10:06 +00:00
Tiago Rezende Campos Falcao 2bd4bbaa57 Gendrid with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up, Down, Left and Right to navigate without multi selection.
Hold shift + up/down/left/right to multi select.

SVN revision: 53074
2010-10-05 19:09:58 +00:00
Tiago Rezende Campos Falcao a11d03a921 Adding method to output the elm obj tree in dot.
This Debug search all subobjects from one object and put in file all
sub-tree of elementary objects as dot language in file. After you can
use dot(from graphviz) to generate PNG, SVG,... diagram of objects.

SVN revision: 53035
2010-10-04 18:37:48 +00:00
Iván Briano f752f225b8 And set/get style for highlight as well
SVN revision: 53032
2010-10-04 17:34:35 +00:00
Iván Briano e8ef45befb Focus highlight kinda configurable. More to come when discomfitor feels like implementing it
SVN revision: 53031
2010-10-04 16:55:32 +00:00
Christopher Michael aef7e3d35a Add some missing box functions (padding & align set).
Use Eina_Bool's for evas_object_box functions.



SVN revision: 53006
2010-10-04 05:50:29 +00:00
Nicolas Aguirre 39ef0943b8 Fix typo
SVN revision: 52993
2010-10-03 09:33:13 +00:00
Tiago Rezende Campos Falcao 3b04b52ba4 Adding debug option in elementary.
SVN revision: 52966
2010-10-01 19:03:23 +00:00
Nicolas Aguirre 62772bdb32 Add two apis to limit page size of gengrid's scroller : elm_gengrid_page_relative_set and elm_gengrid_page_size_set.
These functions work exactly as those in elm_scroller.



SVN revision: 52895
2010-09-29 16:59:35 +00:00
Gustavo Lima Chaves eb19982d50 Elm notify: better docs and fitting new API.
SVN revision: 52854
2010-09-28 16:56:34 +00:00
Gustavo Lima Chaves e930af1ad9 New API functions for elm slider.
EAPI void elm_slider_end_set(Evas_Object *obj, Evas_Object *end);

will set a *right* aligned sub-object relative to the slider.

EAPI const Evas_Object *elm_slider_end_get(const Evas_Object *obj);

Getter for that object.

EAPI Evas_Object *elm_slider_end_unset(Evas_Object *obj);

Unparent a previously set end object.

EAPI Evas_Object *elm_slider_icon_unset(Evas_Object *obj);

The same for the icon sub-object.

EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show);
EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj);

Set/get whether the slider should display the augmented knob (indicator) at
mouse drag at all.



SVN revision: 52852
2010-09-28 15:09:19 +00:00
Tiago Rezende Campos Falcao d5b17baf0f Elm Notify timeout are double.
And only start timer when visible.
The previous code don't start the timer if timer was changed from
disabled to one valid value.

SVN revision: 52817
2010-09-27 21:13:45 +00:00
Gustavo Lima Chaves 836b0ea1c0 Elm notify's new signal: "timeout".
Also changing elm_notify_timeout_set()'s behavior: it won't init the
timer itself, unless there was a previous one running.



SVN revision: 52810
2010-09-27 19:52:56 +00:00
Gustavo Sverzut Barbieri 0f90c50f47 allow cursors on edje parts.
yeah, i should do the tooltips one as well, but it's boring so I'll
leave the implementation as the exercise for someone else :-)

and yeah, we should have that inside edje, like a nice description {
cursor: "xterm"; }, but that's not going to happen in Edje 1.0.



SVN revision: 52793
2010-09-27 00:51:16 +00:00
Gustavo Sverzut Barbieri 2a5e3d62c6 const! bad devilhorns...
SVN revision: 52779
2010-09-26 15:28:04 +00:00
Carsten Haitzler 482d1a4ff8 fmting
SVN revision: 52770
2010-09-26 02:55:51 +00:00
Bruno Dilly b7ae7c772a Add cursor engine only usage to elm config
Only use engine cursors by default



SVN revision: 52762
2010-09-25 22:04:51 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
Christopher Michael d5cb2b88f8 Add function to return the children of an elm_box.
SVN revision: 52753
2010-09-25 21:39:29 +00:00
Tiago Rezende Campos Falcao 9d310ab6d2 Removing warnings in elm_tests.
Most of the errors referred to the cast from int to void* in x86_64.
This need conversion to long, as intermediate.

Some calls to elm_widget not exposed API were changed to their similar
at elm_object API.

Elm_Photo never call "drop" smart callback, but i leave the callback
in tests.

And others API methods are included in Elementary.h

Now elementary build with -Wall -Werror in x86_64.

SVN revision: 52691
2010-09-24 14:48:15 +00:00
Carsten Haitzler d81485068a make theme browser in elm config util actually work. add api's needed.
it's simple. only allows 1 level of theme. would need an advanced
dialog to allow:

theme1:theme2:theme3:theme4... etc.

also no browsing for themes - just whats instaleld n system and user
dirs atm.



SVN revision: 52667
2010-09-24 05:11:33 +00:00
Nicolas Aguirre ae44befb75 Implement elm_gengrid_item_show and elm_gengrid_item_bring.
These two functions mimic what is already done in gengrid object.
* elm_gengrid_item_show : scroll immediatly to the item
* elm_gengrid_item_bring : scroll with an animation to the item



SVN revision: 52620
2010-09-23 06:33:50 +00:00
Leandro Pereira 51f9a38521 [Elementary] Implement get/unset for icon/end properties of scrolled_entry.
(Suggestion by glima)


SVN revision: 52603
2010-09-22 19:15:38 +00:00
Leandro Pereira 8c7e3016e1 [Elementary] Add icon/end objects to the scrolled entry.
SVN revision: 52602
2010-09-22 18:25:35 +00:00
Otávio Pontes 498de7e94d From: Otávio Pontes <otavio@profusion.mobi>
Subject: Re: [E-devel] Transition Layout for elm_box

There are 2 simple problems with the committed code. First, it would
be better to locate the struct _Elm_Box_Transition in elm_box.c
instead of Elementary.h.in, because users should create it with
elm_box_transition_new and changing its contents can be dangerous. And
second, in struct _Transition_Animation_Data, I declared 4 coordinate
variables as int, instead of using Evas_Coords.
I am sending both patches attached.



SVN revision: 52560
2010-09-22 00:33:17 +00:00
Iván Briano 8b390a9665 Creating a transition layout for elm_box.
This layout is used to perform an animation when changing layouts in box

    by Otavio Pontes <otavio@profusion.mobi>



SVN revision: 52542
2010-09-21 14:06:29 +00:00
Iván Briano 6879d7fdad Begins highlight on focused object.
There's still work to do here, particularly in the theme, but it has
something nice and fun to see the code working.
The idea behind this:
Window tracks focused object and sends the highlight object(s) to it. These
are simple edje objects, one on top, one below the focused widget for nice
effects. Widgets can choose to ignore the highlight and this will be sent to
the parent object, if it doesn't ignore it as well.
About the bottom object, it doesn't work now. For the most part, focused
widget will always be a member of some smart object, so stacking won't work
and the desired effect is nowhere to be seen. This will be worked out later.
To be done now:
 - Let the theme for a widget define its own highlight, disabling if needed
 the standard one for those objects.
 - Needed base in code to allow animations when switching focus. All in theme.
 - Properly test all widgets and fix some things that will most likely work
 in weird ways, given the nature of Evas/Edje and how Elementary makes use
 of them.
 - Forgot the rest, stay tuned, test, report, give ideas, plant a tree.

Work started by glima, continued with some refactors by me when he
decided he needed vacations.


SVN revision: 52524
2010-09-20 22:18:58 +00:00
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Bruno Dilly 66e512552f Add support on Elm to customized cursors
Widgets can have customized cursors setting it with elm_object_cursor_set.
Widget's item can use elm_X_item_cursor_set to set a different cursor
for each item.
It will work only if HAVE_ELEMENTARY_X for now, but support for themeable
cursors is planned.



SVN revision: 52382
2010-09-17 18:24:10 +00:00
Gustavo Sverzut Barbieri 53cbc881c8 Missing "const void *data" -> "void *data" in the API
SVN revision: 52373
2010-09-17 16:34:11 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +00:00
Carsten Haitzler 05b5413183 spot check of theme change... panes not working right. generally code
was poor. fixed.



SVN revision: 52276
2010-09-14 23:42:31 +00:00
Brett Nash 9419e382f8 Fix elm_thumb_ethumb_client_get so the application doesn't need a define.
SVN revision: 52237
2010-09-14 07:03:31 +00:00
Gustavo Sverzut Barbieri 494c1a6dca Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.

The public API is basically the same, just the event_info is now NULL
to avoid confusion.

The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.

Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)

Widgets with items that makes sense to have tooltips got extra API:
  * toolbar
  * list
  * gengrid
  * genlist




SVN revision: 52173
2010-09-12 21:05:13 +00:00
Gustavo Sverzut Barbieri a60be2543b Provide some known Evas_Object layers and set tooltip's to its designed value.
The Elm_Object_Layer is a convenience enumeration to help standardize
values so we don't ride into problems in future.

Tooltip has now its own layer, so set it there and avoid newly created
objects being created on top of them (usually they show on top of
everything as they are the last created, thus the topmost on the
default layer)



SVN revision: 52158
2010-09-11 17:01:40 +00:00
Gustavo Sverzut Barbieri 5c61931bd1 Welcome Tooltips.
Tooltips are set using elm_object_tooltip_content_cb_set(), that
returns the desired Evas_Object to use as contents, or using the
helper function elm_object_tooltip_text_set() that uses that
underneath.

The behavior is controlled part on elm_config, theme and user
application. In elm_config one defines the tooltip timeout. The theme
defines the padding around cursor x/y and window border x/y, as well
as the look and feel. Last but not least, the user application may
want to change the tooltip style with elm_object_tooltip_style_set().

Have fun!

This code was initially written by Tiago Falcao and Fabiano Fidencio,
I did some API review and changed some bits.

TODO: elm widget item support, like with toolbar items.




SVN revision: 52150
2010-09-11 00:52:33 +00:00
Gustavo Sverzut Barbieri 9ed8bf92be Use elm_widget_item common base.
This patch changes all Elm_*_Item to use new infrastructure of
Elm_Widget_Item. This patch is basically a find-and-replace, but even
that was a bit tricky since every code had different names for the
same things, particularly for "view" and "widget" the names ranged
from "o"/"obj" to "base"/"o", quite confusing!

It is worth noting that Genlist and variants that adopted its "item
class" style such as Gengrid and Slideshow already provide a "del()"
callback there and I'm keeping them, however we should reconsider if
it is good to remove them and use elm_widget_item_del_cb_set()
instead. The drawback is that onde would have to set it, while the
other is done automatically when you create the object with the
class. Nonetheless this patch already introduces support to use
elm_widget_item_pre_notify_del(), but it will be void in such code as
nobody ever sets it.

Some new setters and getters were introduced to normalize code... and
they would be required once people write python-bindings for them,
like index and carousel.




SVN revision: 52118
2010-09-10 02:05:45 +00:00
Gustavo Sverzut Barbieri 3c71cada93 Add Elm prefix to struct _Menu_Item.
I've noticed this while grepping the code.



SVN revision: 52098
2010-09-09 19:34:56 +00:00
Carsten Haitzler cda4f422b1 ooof flippidy-do-da... working much better.
SVN revision: 51831
2010-09-02 09:58:52 +00:00
Bruno Dilly cf8280b413 Add Elementary Calendar Widget
A calendar is a widget that allows the user to select a date. It has
support to adding marks (holidays and checks by default). The calendar
is displayed month at a time.

Weekdays names and the function used to format month and year to
be displayed can be set, giving more flexibility to this widget.



SVN revision: 51584
2010-08-23 18:45:36 +00:00
Christopher Michael c4ee716181 Add function to turn off autosave.
Add function to call for 'explicit save'
Use PATH_MAX.
Remove some duplicated code in 'load' function.
Update some doxy.



SVN revision: 50794
2010-08-04 01:09:08 +00:00
Jonathan Atton 76a2b5f2cb Elementary:
- we can get the content of a external object
- a signal can be send to the content of a external object

SVN revision: 50731
2010-08-01 17:29:20 +00:00
Daniele Ricci d6e7a21e30 From: Daniele Ricci <daniele.athome@gmail.com>
Subject: [E-devel] [PATCH] Genlist longpress timeout

Hello,
I've made a patch that makes the genlist capable of configuring the
timeout for the longpress event.

The patch compiles but I haven't tested it yet. However it's very
simple, it should work out of the box.
Patch is the output of "svn diff" from revision 49809.



SVN revision: 50558
2010-07-27 23:36:27 +00:00
Jonathan Atton 8050ddfe99 elementary: add elm_panes in edje external
SVN revision: 50520
2010-07-26 20:33:33 +00:00
Bruno Dilly 7808d77502 Add setters and getters to interval for elm spinner and clock
SVN revision: 50392
2010-07-20 21:38:17 +00:00
Luis Felipe Strano Moraes eb03502762 After Sachiel's changes about making the edje_object a sub_object of
elm_thumb widget, all the stuff about alignement and crop are not
used anymore.

By: Rafael "15 years experience" Fonseca <rfonseca@profusion.mobi>



SVN revision: 50388
2010-07-20 18:42:21 +00:00
Davide Andreoli 9dc25a32d2 whops, commit also Elementary.h.in I always forbot about it :(
and add the cube also to test2

SVN revision: 50289
2010-07-16 20:47:21 +00:00
장효영 b32cbb2a3a From: 장효영 <hyoyoung.chang@samsung.com>
I've added elm_label features. That are fontsize, color, background color and
ellipsis (cutting text to fit widget size) features. Most of the property
setting API is wrapping to label tag set.

The rllipsis feature checks part size and cuts character to fit its size.



SVN revision: 50275
2010-07-16 05:50:45 +00:00
Jonathan Atton 2ad9cb0ad5 Elm_Slideshow : rollback, remove the possibility to have more than 1 item display at the same time. We need a specific widget to do this with specifics animations.
SVN revision: 50269
2010-07-15 17:09:59 +00:00
Jonathan Atton 3eaecdafbd Elm_Slideshow:
- Add a new layout : expose
- Add a way to display more than 1 slide at a time, the number of slides displayed is defined in the layout

SVN revision: 50256
2010-07-14 21:12:58 +00:00
Jonathan Atton a05015145d Elm_Photo:
- Add a way to display a photo by keeping the ratio AND the theme can display something around the photo (border ...). The way I use is maybe a bit crappy (embryo, offset ...) but I do not know a better way.
 - Add a new style (with a shadow). The default style has no changes
 If you do not like my way, revert the commit and commit your way :)
 
Elm_Slideshow:
 - Use elm_photo in the test
 - Add a black background

SVN revision: 50248
2010-07-14 14:48:21 +00:00
Jonathan Atton b8e248f29c Add a list of "layout" to elm_slideshow. A layout is like a "sub-style". For example the content can take all the slideshow widget (~fullscreen) or not. I do not have finish to work on it.
SVN revision: 50247
2010-07-14 09:07:43 +00:00
Jonathan Atton 24f5b1831b Add the elm notify external object
SVN revision: 50180
2010-07-11 21:19:27 +00:00
Bruno Dilly 5e928b9366 Add possibility to get all the items in Gengrid
By Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 50087
2010-07-06 21:14:38 +00:00
ChunEon Park c2758ed8c9 From: ChunEon Park <chuneon.park@samsung.com>
Subject: elm_animator

an animator wrapper - can be attached to an object (and be deleted if
object is deleted) and otherwise call a callback with a 0.0->1.0 value
where along the path you should be etc. etc. - ie handle higher level
animation runs.



SVN revision: 50039
2010-07-04 23:41:48 +00:00
Gustavo Sverzut Barbieri a6be0ef49c Oops, add missing .h and minor issues.
* add const to getter
 * enforce bool is 0/1
 * remove trailing whitespace



SVN revision: 49982
2010-07-01 23:53:17 +00:00
Carsten Haitzler 85b65fedf4 expose drag lock (x and y axis).
SVN revision: 49963
2010-07-01 06:59:30 +00:00
Bruno Dilly d350f3a293 Change elm functions elm_object_signal_listen to elm_object_signal_callback_add
and elm_object_signal_unlisten to elm_object_signal_callback_del


SVN revision: 49926
2010-06-28 15:32:20 +00:00
Bruno Dilly 8d644e43ed Implement elm_object_signal_listen and unlisten
elm_object_signal_listen add callback(s) for edje object(s) of the widget.
elm_object_signal_unlisten delete this callback.
They're general functions, and every widget should set hooks for these.

It will improve elm extension flexibility. We have already
elm_object_signal_emit to send signals for the widgets theme, adding callbacks
is an expected step.

It provides a way to support sound on widgets. For example, in the elm extension
we could emit "file_to_play", "play", and add a callback with
elm_object_signal_listen for "*", "play". The callback function could use
the signal received to request the file to be played by the backend
sound system.

Certainly we should look for a better way to provide support for sound
on edje, but for now, it does the work. And anyway, it's only a use case
for these new functions.



SVN revision: 49868
2010-06-25 22:38:32 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Jonathan Atton 02abff6519 elm_notify: recalc everything if the size hint change
SVN revision: 49820
2010-06-23 17:58:08 +00:00
Brett Nash cf917f18e4 Add elm_object_top_widget_get(): Useful for hoversels.
Also useful for arguments about widget_top or top_widget.
After all it's not a widget of type top, but rather the widget at the top.
Your views?  Opinions on a postcard plase.


SVN revision: 49814
2010-06-23 08:51:58 +00:00
Jonathan Atton 4ed9f35e44 elm_panes : add the horizontal mode
SVN revision: 49801
2010-06-22 19:08:52 +00:00
Jonathan Atton 777be38c1e refactor elm_panes_left_content* -> elm_panes_content_left*
SVN revision: 49788
2010-06-21 20:58:40 +00:00
Jonathan Atton 6ba054f636 elm_panes : - add an animation with 2 arrows while the bar is dragged. - add getter/setter for the size of the left content. - in the test : double click -> open/close the left content
SVN revision: 49786
2010-06-21 20:15:57 +00:00
Jonathan Atton 8b910bf656 Add a new widget : elm_panes :)
SVN revision: 49773
2010-06-20 16:01:15 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Bruno Dilly db550353a8 Add elm_object_signal_emit
This function sends a signal to the edje object of the obj.
It's a general function, and every widget should set a hook for this.

I'm setting a hook only for the spinner now, but soon I will work on other widgets.



SVN revision: 49681
2010-06-15 14:11:13 +00:00
Jonathan Atton 0b41132d70 Add style "fade_invisible" to elm_panel. This style create an invisible panel (no image, we only see the content) and the transition is a fading
SVN revision: 49657
2010-06-12 16:05:48 +00:00
Bruno Dilly 37250a5ab6 This patch make it possible to ask elm_thumb for the generated thumbnail
path.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 49550
2010-06-06 22:15:27 +00:00
Vincent Torri 58011e3859 fix prototype of elm_clock_digit_edit_get() too
SVN revision: 49547
2010-06-06 20:22:27 +00:00
Vincent Torri 53d60fdcf3 use Elm_Clock_Digedit instead of unsigned int
SVN revision: 49546
2010-06-06 20:19:26 +00:00
Rafael Fonseca 24feacfa4c From: Rafael Fonseca <rfonseca@profusion.mobi>
As requested, I've changed the widget name. Let me know about any
issues.



SVN revision: 49411
2010-06-03 12:53:14 +00:00
Carsten Haitzler fa58ea8625 elm... version too!
SVN revision: 49284
2010-05-29 09:48:05 +00:00
Bruno Dilly a5fa20a9ab Adding function to set cell selected in elm_scrolled_grid
By: Rafael Fonseca



SVN revision: 49173
2010-05-23 23:54:16 +00:00
Bruno Dilly 0fa431bcc0 Implement elm index sorted insert
- Name index item as Elm_Index_Item
 - Add some other index functions:
   + Item find
   + Data get/set
   + Letter get

I think this stuff will make easier to create index for
dynamically created lists.


SVN revision: 49171
2010-05-23 23:41:32 +00:00
Christopher Michael de41ec04e3 Proper fix for compiler warnings by adding const to the _get functions
(thanks k-s).
Fix formatting & remove some whitespace.

NB: Please take notice, do not format if statements like this:
      if (val && !val2).
    You will get spanked...hard :P
    Proper if formatting should be:
      if ((val) && (!val2))
    This avoids potential evaluation errors (as was recently seen in
    ecore_con).



SVN revision: 49111
2010-05-21 19:26:57 +00:00
Bruno Dilly b93adb9b7c Implements elm_object_focus_get that returns if the object is focused.
SVN revision: 49005
2010-05-19 13:17:02 +00:00
Gustavo Sverzut Barbieri ad18100ff3 Work around elementary's lack of proper inheritance.
Someday someone should take care to make elementary real smart objects
and benefit from everything it brings... yes, types more, but it is
worth -- and we added macros to help the type-a-lot.



SVN revision: 48831
2010-05-13 22:02:26 +00:00
Carsten Haitzler 1c2f713799 working much better elm config stuff. hs old config sliders still there, now
adding theme tab. not complete tho.



SVN revision: 48778
2010-05-12 16:32:12 +00:00
Luis Felipe Strano Moraes 8e692f5686 Create elm_list_item_sorted_insert
Function that include items to an elm list in a sorted way defined by
an Eina_Compare_Cb function.

Author: Bruno Dilly <bdilly@profusion.mobi>




SVN revision: 48777
2010-05-12 15:43:54 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Iván Briano cd097950e4 Let the user choose what digits of the clock are editable.
Patch by Rafael "15 years of experience" Fonseca.


SVN revision: 48757
2010-05-11 15:25:01 +00:00
Carsten Haitzler 5b26300221 support items in anchorblock/view too.
SVN revision: 48384
2010-04-28 06:13:06 +00:00
Carsten Haitzler 88bee2cadb emoticons!!!! woot woot!
SVN revision: 48356
2010-04-27 08:06:42 +00:00
Michael Blumenkrantz e571b14068 From: Michael Blumenkrantz <mike@zentific.com>
elm.diff is a patch which implements a number of convenience functions
for various widgets, as well as some new features for toolbar and panel.
With the panel widget, I've written a number of calls related to
toolbar items and the selected item in particular, allowing
manipulation of the selection and toolbar items more easily. These
functions are as follows:
+elm_toolbar_item_get_all() returns a Eina_List* of all the toolbar
items
+elm_toolbar_item_get_first() returns the first toolbar item
+elm_toolbar_item_get_last() returns the last toolbar item
+elm_toolbar_item_get_next() returns the item after the
currently selected item
+elm_toolbar_item_select_next() moves the selection to the next valid
item
+elm_toolbar_item_select_first() selects the first valid item
+elm_toolbar_item_select_last() selects the last valid item
+elm_toolbar_item_find_by_label() returns the first Elm_Toolbar_Item
matching "label"

The new panel functions I have written allow for control of the panel's
state from code, and are as follows:
+elm_panel_hidden_set() sets the panel's toggle state to a bool value
and runs the animation
+elm_panel_hidden_get() returns whether the panel is hidden
+elm_panel_toggle() toggles the panel to its other state

The remainder of the functions are just general wd->data returns which
were missing, the functionality of which may be of use to people.



SVN revision: 48355
2010-04-27 05:43:54 +00:00
titan 5aaf50253f Add the ability to set the way the grid contents are aligned in the
scroller... Set x and y values ranging from 0.0 to 1.0. Default is 0.5
0.5.


SVN revision: 48326
2010-04-26 02:34:07 +00:00
Gustavo Sverzut Barbieri 8a23d2a6b7 Add special values to spinner.
Special value is a string showed instead a numerical one.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 48090
2010-04-18 00:31:07 +00:00
Gustavo Sverzut Barbieri 37d6782967 Add elm_scrolled_grid object.
A genlist like grid widget: just the visible objects are actually built.

By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 48086
2010-04-17 20:21:59 +00:00
Carsten Haitzler 7aceaa4a41 support flush and dump protocol - also add call to do this by requuest from
the app itself.



SVN revision: 47949
2010-04-12 08:27:10 +00:00
Iván Briano 07d91767cd Expose elm_list as external
Patch by Thiago Masaki


SVN revision: 47847
2010-04-08 20:53:01 +00:00
Gustavo Lima Chaves 23b65bc2de Welcome a new Elementary widget: file selector button.
This is an elm button extended to launch a file selector on click and to callback_call registered funcs
when selection is completed.

Many uses may arise from it, but as a fresh 1st example here comes the first (primitive, but cool) video
player in edje:

externals {
  external: "emotion";
  external: "elm";
}

collections {
  group { name: "main";
     parts {
        part { name: "video";
           type: EXTERNAL;
           source: "emotion";
           description { state: "default" 0;
              rel1 {
                 offset: 10 10;
              }
              rel2 {
                 offset: -11 -61;
              }
              params {
                 choice: "engine" "gstreamer";
              }
           }
        }
        part { name: "play";
           type: RECT;
           description { state: "default" 0;
              color: 0 255 0 128;
              rel1 {
                 relative: 0 1;
                 offset: 10 -51;
              }
              rel2 {
                 relative: 0.3 1;
                 offset: -6 -11;
              }
           }
        }
        part { name: "pause";
           type: RECT;
           description { state: "default" 0;
              color: 255 0 0 128;
              rel1 {
                 relative: 0.3 1;
                 offset: 5 -51;
              }
              rel2 {
                 relative: 0.6 1;
                 offset: -6 -11;
              }
           }
        }

        part { name: "file_sel_btn";
           type: EXTERNAL;
           source: "elm/fileselector_button";
           description { state: "default" 0;
              rel1 {
                 relative: 0.6 1;
                 offset: 5 -51;
              }
              rel2 {
                 offset: -11 -11;
              }
              params {
                 string: "label" "open file";
                 string: "icon" "file";
              }
           }
        }

        programs {
           program {
              signal: "mouse,clicked,1";
              source: "play";
              after: "do_play";
           }
           program {
              name: "do_play";
              action: PARAM_SET "video" "play" "1";
           }
           program {
              signal: "mouse,clicked,1";
              source: "pause";
              action: PARAM_SET "video" "play" "0";
           }
           program {
              signal: "file,chosen";
              source: "file_sel_btn";
              action: PARAM_COPY "file_sel_btn" "path" "video" "file";
              after: "do_play";
           }
        }
     }
  }
}

Enjoy. I've seen bugs on the fileselector itself wrt to list selection logic.
I'll dig into then soon.



SVN revision: 47846
2010-04-08 20:36:37 +00:00
Tiago Rezende Campos Falcao 58ffdf8254 Fix some bugs in Genlist/Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47823
2010-04-07 21:30:54 +00:00
Carsten Haitzler 0e56acdbcb patch from disco-man! :)
SVN revision: 47799
2010-04-07 01:31:36 +00:00
Tiago Rezende Campos Falcao baa7e26d78 Some fixes in external Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47785
2010-04-06 14:01:08 +00:00
Tiago Rezende Campos Falcao ffaa68c266 Added get functions in elm_genlist and added external Genlist support. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47784
2010-04-06 14:01:04 +00:00
Gustavo Lima Chaves 07702cd2f3 Elm slideshow as edje external, by Masaki.
SVN revision: 47780
2010-04-05 20:23:30 +00:00