[nvda-addons] Re: commit/EnhancedTouchGestures: josephsl: 0.4: Added synth settings mode to let touch users use synth settings ring gestures.

  • From: "Joseph Lee" <joseph.lee22590@xxxxxxxxx>
  • To: <nvda-addons@xxxxxxxxxxxxx>
  • Date: Thu, 11 Dec 2014 19:39:05 -0800

Hi touchscreen users,
Around this time tomorrow, you'll be able to use your touchscreen to change
synth settings on the fly. New in 0.4 is synth settings mode, a dedicated
touch mode to change synthesizer settings. The gestures in there mirrors
that of synth settings ring command on the keyboard (Control+NVDA+arrow keys
(add a shift for laptops).
For users: please keep your suggestions and feedback coming - the enhanced
touch gestures add-on is shaped by you, the users and other developers.
For reviewers (especially for Mick): I wrote some hacks to add some custom
touch modes in touch handler at load time. BTW, I think I found a potential
improvement to change touch mode script in global commands: since we have a
labels dictionary in touch handler, I'd like to suggest using labels
dictionary instead of just querying available touch modes list. In case some
add-ons may wish to add custom touch modes (Jamie once told me he might do
something with touch modes or remove them entirely), it might be beneficial
to let add-ons register additional touch modes and their user visible
labels. If you want me to raise a ticket for it, then sure, I'll do it.
Thanks.
Cheers,
Joseph

-----Original Message-----
From: nvda-addons-commits-bounce@xxxxxxxxxxxxx
[mailto:nvda-addons-commits-bounce@xxxxxxxxxxxxx] On Behalf Of
commits-noreply@xxxxxxxxxxxxx
Sent: Thursday, December 11, 2014 7:28 PM
To: nvda-addons-commits@xxxxxxxxxxxxx
Subject: commit/EnhancedTouchGestures: josephsl: 0.4: Added synth settings
mode to let touch users use synth settings ring gestures.

1 new commit in EnhancedTouchGestures:

https://bitbucket.org/nvdaaddonteam/enhancedtouchgestures/commits/68bf64c3a7
63/
Changeset:   68bf64c3a763
Branch:      master
User:        josephsl
Date:        2014-12-12 03:27:25+00:00
Summary:     0.4: Added synth settings mode to let touch users use synth
settings ring gestures.

Affected #:  2 files

diff --git a/addon/globalPlugins/enhancedTouchGestures.py
b/addon/globalPlugins/enhancedTouchGestures.py
index 23ff9a2..b8f8f88 100755
--- a/addon/globalPlugins/enhancedTouchGestures.py
+++ b/addon/globalPlugins/enhancedTouchGestures.py
@@ -17,7 +17,12 @@ import config
 class GlobalPlugin(globalPluginHandler.GlobalPlugin):
 
        # Set up the touch environment for the add-on.
-       origAvailTouchModes = len(touchHandler.availableTouchModes)
+       origAvailTouchModes = len(touchHandler.availableTouchModes)+1
+
+       def __init__(self):
+               super(globalPluginHandler.GlobalPlugin, self).__init__()
+               if touchHandler.handler:
+
touchHandler.availableTouchModes.append("SynthSettings") # Synth settings
ring layer.
 
        # A few setup events please (mostly for web navigation):
 
@@ -137,6 +142,18 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        # Translators: Input help mode message for a touchscreen gesture.
        script_touch_explore.__doc__=_("Reports the new object or content
under your finger if different to where your finger was last")
 
+       def script_prevSynthSettingValue(self, gesture):
+               commands.script_increaseSynthSetting(gesture)
+
+       def script_nextSynthSettingValue(self, gesture):
+               commands.script_decreaseSynthSetting(gesture)
+
+       def script_nextSynthSetting(self, gesture):
+               commands.script_nextSynthSetting(gesture)
+
+       def script_prevSynthSetting(self, gesture):
+               commands.script_previousSynthSetting(gesture)
+
        __gestures={
                # Add-on specific touch gestures.
 
@@ -159,8 +176,11 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                "ts(Web):flickDown":"nextWebElement",
                "ts(Web):flickUp":"prevWebElement",
                "ts(Web):flickRight":"nextSelectedElement",
-               "ts(Web):flickLeft":"prevSelectedElement"
+               "ts(Web):flickLeft":"prevSelectedElement",
 
                # Settings gestures:
-               # Two finger left/right/up/down for synth settings ring, one
finger flicks for other settings.
+               "ts(SynthSettings):2finger_flickRight":"nextSynthSetting",
+               "ts(SynthSettings):2finger_flickLeft":"prevSynthSetting",
+               "ts(SynthSettings):2finger_flickUp":"prevSynthSettingValue",
+
"ts(SynthSettings):2finger_flickDown":"nextSynthSettingValue",
        }

diff --git a/readme.md b/readme.md
index 8feae20..99249f0 100755
--- a/readme.md
+++ b/readme.md
@@ -26,6 +26,10 @@ Note that you need NVDA 2012.3 or later installed on a
touchscreen computer runn
 
 This touch mode, available in browse mode, allows you to navigate the
document by selected element. To switch to web mode, from browse mode
documents, perform 3 finger tap. From this mode, flicking up or down with
one finger cycles through available element navigation modes, while flicking
right or left with one finger moves to next or previous chosen element,
respectively. Once you move away from browse mode documents, object touch
mode is used.
 
+## Synth settings touch mode
+
+You can use this mode to quickly change synthesizer settings such as
choosing a voice and changing volume. In this mode, use two finger flick
left or right to move between synth settings and use two finger flick up and
down gestures to change values. This gestures mirrors that of synth settings
ring commands on the keyboard.
+
 ## Coordinate announcement beep ##
 
 If you've enabled play mouse coordinates setting in mouse settings, you'll
hear beeps to indicate current screen coordinate when you invoke touch
exploration gestures.

Repository URL: https://bitbucket.org/nvdaaddonteam/enhancedtouchgestures/

--

This is a commit notification from bitbucket.org. You are receiving this
because you have the service enabled, addressing the recipient of this
email.

----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without 
quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to 
nvda-addons-moderators@xxxxxxxxxxxxx.

Community addons can be found here: http://addons.nvda-project.org

Other related posts:

  • » [nvda-addons] Re: commit/EnhancedTouchGestures: josephsl: 0.4: Added synth settings mode to let touch users use synth settings ring gestures. - Joseph Lee