On Tue, 01 Sep 2009 18:07:12 +0300 Viktor Kojouharov <vkojouha...@gmail.com>
said:

> On Tue, 2009-09-01 at 17:55 +0300, Viktor Kojouharov wrote:
> > Hi guys,
> > 
> > I've attached a patch that adds a spinner widget to elementary. This
> > spinner looks and acts more like the spinners in blender, than the
> > spinner seen in Windows or gtk+. The inc/dec buttons are on the left and
> > right sides, and the user can click and drag across the widget to
> > increase/decrease the value. Clicking on the text changes it to an
> > editable entry.
> > 
> > What needs to be done is to have the arrow keys increase/decrease the
> > value when in entry mode as well, as well as having the escape key
> > cancel the change. Not sure if that can be done without making small
> > changes to elm_entry though.
> 
> Adding the patch as a zip instead. Seems it didn't make it to the ML
> when it was a tar.bz2

hey. not bad. one thing i'd consider is a theme/visual change - when you drag,
something drags with your finger and "expands" in the direction of your drag.
eg:

normal                 [# 13 #]
pressed                [#[13]#]
dragged to right to 15 [#[15--]
dragged to right to 25 [#[25-----]
dragged to right to 30 [#[30--------]

so you see it expand away. problem is if this is out of "window bounds" its a
bit useless. but if the spinner is within the window and with space it'd look
nice. also a vertical spinner too.

anyway 1. escape can be done by grabbing "Escape" key - evas has key grabs. you
can grab it when the widget gets focus and ubgrab when you lose it (this way it
isnt grabbed from other widgets when then need it). he other way is to expose
special keys like escape from edje_entry and then via elm_entry up. but it does
need an exit mode there! not working too well!

btw - probably should have inc/dec buttons "exit entry mode" if u ask me. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to