After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 436888 - [verified] Include widget status information in speech and braille for flat review
[verified] Include widget status information in speech and braille for flat ...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: 2.20.0
Assigned To: Willie Walker
Orca Maintainers
: 434594 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-05-08 13:40 UTC by Willie Walker
Modified: 2008-07-22 19:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to support checkboxes, radio buttons, toggle buttons, sliders, scrollbars, and progress bars (16.82 KB, patch)
2007-06-24 02:04 UTC, Willie Walker
none Details | Review
Revised patch to handle checkboxes in table cells and progress bar status on lines (20.05 KB, patch)
2007-06-25 19:06 UTC, Willie Walker
committed Details | Review

Description Willie Walker 2007-05-08 13:40:26 UTC
There's been a lot of discussion on the Orca list regarding flat review not presenting information about widgets, such as progress bar values and checkbox states.  To address the braille part of this, we might consider enhancing flat_review.py to include widget status information for braille lines.  

A possible place to start looking at this would be the getBrailleRegions method for the Line class in flat_review.py.  It might look to using the braillegenerator of the script to create braille regions for the accessible of each Zone, meaning it would need to be extended to have some knowledge of the script.  In addition, it would probably also need to provide some means to filter out labels that are labelling something on the line since the generator for the thing being labelled would end up picking up the label text.
Comment 1 Mike Pedersen 2007-05-18 00:08:01 UTC
I'm going to change the summary of this bug as if we are going to provide state in flat review we should do it for both speech and braille.
Comment 2 Willie Walker 2007-05-22 13:32:44 UTC
*** Bug 434594 has been marked as a duplicate of this bug. ***
Comment 3 Mike Pedersen 2007-06-04 17:51:08 UTC
As part of this work we should also add non-text objects to the flat review context.  It is OK if they are treated as a single character for the purpose of moving around in flat review.  It would however be nice if the user could still doubleclick "read word" to spell the object.
Comment 4 Willie Walker 2007-06-24 02:04:47 UTC
Created attachment 90535 [details] [review]
Patch to support checkboxes, radio buttons, toggle buttons, sliders, scrollbars, and progress bars

This patch seems to cover the most common use cases, and it even adds automatic updating of braille for progress bars if you happen to be flat reviewing a progress bar when it is changing.
Comment 5 Willie Walker 2007-06-24 02:05:32 UTC
> moving around in flat review.  It would however be nice if the user could still
> doubleclick "read word" to spell the object.

This should work with the previous patch as well.
Comment 6 Willie Walker 2007-06-24 02:09:07 UTC
> This patch seems to cover the most common use cases, and it even adds automatic
> updating of braille for progress bars if you happen to be flat reviewing a
> progress bar when it is changing.

Note: when applying this patch, you might see the following:

patching file src/orca/flat_review.py
Hunk #2 FAILED at 22.
1 out of 15 hunks FAILED -- saving rejects to file src/orca/flat_review.py.rej

It's just the copyright change that's failing.  The rest of the patch should be applied and you can ignore the failure message.
Comment 7 Willie Walker 2007-06-25 14:13:58 UTC
Mike - please try this out.  We can tweak it based upon your feedback and then I'll check it in.
Comment 8 Willie Walker 2007-06-25 19:06:10 UTC
Created attachment 90630 [details] [review]
Revised patch to handle checkboxes in table cells and progress bar status on lines

This patch addresses two problems with the previous patch:

1) The fact that table cells sometimes act like checkboxes, but still call themselves tables cells (a.k.a., the "you can only have one role" problem of AT-SPI)

2) Lines were calculating their string text when initialized.  This patch makes the Line calculate its string each time it is requested, allowing us to handle the new dynamic flat review zones.
Comment 9 Willie Walker 2007-06-25 19:06:40 UTC
Mike - please test.  Thanks!
Comment 10 Mike Pedersen 2007-06-25 19:54:14 UTC
Cool! this seems to nicely fix both of the issues we talked about this morning.
Comment 11 Willie Walker 2007-06-25 19:56:39 UTC
Thanks!  I've tested this a fair amount.  Fingers crossed I didn't introduce any regressions. Closing as FIXED. 
Comment 12 Halim Sahin 2007-07-04 08:54:13 UTC
Some Information is msssing in flat review:
1. Combos
2. sliders
Please have a look to orcas settings->speech tab.
Comment 13 Willie Walker 2007-07-08 16:43:45 UTC
(In reply to comment #12)
> Some Information is msssing in flat review:
> 1. Combos

By design, role information is currently purposely not emitted for comboboxes.

> 2. sliders

The value/role of non-text objects is currently emitted, but if it has text associated with it (the sliders on the 'speech' tab have their value also presented in text), it is not emitted.

I'd like to postpone work on these issues until we work on the new and improved physical/screen mode.