| 1 | n/a | """Suite Standard Suite: Common classes and commands for most applications. |
|---|
| 2 | n/a | Level 1, version 1 |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Generated from /System/Library/CoreServices/System Events.app |
|---|
| 5 | n/a | AETE/AEUT resource version 1/0, language 0, script 0 |
|---|
| 6 | n/a | """ |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | import aetools |
|---|
| 9 | n/a | import MacOS |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | _code = '????' |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | class Standard_Suite_Events: |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | _argmap_close = { |
|---|
| 16 | n/a | 'saving_in' : 'kfil', |
|---|
| 17 | n/a | 'saving' : 'savo', |
|---|
| 18 | n/a | } |
|---|
| 19 | n/a | |
|---|
| 20 | n/a | def close(self, _object, _attributes={}, **_arguments): |
|---|
| 21 | n/a | """close: Close an object. |
|---|
| 22 | n/a | Required argument: the object for the command |
|---|
| 23 | n/a | Keyword argument saving_in: The file in which to save the object. |
|---|
| 24 | n/a | Keyword argument saving: Specifies whether changes should be saved before closing. |
|---|
| 25 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 26 | n/a | """ |
|---|
| 27 | n/a | _code = 'core' |
|---|
| 28 | n/a | _subcode = 'clos' |
|---|
| 29 | n/a | |
|---|
| 30 | n/a | aetools.keysubst(_arguments, self._argmap_close) |
|---|
| 31 | n/a | _arguments['----'] = _object |
|---|
| 32 | n/a | |
|---|
| 33 | n/a | aetools.enumsubst(_arguments, 'savo', _Enum_savo) |
|---|
| 34 | n/a | |
|---|
| 35 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 36 | n/a | _arguments, _attributes) |
|---|
| 37 | n/a | if _arguments.get('errn', 0): |
|---|
| 38 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 39 | n/a | # XXXX Optionally decode result |
|---|
| 40 | n/a | if _arguments.has_key('----'): |
|---|
| 41 | n/a | return _arguments['----'] |
|---|
| 42 | n/a | |
|---|
| 43 | n/a | _argmap_count = { |
|---|
| 44 | n/a | 'each' : 'kocl', |
|---|
| 45 | n/a | } |
|---|
| 46 | n/a | |
|---|
| 47 | n/a | def count(self, _object, _attributes={}, **_arguments): |
|---|
| 48 | n/a | """count: Return the number of elements of a particular class within an object. |
|---|
| 49 | n/a | Required argument: the object for the command |
|---|
| 50 | n/a | Keyword argument each: The class of objects to be counted. |
|---|
| 51 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 52 | n/a | Returns: the reply for the command |
|---|
| 53 | n/a | """ |
|---|
| 54 | n/a | _code = 'core' |
|---|
| 55 | n/a | _subcode = 'cnte' |
|---|
| 56 | n/a | |
|---|
| 57 | n/a | aetools.keysubst(_arguments, self._argmap_count) |
|---|
| 58 | n/a | _arguments['----'] = _object |
|---|
| 59 | n/a | |
|---|
| 60 | n/a | |
|---|
| 61 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 62 | n/a | _arguments, _attributes) |
|---|
| 63 | n/a | if _arguments.get('errn', 0): |
|---|
| 64 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 65 | n/a | # XXXX Optionally decode result |
|---|
| 66 | n/a | if _arguments.has_key('----'): |
|---|
| 67 | n/a | return _arguments['----'] |
|---|
| 68 | n/a | |
|---|
| 69 | n/a | def delete(self, _object, _attributes={}, **_arguments): |
|---|
| 70 | n/a | """delete: Delete an object. |
|---|
| 71 | n/a | Required argument: the object for the command |
|---|
| 72 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 73 | n/a | """ |
|---|
| 74 | n/a | _code = 'core' |
|---|
| 75 | n/a | _subcode = 'delo' |
|---|
| 76 | n/a | |
|---|
| 77 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 78 | n/a | _arguments['----'] = _object |
|---|
| 79 | n/a | |
|---|
| 80 | n/a | |
|---|
| 81 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 82 | n/a | _arguments, _attributes) |
|---|
| 83 | n/a | if _arguments.get('errn', 0): |
|---|
| 84 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 85 | n/a | # XXXX Optionally decode result |
|---|
| 86 | n/a | if _arguments.has_key('----'): |
|---|
| 87 | n/a | return _arguments['----'] |
|---|
| 88 | n/a | |
|---|
| 89 | n/a | _argmap_duplicate = { |
|---|
| 90 | n/a | 'to' : 'insh', |
|---|
| 91 | n/a | 'with_properties' : 'prdt', |
|---|
| 92 | n/a | } |
|---|
| 93 | n/a | |
|---|
| 94 | n/a | def duplicate(self, _object, _attributes={}, **_arguments): |
|---|
| 95 | n/a | """duplicate: Copy object(s) and put the copies at a new location. |
|---|
| 96 | n/a | Required argument: the object for the command |
|---|
| 97 | n/a | Keyword argument to: The location for the new object(s). |
|---|
| 98 | n/a | Keyword argument with_properties: Properties to be set in the new duplicated object(s). |
|---|
| 99 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 100 | n/a | """ |
|---|
| 101 | n/a | _code = 'core' |
|---|
| 102 | n/a | _subcode = 'clon' |
|---|
| 103 | n/a | |
|---|
| 104 | n/a | aetools.keysubst(_arguments, self._argmap_duplicate) |
|---|
| 105 | n/a | _arguments['----'] = _object |
|---|
| 106 | n/a | |
|---|
| 107 | n/a | |
|---|
| 108 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 109 | n/a | _arguments, _attributes) |
|---|
| 110 | n/a | if _arguments.get('errn', 0): |
|---|
| 111 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 112 | n/a | # XXXX Optionally decode result |
|---|
| 113 | n/a | if _arguments.has_key('----'): |
|---|
| 114 | n/a | return _arguments['----'] |
|---|
| 115 | n/a | |
|---|
| 116 | n/a | def exists(self, _object, _attributes={}, **_arguments): |
|---|
| 117 | n/a | """exists: Verify if an object exists. |
|---|
| 118 | n/a | Required argument: the object for the command |
|---|
| 119 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 120 | n/a | Returns: the reply for the command |
|---|
| 121 | n/a | """ |
|---|
| 122 | n/a | _code = 'core' |
|---|
| 123 | n/a | _subcode = 'doex' |
|---|
| 124 | n/a | |
|---|
| 125 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 126 | n/a | _arguments['----'] = _object |
|---|
| 127 | n/a | |
|---|
| 128 | n/a | |
|---|
| 129 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 130 | n/a | _arguments, _attributes) |
|---|
| 131 | n/a | if _arguments.get('errn', 0): |
|---|
| 132 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 133 | n/a | # XXXX Optionally decode result |
|---|
| 134 | n/a | if _arguments.has_key('----'): |
|---|
| 135 | n/a | return _arguments['----'] |
|---|
| 136 | n/a | |
|---|
| 137 | n/a | def get(self, _object, _attributes={}, **_arguments): |
|---|
| 138 | n/a | """get: Get the data for an object. |
|---|
| 139 | n/a | Required argument: the object for the command |
|---|
| 140 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 141 | n/a | Returns: the reply for the command |
|---|
| 142 | n/a | """ |
|---|
| 143 | n/a | _code = 'core' |
|---|
| 144 | n/a | _subcode = 'getd' |
|---|
| 145 | n/a | |
|---|
| 146 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 147 | n/a | _arguments['----'] = _object |
|---|
| 148 | n/a | |
|---|
| 149 | n/a | |
|---|
| 150 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 151 | n/a | _arguments, _attributes) |
|---|
| 152 | n/a | if _arguments.get('errn', 0): |
|---|
| 153 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 154 | n/a | # XXXX Optionally decode result |
|---|
| 155 | n/a | if _arguments.has_key('----'): |
|---|
| 156 | n/a | return _arguments['----'] |
|---|
| 157 | n/a | |
|---|
| 158 | n/a | _argmap_make = { |
|---|
| 159 | n/a | 'at' : 'insh', |
|---|
| 160 | n/a | 'new' : 'kocl', |
|---|
| 161 | n/a | 'with_data' : 'data', |
|---|
| 162 | n/a | 'with_properties' : 'prdt', |
|---|
| 163 | n/a | } |
|---|
| 164 | n/a | |
|---|
| 165 | n/a | def make(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 166 | n/a | """make: Make a new object. |
|---|
| 167 | n/a | Keyword argument at: The location at which to insert the object. |
|---|
| 168 | n/a | Keyword argument new: The class of the new object. |
|---|
| 169 | n/a | Keyword argument with_data: The initial data for the object. |
|---|
| 170 | n/a | Keyword argument with_properties: The initial values for properties of the object. |
|---|
| 171 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 172 | n/a | Returns: the reply for the command |
|---|
| 173 | n/a | """ |
|---|
| 174 | n/a | _code = 'core' |
|---|
| 175 | n/a | _subcode = 'crel' |
|---|
| 176 | n/a | |
|---|
| 177 | n/a | aetools.keysubst(_arguments, self._argmap_make) |
|---|
| 178 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 179 | n/a | |
|---|
| 180 | n/a | |
|---|
| 181 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 182 | n/a | _arguments, _attributes) |
|---|
| 183 | n/a | if _arguments.get('errn', 0): |
|---|
| 184 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 185 | n/a | # XXXX Optionally decode result |
|---|
| 186 | n/a | if _arguments.has_key('----'): |
|---|
| 187 | n/a | return _arguments['----'] |
|---|
| 188 | n/a | |
|---|
| 189 | n/a | _argmap_move = { |
|---|
| 190 | n/a | 'to' : 'insh', |
|---|
| 191 | n/a | } |
|---|
| 192 | n/a | |
|---|
| 193 | n/a | def move(self, _object, _attributes={}, **_arguments): |
|---|
| 194 | n/a | """move: Move object(s) to a new location. |
|---|
| 195 | n/a | Required argument: the object for the command |
|---|
| 196 | n/a | Keyword argument to: The new location for the object(s). |
|---|
| 197 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 198 | n/a | """ |
|---|
| 199 | n/a | _code = 'core' |
|---|
| 200 | n/a | _subcode = 'move' |
|---|
| 201 | n/a | |
|---|
| 202 | n/a | aetools.keysubst(_arguments, self._argmap_move) |
|---|
| 203 | n/a | _arguments['----'] = _object |
|---|
| 204 | n/a | |
|---|
| 205 | n/a | |
|---|
| 206 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 207 | n/a | _arguments, _attributes) |
|---|
| 208 | n/a | if _arguments.get('errn', 0): |
|---|
| 209 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 210 | n/a | # XXXX Optionally decode result |
|---|
| 211 | n/a | if _arguments.has_key('----'): |
|---|
| 212 | n/a | return _arguments['----'] |
|---|
| 213 | n/a | |
|---|
| 214 | n/a | def open(self, _object=None, _attributes={}, **_arguments): |
|---|
| 215 | n/a | """open: Open an object. |
|---|
| 216 | n/a | Required argument: list of objects |
|---|
| 217 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 218 | n/a | """ |
|---|
| 219 | n/a | _code = 'aevt' |
|---|
| 220 | n/a | _subcode = 'odoc' |
|---|
| 221 | n/a | |
|---|
| 222 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 223 | n/a | _arguments['----'] = _object |
|---|
| 224 | n/a | |
|---|
| 225 | n/a | |
|---|
| 226 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 227 | n/a | _arguments, _attributes) |
|---|
| 228 | n/a | if _arguments.get('errn', 0): |
|---|
| 229 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 230 | n/a | # XXXX Optionally decode result |
|---|
| 231 | n/a | if _arguments.has_key('----'): |
|---|
| 232 | n/a | return _arguments['----'] |
|---|
| 233 | n/a | |
|---|
| 234 | n/a | def print_(self, _object=None, _attributes={}, **_arguments): |
|---|
| 235 | n/a | """print: Print an object. |
|---|
| 236 | n/a | Required argument: list of objects |
|---|
| 237 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 238 | n/a | """ |
|---|
| 239 | n/a | _code = 'aevt' |
|---|
| 240 | n/a | _subcode = 'pdoc' |
|---|
| 241 | n/a | |
|---|
| 242 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 243 | n/a | _arguments['----'] = _object |
|---|
| 244 | n/a | |
|---|
| 245 | n/a | |
|---|
| 246 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 247 | n/a | _arguments, _attributes) |
|---|
| 248 | n/a | if _arguments.get('errn', 0): |
|---|
| 249 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 250 | n/a | # XXXX Optionally decode result |
|---|
| 251 | n/a | if _arguments.has_key('----'): |
|---|
| 252 | n/a | return _arguments['----'] |
|---|
| 253 | n/a | |
|---|
| 254 | n/a | _argmap_quit = { |
|---|
| 255 | n/a | 'saving' : 'savo', |
|---|
| 256 | n/a | } |
|---|
| 257 | n/a | |
|---|
| 258 | n/a | def quit(self, _object, _attributes={}, **_arguments): |
|---|
| 259 | n/a | """quit: Quit an application. |
|---|
| 260 | n/a | Required argument: the object for the command |
|---|
| 261 | n/a | Keyword argument saving: Specifies whether changes should be saved before quitting. |
|---|
| 262 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 263 | n/a | """ |
|---|
| 264 | n/a | _code = 'aevt' |
|---|
| 265 | n/a | _subcode = 'quit' |
|---|
| 266 | n/a | |
|---|
| 267 | n/a | aetools.keysubst(_arguments, self._argmap_quit) |
|---|
| 268 | n/a | _arguments['----'] = _object |
|---|
| 269 | n/a | |
|---|
| 270 | n/a | aetools.enumsubst(_arguments, 'savo', _Enum_savo) |
|---|
| 271 | n/a | |
|---|
| 272 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 273 | n/a | _arguments, _attributes) |
|---|
| 274 | n/a | if _arguments.get('errn', 0): |
|---|
| 275 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 276 | n/a | # XXXX Optionally decode result |
|---|
| 277 | n/a | if _arguments.has_key('----'): |
|---|
| 278 | n/a | return _arguments['----'] |
|---|
| 279 | n/a | |
|---|
| 280 | n/a | _argmap_save = { |
|---|
| 281 | n/a | 'in_' : 'kfil', |
|---|
| 282 | n/a | 'as' : 'fltp', |
|---|
| 283 | n/a | } |
|---|
| 284 | n/a | |
|---|
| 285 | n/a | def save(self, _object, _attributes={}, **_arguments): |
|---|
| 286 | n/a | """save: Save an object. |
|---|
| 287 | n/a | Required argument: the object for the command |
|---|
| 288 | n/a | Keyword argument in_: The file in which to save the object. |
|---|
| 289 | n/a | Keyword argument as: The file type in which to save the data. |
|---|
| 290 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 291 | n/a | """ |
|---|
| 292 | n/a | _code = 'core' |
|---|
| 293 | n/a | _subcode = 'save' |
|---|
| 294 | n/a | |
|---|
| 295 | n/a | aetools.keysubst(_arguments, self._argmap_save) |
|---|
| 296 | n/a | _arguments['----'] = _object |
|---|
| 297 | n/a | |
|---|
| 298 | n/a | |
|---|
| 299 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 300 | n/a | _arguments, _attributes) |
|---|
| 301 | n/a | if _arguments.get('errn', 0): |
|---|
| 302 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 303 | n/a | # XXXX Optionally decode result |
|---|
| 304 | n/a | if _arguments.has_key('----'): |
|---|
| 305 | n/a | return _arguments['----'] |
|---|
| 306 | n/a | |
|---|
| 307 | n/a | _argmap_set = { |
|---|
| 308 | n/a | 'to' : 'data', |
|---|
| 309 | n/a | } |
|---|
| 310 | n/a | |
|---|
| 311 | n/a | def set(self, _object, _attributes={}, **_arguments): |
|---|
| 312 | n/a | """set: Set an object's data. |
|---|
| 313 | n/a | Required argument: the object for the command |
|---|
| 314 | n/a | Keyword argument to: The new value. |
|---|
| 315 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 316 | n/a | """ |
|---|
| 317 | n/a | _code = 'core' |
|---|
| 318 | n/a | _subcode = 'setd' |
|---|
| 319 | n/a | |
|---|
| 320 | n/a | aetools.keysubst(_arguments, self._argmap_set) |
|---|
| 321 | n/a | _arguments['----'] = _object |
|---|
| 322 | n/a | |
|---|
| 323 | n/a | |
|---|
| 324 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 325 | n/a | _arguments, _attributes) |
|---|
| 326 | n/a | if _arguments.get('errn', 0): |
|---|
| 327 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 328 | n/a | # XXXX Optionally decode result |
|---|
| 329 | n/a | if _arguments.has_key('----'): |
|---|
| 330 | n/a | return _arguments['----'] |
|---|
| 331 | n/a | |
|---|
| 332 | n/a | |
|---|
| 333 | n/a | class application(aetools.ComponentItem): |
|---|
| 334 | n/a | """application - An application's top level scripting object. """ |
|---|
| 335 | n/a | want = 'capp' |
|---|
| 336 | n/a | class _Prop__3c_Inheritance_3e_(aetools.NProperty): |
|---|
| 337 | n/a | """<Inheritance> - All of the properties of the superclass. """ |
|---|
| 338 | n/a | which = 'c@#^' |
|---|
| 339 | n/a | want = 'cobj' |
|---|
| 340 | n/a | _3c_Inheritance_3e_ = _Prop__3c_Inheritance_3e_() |
|---|
| 341 | n/a | class _Prop_frontmost(aetools.NProperty): |
|---|
| 342 | n/a | """frontmost - Is this the frontmost (active) application? """ |
|---|
| 343 | n/a | which = 'pisf' |
|---|
| 344 | n/a | want = 'bool' |
|---|
| 345 | n/a | frontmost = _Prop_frontmost() |
|---|
| 346 | n/a | class _Prop_name(aetools.NProperty): |
|---|
| 347 | n/a | """name - The name of the application. """ |
|---|
| 348 | n/a | which = 'pnam' |
|---|
| 349 | n/a | want = 'utxt' |
|---|
| 350 | n/a | name = _Prop_name() |
|---|
| 351 | n/a | class _Prop_version(aetools.NProperty): |
|---|
| 352 | n/a | """version - The version of the application. """ |
|---|
| 353 | n/a | which = 'vers' |
|---|
| 354 | n/a | want = 'utxt' |
|---|
| 355 | n/a | version = _Prop_version() |
|---|
| 356 | n/a | # element 'cwin' as ['name', 'indx', 'rele', 'rang', 'test', 'ID '] |
|---|
| 357 | n/a | # element 'docu' as ['name', 'indx', 'rele', 'rang', 'test'] |
|---|
| 358 | n/a | |
|---|
| 359 | n/a | applications = application |
|---|
| 360 | n/a | |
|---|
| 361 | n/a | class item(aetools.ComponentItem): |
|---|
| 362 | n/a | """item - A scriptable object. """ |
|---|
| 363 | n/a | want = 'cobj' |
|---|
| 364 | n/a | class _Prop_class_(aetools.NProperty): |
|---|
| 365 | n/a | """class - The class of the object. """ |
|---|
| 366 | n/a | which = 'pcls' |
|---|
| 367 | n/a | want = 'type' |
|---|
| 368 | n/a | class _Prop_properties(aetools.NProperty): |
|---|
| 369 | n/a | """properties - All of the object's properties. """ |
|---|
| 370 | n/a | which = 'pALL' |
|---|
| 371 | n/a | want = 'reco' |
|---|
| 372 | n/a | |
|---|
| 373 | n/a | items = item |
|---|
| 374 | n/a | |
|---|
| 375 | n/a | class color(aetools.ComponentItem): |
|---|
| 376 | n/a | """color - A color. """ |
|---|
| 377 | n/a | want = 'colr' |
|---|
| 378 | n/a | |
|---|
| 379 | n/a | colors = color |
|---|
| 380 | n/a | |
|---|
| 381 | n/a | class window(aetools.ComponentItem): |
|---|
| 382 | n/a | """window - A window. """ |
|---|
| 383 | n/a | want = 'cwin' |
|---|
| 384 | n/a | class _Prop_bounds(aetools.NProperty): |
|---|
| 385 | n/a | """bounds - The bounding rectangle of the window. """ |
|---|
| 386 | n/a | which = 'pbnd' |
|---|
| 387 | n/a | want = 'qdrt' |
|---|
| 388 | n/a | class _Prop_closeable(aetools.NProperty): |
|---|
| 389 | n/a | """closeable - Whether the window has a close box. """ |
|---|
| 390 | n/a | which = 'hclb' |
|---|
| 391 | n/a | want = 'bool' |
|---|
| 392 | n/a | class _Prop_document(aetools.NProperty): |
|---|
| 393 | n/a | """document - The document whose contents are being displayed in the window. """ |
|---|
| 394 | n/a | which = 'docu' |
|---|
| 395 | n/a | want = 'docu' |
|---|
| 396 | n/a | class _Prop_floating(aetools.NProperty): |
|---|
| 397 | n/a | """floating - Whether the window floats. """ |
|---|
| 398 | n/a | which = 'isfl' |
|---|
| 399 | n/a | want = 'bool' |
|---|
| 400 | n/a | class _Prop_id(aetools.NProperty): |
|---|
| 401 | n/a | """id - The unique identifier of the window. """ |
|---|
| 402 | n/a | which = 'ID ' |
|---|
| 403 | n/a | want = 'long' |
|---|
| 404 | n/a | class _Prop_index(aetools.NProperty): |
|---|
| 405 | n/a | """index - The index of the window in the back-to-front window ordering. """ |
|---|
| 406 | n/a | which = 'pidx' |
|---|
| 407 | n/a | want = 'long' |
|---|
| 408 | n/a | class _Prop_miniaturizable(aetools.NProperty): |
|---|
| 409 | n/a | """miniaturizable - Whether the window can be miniaturized. """ |
|---|
| 410 | n/a | which = 'ismn' |
|---|
| 411 | n/a | want = 'bool' |
|---|
| 412 | n/a | class _Prop_miniaturized(aetools.NProperty): |
|---|
| 413 | n/a | """miniaturized - Whether the window is currently miniaturized. """ |
|---|
| 414 | n/a | which = 'pmnd' |
|---|
| 415 | n/a | want = 'bool' |
|---|
| 416 | n/a | class _Prop_modal(aetools.NProperty): |
|---|
| 417 | n/a | """modal - Whether the window is the application's current modal window. """ |
|---|
| 418 | n/a | which = 'pmod' |
|---|
| 419 | n/a | want = 'bool' |
|---|
| 420 | n/a | class _Prop_resizable(aetools.NProperty): |
|---|
| 421 | n/a | """resizable - Whether the window can be resized. """ |
|---|
| 422 | n/a | which = 'prsz' |
|---|
| 423 | n/a | want = 'bool' |
|---|
| 424 | n/a | class _Prop_titled(aetools.NProperty): |
|---|
| 425 | n/a | """titled - Whether the window has a title bar. """ |
|---|
| 426 | n/a | which = 'ptit' |
|---|
| 427 | n/a | want = 'bool' |
|---|
| 428 | n/a | class _Prop_visible(aetools.NProperty): |
|---|
| 429 | n/a | """visible - Whether the window is currently visible. """ |
|---|
| 430 | n/a | which = 'pvis' |
|---|
| 431 | n/a | want = 'bool' |
|---|
| 432 | n/a | class _Prop_zoomable(aetools.NProperty): |
|---|
| 433 | n/a | """zoomable - Whether the window can be zoomed. """ |
|---|
| 434 | n/a | which = 'iszm' |
|---|
| 435 | n/a | want = 'bool' |
|---|
| 436 | n/a | class _Prop_zoomed(aetools.NProperty): |
|---|
| 437 | n/a | """zoomed - Whether the window is currently zoomed. """ |
|---|
| 438 | n/a | which = 'pzum' |
|---|
| 439 | n/a | want = 'bool' |
|---|
| 440 | n/a | |
|---|
| 441 | n/a | windows = window |
|---|
| 442 | n/a | |
|---|
| 443 | n/a | class document(aetools.ComponentItem): |
|---|
| 444 | n/a | """document - A document. """ |
|---|
| 445 | n/a | want = 'docu' |
|---|
| 446 | n/a | class _Prop_modified(aetools.NProperty): |
|---|
| 447 | n/a | """modified - Has the document been modified since the last save? """ |
|---|
| 448 | n/a | which = 'imod' |
|---|
| 449 | n/a | want = 'bool' |
|---|
| 450 | n/a | class _Prop_path(aetools.NProperty): |
|---|
| 451 | n/a | """path - The document's path. """ |
|---|
| 452 | n/a | which = 'ppth' |
|---|
| 453 | n/a | want = 'utxt' |
|---|
| 454 | n/a | |
|---|
| 455 | n/a | documents = document |
|---|
| 456 | n/a | application._superclassnames = ['item'] |
|---|
| 457 | n/a | application._privpropdict = { |
|---|
| 458 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 459 | n/a | 'frontmost' : _Prop_frontmost, |
|---|
| 460 | n/a | 'name' : _Prop_name, |
|---|
| 461 | n/a | 'version' : _Prop_version, |
|---|
| 462 | n/a | } |
|---|
| 463 | n/a | application._privelemdict = { |
|---|
| 464 | n/a | 'document' : document, |
|---|
| 465 | n/a | 'window' : window, |
|---|
| 466 | n/a | } |
|---|
| 467 | n/a | item._superclassnames = [] |
|---|
| 468 | n/a | item._privpropdict = { |
|---|
| 469 | n/a | 'class_' : _Prop_class_, |
|---|
| 470 | n/a | 'properties' : _Prop_properties, |
|---|
| 471 | n/a | } |
|---|
| 472 | n/a | item._privelemdict = { |
|---|
| 473 | n/a | } |
|---|
| 474 | n/a | color._superclassnames = ['item'] |
|---|
| 475 | n/a | color._privpropdict = { |
|---|
| 476 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 477 | n/a | } |
|---|
| 478 | n/a | color._privelemdict = { |
|---|
| 479 | n/a | } |
|---|
| 480 | n/a | window._superclassnames = ['item'] |
|---|
| 481 | n/a | window._privpropdict = { |
|---|
| 482 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 483 | n/a | 'bounds' : _Prop_bounds, |
|---|
| 484 | n/a | 'closeable' : _Prop_closeable, |
|---|
| 485 | n/a | 'document' : _Prop_document, |
|---|
| 486 | n/a | 'floating' : _Prop_floating, |
|---|
| 487 | n/a | 'id' : _Prop_id, |
|---|
| 488 | n/a | 'index' : _Prop_index, |
|---|
| 489 | n/a | 'miniaturizable' : _Prop_miniaturizable, |
|---|
| 490 | n/a | 'miniaturized' : _Prop_miniaturized, |
|---|
| 491 | n/a | 'modal' : _Prop_modal, |
|---|
| 492 | n/a | 'name' : _Prop_name, |
|---|
| 493 | n/a | 'resizable' : _Prop_resizable, |
|---|
| 494 | n/a | 'titled' : _Prop_titled, |
|---|
| 495 | n/a | 'visible' : _Prop_visible, |
|---|
| 496 | n/a | 'zoomable' : _Prop_zoomable, |
|---|
| 497 | n/a | 'zoomed' : _Prop_zoomed, |
|---|
| 498 | n/a | } |
|---|
| 499 | n/a | window._privelemdict = { |
|---|
| 500 | n/a | } |
|---|
| 501 | n/a | document._superclassnames = ['item'] |
|---|
| 502 | n/a | document._privpropdict = { |
|---|
| 503 | n/a | '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_, |
|---|
| 504 | n/a | 'modified' : _Prop_modified, |
|---|
| 505 | n/a | 'name' : _Prop_name, |
|---|
| 506 | n/a | 'path' : _Prop_path, |
|---|
| 507 | n/a | } |
|---|
| 508 | n/a | document._privelemdict = { |
|---|
| 509 | n/a | } |
|---|
| 510 | n/a | class _3c_(aetools.NComparison): |
|---|
| 511 | n/a | """< - Less than """ |
|---|
| 512 | n/a | class _3d_(aetools.NComparison): |
|---|
| 513 | n/a | """= - Equal """ |
|---|
| 514 | n/a | class _3e_(aetools.NComparison): |
|---|
| 515 | n/a | """> - Greater than """ |
|---|
| 516 | n/a | class contains(aetools.NComparison): |
|---|
| 517 | n/a | """contains - Contains """ |
|---|
| 518 | n/a | class ends_with(aetools.NComparison): |
|---|
| 519 | n/a | """ends with - Ends with """ |
|---|
| 520 | n/a | class starts_with(aetools.NComparison): |
|---|
| 521 | n/a | """starts with - Starts with """ |
|---|
| 522 | n/a | class _b2_(aetools.NComparison): |
|---|
| 523 | n/a | """\xb2 - Less than or equal to """ |
|---|
| 524 | n/a | class _b3_(aetools.NComparison): |
|---|
| 525 | n/a | """\xb3 - Greater than or equal to """ |
|---|
| 526 | n/a | _Enum_savo = { |
|---|
| 527 | n/a | 'ask' : 'ask ', # Ask the user whether or not to save the file. |
|---|
| 528 | n/a | 'yes' : 'yes ', # Save the file. |
|---|
| 529 | n/a | 'no' : 'no ', # Do not save the file. |
|---|
| 530 | n/a | } |
|---|
| 531 | n/a | |
|---|
| 532 | n/a | |
|---|
| 533 | n/a | # |
|---|
| 534 | n/a | # Indices of types declared in this module |
|---|
| 535 | n/a | # |
|---|
| 536 | n/a | _classdeclarations = { |
|---|
| 537 | n/a | 'capp' : application, |
|---|
| 538 | n/a | 'cobj' : item, |
|---|
| 539 | n/a | 'colr' : color, |
|---|
| 540 | n/a | 'cwin' : window, |
|---|
| 541 | n/a | 'docu' : document, |
|---|
| 542 | n/a | } |
|---|
| 543 | n/a | |
|---|
| 544 | n/a | _propdeclarations = { |
|---|
| 545 | n/a | 'ID ' : _Prop_id, |
|---|
| 546 | n/a | 'c@#^' : _Prop__3c_Inheritance_3e_, |
|---|
| 547 | n/a | 'docu' : _Prop_document, |
|---|
| 548 | n/a | 'hclb' : _Prop_closeable, |
|---|
| 549 | n/a | 'imod' : _Prop_modified, |
|---|
| 550 | n/a | 'isfl' : _Prop_floating, |
|---|
| 551 | n/a | 'ismn' : _Prop_miniaturizable, |
|---|
| 552 | n/a | 'iszm' : _Prop_zoomable, |
|---|
| 553 | n/a | 'pALL' : _Prop_properties, |
|---|
| 554 | n/a | 'pbnd' : _Prop_bounds, |
|---|
| 555 | n/a | 'pcls' : _Prop_class_, |
|---|
| 556 | n/a | 'pidx' : _Prop_index, |
|---|
| 557 | n/a | 'pisf' : _Prop_frontmost, |
|---|
| 558 | n/a | 'pmnd' : _Prop_miniaturized, |
|---|
| 559 | n/a | 'pmod' : _Prop_modal, |
|---|
| 560 | n/a | 'pnam' : _Prop_name, |
|---|
| 561 | n/a | 'ppth' : _Prop_path, |
|---|
| 562 | n/a | 'prsz' : _Prop_resizable, |
|---|
| 563 | n/a | 'ptit' : _Prop_titled, |
|---|
| 564 | n/a | 'pvis' : _Prop_visible, |
|---|
| 565 | n/a | 'pzum' : _Prop_zoomed, |
|---|
| 566 | n/a | 'vers' : _Prop_version, |
|---|
| 567 | n/a | } |
|---|
| 568 | n/a | |
|---|
| 569 | n/a | _compdeclarations = { |
|---|
| 570 | n/a | '< ' : _3c_, |
|---|
| 571 | n/a | '<= ' : _b2_, |
|---|
| 572 | n/a | '= ' : _3d_, |
|---|
| 573 | n/a | '> ' : _3e_, |
|---|
| 574 | n/a | '>= ' : _b3_, |
|---|
| 575 | n/a | 'bgwt' : starts_with, |
|---|
| 576 | n/a | 'cont' : contains, |
|---|
| 577 | n/a | 'ends' : ends_with, |
|---|
| 578 | n/a | } |
|---|
| 579 | n/a | |
|---|
| 580 | n/a | _enumdeclarations = { |
|---|
| 581 | n/a | 'savo' : _Enum_savo, |
|---|
| 582 | n/a | } |
|---|