nvda
5495f5d8 - Generate friendly names for touch gestures and allow them to be localizable, when shown in the Input Gestures Dialog etc.

Commit
12 years ago
Generate friendly names for touch gestures and allow them to be localizable, when shown in the Input Gestures Dialog etc. Specifically: * touchTracker.py: add an action_hold constant which although never needed by touchTrackers themselves, is needed by TouchInputGesture. * touchTracker.py: lowercase all the values of the action_* constants so that they can be looked up in dictionaries easier. * touchTracker.py: add an actionLabels dictionary which contains a mapping from action_* constants to friendly localizable action names. * touchHandler: add a touchModeLabels dictionary which maps from available touch modes to localizable mode names. * touchHandler.TouchInputGesture: add a pluralActionLabels dictionary which maps from counting words (double, tripple... ) to friendly localizable template labels which have a variable action. * touchHandler.TouchInputGesture: add a multiFingerActionLabel string which is a localizable template label that has a variable action, for multi fingered actions. * touchHandler.TouchInputGesture: implement the getDisplayTextforIdentifier method.
Committer
Parents
Loading