Commit Graph

110 Commits

Author SHA1 Message Date
Gustavo Lima Chaves 597313e157 [elm] Properly fix the scroller API entry issue.
SVN revision: 76408
2012-09-10 14:06:53 +00:00
Gustavo Lima Chaves 94e46bb26c [elm] Check for scrollable, not scroller, on these elm_scroller.c calls.
SVN revision: 76406
2012-09-10 13:52:36 +00:00
Gustavo Lima Chaves ac299e6a59 [elm] Rework focus_region and on_focus_region
hooks.

The former is now issued for all scrollables, with the behavior it had
before, and the latter is a new virtual base function, with a default
implementation leading to values matching the old case where one
didn't implement the hook.

Please help me test if everything is OK -- it seems so, here.



SVN revision: 75904
2012-08-30 16:47:16 +00:00
Gustavo Lima Chaves ff6ae0d0bf [elm] Scroller now inheritable.
SVN revision: 74680
2012-07-31 22:05:55 +00:00
Gustavo Lima Chaves 1cbb9301ca [elm] Here, better.
SVN revision: 74679
2012-07-31 22:05:50 +00:00
Gustavo Lima Chaves 7d1ffe6195 [elm] Some oopsies--.
SVN revision: 74405
2012-07-25 22:03:07 +00:00
WooHyun Jung 37ccbbcd72 elementary/elm_scroller : Focus direction failed on elm_scroller.
So I fixed.


SVN revision: 74366
2012-07-25 02:39:33 +00:00
Carsten Haitzler e73440197e fix evil scroller self-feeing loop scrollbar sizing issues.
SVN revision: 74041
2012-07-18 06:59:16 +00:00
Gustavo Lima Chaves 0ead820b96 [elm] No init code out of smart_add() -- scroller.
SVN revision: 73995
2012-07-17 14:56:44 +00:00
Gustavo Lima Chaves ce361dca42 [elm] Bug fixing on scroller.
We had an inconsistency of two missing getters, that would "leak" API
deprecation on specialized scrollers (scrollables). Putting them in
for good now.



SVN revision: 73540
2012-07-10 21:40:30 +00:00
Gustavo Lima Chaves 9e4f104587 [elm] Fix bad theming on new layout widgets.
SVN revision: 73381
2012-07-05 21:07:15 +00:00
Gustavo Lima Chaves 41892a360f [elm] Scroller widget now on scrollable interface.
Its API will be the the common one on ALL scrollable widgets, too.
Any scrollable widget having a function behaviour clashing with one of
the elm_scroller_* will be marked as DEPRECATED from now on.



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


SVN revision: 70681
2012-05-03 03:02:54 +00:00
Jihoon Kim 7046f87e3a elementary: ignore key event of keypad when NumLock is turned on in win, scroller, slider, video, photocam, map, slideshow, and spinner.
SVN revision: 69952
2012-04-06 10:34:03 +00:00
Jiyoun Park a38ae3b4ca remove code related with elm_scroller_content
which was deprecated


SVN revision: 69095
2012-03-09 11:55:26 +00:00
WooHyun Jung e6b37886a8 elementary/elm_scroller : When focus_next is tried on the unfocused
scroller, only scroller(not the one of the child objects) will be set
as focused. This is because scroller is focusable.


SVN revision: 67113
2012-01-12 04:52:44 +00:00
ChunEon Park 236192cd9a elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names
but in modified version, the part names chaned to simpler meaning names to use.

i.e for button

elm_object_content_part_set(button, "elm.swallow.icon", icon);
-> elm_object_content_part_set(button, "icon", icon);




SVN revision: 65295
2011-11-16 12:51:53 +00:00
ChunEon Park f856c0e9fe elementary - slider, scroller, progressbar, radio
applied elm_object_content_set/get/unset APIs. 



SVN revision: 64542
2011-10-31 02:56:03 +00:00
Daniel Juyung Seo bafe9c7426 elm: Use appropriate add/del_full for evas event callbacks.
SVN revision: 64536
2011-10-31 00:13:32 +00:00
Daniel Juyung Seo 548d0c1647 elm scroller: Added EINA_ARG_NONNULL to API declarations and added
'const' to the first parameter of getter API.


SVN revision: 64122
2011-10-17 05:40:32 +00:00
Daniel Juyung Seo 4c31c1a1a1 elm scroller: Fixed wrong return value.
SVN revision: 64078
2011-10-15 00:44:11 +00:00
Hyoyoung Chang fad1e70386 From: Hyoyoung Chang <hyoyoung.chang@samsung.com>
Subject: [E-devel] [patch] elm_scroller - add gravity functionality

I made a gravity features for stopping scroller.
Elm_scroller's fixed when child's growing lower.
However if scroller's child is growing upper,  
the elm_scroller always moving and waving to upper direction.
Because elm_scroller sets internal pan to keep current virtual position.
Gravity functions introduce to stopping scroller.



SVN revision: 64073
2011-10-14 10:57:31 +00:00
ChunEon Park d646474aed elementary/scroller - patched by jae.hwan.kim@samsung.com
fix two bugs - use elm_smart_scroller_edje_object_get in case of edje object

fix conditional statement when parameter is 0 in
elm_smart_scroller_page_show,

elm_smart_scroller_page_bring_in



SVN revision: 64010
2011-10-12 07:04:15 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Daniel Juyung Seo 8d9360dea6 elm scroller: Added 'const' to the first Evas_Object parameter of
getters.


SVN revision: 63085
2011-09-02 04:53:48 +00:00
Daniel Juyung Seo 9e23119e41 elm: Refactoring. Modified elm_{widget}_scroller_policy_set() API.
SVN revision: 62957
2011-08-29 16:30:14 +00:00
Carsten Haitzler c739e60ab0 working on factory - fix fixme in box while i'm at it.
SVN revision: 62946
2011-08-29 12:52:41 +00:00
김재환 00a1ea50ad From: 김재환 <jae.hwan.kim@samsung.com>
I added 4 APIs for the page function of the scroller.
   
      Those are,
      
         EAPI void elm_scroller_current_page_get(Evas_Object *obj, int
*h_pagenumber,
   int *v_pagenumber));
   
      (Get scroll current page number.)
      
         EAPI void elm_scroller_last_page_get(Evas_Object *obj, int
*h_pagenumber,
   int *v_pagenumber);
   
      (Get scroll last page number.)
      
         EAPI void elm_scroller_page_show(Evas_Object *obj, int
h_pagenumber, int
   v_pagenumber);
   
      (Show a specific virtual region within the scroller content
object by page
   number without animation.)
   
      EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int
h_pagenumber, int
   v_pagenumber);
   
      (Show a specific virtual region within the scroller content
object by page
   number with animation.)
   


SVN revision: 62496
2011-08-16 10:52:01 +00:00
WooHyun Jung cf9f98b706 elementary : Partly rollback for about the feature "focus movement by
arrow keys". There is a better way to support this feature, so
implementing it now.


SVN revision: 62168
2011-08-06 07:39:31 +00:00
WooHyun Jung 9778bd956d elementary/elm_scroller : Modified event_hook function. Now arrow keys
will move focus among scroller's child objects.


SVN revision: 62126
2011-08-05 08:31:25 +00:00
Jonas M. Gastal d7ebb65def Elementary: scroller documentation.
SVN revision: 61861
2011-07-28 14:53:26 +00:00
ChunEon Park 902a467b7e Elementary / genlist, slider, radio, win toolbar, thumb, toggle, scroller, slideshow, spinner
updated signall callback list in each doxygen 



SVN revision: 58342
2011-04-05 02:04:28 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
ChunEon Park 711b428aae elementary / slider, radio, separator, photocam, photo, store, scroller, slideshow, spinner, progressbar - removed white spacesw
SVN revision: 58250
2011-04-01 11:24:15 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
Carsten Haitzler fc74c7867c valgrind complaints--
SVN revision: 58241
2011-04-01 05:03:38 +00:00
ChunEon Park 3d570dd8d3 elementary/scrollers - added minor exceptios.
SVN revision: 57702
2011-03-12 06:36:21 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
Tom Hacohen 243a408200 Will soon commit a better solution instead.
Revert "Elementary scroller: Fixed an issue in scroller. When a resize happens (or any change for that matter), we should go to the last "asked for" location. This for example fixes an issue with elm_scrolled_entry (and many other widgets) showing "empty regions" on some resizes."

This reverts commit f322bd28101518849c53e6d56b93c206e4129162.

SVN revision: 56282
2011-01-24 10:50:30 +00:00
Tom Hacohen 5e82ffad18 Elementary scroller: Fixed an issue in scroller. When a resize happens (or any change for that matter), we should go to the last "asked for" location. This for example fixes an issue with elm_scrolled_entry (and many other widgets) showing "empty regions" on some resizes.
SVN revision: 56276
2011-01-24 03:01:29 +00:00
Myungjae Lee 809e800133 From: Myungjae Lee <mjae.lee@samsung.com>
Subject: [E-devel]  [PATCH] elm scroller, scrolled entry: events
propagation, min size

It's not possible to connect event handler such as
EVAS_CALLBACK_KEY_UP to
elm_scrolled_entry because the scroller inside the scrolled entry does
not
propagate events. So this is the patch for adding events propagation set
function to scroller and setting it to EINA_TRUE in elm scrolled entry.

And one more thing in scrolled entry, while evaluating its size,
scrolled
entry does not consider its min size.
(It just refers to the min size of its scroller object instead of
scrolled
entry object.)
So here in the attached patch, scrolled entry compares its min size to
the
min size of the scroller object and set the bigger one to its min size
to
keep the min size set by intent.

looks good - some mistakes you made. you forgot the patch that adds
elm_scroller_propagate_events_set() to Elementary.h.in .... i added it
for
you. but remember to include it in your patch next time. Also  the
documentation could be a LOT better! i fixed that for you too. also -
you
could have added a elm_scroller_propagate_events_get(). i added that
too for
you. oh.. and you didn't use ELM_CHECK_WIDTYPE().



SVN revision: 55609
2010-12-17 10:47:55 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Tiago Rezende Campos Falcao a609cc1b69 Elementary patch for supporting keypad
Author: Jihoon Kim <jihoon48.kim@samsung.com>

SVN revision: 55062
2010-11-29 13:56:33 +00:00
helen cffdcb4efa Fix some getters from elm_scroller.c
elm_scroller_policy_get was not verifying if its parameters are null.
elm_scroller_region_get was not getting the y if you pass x = null
and y != null

SVN revision: 54987
2010-11-25 15:16:54 +00:00
Carsten Haitzler 1b3700dbbd Hi Raster. This is Myungjae Lee.
As I’ve talked to you just before, I’m sending you the patch file for
applying max size in sizing_eval function in the scroller.

This patch will work in the case below

-       elm_scroller_content_min_limit() function is set to 1 (either
width or height)

-       the content’s min size is growing up unlimitedly (such as
entry case)

 
 
 Then the min size of the scroller cannot exceed the max size of itself.
 
 (if we let it be grown up to the content’s min size, there is no way
to limit the size of the scroller and to enable scrolling.)

 
 
 Please consider this way to avoid failure case (min is greater than
max) in the sizing_eval function,

and give me a feedback if it doesn’t meet any other requirement.

 
 
 Thank you.
 
  
  
   
   
   P.S.) patch file was created based on Rev. 54766.



SVN revision: 54978
2010-11-25 10:53:06 +00:00
Bruno Dilly b8200447ef Add bounce getter for remaining widgets
SVN revision: 54163
2010-11-05 00:45: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
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00