Commit Graph

1533 Commits

Author SHA1 Message Date
Tiago Rezende Campos Falcao d61562b799 elm_transit.c: better documentation
Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54420
2010-11-10 18:05:54 +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
Tiago Rezende Campos Falcao 98c82eb20f Elm_Transit: deleting transit if there is no more objects
After you add an object, if the objects list stay empty, the transit
will die

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

SVN revision: 54415
2010-11-10 18:05:39 +00:00
Tiago Rezende Campos Falcao 86cd7f44aa Elm_Transit: Using EINA_LIST_FOREACH_SAFE
Using EINA_LIST_FOREACH_SAFE to remove objects from the list safely

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

SVN revision: 54414
2010-11-10 18:05:36 +00:00
Tiago Rezende Campos Falcao b1d3cc1726 Fixing elm_transit_del function
It was not deleting the objecs correctly

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

SVN revision: 54413
2010-11-10 18:05:34 +00:00
Tiago Rezende Campos Falcao 8860368785 Elm_Transit: using evas_object_data{set, get, del}
Intead of doing a list to restore information about an object, now using
evas_object_data{set, get, del}
Using evas_object_pass_events instead elm_object_disabled_set
This allows the event block to be setted in non widgets objects

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

SVN revision: 54412
2010-11-10 18:05:26 +00:00
Bruno Dilly 4e0df34976 Fix List keyboard navigation on horizontal mode
Closes ticket #619



SVN revision: 54411
2010-11-10 18:04:51 +00:00
Bruno Dilly cdbd1bae85 Fix Gengrid keyboard navigation on horizontal mode
SVN revision: 54410
2010-11-10 18:04:28 +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 d2874eecec Calling _resize function after functions that can change item size.
By: Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54404
2010-11-10 12:38:47 +00:00
Bruno Dilly 2e5b0450ab Passing correct parameters when clicking in item in more menu.
Event info should be an Elm_Toolbar_Item.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54403
2010-11-10 12:37:06 +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 6e22d984ae Document recently added scroll,edge,X signals to elm_genlist
SVN revision: 54394
2010-11-10 03:01:15 +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 6d30d387e8 Removing more_item from wd->items on elm_toolbar
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54385
2010-11-09 21:21:46 +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 317226eef6 Fix ingroup in elm_toolbar doc
SVN revision: 54378
2010-11-09 20:27:07 +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 8cbad3de66 Fix flippicker item selection
SVN revision: 54376
2010-11-09 20:26:22 +00:00
Bruno Dilly 681443ff0a Remove const from flippicker item functions return
SVN revision: 54374
2010-11-09 20:25:32 +00:00
Sebastian Dransfeld e3afcd4d8f Let efreet icon return const
We return a pointer to an internal cache, so no need to do strdup. I we
implement a cache, the pointer will be a return from a mmap'ed file, so
no need to do strdup.

A bit late to do an API break, but must be done.

SVN revision: 54372
2010-11-09 20:15:55 +00:00
Rafael Fonseca f01cc6f291 Respect finger size on elm_index widget.
SVN revision: 54370
2010-11-09 18:20:43 +00:00
Carsten Haitzler 1fcddfebdb fix valgrind problems with elm menu. oooh not tracking things right.
bad elm menu! bad!



SVN revision: 54362
2010-11-09 10:41:09 +00:00
Carsten Haitzler 2fae4544b9 oops! item cache... has a bug. didnt actually delete old cb's.. was
edeleting from null! fix!



SVN revision: 54358
2010-11-09 06:28:26 +00:00
Carsten Haitzler 78cc8ef853 idea from seokjae but majorly changed patch - use on_hold as
originally intended for holding actions in this case, and also add
momentum acceleration at the same time.



SVN revision: 54356
2010-11-09 06:07:07 +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 0f4950bb1d Getting toolbar icon size in theme.
Uses icon_size from elm_config as fallback.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54347
2010-11-08 19:59:22 +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 a1b70711a7 Searching for icons in theme before fdo by default
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54345
2010-11-08 19:57:57 +00:00
Bruno Dilly 4cfed9e8c0 Remove hardcoded max icon size restrition on toolbar
If it was added to mask a bug, we are unmasking it, so we can
solve it and use the toolbar for programs that want more than
48 pixels.



SVN revision: 54336
2010-11-08 17:25:06 +00:00
Bruno Dilly e6178d5892 Checking widtype on eapi elm_toolbar_item_label_set
SVN revision: 54335
2010-11-08 16:55:26 +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
Bruno Dilly 093996bb5c elm_genlist longpressed signal documentation
By: 서주영 <juyung.seo@samsung.com>



SVN revision: 54329
2010-11-08 14:07:33 +00:00
Carsten Haitzler fc2ce6239b oops printf--
SVN revision: 54286
2010-11-08 05:38:53 +00:00
Carsten Haitzler a2afe41e34 fmting
SVN revision: 54285
2010-11-08 04:39:56 +00:00
Carsten Haitzler 703029e033 fix bug in glenlist 4 - item update. updates item vanishes.
SVN revision: 54284
2010-11-08 04:33:34 +00:00
Carsten Haitzler 84d429884f allo icons to be orphaned
SVN revision: 54218
2010-11-06 07:05:00 +00:00
Carsten Haitzler 5b86ca6447 unrealized callback too.
SVN revision: 54215
2010-11-06 06:14:21 +00:00
Carsten Haitzler a43c1d9ed1 improve genlist item realize/nrealize by almost 2x. (4.7->2.7 sec for
processing of a genlist queue of 20,000 items). added genlist item
cache to do this. yay!. also wil improve runtime scrolling -
realiz/unrealize will be also equivalently faster, so less add/del
overhead for the edje objects in gnelist itself. the icons that apps
swallow in still get deleted and created. this is another matter for
anothr day. ant be solved inside of genlist itself. probably need an
unrealize callback per item and a way to steal your icons back from
the item.



SVN revision: 54214
2010-11-06 06:02:22 +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 90d1ad6b4c Emit different signals when changing states forward or backward.
This is used to perform diferent animations when going forward or
backward.

By:  Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54190
2010-11-05 18:23:59 +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
Bruno Dilly 53aba73f94 Loading icon image from files if absolute path is provided
By: Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54188
2010-11-05 18:22:42 +00:00
Bruno Dilly 8a118ee12e Don't show more menu if there is only one button in it.
If there is only one item inside more menu and if this item is smaller
than more item, the toolbar wont show the more menu.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54187
2010-11-05 18:21:01 +00:00
Carsten Haitzler caaa5fb709 oops - printf--
SVN revision: 54175
2010-11-05 11:02:52 +00:00
Carsten Haitzler 2241b00d79 fix genlist bug - was MEANT to realzie items as they appear - it
realized a whole block. fix.



SVN revision: 54174
2010-11-05 11:02:08 +00:00
Carsten Haitzler e60e467053 fmting.
SVN revision: 54172
2010-11-05 09:44:05 +00:00
Carsten Haitzler c08c722195 do scale right for toolbar...
SVN revision: 54171
2010-11-05 09:43:13 +00:00
Davide Andreoli 2abf567a5f Make the scroller more "weighted" (or hard-to-drag) while you drag it
out of bounds, that is when the content is finished. In this way
 the user note that the content is at the end.

 All the others finger-scroll implementation (iphone,android) works this way ;)

 This is configurable by the 'thumbscroll_border_friction' config value,
 and by the 'ELM_THUMBSCROLL_BORDER_FRICTION' var.
 0.0 means: disable the friction
 0.5 is the default
 1.0 means: maximum friction

 I have tested this with every scroller in elm_test and seems to work
 well in all the occurence, if you see somthing strange in some scroller
 please let me know.

 DaveMDS
  



SVN revision: 54170
2010-11-05 09:31:51 +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 7db634e8f9 Fix missing ingroups on elm_layout docs
SVN revision: 54165
2010-11-05 00:47:19 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Bruno Dilly b8200447ef Add bounce getter for remaining widgets
SVN revision: 54163
2010-11-05 00:45:59 +00:00
Bruno Dilly c7005dd59b Small fix on entry load file
In case a file can't be completely read, return what could be read so
far.



SVN revision: 54152
2010-11-04 13:59:42 +00:00
Gustavo Lima Chaves e5cd3976c0 Reverting size hints hacks the right way at scrolled entry + calling
it from theme hook.



SVN revision: 54150
2010-11-04 13:51:02 +00:00
Gustavo Lima Chaves 0313861979 Just adding more readability to eet data descriptor filling.
SVN revision: 54149
2010-11-04 13:50:54 +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
Tiago Rezende Campos Falcao c911a2c5b2 Fix scrolled entry sizing eval when change style
SVN revision: 54126
2010-11-03 17:22:42 +00:00
Tiago Rezende Campos Falcao e486aeaed7 Use common checker to item in flippicker
SVN revision: 54099
2010-11-02 11:27:13 +00:00
Tiago Rezende Campos Falcao 1890443707 Add checkers to carousel items
SVN revision: 54098
2010-11-02 11:27:10 +00:00
Tiago Rezende Campos Falcao d7a4b3a6c1 Add checkers to genlist items
SVN revision: 54097
2010-11-02 11:27:07 +00:00
Tiago Rezende Campos Falcao 60b1523200 Add checkers to slidershow items
SVN revision: 54096
2010-11-02 11:27:04 +00:00
Tiago Rezende Campos Falcao d28298faa4 Add checkers to index items
SVN revision: 54095
2010-11-02 11:27:02 +00:00
Tiago Rezende Campos Falcao 9abd5ca805 Add checkers to toolbar items
SVN revision: 54094
2010-11-02 11:26:59 +00:00
Tiago Rezende Campos Falcao 5ef35174ba Add checkers to list items
SVN revision: 54093
2010-11-02 11:26:56 +00:00
Tiago Rezende Campos Falcao 2374b34c2a Add checkers to menu items
SVN revision: 54092
2010-11-02 11:26:53 +00:00
Tiago Rezende Campos Falcao a6183287d3 Add checkers to hoversel items
SVN revision: 54091
2010-11-02 11:26:50 +00:00
Tiago Rezende Campos Falcao 1d4a864966 Add checkers to gengrid items
SVN revision: 54090
2010-11-02 11:26:47 +00:00
Tiago Rezende Campos Falcao af5625cca4 Add test and checker to widget items
SVN revision: 54089
2010-11-02 11:26:44 +00:00
Gustavo Lima Chaves 6e5d1db8ce Fallbacking to software X11 on all engines, now.
SVN revision: 54083
2010-11-01 21:10:21 +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
Gustavo Lima Chaves e667a17bc8 Switching elm config's engine variable from enum to string ptr.
SVN revision: 54081
2010-11-01 21:10:07 +00:00
Gustavo Lima Chaves a012c4b511 Sentinel was never used and was wasting space for subs array.
SVN revision: 54080
2010-11-01 21:10:01 +00:00
Gustavo Lima Chaves 78fddffd9a Just shutting gcc up.
SVN revision: 54079
2010-11-01 21:09:55 +00:00
Bruno Dilly ab792e1e8f elm clean up
SVN revision: 54076
2010-11-01 12:44:30 +00:00
Carsten Haitzler baf0b67a9d more dirent usage. nix.
SVN revision: 54019
2010-10-30 06:22:14 +00:00
Carsten Haitzler 661ef90a8e grrr - dont reply on non-portable or abstracted info in dirent. eina
fixed.



SVN revision: 54016
2010-10-30 05:48:31 +00:00
Carsten Haitzler 32c2779ac4 mapbuf -> hide/show content absolutely if mapbuf is hidden/shown and
add test.



SVN revision: 54014
2010-10-30 04:01:09 +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 f94f6fb3ee Send signal informing changes in icon state.
Inform that the item was disabled, highlighted or selected.
If a toolbar icon is an edje it can receive this signal and change the
icon image to a disabled image.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54006
2010-10-29 18:42:01 +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
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Gustavo Lima Chaves 0699115dae Fixing two buggers here:
- profile selection saving before we assure the dir is there
  - wrongly setting data dir at buffers



SVN revision: 54002
2010-10-29 17:32:16 +00:00
Gustavo Lima Chaves a00f33c009 warning--
SVN revision: 53989
2010-10-29 13:04:05 +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
Tiago Rezende Campos Falcao d938999c78 Add missing object type checkers.
The test test_decl now warn about missing API_ENTRY or
ELM_CHECK_WIDTYPE.

SVN revision: 53956
2010-10-28 13:38:55 +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 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