Commit Graph

143 Commits

Author SHA1 Message Date
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
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 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
Bruno Dilly 294fa1d974 Clean elm of undefined assigned values
SVN revision: 53398
2010-10-14 14:11:53 +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 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
Christopher Michael a433716827 Whitespace be gone !!
SVN revision: 53005
2010-10-04 03:40:43 +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 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
Iván Briano 8a20a80417 Scroller is a weird container that can focus
SVN revision: 52862
2010-09-28 19:36:25 +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
Tiago Rezende Campos Falcao 0d7a14174f Removing warnings in scrolled_entry and scroller
Adding NULL as return value.

SVN revision: 52688
2010-09-24 14:48:06 +00:00
Tiago Rezende Campos Falcao 113ad55d2e Focus Linear Chain for some Widgets
Containers implemented (and with test):
* Win
* Box
* Scroller
* Layout
* Panel

SVN revision: 52686
2010-09-24 14:47:59 +00:00
Leandro Pereira 8c4df25efe [Elementary] For icon/end elements, use swallow parts in the scroller theme instead of an Elm_Box.
This defines a new theme group for elm_scrolled_entry:
"elm/scroller/entry/$THEME".  Themes that wants to support the icon/end
feature in scrolled entry should implement parts "elm.swallow.icon" and
"elm.swallow.end".  Black&White theme has been changed, Effeniht changes
to come on a later commit.



SVN revision: 52657
2010-09-23 22:30:47 +00:00
Iván Briano c9a4a09aaa Scroller now checks if its theme has a highlight for focus, and if so, sets the necessary flags for it to work.
Also, a not really nice highlight for the scroller theme, but I am no artists and it shows the feature working.


SVN revision: 52650
2010-09-23 19:43:50 +00:00
Bruno Dilly f8de57f405 Add elm object signal emit and callback add / del hooks to entry, list and index
SVN revision: 52087
2010-09-09 18:53:36 +00:00
Brett Nash fc21092529 Fix some uncommon typos. A full list is included in the patch.
SVN revision: 52034
2010-09-09 08:59:34 +00:00
Carsten Haitzler 4ee4e9ed5e somone copy & pasted junk into doc comments. bad! fix.
SVN revision: 49962
2010-07-01 06:51:18 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +00:00
Bruno Dilly 64c0cbc955 Set signal emit hooks for entry, scroller and scrolled entry.
SVN revision: 49682
2010-06-15 15:04:05 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 83286a1d84 scroller in scroller.... works! well with scrollers for now (elm_scroller).
need to fix up some other instances of use of elm_smart_scroller. it's a 1
liner.



SVN revision: 48667
2010-05-07 13:21:45 +00:00
Tiago Rezende Campos Falcao ffaa68c266 Added get functions in elm_genlist and added external Genlist support. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47784
2010-04-06 14:01:04 +00:00
Gustavo Sverzut Barbieri 9c951bc6fc Describe more widgets callbacks.
These are all that Editje support now :-) Add others later as
required, but patches are welcome!



SVN revision: 47488
2010-03-26 10:59:56 +00:00
Carsten Haitzler d8f22e5020 password mode - really dont allow selecting of passwords form password fields.
SVN revision: 47467
2010-03-26 04:45:11 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Carsten Haitzler 9705f7dbe1 (remove useless edje_object_scale_sets's on objects that are not edje objects)
but more importantly - fix list to actually have a specific theme/base for it



SVN revision: 47381
2010-03-23 04:46:53 +00:00
Carsten Haitzler 5ceae54321 fix more runtime wornings... added ELM_ERROR_ABORT! :)
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Carsten Haitzler 27a1fc9a9c more warning--
SVN revision: 47099
2010-03-10 06:46:28 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler 6792e2db2c warning fix 1. :)
SVN revision: 47074
2010-03-09 07:30:48 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Christopher Michael aa454b3618 Fix callbacks to be proper Evas_Smart_Cb's and remove compiler warnings.
SVN revision: 43140
2009-10-18 05:40:22 +00:00
Carsten Haitzler c3ccf673e8 1. add signal emits for scrolling in photocam
2. standardise all callback names to be x,y,z etc. if they have multiple words.
3. add cal to get the region viewed
4. test photocams signals and new call



SVN revision: 43069
2009-10-14 08:41:36 +00:00
Carsten Haitzler 3f53c1a57f fix copy & paste bug
SVN revision: 42591
2009-09-21 05:50:54 +00:00
Carsten Haitzler 14b8de3a18 index not in scroller. better. a start.
SVN revision: 42241
2009-09-04 09:50:25 +00:00
Carsten Haitzler 59fc4b1be8 1. new spinner widget from Viktor Kojouharov <vkojouharov@gmail.com>
2. scroller stop fix in paginated mode
3. scroller docs



SVN revision: 42202
2009-09-03 12:36:39 +00:00
Carsten Haitzler 5781ad4a3e 1. add scroller test
2. add pagination concept to scroller (only scroll by pages)
3. add longpress callback for list + genlist
4. scroller docs and some empty api calls. 



SVN revision: 42147
2009-09-01 10:42:52 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Cedric BAIL 29adfe9fc8 * elementary: Full switch to Eina data type.
SVN revision: 41081
2009-06-17 15:35:19 +00:00
Carsten Haitzler 26b4f340b6 actually give widgets type name strings and set parent by default
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler 5c7e2ec144 1. fix box as it didnt hide clipper when it gets empty
2. add bouncing at ends for scroller and config for it
3. fix quicklaunch to be cserver-freidnly thanks to its fork tricks
4. add signals to scroller when scrolling and hitting edges
5. pants.



SVN revision: 40549
2009-05-08 11:27:32 +00:00
Carsten Haitzler bef9cfb99c a whole bunch of entry+scroller fixes.
SVN revision: 40327
2009-04-23 12:58:34 +00:00
Carsten Haitzler 73f3de55f4 patch from victor to make styles generic - not all widgets support them
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.



SVN revision: 40317
2009-04-23 04:03:27 +00:00
Carsten Haitzler 16a328cba1 and make entry work nicely by freezing/holding scrolling (hold == different
scroll mode).



SVN revision: 39601
2009-03-20 15:08:33 +00:00
Carsten Haitzler 6e0c99e69f fixes for some bugs i found, tree ability in genlist (basic not fully done
visually yet), and some win util calls added.



SVN revision: 39456
2009-03-13 05:50:38 +00:00
Carsten Haitzler fa0c07db79 todo stuff
scroller segv fix (list showed it).
check theme item placeholder. doing gfx.



SVN revision: 39161
2009-02-23 11:40:24 +00:00
Carsten Haitzler 986fcca059 allow for all widgets.objects to have different scaling factors.
add tests for these
add tests for inheriting scaling factor from parent
fix test app to use list now instead of box+buttons (cleaner)



SVN revision: 38909
2009-02-03 05:09:03 +00:00
Carsten Haitzler d63440b865 list is pretty functional now.
SVN revision: 38509
2009-01-09 07:35:52 +00:00
Carsten Haitzler 2c90cd89ae more list stuff working
SVN revision: 38508
2009-01-09 03:03:36 +00:00
Carsten Haitzler 56bb7d664a toolbar in. not 100% done yet.
SVN revision: 38209
2008-12-18 13:38:58 +00:00
Carsten Haitzler ee7131de29 and make elm auto-scale much better on the fly - not perfect... but not to
shabby. also in theory should cover theme changes on the fly... haven't tested.



SVN revision: 37662
2008-11-15 13:58:50 +00:00
Carsten Haitzler a3ad00322f and support password mode and proper focus on click
SVN revision: 36958
2008-10-22 08:58:56 +00:00
Carsten Haitzler ab493a0d00 and now entry is pretty much done (no hooks to x copy/paste selections etc.
but for now that's ok)



SVN revision: 36754
2008-10-17 14:40:54 +00:00
Carsten Haitzler eeb785ac88 and enable the 5 swallow regions (possibly limitless) of the hover and test
SVN revision: 36516
2008-10-08 08:14:25 +00:00
Carsten Haitzler 2eee18b46f fix sub object tracking. add layout object (untested)
SVN revision: 36491
2008-10-07 06:55:11 +00:00
Carsten Haitzler e8ef0d8bab new elm api - more evas liek and evas/edje freindly. i can mvoe forward now.
SVN revision: 36487
2008-10-07 01:23:49 +00:00
Carsten Haitzler 40655e28d5 hmm contactlist widget.. and.. elementary has a serious design flaw... whihc
i really don't like. now do i do a quick fix... or redo the entire api etc.



SVN revision: 36392
2008-10-02 12:45:23 +00:00
Carsten Haitzler 51123a3452 elementary becomes its own tree/lib/test binary
SVN revision: 36343
2008-09-30 06:58:56 +00:00