Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor speech viewer tweaks #6340

Merged
merged 4 commits into from Sep 23, 2016
Merged

Minor speech viewer tweaks #6340

merged 4 commits into from Sep 23, 2016

Conversation

@feerrenrut
Copy link
Member

@feerrenrut feerrenrut commented Sep 6, 2016

Fixes an issue where the NVDA menu speechviewer checkbox status does not reflect the actual visibility of the window:
Steps to reproduce:

  • Open speechviewer via menu
  • close via taskbar (or alt+F4)
  • look at nvda menu again, notice that speechviewer is still checked

Modified the change log for the "speech viewer on startup" feature to include information on how to use this feature.

User guide changes, include information about:

  • the speech viewer checkbox
  • the speech viewer position and size
feerrenrut added 2 commits Sep 6, 2016
When the speechviewer window is closed without using the NVDA menu, the
checkmark in the menu is now updated.
@feerrenrut
Copy link
Member Author

@feerrenrut feerrenrut commented Sep 6, 2016

@jcsteh Would you mind taking a look at this?

if not isActive:
return
isActive=False
_onActiveChanged(isActive)

This comment has been minimized.

@jcsteh

jcsteh Sep 8, 2016
Contributor

I understand the desire to use dependency injection here, rather than calling a global. However, I'm concerned that some external code might call activate and not pass a callable, thus breaking the invariant that the check box should be checked while the Speech Viewer is open and unchecked when it's closed. There are ways we can redesign this to be a bit cleaner, but for now, I think calling gui.mainFrame.onSpeechViewerEnabled is clearer.

@@ -1437,7 +1437,7 @@ These actions are available under the viewer's Log menu.
For sighted software developers or people demoing NVDA to sighted audiences, a floating window is available that allows you to view all the text that NVDA is currently speaking.

To enable the speech viewer, check the "Speech Viewer" menu item under Tools in the NVDA menu.
Uncheck the menu item to disable it.
Uncheck the menu item to disable it. The speech viewer window contains a check box labeled "Show Speech Viewer on Startup". If this is checked, will result in the speech viewer opening when NVDA is started. The speech viewer window will always attempt to re-open with the same dimensions and location as when it was closed.

This comment has been minimized.

@jcsteh

jcsteh Sep 8, 2016
Contributor

  1. Split the stuff about the startup check box into a new paragraph.

  2. Each sentence should be on its own line to make life easier for translators. (T2t will still treat them as a continuous paragraph.)

  3. The "Show Speech Viewer on Startup" check box should only have its first letter capitalised (rather than using title case) for consistency with the rest of the options in the GUI.

  4. Change this sentence:

    If this is checked, will result in the speech viewer opening when NVDA is started.

    to:

    If this is checked, the speech viewer will open when NVDA is started.

@feerrenrut
Copy link
Member Author

@feerrenrut feerrenrut commented Sep 8, 2016

@jcsteh Mind taking another look at this one?

isActive=False

def activate(onActiveChanged = lambda isNowActive: None):
def activate():
"""
Function to call to trigger the speech viewer window to open.
onActiveChanged - function object that takes a boolean which is true if the speechviewer is active or false if it is no longer active.

This comment has been minimized.

@jcsteh

jcsteh Sep 8, 2016
Contributor

nit: This parameter has been removed, but still in docstring.

@jcsteh
Copy link
Contributor

@jcsteh jcsteh commented Sep 8, 2016

Ship it! :)

feerrenrut added a commit that referenced this pull request Sep 9, 2016
Merge branch 'minorSpeechViewerTweaks' into next
@nvaccessAuto nvaccessAuto assigned feerrenrut and unassigned jcsteh Sep 9, 2016
feerrenrut added a commit that referenced this pull request Sep 9, 2016
re issue #6101
Merge branch 'i6101_SymbolsListCtrl' into next
@feerrenrut feerrenrut merged commit b996b42 into master Sep 23, 2016
@nvaccessAuto nvaccessAuto added this to the 2016.4 milestone Sep 23, 2016
feerrenrut added a commit that referenced this pull request Sep 23, 2016
After being closed via the task bar or the alt+F4 shortcut, the speech viewer checkbox status in the NVDA menu will now reflect the actual visibility of the window. (#6340)
@feerrenrut feerrenrut deleted the minorSpeechViewerTweaks branch Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants