Commit Graph

1533 Commits

Author SHA1 Message Date
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 ba89544efc list, genlist and gengrid, if no item is selected
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

If no item is selected, pressing up it will select the first and down
will select the last item

SVN revision: 53924
2010-10-27 14:38:57 +00:00
Tiago Rezende Campos Falcao bc44338213 Deselect all items when press Esc
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

list, genlist, gengrid: Using _deselect_all_item

SVN revision: 53923
2010-10-27 14:38:54 +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 f8f377cd5f Small fixes on elm toolbar docs
SVN revision: 53899
2010-10-26 13:15:51 +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
Brett Nash 652cb23af2 elm_cnp_helper: Allow HTML->Text conversions on paste.
SVN revision: 53886
2010-10-26 06:10:46 +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
Gustavo Lima Chaves 72e51fa553 Making scrolled entries respect min/max size hints set from the user.
SVN revision: 53867
2010-10-25 13:08:12 +00:00
Gustavo Lima Chaves 01fbdb4644 Indenting.
SVN revision: 53866
2010-10-25 13:08:04 +00:00
Gustavo Sverzut Barbieri e763787e26 need to reset cached values when recalculating theme
SVN revision: 53843
2010-10-24 23:48:35 +00:00
Carsten Haitzler beb56366a4 keep flush sequence consistent.
SVN revision: 53792
2010-10-23 01:00:46 +00:00
Tiago Rezende Campos Falcao 73cca00118 Relloc with problems
SVN revision: 53788
2010-10-22 21:41:31 +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 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Bruno Dilly 1f1b687c24 Remove dead assignments
SVN revision: 53782
2010-10-22 20:11:31 +00:00
Iván Briano 3ec77727cc Bring focused object into the visible area
There's still a little bugger that can be noticed with the Scroller 2 test
and elm_conform still needs to handle this as scroller does.


SVN revision: 53778
2010-10-22 18:29:51 +00:00
Tiago Rezende Campos Falcao f05ae82f73 Missing EAPI
SVN revision: 53771
2010-10-22 16:40:50 +00:00
Carsten Haitzler 3efeab6dda and clean up more little bits of "could be better" code.
SVN revision: 53759
2010-10-22 03:09:53 +00:00
Carsten Haitzler dca18eeec3 don't need to del timer - just return false and set timer handle to
null. also justin case - del timer ebfore adding one...



SVN revision: 53758
2010-10-22 03:05:25 +00:00
Carsten Haitzler 12601f2d35 oh much formatting cleanups and removal of excessive casting to make
it trimmer and more readable.



SVN revision: 53757
2010-10-22 03:01:53 +00:00
Carsten Haitzler 5d81594429 fix doc.
SVN revision: 53756
2010-10-22 02:50:57 +00:00
Rafael Fonseca a7790e9dd7 Better way of setting bounce from profile.
Change pointed out by k-s.



SVN revision: 53744
2010-10-21 19:57:43 +00:00
Rafael Fonseca dd5b3ae608 Misspelling threshhold -> threshold as pointed out by glima.
SVN revision: 53740
2010-10-21 19:35:12 +00:00
Rafael Fonseca a5b772f9a5 Use shrink mode info from profile on elm_toolbar.
The default shrink mode for desktops is Scroll and for mobiles is Menu.



SVN revision: 53738
2010-10-21 19:24:43 +00:00
Rafael Fonseca 6a16cad7d6 Get icon_size from profile.
Toolbar and Carousel widgets now use the default icon_size set in the profile.



SVN revision: 53735
2010-10-21 18:59:45 +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 6bea70c4e4 Improve Focus manager.
In Window show, the focus is given to first focusable object, or to
window if no exist focusable object. So, suggest create the widgets
before show the window.

If pager is focused, it give the focus to top page in each promote.

SVN revision: 53733
2010-10-21 18:58:43 +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
Tiago Rezende Campos Falcao 0fd89213af Review elm_theme. int -> Eina_Bool
SVN revision: 53731
2010-10-21 18:58:37 +00:00
Rafael Fonseca 3eaa37aa3b Use bounce information from profile in the scrollers.
Instead of just setting the bounce property to its scroller, each widget now
first checks in the profile used whether bounce is enabled or not.



SVN revision: 53730
2010-10-21 18:54:47 +00:00
Rafael Fonseca 61a5564850 Use profile configuration on fileselectors.
The profile now defines the default value for expand and inwin modes. The
fileselectors tests were changed to reflect that.

Note that the default for desktops is expand mode enabled and inwin disabled
and for mobiles is the opposite.



SVN revision: 53728
2010-10-21 18:40:49 +00:00
Rafael Fonseca 99191cda20 Improve Elementary's profiles.
This is still a work in progress. The idea is to have two different profiles:
one to be used on desktops and another for mobiles. To make it possible, I've
added some fields to the config struct and in the following commits the widgets
will start using that configuration so when they are created the default
configuration of the profile is applied.



SVN revision: 53726
2010-10-21 18:26:14 +00:00
Bruno Dilly d084f59aa5 void *'s need no cast: Part II
SVN revision: 53717
2010-10-21 15:32:04 +00:00
Carsten Haitzler 3b955f3a91 void *'s need no cast.
SVN revision: 53715
2010-10-21 14:20:51 +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
Carsten Haitzler ebf05b3c57 revert!!!!!!!
SVN revision: 53702
2010-10-21 01:10:30 +00:00
Brett Nash 6f84ff97e1 cnp_helper: Format fixes.
SVN revision: 53698
2010-10-20 22:33:58 +00:00
Brett Nash d68df4168d Save HTML content as well.
Patch from 장효영 <hyoyoung.chang@samsung.com>

SVN revision: 53697
2010-10-20 22:32:47 +00:00
Leandro Pereira d617653e47 [Elementary] Disallow adding more than one separator item in a row.
(This fixes certain cases not covered by r53466)

SVN revision: 53696
2010-10-20 21:30:05 +00:00
Leandro Pereira a8b171115c [Elementary] Add menu buttons as submenus in Elm_Toolbar "More" button.
Previously, if there were buttons with menus in the toolbar, they would be
added but not its menu items.  Even though this is working fine, this is a
hack, since Elm_Menu should really offer reparenting or something like that
-- and this will destroy and recreate the whole menu structure on every
toolbar resize.

SVN revision: 53695
2010-10-20 21:30:03 +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
Tiago Rezende Campos Falcao fff738fbe8 Removing more warnings
Using: -Werror -W -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat
-Wformat-security -Wmissing-format-attribute -Wpointer-arith
-Wreturn-type -Wundef -Wwrite-strings

SVN revision: 53683
2010-10-20 17:15:14 +00:00
Gustavo Lima Chaves d197de1f28 Missing const here.
SVN revision: 53681
2010-10-20 16:51:26 +00:00
Gustavo Lima Chaves b577a405d6 Raster?
SVN revision: 53680
2010-10-20 16:51:20 +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
Carsten Haitzler 0105319ea7 fix eina warning.
SVN revision: 53666
2010-10-20 13:56:07 +00:00
Tiago Rezende Campos Falcao a6b162d647 Hide hidden object in pager.
SVN revision: 53661
2010-10-20 12:38:32 +00:00
Tiago Rezende Campos Falcao e24786292f CTRL+F12 generate dot dump file in DEBUG
SVN revision: 53660
2010-10-20 12:38:30 +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 c04d655155 Taking off dangling (and achieved) TODOs and fixing booboo.
SVN revision: 53653
2010-10-20 12:05:39 +00:00
Gustavo Lima Chaves 3e5a28fdf9 There you are. Appedix of last commit.
SVN revision: 53646
2010-10-20 00:21:34 +00:00
Gustavo Lima Chaves 559604aade Removing unecessary code.
SVN revision: 53645
2010-10-19 23:08:48 +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 c530774aaf Hooking elm_hover into signal_{emit,callback_add,callback_del}().
SVN revision: 53643
2010-10-19 20:21:03 +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
Bruno Dilly b74069f814 Fix some Wextra complains on elm edje-externals
SVN revision: 53637
2010-10-19 18:25:57 +00:00
Bruno Dilly a109dce782 Fix some wextra complains on elm lib
SVN revision: 53635
2010-10-19 18:24:27 +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
Tiago Rezende Campos Falcao 0e436c7431 Clean hoversel_add
SVN revision: 53621
2010-10-19 14:17:11 +00:00
Tiago Rezende Campos Falcao 97cba4930e Review Els_Icon
Adding getters (with const args). And replace tests if is edje object by
pre-existent bool variable.

SVN revision: 53620
2010-10-19 14:17:08 +00:00
Tiago Rezende Campos Falcao b0694a1817 Include docs to focus cycle.
SVN revision: 53618
2010-10-19 14:17:03 +00:00
Iván Briano 2cf8a9766d We do not use this code, so we don't need to keep it there commented and all.
SVN revision: 53599
2010-10-19 12:26:44 +00:00
Bruno Dilly acaaedb9b7 Use eina_stringshare_strlen on diskpicker
Spotted by k-s



SVN revision: 53594
2010-10-19 11:11:38 +00:00
Bruno Dilly f3fa723f2d elm_diskpicker: save (list_len - 3) strlen calls
demarchi-- for reducing performance just to solve a comparison between
signed and unsigned.



SVN revision: 53591
2010-10-19 10:48:11 +00:00
Brian Wang 85faa571ef Delete swipe timer when genlist is cleared
The swipe cancel timer isn't deleted in elm_genlist_clear right now. That will
cause invalid access later on.

Patch by: Brian Wang <brian.wang.0721@gmail.com>



SVN revision: 53589
2010-10-19 02:23:58 +00:00
Lucas De Marchi 4b7e285cf8 warnings--
* Remove warnings caused by comparison between signed and unsigned values
 * Remove a comparison of unsigned expression < 0 that is always false



SVN revision: 53588
2010-10-19 02:17:37 +00:00
Bruno Dilly 9e09bbc80a Fixes for clang warnings
SVN revision: 53576
2010-10-18 18:15:59 +00:00
Iván Briano 0016872d45 Kill double declaration.
Patch by Fidencio again, after I stupidly forgot to remove it in the first one.


SVN revision: 53574
2010-10-18 17:11:18 +00:00
Iván Briano 2235e7f37d Properly check for Smart_Data of subobject before using.
Modified patch by Fabiano Fidencio


SVN revision: 53573
2010-10-18 17:01:11 +00:00
Brett Nash 9b9dc594da elm_dnd: Add HTML encoding support: Callback only
SVN revision: 53559
2010-10-18 04:49:00 +00:00
Brett Nash d85a144f9b elm_cnp: Save the callback data.
SVN revision: 53558
2010-10-18 04:48:54 +00:00
Brett Nash 6bb0365d9c Add optional drop callback to elm_selection get.
SVN revision: 53557
2010-10-18 04:48:49 +00:00
Brett Nash 580c2797bb elm_cnp: Elm Drop Data is now Elm Selection data.
SVN revision: 53556
2010-10-18 04:48:44 +00:00
Brett Nash bf0fce54c8 elm_cnp: Whitespace Cleanup
SVN revision: 53555
2010-10-18 04:48:38 +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
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
Christopher Michael 22e8a30e9b Fix elm_bg overlay issue:
The problem was that when you toggle show/hide overlay in
ELM_BG_CENTER mode, the 'image' itself would not retain it's proper
size (it would fill the whole swallow and thus not be 'centered'
anymore). Solved by setting hint_min/max on the image when in centered
mode.

NB: Raster this fixes that elm_bg issue I mentioned the other day so
all is well now ;)



SVN revision: 53476
2010-10-15 23:03:56 +00:00
Leandro Pereira c245c6483f [Elementary] Code cleanups, as suggested by clang static analyzer.
SVN revision: 53472
2010-10-15 21:26:11 +00:00
Leandro Pereira 7a2f2df54f [Elementary] Elm_Menu separator items tweaks.
Do not allow adding more than one separator in a row, or adding a separator
as the first element of the menu (separators are for separating stuff, not
to decorate).

SVN revision: 53466
2010-10-15 19:08:45 +00:00
Tiago Rezende Campos Falcao 1a2519d253 Remove unused variable
SVN revision: 53461
2010-10-15 17:28:55 +00:00
Tiago Rezende Campos Falcao bf880009a3 Fileselector entry isn't focusable.
Remove wrong _on_focus_hook, and add the focus_next_get to give focus
to their children.

SVN revision: 53460
2010-10-15 17:28:49 +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
Iván Briano fbf5ae5368 No need to go through the list to get the top object when we have it already.
Patch by Alex Grilo


SVN revision: 53457
2010-10-15 16:43:42 +00:00
Christopher Michael b135f5ae61 Do variable checks correctly (we cannot get widget data if Item does
not exist, so check for a valid Item first).



SVN revision: 53452
2010-10-15 13:41:56 +00:00
Christopher Michael de99dccf26 No need to create an elm_icon if widget_data is NULL.
If creating the elm_widget_item fails, delete the created elm_icon also.



SVN revision: 53451
2010-10-15 13:36:44 +00:00
Iván Briano 1e773cefcb These functions don't exist anymore.
SVN revision: 53449
2010-10-15 13:19:50 +00:00
Lucas De Marchi 473a59fbcd remove ugly chars
\t and trailing whitespaces, stay away from me



SVN revision: 53446
2010-10-15 11:51:15 +00:00
Lucas De Marchi 0b2b25cb81 formatting
SVN revision: 53444
2010-10-15 11:36:35 +00:00
Lucas De Marchi 7c0b627b5a remove trailing whitespaces
SVN revision: 53443
2010-10-15 11:34:22 +00:00
Lucas De Marchi d52377931c swipe event for the elm_list
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 53442
2010-10-15 11:25:02 +00:00
Lucas De Marchi 4261676ee0 swipe event for the elm_genlist
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 53441
2010-10-15 11:24:46 +00:00
Carsten Haitzler 3dca273fc1 never mind- brainfart!
SVN revision: 53440
2010-10-15 10:47:17 +00:00
Christopher Michael 340d0f2a22 Not sure what happened here, but elm_widget_display_only_get does not
exist. Comment out function call until this gets sorted, so @ least
elm will build. Did nobody compile this before commit again ??? :(



SVN revision: 53439
2010-10-15 10:32:29 +00:00
Carsten Haitzler d552f7cc56 display_only... dont allow user to select too.. ala disabled.
SVN revision: 53438
2010-10-15 08:36:57 +00:00
Carsten Haitzler ee860fa225 handle resize object set better if resize obj already a child of
another elm widget



SVN revision: 53435
2010-10-15 06:04:33 +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
Gustavo Sverzut Barbieri 475318f728 allow theme of fileselector_entry components.
Right now I'm abusing style, setting fileselector_entry/$style on
items, however if it's not found the fallback will be 'default' and
not 'fileselector_entry/default' as it should be.

I'm wondering if this should be implemented in elm_theme.c by
replacing the last '/$component' with '/default', the remove it and
try again, like:

{{{
        input = a/b/c
        pass1 = a/b/default
        pass2 = a/b
        pass3 = a/default
        pass4 = a
        pass5 = default
}}}



SVN revision: 53423
2010-10-14 18:24:24 +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 cafc4b9e19 Removing unused variables
SVN revision: 53421
2010-10-14 17:58:01 +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
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 866201fb94 [Elementary] Fix style issues in Elm_Toolbar that managed to slip in my previous commit.
SVN revision: 53412
2010-10-14 16:50:05 +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
Bruno Dilly fcccd7dd5a Clean elm of null pointers dereferences
SVN revision: 53399
2010-10-14 14:12:26 +00:00
Bruno Dilly 294fa1d974 Clean elm of undefined assigned values
SVN revision: 53398
2010-10-14 14:11:53 +00:00
Bruno Dilly 21e71c932e Fix typo on cnp_helper :)
SVN revision: 53397
2010-10-14 14:11:15 +00:00
Bruno Dilly 9fa9c659e5 Remove dead assignments from elementary
The only one remaining is on index code, related to the not yet
implemented horizontal mode.



SVN revision: 53396
2010-10-14 14:10:33 +00:00
Bruno Dilly c7c7ceb547 Add list item check on tooltip and cursors functions
SVN revision: 53395
2010-10-14 14:09:49 +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
Iván Briano b1b802bd7b Fix typo.
I mean, update highlight object to follow focused object properly.


SVN revision: 53376
2010-10-13 18:58:29 +00:00
Christopher Michael 2c7e5ca75f Fix typo (I believe the word is breaking) ;)
SVN revision: 53372
2010-10-13 17:50:20 +00:00
Bruno Dilly b02c54321a Ignore colorpreview.edj and fix colorpicker signals documentation
SVN revision: 53367
2010-10-13 17:38:35 +00:00
Vincent Torri 0dfde0078a [Elm_diskpicker] define MAX macro for those (poor Windows
developers) who don't have it

SVN revision: 53355
2010-10-13 13:39:24 +00:00
Carsten Haitzler 9ec9ce7585 typo---
SVN revision: 53351
2010-10-13 12:29:33 +00:00
Carsten Haitzler 4de21dcc19 lets set list to null after we free it and before we call funcs that
could call callbacks that access this freed list eh?



SVN revision: 53325
2010-10-13 00:41:00 +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 52ebe2e754 Make 'Tiled' actually do a tile :)
SVN revision: 53292
2010-10-12 04:34:42 +00:00
Christopher Michael 1921dd5802 Widget_Data gets passed to the _custom_resize callback as 'data'
already, so no need to refetch it.



SVN revision: 53291
2010-10-12 04:21:50 +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
Christopher Michael f0ec644467 Add UNUSED where needed.
Fix usage of UNUSED in _elm_cursor_del.
Use #define for string constant.
Fix formatting.



SVN revision: 53289
2010-10-12 04:07:27 +00:00
Christopher Michael 3255ee2148 Add UNUSED where missing.
Use #defines for string constants.
Fix up some formatting.



SVN revision: 53288
2010-10-12 04:02:47 +00:00
Christopher Michael c17b186326 Add UNUSED where missing.
Use #defines for string constants (less 'const char' variables being
used).
Fix formatting & whitespace where needed.



SVN revision: 53287
2010-10-12 03:59:30 +00:00
Christopher Michael 2b34e155b2 Add UNUSED where missing.
Only calculate scale once here and reuse it.
Fix formatting.



SVN revision: 53286
2010-10-12 03:53:03 +00:00
Christopher Michael baccf96db6 Add UNUSED where needed.
SVN revision: 53285
2010-10-12 03:47:07 +00:00
Christopher Michael a1a0cbc9c2 Add UNUSED where needed.
Fix some formatting snafus.



SVN revision: 53284
2010-10-12 03:46:11 +00:00
Christopher Michael 1ccf076e76 Add UNUSED where needed.
SVN revision: 53282
2010-10-12 03:42:01 +00:00
Christopher Michael 76f19fc03a String.h is already included via Elementary.h
SVN revision: 53280
2010-10-12 02:38:19 +00:00
Gustavo Sverzut Barbieri bf43a6d53c oops, important typo, thanks tiagofalcao
SVN revision: 53267
2010-10-11 17:55:28 +00:00
Rafael Fonseca fdcf18e462 Add safety checks to genlist and gengrid.
The insert_(before|after) functions require a relative item so let's check for
it and appropriately return if it is not given.



SVN revision: 53253
2010-10-11 02:09:36 +00:00
Rafael Fonseca 105aeb5967 Fix items alignment in Gengrid.
Now alignment works no matter whether the item is smaller than the grid or not.
Also added a spinner to Gengrid 2 test so we can see the alignment in action
for different item sizes.



SVN revision: 53252
2010-10-11 01:55:07 +00:00
Gustavo Sverzut Barbieri 77b6c7a816 bugs--
SVN revision: 53249
2010-10-11 01:03:37 +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
Rafael Fonseca 484d79e3c0 Don't change no_select state when adding item to Gengrid.
If one wants to create a Gengrid with seletion mode disabled and dynamically
add items to it the no select mode would be overwritten. So make Gengrid
selectable by default and just change the selection state when user explicitly
calls elm_gengrid_no_select_mode_set() function.



SVN revision: 53241
2010-10-10 20:45:30 +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 6a10964414 don't use ethumb if no path was set yet.
SVN revision: 53235
2010-10-09 18:43:03 +00:00
Boris Faure 6f8f4d7a00 elm: fix doc
SVN revision: 53234
2010-10-09 14:42:04 +00:00
Gustavo Sverzut Barbieri 6037fde0dd work when items are bigger than viewport.
rfonseca, be careful with corner cases... and PLEASE ADD SPACES!!!! it's awful to read (a*b)/c+d/e...



SVN revision: 53225
2010-10-09 01:42:32 +00:00
Gustavo Sverzut Barbieri 17dfe16715 document new style.
SVN revision: 53224
2010-10-09 01:34:01 +00:00
Gustavo Sverzut Barbieri e7924d7fac cancel previous request, if any.
SVN revision: 53216
2010-10-08 22:43:17 +00:00
Gustavo Sverzut Barbieri 3bdda23c70 ethumb reload function.
SVN revision: 53215
2010-10-08 22:14:50 +00:00
Tiago Rezende Campos Falcao 3e0c947cde Elm_object_focus give focus to one focusable obj.
SVN revision: 53206
2010-10-08 20:16:52 +00:00
Tiago Rezende Campos Falcao f17463a37f Add Object name in dot dump
Now can generate graphs like this:
https://trac.profusion.mobi/~tiago/editje_elm_dump.png

Call elm_object_tree_dot_dump(obj, "file.dot")
and use $ dot -Tpng file.dot -ofile.png

SVN revision: 53205
2010-10-08 20:16:48 +00:00
Tiago Rezende Campos Falcao cd76f3a7f5 Fix the assignment that discards const qualifier.
SVN revision: 53195
2010-10-08 16:27:07 +00:00
Tiago Rezende Campos Falcao 9ff54ffc12 Fix event propagation in elementary.
Need set ON_HOLD, and check it.

SVN revision: 53194
2010-10-08 16:27:04 +00:00
Tiago Rezende Campos Falcao 7b9804f31a Don't add again one child to the same parent
SVN revision: 53193
2010-10-08 16:27:01 +00:00
Iván Briano 7a9b608068 Shut up gcc about uninitialized use of variables.
SVN revision: 53185
2010-10-08 13:08:43 +00:00
?\236?\157?\180?\235?\170?\133?\236?\158?\172 acec5fa410 From: ?\236?\157?\180?\235?\170?\133?\236?\158?\172 <mjae.lee@samsung.com>
Subject: patch for elm_widget_show_region_set function
  
back in again. i backed it out because of unrelated issues.



SVN revision: 53184
2010-10-08 12:50:40 +00:00
Brett Nash 3cb99669ee Make sure we handle data length correctly on text length.
SVN revision: 53179
2010-10-08 04:14:13 +00:00
Eduardo de Barros Lima 15d98ebdff Elementary: Don't #define _GNU_SOURCE
Use proper AC_GNU_SOURCE macro in configure.ac instead.



SVN revision: 53168
2010-10-07 21:34:43 +00:00
Gustavo Sverzut Barbieri 93df5252df copy&paste left-overs
SVN revision: 53161
2010-10-07 20:01:42 +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
Tiago Rezende Campos Falcao f24cfca511 Removing unused variables to clean compile
SVN revision: 53146
2010-10-07 14:49:37 +00:00
Tiago Rezende Campos Falcao 3fb08d420f Elm Button with custom focus highlight
SVN revision: 53145
2010-10-07 14:49:35 +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
Carsten Haitzler 4f3090af01 and handle disables for everything else that has disable hooks.
SVN revision: 53138
2010-10-07 07:44:50 +00:00
RAJEEV RANJAN 46acbce93e From: RAJEEV RANJAN <rajeev.r@samsung.com>
Subject: Patch to address some focus and disabling issue in elementary
widgets

We have observed some generic issues in Elementary widgets.

1. Widgets not getting disabled if we call elm_object_disabled_set(ob,
EINA_TRUE) followed by elm_object_style_set(obj, <style_name>);

This works fine if we disable the widget after changing the style(call
to theme_hook happens here).


It happens because we are not sending the edje signal in theme_hook of
the widgets, if the widget is already in disabled state.

I have added this code in theme_hook of elm_button as an example and
we will need to apply the similar stuff in all other widgets if needed.

 
 
 2. The widget gets focused in a particular scenario even though we
call elm_object_focus_allow_set(obj, EINA_FALSE).

The code snippet to explain the scenario which we observed was like
this:

Evas_Object *button = NULL, *icon = NULL;

button = elm_button_add(parent);

elm_object_focus_allow_set(button, EINA_FALSE);

icon = elm_icon_add(button);

elm_icon_file_set(icon, EDJE_PATH, "test.icon");

elm_button_icon_set(button, icon);

 
  
  An icon object does not take focus by default. But still whenever
the focus returned to the parent(layout in this case) after closing
some popup, the button gets focused though we had disabled it
explicitly.
 
 The reason is in this case, when we call elm_icon_add(button), icon
gets added to button as a sub-object and in this call, we set
sd->child_can_focus for button(the parent) as true because till now,
the focus property for icon has not been set to false which by default
is true. 
 
 This was set later in the function elm_icon_add() as follows:
 elm_widget_can_focus_set(obj, EINA_FALSE);
  
  Actually this should be set before adding icon as sub-object of the
parent which in this case is a button.
 
 I have done the required modification in the function elm_icon_add().
  
  Attached to this mail is the patch file for these two issues.The
revision from which I have created this patch file is 53129.
We may need to do similar changes in other widgets if required.



SVN revision: 53137
2010-10-07 07:31:24 +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
Carsten Haitzler cddcaed64e aaaagh! free the member list! :)
SVN revision: 53131
2010-10-07 03:53:53 +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
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 434ed6e093 Adding elm_widget_focus_cycle method
This will cycle focus inside the sub-tree of one object.

SVN revision: 53113
2010-10-06 20:24:16 +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
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
Iván Briano 4cc43413ae Kill job when shutting down highlight
SVN revision: 53104
2010-10-06 16:42:46 +00:00
Tiago Rezende Campos Falcao c9ee489cd8 Genlist expanding items when press Return or Space
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

See elementary_test Genlist Tree

SVN revision: 53079
2010-10-05 19:10:11 +00:00
Tiago Rezende Campos Falcao 3d8c3dfc6f List with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift +
up/down to multi select.

SVN revision: 53078
2010-10-05 19:10:08 +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 231d40149a List with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 53076
2010-10-05 19:10:03 +00:00
Tiago Rezende Campos Falcao 1dada2a0a8 List with els_scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

The list use elm_scroller instead els_scroller like the others. This is
a problem, because the scroller is son of the list, so when you click on
an item, the event will be done in the item (an edje object) that will
pass to the box it is inside, the box will pass the event to the
scroller and then to the list. So, with the event arriving the scroller
first than the list, if you press up, the navigation between item will
not happen because the scroller is treating the event first. So a good
solution is to pass the list to use smart scroller intead elm_scroller
(like genlist and gengrid).

SVN revision: 53075
2010-10-05 19:10:00 +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 47f13424e2 Genlist with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift + up/down to
multi select.

SVN revision: 53073
2010-10-05 19:09:55 +00:00
Tiago Rezende Campos Falcao 7710ab14f0 Hoversel can have focus
SVN revision: 53072
2010-10-05 19:09:52 +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
Tiago Rezende Campos Falcao 891a40d7dc Adding focus cycle hook to Panes
SVN revision: 53034
2010-10-04 18:37:45 +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
Iván Briano 92c9171d37 More sane handling of current/previous stuff on highlight
And more ridicoulesness to the theme, to force someone to do something decent


SVN revision: 53028
2010-10-04 12:48:15 +00:00
Christopher Michael 8708cc7049 Fix nasty formatting.
SVN revision: 53009
2010-10-04 06:24:16 +00:00
Christopher Michael 688b6e2fac Fix return null in func returning void...oopsie ;)
SVN revision: 53008
2010-10-04 06:21:38 +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
Christopher Michael a433716827 Whitespace be gone !!
SVN revision: 53005
2010-10-04 03:40:43 +00:00
Nicolas Aguirre 39ef0943b8 Fix typo
SVN revision: 52993
2010-10-03 09:33:13 +00:00
Christopher Michael 9db926e387 Fix some misspellings.
SVN revision: 52990
2010-10-03 01:44:21 +00:00
Tiago Rezende Campos Falcao 3b04b52ba4 Adding debug option in elementary.
SVN revision: 52966
2010-10-01 19:03:23 +00:00
Tiago Rezende Campos Falcao dbab55ebaa Gengrid with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 52964
2010-10-01 19:03:17 +00:00
Tiago Rezende Campos Falcao bb5b808b76 Genlist with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 52963
2010-10-01 19:03:12 +00:00
Tiago Rezende Campos Falcao 953aba8c05 key events of the scroller treat in event_hook
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

The idea of the treatment of the key downs events in the smart scroller
is be equal to any widget that use it. But to do this, the smart
scroller must listen to the EVAS_CALLBACK_KEY_DOWN, this will cause a
problem to list, genlist, gengrid, because the event will arrive first
to the smart scroller then to this widgets (because the widgets are
listening the event by event_hook). So, if the scroller treat "Up", the
genlist will not select the item above because this event was already
treat by the scroller.

Now the tratment of the keys was tranfer to the elm_scroller instead of
els_scroller.

SVN revision: 52962
2010-10-01 19:03:07 +00:00
Tiago Rezende Campos Falcao 6882817852 Adding focus cycle hook to pager, bubble and flip.
SVN revision: 52961
2010-10-01 19:03:02 +00:00
Tiago Rezende Campos Falcao e29b0b64b4 Adding focus cycle hook to Inwin and Frame.
SVN revision: 52960
2010-10-01 19:02:58 +00:00
Tiago Rezende Campos Falcao 6fd3d0b565 Better management to focus cycle.
Now Widgets can control between children interation or receive focus
itself. And focus_cycle has now one default code.

And don't pass focus to disabled widgets

SVN revision: 52959
2010-10-01 19:02:55 +00:00
Carsten Haitzler 4be271d4cf bug fix! :)
SVN revision: 52917
2010-09-30 06:01:34 +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
Tiago Rezende Campos Falcao 52e3df6faf Fix: _event_hook must return EINA_FALSE if widget is disable
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
* button
* check
* file selector button
* radio
* toggle

SVN revision: 52890
2010-09-29 12:22:41 +00:00
Tiago Rezende Campos Falcao fc4ca8dfe4 Removing event_hook from hoversel
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Event hook in hoversel is not needed, because the center of the hoversel
is a button that gets the event and calls the activate of the hoversel.

SVN revision: 52889
2010-09-29 12:22:35 +00:00
Tiago Rezende Campos Falcao 8ca4d18a0b Fixing can_focus to the widgets
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
anchorblock:    can_focus = EINA_TRUE
anchorview:     can_focus = EINA_TRUE
fileselector:   can_focus = EINA_FALSE
hoversel:       can_focus = EINA_FALSE
notepad:        can_focus = EINA_TRUE
scrolled_entry: can_focus = EINA_TRUE
bubble:         can_focus = EINA_FALSE
calendar:       can_focus = EINA_TRUE
clock:          can_focus = EINA_TRUE
conformant:     can_focus = EINA_FALSE
flip:           can_focus = EINA_FALSE
frame:          can_focus = EINA_FALSE
gengrid:        can_focus = EINA_TRUE
genlist:        can_focus = EINA_TRUE
index:          can_focus = EINA_FALSE
list:           can_focus = EINA_TRUE
layout:         can_focus = EINA_FALSE
map:            can_focus = EINA_TRUE
mapbuf:         can_focus = EINA_FALSE
menu:           can_focus = EINA_FALSE
notify:         can_focus = EINA_FALSE
pager:          can_focus = EINA_FALSE
panes:          can_focus = EINA_FALSE
progressbar:    can_focus = EINA_FALSE
photocam:       can_focus = EINA_TRUE
scroller:       can_focus = EINA_TRUE
table:          can_focus = EINA_FALSE
thumb:          can_focus = EINA_FALSE
win:            can_focus = EINA_FALSE

SVN revision: 52888
2010-09-29 12:22:30 +00:00
Carsten Haitzler c48b8da243 one more focus case.
SVN revision: 52879
2010-09-29 05:27:42 +00:00
Carsten Haitzler 540bb06455 this should fix reparenting of already focused widgets and properly
reset focus stack.



SVN revision: 52876
2010-09-29 03:59:28 +00:00
Carsten Haitzler 3262d51fba fmting
SVN revision: 52872
2010-09-29 01:53:43 +00:00
Carsten Haitzler b1a68bdb5f at least support software-x11-8 engine - in theory.
SVN revision: 52868
2010-09-28 22:43:48 +00:00
Iván Briano 8a20a80417 Scroller is a weird container that can focus
SVN revision: 52862
2010-09-28 19:36:25 +00:00
Iván Briano 8f7c57b6c7 Little debug function. It helped already to track the scrolled_entry focus problems.
SVN revision: 52861
2010-09-28 19:35:12 +00:00
Iván Briano 168f1c521b Create sub objects using ourself as parent. Avoids having them as subobjects of any other widget, which caused problems whens passing focus around
SVN revision: 52860
2010-09-28 19:29:24 +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
Iván Briano 2e92cbfc96 Killed the bottom object. It will come back once the stacking issues are resolved or decided how to handle.
But that's minor and non-important, the real deal here is animating the focus highlight object, entirely in the theme.


SVN revision: 52853
2010-09-28 16:54:11 +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 a0541d1687 Fix typo from rev52686
SVN revision: 52851
2010-09-28 14:15:23 +00:00
Tiago Rezende Campos Falcao bbb96b91d4 Wrong place for elm_widget_highlight_in_theme_set
elm_widget_highlight_in_theme_set only can be called in _theme_hook
after read edje data.

SVN revision: 52850
2010-09-28 14:15:20 +00:00
Tiago Rezende Campos Falcao 5b3c37ac24 Update docs in elm_notify
SVN revision: 52849
2010-09-28 14:15:17 +00:00
Bruno Dilly 0bae5b3b96 Looks for parent cursors when mouse out a subobj
It will set the parent cursor if it should be visible.



SVN revision: 52848
2010-09-28 12:44:08 +00:00
Carsten Haitzler dc9887471c fix limit horizontal mode for genlist
SVN revision: 52844
2010-09-28 08:46:08 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly c7c28779cd Don't add cursor callback for delete on parents of sub objects
They will only display a warning because they don't have a cursor themselves.
Only adding for the eventareas will free everything created.



SVN revision: 52821
2010-09-27 22:17:40 +00:00
Vincent Torri 481f83d212 fix compilation with MinGW
SVN revision: 52819
2010-09-27 21:49:00 +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
Tiago Rezende Campos Falcao 59e7d34f2c slider, slideshow and spinner with keyboard arrows
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

elm_slider now respond to the keyborad arrows depends on its position.
If it is in a horizontal mode, than its value will change by pressing
left and right, other wise it will respond by pressing up and down

elm_slideshow: go to next and previous with keyboard arrows

elm_spinner: respond to left and right keys in an animated way

SVN revision: 52816
2010-09-27 21:13:41 +00:00
Tiago Rezende Campos Falcao 42b6280dc1 Focus Cycle Chain to Table
SVN revision: 52815
2010-09-27 21:13:36 +00:00
Tiago Rezende Campos Falcao 3660486ed2 Panel fixed and is now focusable.
The old theme start show animation on obj show, if you want
disabled by default it doesn't work well. I changed the theme
default to be visible, don't need animation on "show".

And hidden_set was with inverted logic.

The focus highlight is in theme. And the widget react to
Return/Space.

SVN revision: 52814
2010-09-27 21:13:32 +00:00
Tiago Rezende Campos Falcao a276bb071a Refactoring focus_cycle_next_get and copies
SVN revision: 52813
2010-09-27 21:13:25 +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 Lima Chaves 3ee1b96080 Fixes on scrolled entry docs.
SVN revision: 52807
2010-09-27 19:04:31 +00:00
Bruno Dilly 2f8315d7e6 Fixes on cnp_helper for changes on Ecore_X (int -> bool)
It should shut up gcc complains.
I hope I'm not screwing up anything =)



SVN revision: 52806
2010-09-27 18:45:38 +00:00