commit/EnhancedTouchGestures: josephsl: 0.3: ability to hear audio coordinates during touch exploration.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sat, 15 Nov 2014 13:50:40 -0000

1 new commit in EnhancedTouchGestures:

https://bitbucket.org/nvdaaddonteam/enhancedtouchgestures/commits/49ca4a7bee57/
Changeset:   49ca4a7bee57
Branch:      master
User:        josephsl
Date:        2014-11-15 13:50:16+00:00
Summary:     0.3: ability to hear audio coordinates during touch exploration.
Copied touch explore commands from global commands and added audio coordinate 
playback method from mouse handler. Thus the setting to play audio coordinates 
for mouse will also determine whether NVDA will play audio coordinates during 
touch exploration.

Affected #:  2 files

diff --git a/addon/globalPlugins/enhancedTouchGestures.py 
b/addon/globalPlugins/enhancedTouchGestures.py
index 3e9e709..dc00b31 100755
--- a/addon/globalPlugins/enhancedTouchGestures.py
+++ b/addon/globalPlugins/enhancedTouchGestures.py
@@ -11,6 +11,8 @@ from globalCommands import commands # For certain touch 
commands.
 import virtualBuffers # Web navigation.
 import api
 import winUser
+import mouseHandler
+import config
 
 class GlobalPlugin(globalPluginHandler.GlobalPlugin):
 
@@ -120,6 +122,21 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                winUser.mouse_event(winUser.MOUSEEVENTF_RIGHTUP,0,0,None,None)
        script_touch_rightClick.__doc__="Performs right click at the object 
under your finger"
 
+       def script_touch_newExplore(self,gesture):
+               
touchHandler.handler.screenExplorer.moveTo(gesture.tracker.x,gesture.tracker.y,new=True)
+               if config.conf["mouse"]["audioCoordinatesOnMouseMove"]:
+                       w, h, screenWidth, screenHeight = 
api.getDesktopObject().location
+                       
mouseHandler.playAudioCoordinates(gesture.tracker.x,gesture.tracker.y,screenWidth,screenHeight,config.conf['mouse']['audioCoordinates_detectBrightness'],config.conf['mouse']['audioCoordinates_blurFactor'])
+       # Translators: Input help mode message for a touchscreen gesture.
+       script_touch_newExplore.__doc__=_("Reports the object and content 
directly under your finger")
+
+       def script_touch_explore(self,gesture):
+               
touchHandler.handler.screenExplorer.moveTo(gesture.tracker.x,gesture.tracker.y)
+               if config.conf["mouse"]["audioCoordinatesOnMouseMove"]:
+                       w, h, screenWidth, screenHeight = 
api.getDesktopObject().location
+                       
mouseHandler.playAudioCoordinates(gesture.tracker.x,gesture.tracker.y,screenWidth,screenHeight,config.conf['mouse']['audioCoordinates_detectBrightness'],config.conf['mouse']['audioCoordinates_blurFactor'])
+       # 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")
 
        __gestures={
                # Add-on specific touch gestures.
@@ -134,6 +151,10 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                "ts(object):3finger_flickDown":"speakForeground",
                "ts(object):3finger_flickRight":"navigatorObject_current",
                "ts:tapAndHold":"touch_rightClick",
+               "ts:tap":"touch_newExplore",
+               "ts:hoverDown":"touch_newExplore",
+               "ts:hover":"touch_explore",
+               
 
                # Web browsing gestures:
                "ts(Web):flickDown":"nextWebElement",

diff --git a/buildVars.py b/buildVars.py
index a207a67..de29613 100755
--- a/buildVars.py
+++ b/buildVars.py
@@ -11,24 +11,23 @@ addon_info = {
        # for previously unpublished addons, please follow the community 
guidelines at:
        # 
https://bitbucket.org/nvdaaddonteam/todo/src/56140dbec531e4d7591338e1dbc6192f3dd422a8/guideLines.txt
        # add-on Name, internal for nvda
-       "addon-name" : "enhancedTouchGestures",
+       "addon_name" : "enhancedTouchGestures",
        # Add-on summary, usually the user visible name of the addon.
        # TRANSLATORS: Summary for this add-on to be shown on installation and 
add-on information.
-       "addon-summary" : _("Enhanced Touch Gestures"),
+       "addon_summary" : _("Enhanced Touch Gestures"),
        # Add-on description
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
-       "addon-description" : _("""A suite of additional touch commands, 
including tabbing and help commands.
+       "addon_description" : _("""A suite of additional touch commands, 
including tabbing and help commands.
        Requires a touch-enabled computer with Windows 8.0 or later with NVDA 
2012.3 or later installed."""),
        # version
-       "addon-version" : "0.2",
+       "addon_version" : "0.3",
        # Author(s)
-       "addon-author" : "Joseph Lee <joseph.lee22590@xxxxxxxxx>",
+       "addon_author" : "Joseph Lee <joseph.lee22590@xxxxxxxxx>",
        # URL for the add-on documentation support
-       "addon-url" : None,
+       "addon_url" : None,
        # File name for the add-on help file.
        "addon_docFileName" : "readme.html"
 }
-}
 
 
 import os.path

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.

Other related posts:

  • » commit/EnhancedTouchGestures: josephsl: 0.3: ability to hear audio coordinates during touch exploration. - commits-noreply