[orca] Add support for ROLE_DIAL



commit 72bfac08e069d7e18fc8a7888c5138ae96097c23
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jun 2 11:38:47 2014 -0400

    Add support for ROLE_DIAL

 src/orca/formatting.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 03a747c..30e0613 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -136,6 +136,11 @@ formatting = {
             'unfocused': 'label + name + roleName + positionInList + ' + MNEMONIC + ' + accelerator',
             'basicWhereAmI': 'label + roleName + name + positionInList + ' + MNEMONIC + ' + accelerator'
             },
+        pyatspi.ROLE_DIAL: {
+            'focused': 'value',
+            'unfocused': 'labelOrName + roleName + value + required + availability + ' + MNEMONIC,
+            'basicWhereAmI': 'labelOrName + roleName + value + percentage + ' + MNEMONIC + ' + accelerator + 
required'
+            },
         pyatspi.ROLE_DIALOG: {
             'unfocused': 'labelAndName + unrelatedLabels'
             },
@@ -404,7 +409,10 @@ formatting = {
                           + [Region(" " + asString(roleName))]'
             },
         #pyatspi.ROLE_DESKTOP_ICON: 'default'
-        #pyatspi.ROLE_DIAL: 'default'
+        pyatspi.ROLE_DIAL: {
+            'unfocused': '[Component(obj,\
+                                     asString(labelOrName + value + roleName + required))]'
+            },
         #pyatspi.ROLE_DIALOG: 'default'
         #pyatspi.ROLE_DIRECTORY_PANE: 'default'
         pyatspi.ROLE_EMBEDDED: {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]