Commit Graph

22 Commits

Author SHA1 Message Date
Christophe Sadoine fbe18f2eab spinner: added signals "spinner,drag,start" and "spinner,drag,stop"
Reviewers: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D271
2013-10-23 23:03:50 +09:00
Daniel Juyung Seo 6cf684f02a elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-10 14:13:55 +09:00
Daniel Zaoui 3b6fa4e0a2 Elementary: Split headers for Map, Menu, Panel, Panes, Photocam, Plug,
Prefs, ProgressBar, Radio. Route, Segment Control, Separator, Slider,
   Slideshow, Spinner, Systray, Table, Thumb, Video, Web.
2013-04-28 13:55:41 +03:00
ChunEon Park fd772a71eb elementary/fileselector_button, fileselector_entry, spinner - support language,changed callback. 2013-04-23 21:00:50 +09:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Bruno Dilly fed295ce26 elementary: add since tag on new spinner funcs
SVN revision: 77600
2012-10-08 22:55:26 +00:00
Bruno Dilly e0d1bab54a elementary: add special value del / get funcs to spinner
SVN revision: 77590
2012-10-08 22:39:15 +00:00
Bruno Dilly 34dbd67c31 elementary: fix spinner wrap
It's weird, but looks like wrap mode of the spinner is broken at least
since the move of elm to trunk.

The current code:

  if (sd->wrap)
     {
        while (new_val < sd->val_min)
          new_val = sd->val_max + new_val + 1 - sd->val_min;
        while (new_val > sd->val_max)
          new_val = sd->val_min + new_val - sd->val_max - 1;
     }

doesn't seems correct. Since even the documented example would fails:

 * E.g.:
 * @li min value = 10
 * @li max value = 50
 * @li step value = 20
 * @li displayed value = 20
 *
 * When the user decrement value (using left or bottom arrow), it will
 * displays @c 40, because max - (min - (displayed - step)) is
 * @c 50 - (@c 10 - (@c 20 - @c 20)) = @c 40.

With the current code the value will be 41.

It also could lead to values above min, like happens on the first spinner test,
when you could go to -50.5 because new value will become:
 250 + (-50.5) + 1 - (-50) in the first while() and later since these value
 is bigger then 250, would go back to -50.5 ...

So, a reasonable algorithm would be

  if (sd->wrap)
     {
        if (new_val < sd->val_min)
          new_val = sd->val_max + new_val - sd->val_min;
        else if (new_val > sd->val_max)
          new_val = sd->val_min + new_val - sd->val_max;
     }

But it doesn't works fine for cases like the months spinners test, when you
have min = 1, max = 12, step = 1 and each option should be displayed with
wrap. This algorithm would wraps from 1 to 11, so would skip December...

So, I think just going to the max value when min is reached is the better
choice.

   if (sd->wrap)
     {
        if (new_val < sd->val_min)
          new_val = sd->val_max;
        else if (new_val > sd->val_max)
          new_val = sd->val_min;
     }



SVN revision: 77278
2012-10-01 20:44:19 +00:00
Gustavo Lima Chaves ccaa32d72a [elm] Welcome pretty widget hierarchy images on docs.
The Makefile rule building that is commented out -- meant to be run
locally once in a while (when changes on overall widget tree happen)
and changed images commited.



SVN revision: 71721
2012-06-05 22:41:21 +00:00
Gustavo Lima Chaves d9788a6249 [Elm] Spinner now a layout.
SVN revision: 71087
2012-05-14 21:52:06 +00:00
Jonas M. Gastal e72d8001e4 Adding references to the API
Author:    Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 70281
2012-04-17 20:33:59 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Carsten Haitzler cb96df9ed7 missed a doc string
SVN revision: 68916
2012-03-07 09:31:34 +00:00
Carsten Haitzler 0a60e3a9cc warn--
SVN revision: 68892
2012-03-07 08:13:06 +00:00
Sanjeev BA 194ba318a9 Fix Pointer where to store => Pointer to store.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68381
2012-02-24 06:05:31 +00:00
Carsten Haitzler b6fd8c353e add rouding+base to spinner - otherwise u can never slow it down and u
cant round to specific values. fixed month test to do this too.



SVN revision: 67982
2012-02-15 12:32:02 +00:00
Sanjeev BA 22518d5a24 Fix typos in documentation #10.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

SVN revision: 67913
2012-02-14 08:50:49 +00:00
ChunEon Park 5661f3830a elementary - updated doc.
SVN revision: 66984
2012-01-09 06:55:51 +00:00
Carsten Haitzler 745a1517d5 remove eina_pure and eina_nonnull because really.. they screw up
auto-formatting scripts and i just spent a long time fixing the
results of one. the actual value of these macros is minimal at best



SVN revision: 66680
2011-12-30 09:48:46 +00:00
Carsten Haitzler ec0bd7f73f move lots of deprecated stuff into deprecated files. need 2 right now.
SVN revision: 66679
2011-12-30 09:41:11 +00:00
Carsten Haitzler 0930fdcd52 fomatting of headers -> fixup. and documentation fixing.
SVN revision: 66667
2011-12-30 07:20:48 +00:00
Carsten Haitzler 39f63f3bf6 split up all elm headers. not perfect, but a big start
SVN revision: 66662
2011-12-30 06:49:28 +00:00