|
| 1 | +""" |
| 2 | +Package: AutoItLibrary |
| 3 | +Module: Test |
| 4 | +Purpose: This is a Robot Framework variable file according to the specifications provided here: |
| 5 | + http://robotframework.googlecode.com/svn/tags/robotframework-2.1/doc/userguide/RobotFrameworkUserGuide.html#variable-files |
| 6 | + It defines a Python dictionary variable "GUIMAP" that is used by the AutoItLibrary Robot |
| 7 | + Framework tests to map useful Windows Calculator GUI object names (such as the keypad keys) to |
| 8 | + their underlying Windows GUI object names required by AutoIt. |
| 9 | +
|
| 10 | + Copyright (c) 2009-2010 Texas Instruments |
| 11 | +
|
| 12 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 13 | + you may not use this file except in compliance with the License. |
| 14 | + You may obtain a copy of the License at |
| 15 | +
|
| 16 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 17 | +
|
| 18 | + Unless required by applicable law or agreed to in writing, software |
| 19 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 20 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 21 | + See the License for the specific language governing permissions and |
| 22 | + limitations under the License. |
| 23 | +""" |
| 24 | +__author__ = "Martin Taylor <cmtaylor@ti.com>" |
| 25 | +__version__ = "1.1" |
| 26 | +# |
| 27 | +# Map logical names of buttons to the implemented names in the Windows Calculator |
| 28 | +# GUIMAP_51 is the mapping for Calculator version 5.1 (WinXP version) |
| 29 | +# |
| 30 | +GUIMAP_51 = {"0" : "Button45", |
| 31 | + "1" : "Button44", |
| 32 | + "2" : "Button49", |
| 33 | + "3" : "Button54", |
| 34 | + "4" : "Button43", |
| 35 | + "5" : "Button48", |
| 36 | + "6" : "Button53", |
| 37 | + "7" : "Button42", |
| 38 | + "8" : "Button47", |
| 39 | + "9" : "Button52", |
| 40 | + "/" : "Button57", |
| 41 | + "*" : "Button58", |
| 42 | + "-" : "Button59", |
| 43 | + "+" : "Button60", |
| 44 | + "=" : "Button65", |
| 45 | + |
| 46 | + "Hex" : "Button5", |
| 47 | + "Dec" : "Button6", |
| 48 | + "Oct" : "Button7", |
| 49 | + "Bin" : "Button8", |
| 50 | + |
| 51 | + "Qword" : "Button14", |
| 52 | + "Dword" : "Button15", |
| 53 | + "Word" : "Button16", |
| 54 | + "Byte" : "Button17", |
| 55 | + |
| 56 | + "C" : "Button74", |
| 57 | + "Clear" : "Button74", |
| 58 | + } |
| 59 | +# |
| 60 | +# GUIMAP_60 is the mapping for Calculator version 6.0 (WinVista version) |
| 61 | +# |
| 62 | +GUIMAP_60 = {"0" : "Button45", |
| 63 | + "1" : "Button44", |
| 64 | + "2" : "Button49", |
| 65 | + "3" : "Button54", |
| 66 | + "4" : "Button43", |
| 67 | + "5" : "Button48", |
| 68 | + "6" : "Button53", |
| 69 | + "7" : "Button42", |
| 70 | + "8" : "Button47", |
| 71 | + "9" : "Button52", |
| 72 | + "/" : "Button57", |
| 73 | + "*" : "Button58", |
| 74 | + "-" : "Button59", |
| 75 | + "+" : "Button60", |
| 76 | + "=" : "Button65", |
| 77 | + |
| 78 | + "Hex" : "Button5", |
| 79 | + "Dec" : "Button6", |
| 80 | + "Oct" : "Button7", |
| 81 | + "Bin" : "Button8", |
| 82 | + |
| 83 | + "Qword" : "Button14", |
| 84 | + "Dword" : "Button15", |
| 85 | + "Word" : "Button16", |
| 86 | + "Byte" : "Button17", |
| 87 | + |
| 88 | + "C" : "Button74", |
| 89 | + "Clear" : "Button74", |
| 90 | + } |
| 91 | +# |
| 92 | +# GUIMAP_61 is the mapping for Calculator version 6.1 (Win7 version) |
| 93 | +# |
| 94 | +GUIMAP_61 = {"0" : "Button6", |
| 95 | + "1" : "Button5", |
| 96 | + "2" : "Button11", |
| 97 | + "3" : "Button16", |
| 98 | + "4" : "Button4", |
| 99 | + "5" : "Button10", |
| 100 | + "6" : "Button15", |
| 101 | + "7" : "Button3", |
| 102 | + "8" : "Button9", |
| 103 | + "9" : "Button14", |
| 104 | + "/" : "Button20", |
| 105 | + "*" : "Button21", |
| 106 | + "-" : "Button22", |
| 107 | + "+" : "Button23", |
| 108 | + "=" : "Button28", |
| 109 | + |
| 110 | + "Hex" : "Button1", |
| 111 | + "Dec" : "Button2", |
| 112 | + "Oct" : "Button3", |
| 113 | + "Bin" : "Button4", |
| 114 | + |
| 115 | + "Qword" : "Button5", |
| 116 | + "Dword" : "Button6", |
| 117 | + "Word" : "Button7", |
| 118 | + "Byte" : "Button8", |
| 119 | + |
| 120 | + "C" : "Button13", |
| 121 | + "Clear" : "Button13", |
| 122 | + } |
| 123 | +# |
| 124 | +# Map application-specific names of menu items to the sequence of |
| 125 | +# ALT keys used to access these menu items, since the Windows Calculator |
| 126 | +# doesn't really use a "Menu" GUI object to implement its menus |
| 127 | +# and AutoIt can't see these as GUI objects. |
| 128 | +# |
| 129 | +# MENUMAP_51 is the mapping for Calculator version 5.1 (WinXP version) |
| 130 | +# |
| 131 | +MENUMAP_51 = {"View Standard" : "VT", |
| 132 | + "View Scientific" : "VS", |
| 133 | + "View Decimal" : "VD", |
| 134 | + "View Hex" : "VH", |
| 135 | + "View Digit grouping" : "VI", |
| 136 | + "Edit Copy" : "EC", |
| 137 | + "Edit Paste" : "EP", |
| 138 | + "Exit" : "{F4}" |
| 139 | + } |
| 140 | +# |
| 141 | +# MENUMAP_60 is the mapping for Calculator version 6.0 (WinVista version) |
| 142 | +# |
| 143 | +MENUMAP_60 = {"View Standard" : "VT", |
| 144 | + "View Scientific" : "VS", |
| 145 | + "View Decimal" : "VD", |
| 146 | + "View Hex" : "VH", |
| 147 | + "View Digit grouping" : "VI", |
| 148 | + "Edit Copy" : "EC", |
| 149 | + "Edit Paste" : "EP", |
| 150 | + "Exit" : "{F4}" |
| 151 | + } |
| 152 | +# |
| 153 | +# MENUMAP_61 is the mapping for Calculator version 6.1 (Win7 version) |
| 154 | +# |
| 155 | +MENUMAP_61 = {"View Standard" : "VT", |
| 156 | + "View Scientific" : "VS", |
| 157 | + "View Decimal" : "VD", |
| 158 | + "View Hex" : "VP", |
| 159 | + "View Digit grouping" : "VI", |
| 160 | + "Edit Copy" : "EC", |
| 161 | + "Edit Paste" : "EP", |
| 162 | + "Exit" : "{F4}" |
| 163 | + } |
| 164 | +# |
| 165 | +# -------------------------------- End of file -------------------------------- |
0 commit comments