This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10322 - Abortable splash
Attached to Project:
Rockbox
Opened by Thomas Martitz (kugel.) - Friday, 12 June 2009, 15:06 GMT+2
Last edited by Thomas Martitz (kugel.) - Friday, 12 June 2009, 15:15 GMT+2
Opened by Thomas Martitz (kugel.) - Friday, 12 June 2009, 15:06 GMT+2
Last edited by Thomas Martitz (kugel.) - Friday, 12 June 2009, 15:15 GMT+2
|
DetailsThis adds asplash and asplashf (and vasplashf for internal use) which normal splashes but can be aborted with button presses.
Additionally, they return the action received (for CONTEXT_STD) so that the caller may handle aborts differently depending on the button. Also I converted a few annoying splashes to use it (when loading themes, wps, fonts etc and the resume failed splash) |
This task depends upon
my plan was to have ALL splashes either have 0 timeout, or a constant 3s (or something). There is no reason (and probably a bad idea) to have the splash return its value (although it should call the default_event_handler() for SYS_ events.
also, that first hunk looks like it shold be done seperatly of the rest of the patch.
Why?
- "my plan was to have ALL splashes either have 0 timeout, or a constant 3s (or something)"
It seems that your and my plans don't match
- "There is no reason (and probably a bad idea) to have the splash return its value"
Why? It could be used to ask the user a question or to only remove the splash if a specific button was pressed. does it hurt anywhere?
- "(although it should call the default_event_handler() for SYS_ events."
I will look into that.
- "also, that first hunk looks like it shold be done seperatly of the rest of the patch."
Yes, probably.
Just my two cents. i feel that this particular patch will cause many problems for people who are not sighted. I feel that this patch would be best not applied at this time. I apologize but Tom's patch would be better where there is no place to have a question or something. Remember for us blind users everything you patch like this will then need to be spoken. i apologize if i sound rude but I am just making a point.
I think there are some situations you want a splash not to be cancelled (for example, the "Cancelled" one itself or the "Please reboot to enable", or some which report failure).
It could probably check for SYS_EVENTS if you mean then (my patch aborts on any event, so that's no problem).
Also, apps/ code really shoudn't use firmware/ functions in that way IMO.
This patch is just to see if the UI/idea is sound - I'll wrap the test into buttton.c/.h for the real thing.
On the desktop you also need to click away dialog boxes, so I would actually expect that a button press is needed to get rid of the splash only.
Advantages:
(1) You can abort a splash without waiting..
(2) There is no timing issue - especially useful if you can't see the screen. (The alternative option of using the cancel key might result in the underlying screen being cancelled if you press the key just as the splash times out, for example.)
(3) Corollary of (2) - it allows use of a timeout for those users who don't realise that splashes can be aborted with a keypress.
(4) It works without any keymap implications - no need to restrict to a particular button.
(5) The code changes are simple/limited.
(6) The voice and visual UI are consistent
Disadvantages:
(1) Users might not realise that the keypress will be used. - but I think they'd get used to it
(2) Users might dismiss a splash too easily - in which case, forget this change completely.
Feel free to add more and argue it out.
"You know what would also help too is to have at the beginning Rockbox say Rockbox started and at the end Rockbox stopped. I could probably come up with
some wav files like that also. also consistent time outs yep they would be good with a beep or something like Rockbox is ready."
I don't think we really need the voice saying rockbox is ready or rockbox is stopped. This is because when we switch off the player we already get the voice saying shutting down, which to my mind you couldn't get any clearer than that.
When we start the player if a person has a voice you already get the first option in the menu announced that being files, or if you set rockbox to start in the file browser you get your first folder spelled out or announced.
I think your above ideas would just be overkill.
Can you give me an example though when a beep would be useful? I have never had any problems as far as I know with missing splashes or ccancelling them accidentally.
I am a blind user just to let you know.