Commit Graph

1533 Commits

Author SHA1 Message Date
Carsten Haitzler 6ce323eaa0 make thread support windows friendly. i hope.
SVN revision: 54754
2010-11-21 04:37:52 +00:00
Carsten Haitzler b8c9cd18b1 for now done select disabled, selected or expanded items in the cache
- resetting is problematic. need an edje reset thing - or actually may
want edje to have a cache like this...



SVN revision: 54744
2010-11-20 11:35:09 +00:00
Carsten Haitzler 63fd838ebe move store to an actual lib file - elementray.h too and check for
pthread support due to locks. (vtorri - windows way of doing this?)



SVN revision: 54740
2010-11-20 11:12:15 +00:00
Carsten Haitzler e10b7bba94 comments--
SVN revision: 54739
2010-11-20 10:59:26 +00:00
Carsten Haitzler 01e71a2649 well... many things - genlist, when it is processign quue, or u
add.del items will try and stick to viewing an acnhor item. it also
handles wrapping text properly now if style has such a thing - a test
style with that is there too (message style) for now - found isasue in
edje with textblock styles - doesnt change on state change. but anyway
- re-wrapping text works.. and it progressively processes the genlist
blocks to re-calc sizes etc. etc. so you dont block and so-on. i5ts
not too shabby. as for that - store has a generic struct type reader
now and is being tested... and get rid of unused var.



SVN revision: 54738
2010-11-20 08:43:43 +00:00
Carsten Haitzler 376b264e3a make accelerated scrolling also accumulate scroll time so it doesnt
seem to silly fast - scroll speed also now increaese by 1.5x not 2x
and since time extends linearly by left over time from previous scroll
it's less extreme, but still accelerated.



SVN revision: 54733
2010-11-20 06:26:01 +00:00
Gustavo Lima Chaves 85cc0b3b01 Some more text classes now supported. We clearly need more later,
maybe wrapping unbounded ones into a "general" TC.
TC swithing exposes various widgets bugs WRT layouting of children
objects, we gotta fix them.



SVN revision: 54715
2010-11-19 09:37:33 +00:00
Rafael Fonseca acb1ebb41c Make it possible to use finger size hint on scrollbars.
With a small rectangle swallowed as a base is now possible to make scrollbars
respect the finger size hint. But it just makes sense when thumbscroll is
disabled, i.e, when scrollbars should be dragable.



SVN revision: 54700
2010-11-18 18:47:16 +00:00
Tiago Rezende Campos Falcao 20db73ea48 Not return const Evas_Objects in (icon|end)_get
SVN revision: 54688
2010-11-18 12:55:31 +00:00
Tiago Rezende Campos Falcao 430492dc9c Adding Signal Hooks to Hoverlist
SVN revision: 54687
2010-11-18 12:55:28 +00:00
Gustavo Lima Chaves 1228afe8e0 Elementary's header little fixes.
SVN revision: 54682
2010-11-18 10:01:36 +00:00
Gustavo Lima Chaves f9172244ac Elementary welcomes text classes support.
I'm now populating the default theme with text classes, just commit
with one for now. There can be tweakings at Elm config app's UI fonts
page, I know, but that will come later (editable preview field, font
hinting/fallback, blablabla).

WARNING: for users testing elm config, an old "rm -rf
~/.elementary/config" might be needed here, after this commit.



SVN revision: 54681
2010-11-18 10:01:24 +00:00
Gustavo Lima Chaves 646b4007ec Disable hook for elm lists in.
SVN revision: 54680
2010-11-18 10:01:05 +00:00
Gustavo Lima Chaves 4b06ff870f Typo--.
SVN revision: 54679
2010-11-18 10:00:53 +00:00
Gustavo Lima Chaves bffe78ab3a Taking off defined block which is not necessary anymore + indenting.
SVN revision: 54678
2010-11-18 10:00:41 +00:00
Gustavo Lima Chaves ceff604deb Elm config app sizing change (matching Elm test's size) and cosmetic
fixes.



SVN revision: 54677
2010-11-18 10:00:26 +00:00
Carsten Haitzler 0d689fc143 fix elm_module env var and ... elm_finger size . tnx mj lee. :)
SVN revision: 54674
2010-11-18 09:30:46 +00:00
Bruno Dilly ef9a69ed30 Fix elm_layout convenience macros II
I missed one.


SVN revision: 54649
2010-11-17 19:06:41 +00:00
Bruno Dilly 7626685c25 Fix elm_layout convenience macros
SVN revision: 54648
2010-11-17 18:51:43 +00:00
Bruno Dilly a69cc68c57 Add elm_genlist_item_item_class_update
1. elm_genlist_item_item_class_update() API
It is required to change an item's item class on run-time.
Applications want to change a certain item's style and callbacks
dynamically.
This looks ok because changing one item's style does not affect performance,
And this API uses elm_genlist_item_update internally.
API name follows elementary naming conventions.
I've also added test code to elementary_test, Genlist 7.

2. constant to macro.
I replaced 2 constants for max_item_per_block and longpress_timeout to
macros.
This could be used in other places of the code.

3. duplicated assignment.
In elm_genlist_item_append, it->before = 0 is written in if and else.
I put this statement out of if().

4. fix doxygen typo
I fixed elm_genlist_compress_mode_set doxygen.

By: Daniel Juyung Seo <juyung.seo@samsung.com>



SVN revision: 54639
2010-11-17 17:15:28 +00:00
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
Lucas De Marchi 067a49f294 Disable extra log verbosity
SVN revision: 54627
2010-11-17 10:35:31 +00:00
Lucas De Marchi d3b985e259 Log goes to stderr instead of stdout
SVN revision: 54626
2010-11-17 10:35:25 +00:00
Lucas De Marchi 0c0b0445b0 Use macro for debugging instead of printf
SVN revision: 54625
2010-11-17 10:35:03 +00:00
Bruno Dilly 91b6b4f98e Set smart obj callbacks descs for hoverlist and fs_bt
Spotted by demarchi


SVN revision: 54596
2010-11-16 15:51:03 +00:00
Bruno Dilly 86deede66b Delete trailing spaces on elm_animator
SVN revision: 54590
2010-11-16 13:17:30 +00:00
Bruno Dilly 7d64614307 Add macro to do magic check on elm_animator EAPI funcs
By: 박춘언 <hermet@naver.com>


SVN revision: 54588
2010-11-16 13:07:25 +00:00
Carsten Haitzler 7debb66407 fix docs.
SVN revision: 54557
2010-11-15 02:55:36 +00:00
Tiago Rezende Campos Falcao 177beb5dc5 Fix elm_pager style change
SVN revision: 54495
2010-11-12 12:28:50 +00:00
Carsten Haitzler b74087982a no debug!
SVN revision: 54492
2010-11-12 10:59:44 +00:00
Carsten Haitzler 0584726101 fix focus revert -> reverting should revert only to widgets that say
they CAN be focused :) see conform 2 test. focuse the entry in the
pager then dlete the pager page (pop). before focus vanished. now it
goes back to the top entry as you'd expect.



SVN revision: 54486
2010-11-12 04:16:24 +00:00
Carsten Haitzler 5f8146dff7 comment++!
SVN revision: 54485
2010-11-12 03:13:38 +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 d485668cb2 Fixing resize problems in toolbar.
Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54468
2010-11-11 18:05:36 +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
Iván Briano 7454518f05 elm_box.c: Fix in elm_box_layout_transition
This function does not receive the Widget object in the parameter
Evas_Object *obj, so it must not check its type with ELM_CHECK_WIDTYPE

See "Box Transition" test in the elementary_test

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



SVN revision: 54461
2010-11-11 16:22:55 +00:00
Carsten Haitzler 4d9ef710d2 protect gengrid from div by 0
SVN revision: 54447
2010-11-10 23:59:59 +00:00
Tiago Rezende Campos Falcao 575431a3c1 Elm_Transit: Documentation improvement
Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54433
2010-11-10 18:06:34 +00:00
Tiago Rezende Campos Falcao d2b274329b Transit Effect: release data
Effects:
Translation
Resizable Flip
Fade
Blend

The effects above retrives information about objects in the transit,
they need to release these informations if the object dies.

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

SVN revision: 54432
2010-11-10 18:06:31 +00:00
Tiago Rezende Campos Falcao 38e5245d20 Transit Effect: blend and wipe behavior
This effects must do the evas_object_{show, hide} at the end of the
effect

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

SVN revision: 54431
2010-11-10 18:06:28 +00:00
Tiago Rezende Campos Falcao 0c67df5525 Transit Effect: otimization
Otimization: Do not pass twice by a list.
removing unuseble casts

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

SVN revision: 54430
2010-11-10 18:06:22 +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 b1f1474392 Elm_Transit: Fix bug when removing an object
Bug: If the object does not belong to the transit, it was removing the
obj_data from it.

Bug: segfaut if you try to remove an object that do not belongs to any
transit

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

SVN revision: 54427
2010-11-10 18:06:14 +00:00
Tiago Rezende Campos Falcao 6803cc68e7 Elm_Transit: Not allowing objects in multiples transits
Bug: if the objects belongs to multiples transits, there is a problem
with the internal state of the object storage with the data_set
function. If a transit die, it will free this data, and the other
transit will crash.

Removing _elm_transit_object_remove_cb prototype

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

SVN revision: 54426
2010-11-10 18:06:11 +00:00
Tiago Rezende Campos Falcao 6cf4ad0892 Elm_Transit: cleaning up the code
Removing math functions. Changing how auto_reverse works
Removing _tween_progress_calc
If the object dies, the del_cb does not need to be deleted
Coccinelle modifications

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

SVN revision: 54425
2010-11-10 18:06:08 +00:00
Tiago Rezende Campos Falcao 4c710e0438 Elm_Transit: adding EINA_MAGIC
Author: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54424
2010-11-10 18:06:05 +00:00
Tiago Rezende Campos Falcao 137f123753 Elm_Transit: deleting transit if there is no more effects
After you add an effect, if the effect's list stay empty, the transit
will die

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

SVN revision: 54423
2010-11-10 18:06:03 +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 02b2d75aa2 Elm_Transit: fix in elm_transit_del
If the transit object is removed inside some animation, there is a
problem. Now we set the transit to be deleted.

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

SVN revision: 54421
2010-11-10 18:05:57 +00:00
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