This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10806 - Yes/No Screen for absolute touchsreen mode
Attached to Project:
Rockbox
Opened by Carsten Schreiter (Kuma76) - Monday, 23 November 2009, 07:04 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Friday, 05 November 2010, 13:09 GMT+2
Opened by Carsten Schreiter (Kuma76) - Monday, 23 November 2009, 07:04 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Friday, 05 November 2010, 13:09 GMT+2
|
DetailsThis patch allows to use the yes /no screen in the absolute touchscreen mode.
It draws the message at the screen center and two buttons (yes and no) below. The functions to draw the buttons and to check if a button was pressed I put in separate files as they are used by the latest version of the absolute mode graphic EQ screen (FS#10639) too. |
This task depends upon
Closed by Maurus Cuelenaere (mcuelenaere)
Friday, 05 November 2010, 13:09 GMT+2
Reason for closing: Fixed
Additional comments about closing: Yes/no support for touchscreens was introduced in r27890.
Friday, 05 November 2010, 13:09 GMT+2
Reason for closing: Fixed
Additional comments about closing: Yes/no support for touchscreens was introduced in r27890.
For the yes/no screen, I think it's sufficiently simple to keep everything in one merged yesno.c file. Something like the attached patch ;-)
There are a few more things that need fixing before this can be committed. In particular, you should make sure not to use any floating-point maths in the Rockbox core (it's ok in plugins, but not the core). If you want to calculate 10% of some value, use something like x*10/100 instead...
About the grid mode. I can change the patch to show the screen in the old fashioned way in grid mode and with buttons in the absoute mode.
Personally I don't like this screen in grid mode and I can not think of anybody with a touchscreen who does, therefore I fixed this to the absolute mode.
Actually for me sometimes the grid is better (e.g. in lists), in other screens I prefer the absolute mode (graphic EQ (still patch only)), which means I would
like to have the mode selectable for different screens. But this is a different issue and I am not sure how to accomplish this. Selections menus seem to be
wasted, I think something like WPS tags would be nice, though the WPS is probably not the best place.
Anyway, as long is such a thing is not available, I would like to have this screen fixed to absolute mode. can you agree? Anything else needed to get this
committed?
Bearing this in mind, I think the patch I posted above is a good starting point. It needs some work still: the "grid mode" implementation is poor, and I think more code could be made common between the two implementations. Also the floating-point calculations need to be removed.