Commit Graph

121 Commits

Author SHA1 Message Date
Daniel Juyung Seo b8068daee9 elm els_scroller.c: Always check and delete hold_animator on mouse up.
SVN revision: 63539
2011-09-22 17:40:44 +00:00
Daniel Juyung Seo 45372847f9 elm gengrid: Added page feature to gengrid. Patch by Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu>. Thanks a lot!

On Wed, Aug 31, 2011 at 1:52 PM, Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu> wrote:
> Earlier this month, there was a svn commit
> (http://trac.enlightenment.org/e/changeset/62496) which added a few
> page-related APIs to the elm scroller.  These should probably also be
> added to gengrid, genlist and maybe even grid and list.  Right now,
> though, I need them for gengrid.  So I propose this patch, based
> entirely on the change that went in before.  I've built it and I'm
> using these new gengrid APIs in my code now.

On Fri, Sep 9, 2011 at 4:45 PM, Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu> wrote:
> Slowly but surely....
>
> This version of the gengrid page APIs patch has the following changes:
> 1. fixed spacing issues
> 2. add const where needed
> 3. submitted a gengrid longpressed change in a separate patch
>
> I really want to try to squeak this in the upcoming release if at all
> possible. If I have an extra space in some file, I promise I'll not do
> it again for the next patch!
>
> Thanks!!
> Ben


SVN revision: 63403
2011-09-15 02:16:37 +00:00
Daniel Juyung Seo c11701e85a elm els_scroller.c: Fixed formatting.
Fixed indentation. Fixed spacing.


SVN revision: 63084
2011-09-02 04:52:18 +00:00
Daniel Juyung Seo a817b43d33 elm: Removed all trailing whitespaces.
Why they are added even I'm removing them arbitrarily.


SVN revision: 63083
2011-09-02 04:09:17 +00:00
Carsten Haitzler ae7a70bc77 handle case where child obj resizes WHILe bouncing/scrolling around
AND we are at or beyond a limit.



SVN revision: 62945
2011-08-29 12:48:00 +00:00
Jaehwan Kim 976085a86e From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] signal "scroll,anim,stop"  in els_scroller

fix the bug which the signal "scroll,anim,stop" is not called sometimes.



SVN revision: 62789
2011-08-25 08:46:52 +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
Daniel Juyung Seo 4879118510 elm: Removed trailing whitespaces before I work on.
SVN revision: 61933
2011-08-01 06:46:43 +00:00
Jaehwan Kim 159888e059 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: Re: [E-devel] [Patch] The bounce problem in the scroller.

The scroller has a problem when it is scrolled consistently in the end of the edge.
It has an acceleration. If the scrolling occur again before the animation end,?
the scroll-animation (momentum animation) be faster. When it is in the end of the edge,
it does, too. So the content of the scroller disappear because of the acceleration.
The scroller don't need to has the acceleration in the end of edge.

The below is the problem.
http://www.youtube.com/watch?v=Qg7BZrm9EnA

And the below is the scroller which be patched.
http://www.youtube.com/watch?v=lHT6G9WoNSs



SVN revision: 61800
2011-07-27 09:24:42 +00:00
Jaehwan Kim 4ebfb567bd From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] The scroll animation doesn't work when the
scroll-action is started from the outside of a viewport.

In scroller, if the scroll-action is started from the outside of a
viewport,
the momentum animation does not work because of the bounce-effect.

Please see the below video.
http://www.youtube.com/watch?v=xNvLSxWjrDE
 
The below video is the scroller after applying my patch.
http://www.youtube.com/watch?v=hM3o1kxC674



SVN revision: 61799
2011-07-27 09:21:54 +00:00
Rafael Antognolli e42e50e434 elm/genlist - Fix bounce option getter.
Try to get the bounce option from the internal els_scroller, and also
add checks on the els_scroller api to see if the arguments were given.



SVN revision: 61592
2011-07-22 17:15:33 +00:00
Jaehwan Kim 43954a560d From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel]  [patch] els_scroller simple bug

els_scroller in elementary has a simple bug.

In the function "_smart_scrollto_x", it makes the animator
'sd->scrollto.x.animator', if the animator does not exist. But 
"_smart_anim_start" before ecore_animator_add can make 2 animators. 
If the function which be called by _smart_anim_start call
"elm_scroller_region_bring_in", "_smart_scrollto_x" be called again and make 
the animator. After the function which be called by _smart_snim_start ends,
the next line will make the animtor again. Despite the code checks the
animator, it can make 2 animators. So we have to change the order of the code
like patch file.



SVN revision: 60507
2011-06-20 07:20:31 +00:00
Daniel Juyung Seo c197a99832 Elm scroller: Fixed 'may be used uninitialized' warnings.
SVN revision: 60231
2011-06-11 16:43:20 +00:00
Daniel Juyung Seo e6dbf02e0e Elementary: Removed trailing whitespaces from c,h,am,ac,in.
I think there is no more whitespaces in elementary. So from now on
please check if your code is whitespace-free when you commit it. If so,
no one will suffer from removing whitespaces and merge conflict.


SVN revision: 60223
2011-06-11 07:36:37 +00:00
Carsten Haitzler 28ba600756 less comments and cleaner code with commented out plotting debug
SVN revision: 60189
2011-06-10 12:16:20 +00:00
Carsten Haitzler 9648eab6c0 and no needfor old overrides for setting fx/fy
SVN revision: 60186
2011-06-10 10:17:45 +00:00
Carsten Haitzler b01978ac93 forgot to make window of smoothing configurable. fix minor macro
oopsie too.



SVN revision: 60165
2011-06-10 05:07:21 +00:00
Carsten Haitzler 5b2f1b7956 scroller smoothing stuff.
SVN revision: 60126
2011-06-09 10:14:16 +00:00
Carsten Haitzler 31536211cd mark magic number as such
SVN revision: 60073
2011-06-08 06:58:51 +00:00
Carsten Haitzler 59c203323a aaargh. thumbscroll border friction not quite right.. 0 is valid. :)
also... 0 are valid values of these config vars when getting props



SVN revision: 60072
2011-06-08 06:54:02 +00:00
Jaehwan Kim a356004af9 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller bug patch.

I and Seoz found some problem about
_elm_smart_scroller_wanted_region_set in els_scroller.
While genlist items are appended, momentum animation in scroller
cannot operate.
It's why _elm_smart_Scroller_wanted_region_set is called continually.
It's the problem which Seoz told you. and I fixed this problem.
Please check the attached patch file.

If you want to check the problem.
Set the "Thumb scroll friction" in elementary_config to 2~3.
Change the file "test_genlist.c" in elementary/src/bin like below.



SVN revision: 59105
2011-05-02 09:22:50 +00:00
Tom Hacohen 25e4d80217 Elementary els_scroller: Merge region_show and region_bring_in codes.
They are 99.99% the same, no reason why not to merge them.

SVN revision: 59077
2011-05-01 09:40:30 +00:00
Tom Hacohen f93bfb1222 Elementary els_scroller: Fixed not moving when position is shown.
The scroller shouldn't move when the position requested is already
shown. There were two problems:
1. It was assumed that the cw/ch == requsted w/h which is not true, for
example with entry, we sometimes request to show the cursor which way
smaller.
2. We want to check the bounds *after* making sure we are not showing
"dead space" i.e places that the child does not populate.

SVN revision: 59076
2011-05-01 09:40:28 +00:00
Sangho Park fc0054e855 els_scroller: add apis for enable/disable default wheel control
SVN revision: 58984
2011-04-28 02:34:00 +00:00
Daniel Juyung Seo fa81dba991 Elementary els_scroller.c: Refactored code.
Changed unsigned char to Eina_Bool. Changed 0 to EINA_FALSE for Eina_Bool type variables. Removed unnecessary blank line. Added braces in if statements.


SVN revision: 58964
2011-04-27 15:31:31 +00:00
Tom Hacohen 4ea6131744 Elementary smart-scroller: Fixed scroller "jumping" in some cases.
In some cases, for example resizing the GenGrid test or just using
ephoto, the scroller would jump to the right before going to it's
proper direction. We should check if the position is below minimum
after we reduce the position, and not instead.

SVN revision: 58383
2011-04-06 07:51:26 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
ChunEon Park 71d2f4b067 elementary / cursor, scroller, icon - removed white spaces
SVN revision: 58248
2011-04-01 11:08:31 +00:00
Jae Hwan Kim 9e506fc581 From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
If the scroller is stopped and set the freeze push while bounce
animation is running, it will stop bouncing in a moment. Even if the scroller
is set the freeze pop again, the scroller don't finish the bouncing. I think
that it should finish the bouncing when it is set the freeze pop.



SVN revision: 58063
2011-03-24 07:34:23 +00:00
ChunEon Park 3d570dd8d3 elementary/scrollers - added minor exceptios.
SVN revision: 57702
2011-03-12 06:36:21 +00:00
ChunEon Park c3e3ebb3ac elementary/els_scroller - added one minor exception
SVN revision: 57687
2011-03-11 09:57:10 +00:00
ChunEon Park 8032a600c1 elementary/els_scroller - added exception handling
if user call any other APIs (ex, elm_smart_scroller_object_theme_object_set) before elm_smart_scroller_child_set?



SVN revision: 57686
2011-03-11 09:43:48 +00:00
ChunEon Park 9442bdd854 elementary/els_scroller - it will be better if compiler does not optimize maybe.
SVN revision: 57685
2011-03-11 09:15:38 +00:00
ChunEon Park af265e149f elementary / els_scroller - removed a useless line
It cause a error since the pan object does not have any child yet. 
And why it should be visible even if it should call evas_object_show after setting child? 

Anyway, the line does nothing. 



SVN revision: 57683
2011-03-11 04:49:56 +00:00
Jae Hwan Kim 17977b5483 From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel]  [Patch] elm_smart_scroller_child_region_show_internal

In the els_scroller of the elementary, the function
"elm_smart_scroller_child_region_show_internal"
have a problem. If the parameters "x,y,w,h" have the wrong value like
"elm_scroller_region_show(scroller,
-300, -300, 900, 900);", the scroller move the position temporarily.
The scroller seem to jump.
So if the value of the parameter is not valid, it should be changed to
valid value.
The work is applied already in the function
"elm_smart_scroller_region_bring_in".
It should be applied in the function
"elm_smart_scroller_child_region_show_internal" too.
I changed the code like bring_in function.



SVN revision: 57666
2011-03-10 10:25:30 +00:00
Tom Hacohen bad3371285 Elementary els_scroller: Fix moving to Wanted X (wx) on child resize.
We should also move the the wanted X when the child resizes. This fixes
scroller position in elementary_test "Icon Desktops" test.

SVN revision: 57195
2011-02-20 16:00:03 +00:00
Tom Hacohen 83d2421b60 Elementary els_scroller: Fix a bug with ui-mirroring.
Bug happened when child_w < scroller_w and ui-mirroring was on.
The position calculated was smaller than 0 and thus not correct.

SVN revision: 57194
2011-02-20 16:00:00 +00:00
Tom Hacohen b0d87077a5 Elementary els_scroller: Fixed "Wanted position" when using elm_smart_scroller_region_bring_in.
SVN revision: 57185
2011-02-20 09:32:44 +00:00
Tom Hacohen 57afcfb4ea Elementary els_scroller: Fixed bar-dragging.
[patch] els_scroller - simple bug fix about bar-dragging. by Jae Hwan Kim.

More info:
You can test it in "Scroller" menu of the "elementary_test".
We cannot move the scroller by dragging the bar.
The reason is why the bar-dragging-event and mouse-move-event confict.
When bar is draged, the movement by mouse-move should be freezed.

SVN revision: 57184
2011-02-20 09:15:16 +00:00
Carsten Haitzler c4588a97dc fix paginated scrolling so it works again!
SVN revision: 57149
2011-02-18 12:12:56 +00:00
Tom Hacohen f332616913 Elementary els_scroller: Fixed mouse_wheel scrolling.
SVN revision: 57121
2011-02-17 11:35:37 +00:00
Tom Hacohen cc43f2aaba Elementary els_scroller: Fixed a valgrind uinitialised_value error.
Happens when pan_get doesn't set the coords.

SVN revision: 57117
2011-02-17 09:21:25 +00:00
Tom Hacohen bc1db16efe Elementary els_scroller: Move updating of wx/y/w/h into one function.
And fixed a bug when updating them to wrong values. - Issue reported and solution suggested by Jaehwan Kim.

SVN revision: 57054
2011-02-15 15:56:59 +00:00
Tom Hacohen eb7a0308c3 Elementary els_scroller: Fixed updating of wx/wy/ww/wh with momentum and bounce.
Patch by Aharon Hillel.

SVN revision: 56986
2011-02-13 14:37:18 +00:00
Tom Hacohen a71e41cf11 Elementary: Fixed scroller location with on-the-fly UI-mirroring.
By Aharon Hillel.

SVN revision: 56923
2011-02-10 15:13:09 +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 d6c8dee076 Elementary els_scroller: Added mirrored_set and mirroring support.
SVN revision: 56802
2011-02-08 12:08:24 +00:00
Tom Hacohen b91af8da1a Elementary: applied 56579 on region_show (that commit already applied on bring_in).
SVN revision: 56584
2011-01-31 10:23:56 +00:00
김재환 d63a0cb003 From: 김재환 <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller - Cannot click even if it
reach to end

I have another issue in scroller when the bounce is off.
Scroller cannot be clicked even if it reach to edge and animation is
end.
The reason is why the momentum animation is running even if it reach
end and bounce animation is off.
So I change the code that if it reach the edge in case of bounce-off,
the momentum animation is stoped.
The following is the patch code.




SVN revision: 56580
2011-01-31 10:13:40 +00:00
Jae Hwan Kim 1bfd549a08 From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller -
elm_smart_scroller_child_region_show

I have some issue in scroller.
Sometimes the scroller move to wrong region when the child get first
focus.
It use "scroller -> layout -> button".
So I checked the code and found a suspected thing in
elm_smart_scroller_child_region_show.
Please refer following pictures.

In the pictures, the rect which be written "x, y, w, h" is the area 
which be made with the parameters of
"elm_smart_scroller_child_region_show".
The rect which be written "Pan" is the pan area of the scroller.

If the situation is 1) or 2) and the function is called, the result
have to be 7).
In case of 3) or 4), it have to be 8).
In case of 5) or 6), it have to remain as it is.
Is it right??

But if the situation is 6) and the function is called, the result will
be 7) in current code.
I think it is wrong.
I attached patch code. please find it below the pictures. 

1)
    ---------------
    |                    |
    |   x, y, w, h   |
    |                    |
    ---------------
---------------------
|                             |
|                             |
|                             |
|            Pan           |
|                             |
|                             |
|                             |
---------------------

2)
    ---------------
    |                    |
    |   x, y, w, h   |
---------------------
|   |                    |   |
|   ---------------   |
|                             |
|            Pan           |
|                             |
|                             |
|                             |
---------------------

3)
---------------------
|                             |
|                             |
|                             |
|            Pan           |
|                             |
|   ---------------   |
|   |                   |    |
---------------------
    |   x, y, w, h   |
    |                    |
    ---------------

4)
---------------------
|                             |
|                             |
|                             |
|            Pan           |
|                             |
|                             |
|                             |
---------------------
    ---------------
    |                    |
    |   x, y, w, h   |
    |                    |
    ---------------

5)
---------------------
|                             |
|   ---------------   |
|   |                    |   |
|   |   x, y, w, h   |   |
|   |                    |   |
|   ---------------   |
|            Pan           |
---------------------

6)
    ---------------
    |                    |
---------------------     <---Pan
|   |                   |    |
|   |   x, y, w, h  |    |
|   |                   |    |
---------------------
    |                    |
    ---------------

7)
---------------------
|   |                    |   |
|   |   x, y, w, h   |   |
|   |                    |   |
|   ---------------   |
|                             |
|            Pan           |
|                             |
---------------------

8)
---------------------
|                             |
|            Pan           |
|                             |
|   ---------------   |
|   |                    |   |
|   |   x, y, w, h   |   |
|   |                    |   |
---------------------
                                     


SVN revision: 56579
2011-01-31 10:00:49 +00:00