| 1 | n/a | """Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE |
|---|
| 2 | n/a | Level 0, version 0 |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 |
|---|
| 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 = 'CWIE' |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | class CodeWarrior_suite_Events: |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | _argmap_add = { |
|---|
| 16 | n/a | 'new' : 'kocl', |
|---|
| 17 | n/a | 'with_data' : 'data', |
|---|
| 18 | n/a | 'to_targets' : 'TTGT', |
|---|
| 19 | n/a | 'to_group' : 'TGRP', |
|---|
| 20 | n/a | } |
|---|
| 21 | n/a | |
|---|
| 22 | n/a | def add(self, _object, _attributes={}, **_arguments): |
|---|
| 23 | n/a | """add: add elements to a project or target |
|---|
| 24 | n/a | Required argument: an AE object reference |
|---|
| 25 | n/a | Keyword argument new: the class of the new element or elements to add |
|---|
| 26 | n/a | Keyword argument with_data: the initial data for the element or elements |
|---|
| 27 | n/a | Keyword argument to_targets: the targets to which the new element or elements will be added |
|---|
| 28 | n/a | Keyword argument to_group: the group to which the new element or elements will be added |
|---|
| 29 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 30 | n/a | """ |
|---|
| 31 | n/a | _code = 'CWIE' |
|---|
| 32 | n/a | _subcode = 'ADDF' |
|---|
| 33 | n/a | |
|---|
| 34 | n/a | aetools.keysubst(_arguments, self._argmap_add) |
|---|
| 35 | n/a | _arguments['----'] = _object |
|---|
| 36 | n/a | |
|---|
| 37 | n/a | |
|---|
| 38 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 39 | n/a | _arguments, _attributes) |
|---|
| 40 | n/a | if _arguments.get('errn', 0): |
|---|
| 41 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 42 | n/a | # XXXX Optionally decode result |
|---|
| 43 | n/a | if _arguments.has_key('----'): |
|---|
| 44 | n/a | return _arguments['----'] |
|---|
| 45 | n/a | |
|---|
| 46 | n/a | def build(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 47 | n/a | """build: build a project or target (equivalent of the Make menu command) |
|---|
| 48 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 49 | n/a | """ |
|---|
| 50 | n/a | _code = 'CWIE' |
|---|
| 51 | n/a | _subcode = 'MAKE' |
|---|
| 52 | n/a | |
|---|
| 53 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 54 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 55 | n/a | |
|---|
| 56 | n/a | |
|---|
| 57 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 58 | n/a | _arguments, _attributes) |
|---|
| 59 | n/a | if _arguments.get('errn', 0): |
|---|
| 60 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 61 | n/a | # XXXX Optionally decode result |
|---|
| 62 | n/a | if _arguments.has_key('----'): |
|---|
| 63 | n/a | return _arguments['----'] |
|---|
| 64 | n/a | |
|---|
| 65 | n/a | def check(self, _object=None, _attributes={}, **_arguments): |
|---|
| 66 | n/a | """check: check the syntax of a file in a project or target |
|---|
| 67 | n/a | Required argument: the file or files to be checked |
|---|
| 68 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 69 | n/a | """ |
|---|
| 70 | n/a | _code = 'CWIE' |
|---|
| 71 | n/a | _subcode = 'CHEK' |
|---|
| 72 | n/a | |
|---|
| 73 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 74 | n/a | _arguments['----'] = _object |
|---|
| 75 | n/a | |
|---|
| 76 | n/a | |
|---|
| 77 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 78 | n/a | _arguments, _attributes) |
|---|
| 79 | n/a | if _arguments.get('errn', 0): |
|---|
| 80 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 81 | n/a | # XXXX Optionally decode result |
|---|
| 82 | n/a | if _arguments.has_key('----'): |
|---|
| 83 | n/a | return _arguments['----'] |
|---|
| 84 | n/a | |
|---|
| 85 | n/a | def compile_file(self, _object=None, _attributes={}, **_arguments): |
|---|
| 86 | n/a | """compile file: compile a file in a project or target |
|---|
| 87 | n/a | Required argument: the file or files to be compiled |
|---|
| 88 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 89 | n/a | """ |
|---|
| 90 | n/a | _code = 'CWIE' |
|---|
| 91 | n/a | _subcode = 'COMP' |
|---|
| 92 | n/a | |
|---|
| 93 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 94 | n/a | _arguments['----'] = _object |
|---|
| 95 | n/a | |
|---|
| 96 | n/a | |
|---|
| 97 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 98 | n/a | _arguments, _attributes) |
|---|
| 99 | n/a | if _arguments.get('errn', 0): |
|---|
| 100 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 101 | n/a | # XXXX Optionally decode result |
|---|
| 102 | n/a | if _arguments.has_key('----'): |
|---|
| 103 | n/a | return _arguments['----'] |
|---|
| 104 | n/a | |
|---|
| 105 | n/a | def disassemble_file(self, _object=None, _attributes={}, **_arguments): |
|---|
| 106 | n/a | """disassemble file: disassemble a file in a project or target |
|---|
| 107 | n/a | Required argument: the file or files to be disassembled |
|---|
| 108 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 109 | n/a | """ |
|---|
| 110 | n/a | _code = 'CWIE' |
|---|
| 111 | n/a | _subcode = 'DASM' |
|---|
| 112 | n/a | |
|---|
| 113 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 114 | n/a | _arguments['----'] = _object |
|---|
| 115 | n/a | |
|---|
| 116 | n/a | |
|---|
| 117 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 118 | n/a | _arguments, _attributes) |
|---|
| 119 | n/a | if _arguments.get('errn', 0): |
|---|
| 120 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 121 | n/a | # XXXX Optionally decode result |
|---|
| 122 | n/a | if _arguments.has_key('----'): |
|---|
| 123 | n/a | return _arguments['----'] |
|---|
| 124 | n/a | |
|---|
| 125 | n/a | _argmap_export = { |
|---|
| 126 | n/a | 'in_' : 'kfil', |
|---|
| 127 | n/a | } |
|---|
| 128 | n/a | |
|---|
| 129 | n/a | def export(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 130 | n/a | """export: Export the project file as an XML file |
|---|
| 131 | n/a | Keyword argument in_: the XML file in which to export the project |
|---|
| 132 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 133 | n/a | """ |
|---|
| 134 | n/a | _code = 'CWIE' |
|---|
| 135 | n/a | _subcode = 'EXPT' |
|---|
| 136 | n/a | |
|---|
| 137 | n/a | aetools.keysubst(_arguments, self._argmap_export) |
|---|
| 138 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 139 | n/a | |
|---|
| 140 | n/a | |
|---|
| 141 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 142 | n/a | _arguments, _attributes) |
|---|
| 143 | n/a | if _arguments.get('errn', 0): |
|---|
| 144 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 145 | n/a | # XXXX Optionally decode result |
|---|
| 146 | n/a | if _arguments.has_key('----'): |
|---|
| 147 | n/a | return _arguments['----'] |
|---|
| 148 | n/a | |
|---|
| 149 | n/a | def remove_object_code(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 150 | n/a | """remove object code: remove object code from a project or target |
|---|
| 151 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 152 | n/a | """ |
|---|
| 153 | n/a | _code = 'CWIE' |
|---|
| 154 | n/a | _subcode = 'RMOB' |
|---|
| 155 | n/a | |
|---|
| 156 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 157 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 158 | n/a | |
|---|
| 159 | n/a | |
|---|
| 160 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 161 | n/a | _arguments, _attributes) |
|---|
| 162 | n/a | if _arguments.get('errn', 0): |
|---|
| 163 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 164 | n/a | # XXXX Optionally decode result |
|---|
| 165 | n/a | if _arguments.has_key('----'): |
|---|
| 166 | n/a | return _arguments['----'] |
|---|
| 167 | n/a | |
|---|
| 168 | n/a | def remove_target_files(self, _object, _attributes={}, **_arguments): |
|---|
| 169 | n/a | """remove target files: remove files from a target |
|---|
| 170 | n/a | Required argument: an AE object reference |
|---|
| 171 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 172 | n/a | """ |
|---|
| 173 | n/a | _code = 'CWIE' |
|---|
| 174 | n/a | _subcode = 'RMFL' |
|---|
| 175 | n/a | |
|---|
| 176 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 177 | n/a | _arguments['----'] = _object |
|---|
| 178 | n/a | |
|---|
| 179 | n/a | |
|---|
| 180 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 181 | n/a | _arguments, _attributes) |
|---|
| 182 | n/a | if _arguments.get('errn', 0): |
|---|
| 183 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 184 | n/a | # XXXX Optionally decode result |
|---|
| 185 | n/a | if _arguments.has_key('----'): |
|---|
| 186 | n/a | return _arguments['----'] |
|---|
| 187 | n/a | |
|---|
| 188 | n/a | def run_target(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 189 | n/a | """run target: run a project or target |
|---|
| 190 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 191 | n/a | """ |
|---|
| 192 | n/a | _code = 'CWIE' |
|---|
| 193 | n/a | _subcode = 'RUN ' |
|---|
| 194 | n/a | |
|---|
| 195 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 196 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 197 | n/a | |
|---|
| 198 | n/a | |
|---|
| 199 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 200 | n/a | _arguments, _attributes) |
|---|
| 201 | n/a | if _arguments.get('errn', 0): |
|---|
| 202 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 203 | n/a | # XXXX Optionally decode result |
|---|
| 204 | n/a | if _arguments.has_key('----'): |
|---|
| 205 | n/a | return _arguments['----'] |
|---|
| 206 | n/a | |
|---|
| 207 | n/a | def touch_file(self, _object=None, _attributes={}, **_arguments): |
|---|
| 208 | n/a | """touch file: touch a file in a project or target for compilation |
|---|
| 209 | n/a | Required argument: the file or files to be touched |
|---|
| 210 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 211 | n/a | """ |
|---|
| 212 | n/a | _code = 'CWIE' |
|---|
| 213 | n/a | _subcode = 'TOCH' |
|---|
| 214 | n/a | |
|---|
| 215 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 216 | n/a | _arguments['----'] = _object |
|---|
| 217 | n/a | |
|---|
| 218 | n/a | |
|---|
| 219 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 220 | n/a | _arguments, _attributes) |
|---|
| 221 | n/a | if _arguments.get('errn', 0): |
|---|
| 222 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 223 | n/a | # XXXX Optionally decode result |
|---|
| 224 | n/a | if _arguments.has_key('----'): |
|---|
| 225 | n/a | return _arguments['----'] |
|---|
| 226 | n/a | |
|---|
| 227 | n/a | def update(self, _no_object=None, _attributes={}, **_arguments): |
|---|
| 228 | n/a | """update: bring a project or target up to date |
|---|
| 229 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 230 | n/a | """ |
|---|
| 231 | n/a | _code = 'CWIE' |
|---|
| 232 | n/a | _subcode = 'UP2D' |
|---|
| 233 | n/a | |
|---|
| 234 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 235 | n/a | if _no_object is not None: raise TypeError, 'No direct arg expected' |
|---|
| 236 | n/a | |
|---|
| 237 | n/a | |
|---|
| 238 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 239 | n/a | _arguments, _attributes) |
|---|
| 240 | n/a | if _arguments.get('errn', 0): |
|---|
| 241 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 242 | n/a | # XXXX Optionally decode result |
|---|
| 243 | n/a | if _arguments.has_key('----'): |
|---|
| 244 | n/a | return _arguments['----'] |
|---|
| 245 | n/a | |
|---|
| 246 | n/a | |
|---|
| 247 | n/a | class single_class_browser(aetools.ComponentItem): |
|---|
| 248 | n/a | """single class browser - a single class browser """ |
|---|
| 249 | n/a | want = '1BRW' |
|---|
| 250 | n/a | class _Prop_inherits(aetools.NProperty): |
|---|
| 251 | n/a | """inherits - all properties and elements of the given class are inherited by this class. """ |
|---|
| 252 | n/a | which = 'c@#^' |
|---|
| 253 | n/a | want = 'TXTD' |
|---|
| 254 | n/a | |
|---|
| 255 | n/a | single_class_browsers = single_class_browser |
|---|
| 256 | n/a | |
|---|
| 257 | n/a | class single_class_hierarchy(aetools.ComponentItem): |
|---|
| 258 | n/a | """single class hierarchy - a single class hierarchy document """ |
|---|
| 259 | n/a | want = '1HIR' |
|---|
| 260 | n/a | |
|---|
| 261 | n/a | single_class_hierarchies = single_class_hierarchy |
|---|
| 262 | n/a | |
|---|
| 263 | n/a | class class_browser(aetools.ComponentItem): |
|---|
| 264 | n/a | """class browser - a class browser """ |
|---|
| 265 | n/a | want = 'BROW' |
|---|
| 266 | n/a | |
|---|
| 267 | n/a | class_browsers = class_browser |
|---|
| 268 | n/a | |
|---|
| 269 | n/a | class file_compare_document(aetools.ComponentItem): |
|---|
| 270 | n/a | """file compare document - a file compare document """ |
|---|
| 271 | n/a | want = 'COMP' |
|---|
| 272 | n/a | |
|---|
| 273 | n/a | file_compare_documents = file_compare_document |
|---|
| 274 | n/a | |
|---|
| 275 | n/a | class catalog_document(aetools.ComponentItem): |
|---|
| 276 | n/a | """catalog document - a browser catalog document """ |
|---|
| 277 | n/a | want = 'CTLG' |
|---|
| 278 | n/a | |
|---|
| 279 | n/a | catalog_documents = catalog_document |
|---|
| 280 | n/a | |
|---|
| 281 | n/a | class editor_document(aetools.ComponentItem): |
|---|
| 282 | n/a | """editor document - an editor document """ |
|---|
| 283 | n/a | want = 'EDIT' |
|---|
| 284 | n/a | |
|---|
| 285 | n/a | editor_documents = editor_document |
|---|
| 286 | n/a | |
|---|
| 287 | n/a | class class_hierarchy(aetools.ComponentItem): |
|---|
| 288 | n/a | """class hierarchy - a class hierarchy document """ |
|---|
| 289 | n/a | want = 'HIER' |
|---|
| 290 | n/a | |
|---|
| 291 | n/a | class_hierarchies = class_hierarchy |
|---|
| 292 | n/a | |
|---|
| 293 | n/a | class project_inspector(aetools.ComponentItem): |
|---|
| 294 | n/a | """project inspector - the project inspector """ |
|---|
| 295 | n/a | want = 'INSP' |
|---|
| 296 | n/a | |
|---|
| 297 | n/a | project_inspectors = project_inspector |
|---|
| 298 | n/a | |
|---|
| 299 | n/a | class message_document(aetools.ComponentItem): |
|---|
| 300 | n/a | """message document - a message document """ |
|---|
| 301 | n/a | want = 'MSSG' |
|---|
| 302 | n/a | |
|---|
| 303 | n/a | message_documents = message_document |
|---|
| 304 | n/a | |
|---|
| 305 | n/a | class build_progress_document(aetools.ComponentItem): |
|---|
| 306 | n/a | """build progress document - a build progress document """ |
|---|
| 307 | n/a | want = 'PRGS' |
|---|
| 308 | n/a | |
|---|
| 309 | n/a | build_progress_documents = build_progress_document |
|---|
| 310 | n/a | |
|---|
| 311 | n/a | class project_document(aetools.ComponentItem): |
|---|
| 312 | n/a | """project document - a project document """ |
|---|
| 313 | n/a | want = 'PRJD' |
|---|
| 314 | n/a | class _Prop_current_target(aetools.NProperty): |
|---|
| 315 | n/a | """current target - the current target """ |
|---|
| 316 | n/a | which = 'CURT' |
|---|
| 317 | n/a | want = 'TRGT' |
|---|
| 318 | n/a | # element 'TRGT' as ['indx', 'name', 'test', 'rang'] |
|---|
| 319 | n/a | |
|---|
| 320 | n/a | project_documents = project_document |
|---|
| 321 | n/a | |
|---|
| 322 | n/a | class subtarget(aetools.ComponentItem): |
|---|
| 323 | n/a | """subtarget - a target that is prerequisite for another target """ |
|---|
| 324 | n/a | want = 'SBTG' |
|---|
| 325 | n/a | class _Prop_link_against_output(aetools.NProperty): |
|---|
| 326 | n/a | """link against output - is the output of this subtarget linked into its dependent target? """ |
|---|
| 327 | n/a | which = 'LNKO' |
|---|
| 328 | n/a | want = 'bool' |
|---|
| 329 | n/a | class _Prop_target(aetools.NProperty): |
|---|
| 330 | n/a | """target - the target that is dependent on this subtarget """ |
|---|
| 331 | n/a | which = 'TrgT' |
|---|
| 332 | n/a | want = 'TRGT' |
|---|
| 333 | n/a | |
|---|
| 334 | n/a | subtargets = subtarget |
|---|
| 335 | n/a | |
|---|
| 336 | n/a | class target_file(aetools.ComponentItem): |
|---|
| 337 | n/a | """target file - a source or header file in a target """ |
|---|
| 338 | n/a | want = 'SRCF' |
|---|
| 339 | n/a | class _Prop_code_size(aetools.NProperty): |
|---|
| 340 | n/a | """code size - the size of the code (in bytes) produced by compiling this source file """ |
|---|
| 341 | n/a | which = 'CSZE' |
|---|
| 342 | n/a | want = 'long' |
|---|
| 343 | n/a | class _Prop_compiled_date(aetools.NProperty): |
|---|
| 344 | n/a | """compiled date - the date and this source file was last compiled """ |
|---|
| 345 | n/a | which = 'CMPD' |
|---|
| 346 | n/a | want = 'ldt ' |
|---|
| 347 | n/a | class _Prop_data_size(aetools.NProperty): |
|---|
| 348 | n/a | """data size - the size of the date (in bytes) produced by compiling this source file """ |
|---|
| 349 | n/a | which = 'DSZE' |
|---|
| 350 | n/a | want = 'long' |
|---|
| 351 | n/a | class _Prop_debug(aetools.NProperty): |
|---|
| 352 | n/a | """debug - is debugging information generated for this source file? """ |
|---|
| 353 | n/a | which = 'DBUG' |
|---|
| 354 | n/a | want = 'bool' |
|---|
| 355 | n/a | class _Prop_dependents(aetools.NProperty): |
|---|
| 356 | n/a | """dependents - the source files that need this source file in order to build """ |
|---|
| 357 | n/a | which = 'DPND' |
|---|
| 358 | n/a | want = 'list' |
|---|
| 359 | n/a | class _Prop_id(aetools.NProperty): |
|---|
| 360 | n/a | """id - the unique ID number of the target file """ |
|---|
| 361 | n/a | which = 'ID ' |
|---|
| 362 | n/a | want = 'long' |
|---|
| 363 | n/a | class _Prop_init_before(aetools.NProperty): |
|---|
| 364 | n/a | """init before - is the \xd4initialize before\xd5 flag set for this shared library? """ |
|---|
| 365 | n/a | which = 'INIT' |
|---|
| 366 | n/a | want = 'bool' |
|---|
| 367 | n/a | class _Prop_link_index(aetools.NProperty): |
|---|
| 368 | n/a | """link index - the index of the source file in its target\xd5s link order (-1 if source file is not in link order) """ |
|---|
| 369 | n/a | which = 'LIDX' |
|---|
| 370 | n/a | want = 'long' |
|---|
| 371 | n/a | class _Prop_linked(aetools.NProperty): |
|---|
| 372 | n/a | """linked - is the source file in the link order of its target? """ |
|---|
| 373 | n/a | which = 'LINK' |
|---|
| 374 | n/a | want = 'bool' |
|---|
| 375 | n/a | class _Prop_location(aetools.NProperty): |
|---|
| 376 | n/a | """location - the location of the target file on disk """ |
|---|
| 377 | n/a | which = 'FILE' |
|---|
| 378 | n/a | want = 'fss ' |
|---|
| 379 | n/a | class _Prop_merge_output(aetools.NProperty): |
|---|
| 380 | n/a | """merge output - is this shared library merged into another code fragment? """ |
|---|
| 381 | n/a | which = 'MRGE' |
|---|
| 382 | n/a | want = 'bool' |
|---|
| 383 | n/a | class _Prop_modified_date(aetools.NProperty): |
|---|
| 384 | n/a | """modified date - the date and time this source file was last modified """ |
|---|
| 385 | n/a | which = 'MODD' |
|---|
| 386 | n/a | want = 'ldt ' |
|---|
| 387 | n/a | class _Prop_path(aetools.NProperty): |
|---|
| 388 | n/a | """path - the path of the source file on disk """ |
|---|
| 389 | n/a | which = 'Path' |
|---|
| 390 | n/a | want = 'itxt' |
|---|
| 391 | n/a | class _Prop_prerequisites(aetools.NProperty): |
|---|
| 392 | n/a | """prerequisites - the source files needed to build this source file """ |
|---|
| 393 | n/a | which = 'PRER' |
|---|
| 394 | n/a | want = 'list' |
|---|
| 395 | n/a | class _Prop_type(aetools.NProperty): |
|---|
| 396 | n/a | """type - the type of source file """ |
|---|
| 397 | n/a | which = 'FTYP' |
|---|
| 398 | n/a | want = 'FTYP' |
|---|
| 399 | n/a | class _Prop_weak_link(aetools.NProperty): |
|---|
| 400 | n/a | """weak link - is this shared library linked weakly? """ |
|---|
| 401 | n/a | which = 'WEAK' |
|---|
| 402 | n/a | want = 'bool' |
|---|
| 403 | n/a | |
|---|
| 404 | n/a | target_files = target_file |
|---|
| 405 | n/a | |
|---|
| 406 | n/a | class symbol_browser(aetools.ComponentItem): |
|---|
| 407 | n/a | """symbol browser - a symbol browser """ |
|---|
| 408 | n/a | want = 'SYMB' |
|---|
| 409 | n/a | |
|---|
| 410 | n/a | symbol_browsers = symbol_browser |
|---|
| 411 | n/a | |
|---|
| 412 | n/a | class ToolServer_worksheet(aetools.ComponentItem): |
|---|
| 413 | n/a | """ToolServer worksheet - a ToolServer worksheet """ |
|---|
| 414 | n/a | want = 'TOOL' |
|---|
| 415 | n/a | |
|---|
| 416 | n/a | ToolServer_worksheets = ToolServer_worksheet |
|---|
| 417 | n/a | |
|---|
| 418 | n/a | class target(aetools.ComponentItem): |
|---|
| 419 | n/a | """target - a target in a project """ |
|---|
| 420 | n/a | want = 'TRGT' |
|---|
| 421 | n/a | class _Prop_name(aetools.NProperty): |
|---|
| 422 | n/a | """name - """ |
|---|
| 423 | n/a | which = 'pnam' |
|---|
| 424 | n/a | want = 'itxt' |
|---|
| 425 | n/a | class _Prop_project_document(aetools.NProperty): |
|---|
| 426 | n/a | """project document - the project document that contains this target """ |
|---|
| 427 | n/a | which = 'PrjD' |
|---|
| 428 | n/a | want = 'PRJD' |
|---|
| 429 | n/a | # element 'SBTG' as ['indx', 'test', 'rang'] |
|---|
| 430 | n/a | # element 'SRCF' as ['indx', 'test', 'rang'] |
|---|
| 431 | n/a | |
|---|
| 432 | n/a | targets = target |
|---|
| 433 | n/a | |
|---|
| 434 | n/a | class text_document(aetools.ComponentItem): |
|---|
| 435 | n/a | """text document - a document that contains text """ |
|---|
| 436 | n/a | want = 'TXTD' |
|---|
| 437 | n/a | class _Prop_modified(aetools.NProperty): |
|---|
| 438 | n/a | """modified - Has the document been modified since the last save? """ |
|---|
| 439 | n/a | which = 'imod' |
|---|
| 440 | n/a | want = 'bool' |
|---|
| 441 | n/a | class _Prop_selection(aetools.NProperty): |
|---|
| 442 | n/a | """selection - the selection visible to the user """ |
|---|
| 443 | n/a | which = 'sele' |
|---|
| 444 | n/a | want = 'csel' |
|---|
| 445 | n/a | # element 'cha ' as ['indx', 'rele', 'rang', 'test'] |
|---|
| 446 | n/a | # element 'cins' as ['rele'] |
|---|
| 447 | n/a | # element 'clin' as ['indx', 'rang', 'rele'] |
|---|
| 448 | n/a | # element 'ctxt' as ['rang'] |
|---|
| 449 | n/a | |
|---|
| 450 | n/a | text_documents = text_document |
|---|
| 451 | n/a | single_class_browser._superclassnames = ['text_document'] |
|---|
| 452 | n/a | single_class_browser._privpropdict = { |
|---|
| 453 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 454 | n/a | } |
|---|
| 455 | n/a | single_class_browser._privelemdict = { |
|---|
| 456 | n/a | } |
|---|
| 457 | n/a | import Standard_Suite |
|---|
| 458 | n/a | single_class_hierarchy._superclassnames = ['document'] |
|---|
| 459 | n/a | single_class_hierarchy._privpropdict = { |
|---|
| 460 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 461 | n/a | } |
|---|
| 462 | n/a | single_class_hierarchy._privelemdict = { |
|---|
| 463 | n/a | } |
|---|
| 464 | n/a | class_browser._superclassnames = ['text_document'] |
|---|
| 465 | n/a | class_browser._privpropdict = { |
|---|
| 466 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 467 | n/a | } |
|---|
| 468 | n/a | class_browser._privelemdict = { |
|---|
| 469 | n/a | } |
|---|
| 470 | n/a | file_compare_document._superclassnames = ['text_document'] |
|---|
| 471 | n/a | file_compare_document._privpropdict = { |
|---|
| 472 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 473 | n/a | } |
|---|
| 474 | n/a | file_compare_document._privelemdict = { |
|---|
| 475 | n/a | } |
|---|
| 476 | n/a | catalog_document._superclassnames = ['text_document'] |
|---|
| 477 | n/a | catalog_document._privpropdict = { |
|---|
| 478 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 479 | n/a | } |
|---|
| 480 | n/a | catalog_document._privelemdict = { |
|---|
| 481 | n/a | } |
|---|
| 482 | n/a | editor_document._superclassnames = ['text_document'] |
|---|
| 483 | n/a | editor_document._privpropdict = { |
|---|
| 484 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 485 | n/a | } |
|---|
| 486 | n/a | editor_document._privelemdict = { |
|---|
| 487 | n/a | } |
|---|
| 488 | n/a | class_hierarchy._superclassnames = ['document'] |
|---|
| 489 | n/a | class_hierarchy._privpropdict = { |
|---|
| 490 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 491 | n/a | } |
|---|
| 492 | n/a | class_hierarchy._privelemdict = { |
|---|
| 493 | n/a | } |
|---|
| 494 | n/a | project_inspector._superclassnames = ['document'] |
|---|
| 495 | n/a | project_inspector._privpropdict = { |
|---|
| 496 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 497 | n/a | } |
|---|
| 498 | n/a | project_inspector._privelemdict = { |
|---|
| 499 | n/a | } |
|---|
| 500 | n/a | message_document._superclassnames = ['text_document'] |
|---|
| 501 | n/a | message_document._privpropdict = { |
|---|
| 502 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 503 | n/a | } |
|---|
| 504 | n/a | message_document._privelemdict = { |
|---|
| 505 | n/a | } |
|---|
| 506 | n/a | build_progress_document._superclassnames = ['document'] |
|---|
| 507 | n/a | build_progress_document._privpropdict = { |
|---|
| 508 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 509 | n/a | } |
|---|
| 510 | n/a | build_progress_document._privelemdict = { |
|---|
| 511 | n/a | } |
|---|
| 512 | n/a | project_document._superclassnames = ['document'] |
|---|
| 513 | n/a | project_document._privpropdict = { |
|---|
| 514 | n/a | 'current_target' : _Prop_current_target, |
|---|
| 515 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 516 | n/a | } |
|---|
| 517 | n/a | project_document._privelemdict = { |
|---|
| 518 | n/a | 'target' : target, |
|---|
| 519 | n/a | } |
|---|
| 520 | n/a | subtarget._superclassnames = ['target'] |
|---|
| 521 | n/a | subtarget._privpropdict = { |
|---|
| 522 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 523 | n/a | 'link_against_output' : _Prop_link_against_output, |
|---|
| 524 | n/a | 'target' : _Prop_target, |
|---|
| 525 | n/a | } |
|---|
| 526 | n/a | subtarget._privelemdict = { |
|---|
| 527 | n/a | } |
|---|
| 528 | n/a | target_file._superclassnames = [] |
|---|
| 529 | n/a | target_file._privpropdict = { |
|---|
| 530 | n/a | 'code_size' : _Prop_code_size, |
|---|
| 531 | n/a | 'compiled_date' : _Prop_compiled_date, |
|---|
| 532 | n/a | 'data_size' : _Prop_data_size, |
|---|
| 533 | n/a | 'debug' : _Prop_debug, |
|---|
| 534 | n/a | 'dependents' : _Prop_dependents, |
|---|
| 535 | n/a | 'id' : _Prop_id, |
|---|
| 536 | n/a | 'init_before' : _Prop_init_before, |
|---|
| 537 | n/a | 'link_index' : _Prop_link_index, |
|---|
| 538 | n/a | 'linked' : _Prop_linked, |
|---|
| 539 | n/a | 'location' : _Prop_location, |
|---|
| 540 | n/a | 'merge_output' : _Prop_merge_output, |
|---|
| 541 | n/a | 'modified_date' : _Prop_modified_date, |
|---|
| 542 | n/a | 'path' : _Prop_path, |
|---|
| 543 | n/a | 'prerequisites' : _Prop_prerequisites, |
|---|
| 544 | n/a | 'type' : _Prop_type, |
|---|
| 545 | n/a | 'weak_link' : _Prop_weak_link, |
|---|
| 546 | n/a | } |
|---|
| 547 | n/a | target_file._privelemdict = { |
|---|
| 548 | n/a | } |
|---|
| 549 | n/a | symbol_browser._superclassnames = ['text_document'] |
|---|
| 550 | n/a | symbol_browser._privpropdict = { |
|---|
| 551 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 552 | n/a | } |
|---|
| 553 | n/a | symbol_browser._privelemdict = { |
|---|
| 554 | n/a | } |
|---|
| 555 | n/a | ToolServer_worksheet._superclassnames = ['text_document'] |
|---|
| 556 | n/a | ToolServer_worksheet._privpropdict = { |
|---|
| 557 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 558 | n/a | } |
|---|
| 559 | n/a | ToolServer_worksheet._privelemdict = { |
|---|
| 560 | n/a | } |
|---|
| 561 | n/a | target._superclassnames = [] |
|---|
| 562 | n/a | target._privpropdict = { |
|---|
| 563 | n/a | 'name' : _Prop_name, |
|---|
| 564 | n/a | 'project_document' : _Prop_project_document, |
|---|
| 565 | n/a | } |
|---|
| 566 | n/a | target._privelemdict = { |
|---|
| 567 | n/a | 'subtarget' : subtarget, |
|---|
| 568 | n/a | 'target_file' : target_file, |
|---|
| 569 | n/a | } |
|---|
| 570 | n/a | text_document._superclassnames = ['document'] |
|---|
| 571 | n/a | text_document._privpropdict = { |
|---|
| 572 | n/a | 'inherits' : _Prop_inherits, |
|---|
| 573 | n/a | 'modified' : _Prop_modified, |
|---|
| 574 | n/a | 'selection' : _Prop_selection, |
|---|
| 575 | n/a | } |
|---|
| 576 | n/a | text_document._privelemdict = { |
|---|
| 577 | n/a | 'character' : Standard_Suite.character, |
|---|
| 578 | n/a | 'insertion_point' : Standard_Suite.insertion_point, |
|---|
| 579 | n/a | 'line' : Standard_Suite.line, |
|---|
| 580 | n/a | 'text' : Standard_Suite.text, |
|---|
| 581 | n/a | } |
|---|
| 582 | n/a | _Enum_DKND = { |
|---|
| 583 | n/a | 'project' : 'PRJD', # a project document |
|---|
| 584 | n/a | 'editor_document' : 'EDIT', # an editor document |
|---|
| 585 | n/a | 'message' : 'MSSG', # a message document |
|---|
| 586 | n/a | 'file_compare' : 'COMP', # a file compare document |
|---|
| 587 | n/a | 'catalog_document' : 'CTLG', # a browser catalog |
|---|
| 588 | n/a | 'class_browser' : 'BROW', # a class browser document |
|---|
| 589 | n/a | 'single_class_browser' : '1BRW', # a single class browser document |
|---|
| 590 | n/a | 'symbol_browser' : 'SYMB', # a symbol browser document |
|---|
| 591 | n/a | 'class_hierarchy' : 'HIER', # a class hierarchy document |
|---|
| 592 | n/a | 'single_class_hierarchy' : '1HIR', # a single class hierarchy document |
|---|
| 593 | n/a | 'project_inspector' : 'INSP', # a project inspector |
|---|
| 594 | n/a | 'ToolServer_worksheet' : 'TOOL', # the ToolServer worksheet |
|---|
| 595 | n/a | 'build_progress_document' : 'PRGS', # the build progress window |
|---|
| 596 | n/a | } |
|---|
| 597 | n/a | |
|---|
| 598 | n/a | _Enum_FTYP = { |
|---|
| 599 | n/a | 'library_file' : 'LIBF', # a library file |
|---|
| 600 | n/a | 'project_file' : 'PRJF', # a project file |
|---|
| 601 | n/a | 'resource_file' : 'RESF', # a resource file |
|---|
| 602 | n/a | 'text_file' : 'TXTF', # a text file |
|---|
| 603 | n/a | 'unknown_file' : 'UNKN', # unknown file type |
|---|
| 604 | n/a | } |
|---|
| 605 | n/a | |
|---|
| 606 | n/a | _Enum_Inte = { |
|---|
| 607 | n/a | 'never_interact' : 'eNvr', # never allow user interactions |
|---|
| 608 | n/a | 'interact_with_self' : 'eInS', # allow user interaction only when an AppleEvent is sent from within CodeWarrior |
|---|
| 609 | n/a | 'interact_with_local' : 'eInL', # allow user interaction when AppleEvents are sent from applications on the same machine (default) |
|---|
| 610 | n/a | 'interact_with_all' : 'eInA', # allow user interaction from both local and remote AppleEvents |
|---|
| 611 | n/a | } |
|---|
| 612 | n/a | |
|---|
| 613 | n/a | _Enum_PERM = { |
|---|
| 614 | n/a | 'read_write' : 'RdWr', # the file is open with read/write permission |
|---|
| 615 | n/a | 'read_only' : 'Read', # the file is open with read/only permission |
|---|
| 616 | n/a | 'checked_out_read_write' : 'CkRW', # the file is checked out with read/write permission |
|---|
| 617 | n/a | 'checked_out_read_only' : 'CkRO', # the file is checked out with read/only permission |
|---|
| 618 | n/a | 'checked_out_read_modify' : 'CkRM', # the file is checked out with read/modify permission |
|---|
| 619 | n/a | 'locked' : 'Lock', # the file is locked on disk |
|---|
| 620 | n/a | 'none' : 'LNNO', # the file is new |
|---|
| 621 | n/a | } |
|---|
| 622 | n/a | |
|---|
| 623 | n/a | |
|---|
| 624 | n/a | # |
|---|
| 625 | n/a | # Indices of types declared in this module |
|---|
| 626 | n/a | # |
|---|
| 627 | n/a | _classdeclarations = { |
|---|
| 628 | n/a | '1BRW' : single_class_browser, |
|---|
| 629 | n/a | '1HIR' : single_class_hierarchy, |
|---|
| 630 | n/a | 'BROW' : class_browser, |
|---|
| 631 | n/a | 'COMP' : file_compare_document, |
|---|
| 632 | n/a | 'CTLG' : catalog_document, |
|---|
| 633 | n/a | 'EDIT' : editor_document, |
|---|
| 634 | n/a | 'HIER' : class_hierarchy, |
|---|
| 635 | n/a | 'INSP' : project_inspector, |
|---|
| 636 | n/a | 'MSSG' : message_document, |
|---|
| 637 | n/a | 'PRGS' : build_progress_document, |
|---|
| 638 | n/a | 'PRJD' : project_document, |
|---|
| 639 | n/a | 'SBTG' : subtarget, |
|---|
| 640 | n/a | 'SRCF' : target_file, |
|---|
| 641 | n/a | 'SYMB' : symbol_browser, |
|---|
| 642 | n/a | 'TOOL' : ToolServer_worksheet, |
|---|
| 643 | n/a | 'TRGT' : target, |
|---|
| 644 | n/a | 'TXTD' : text_document, |
|---|
| 645 | n/a | } |
|---|
| 646 | n/a | |
|---|
| 647 | n/a | _propdeclarations = { |
|---|
| 648 | n/a | 'CMPD' : _Prop_compiled_date, |
|---|
| 649 | n/a | 'CSZE' : _Prop_code_size, |
|---|
| 650 | n/a | 'CURT' : _Prop_current_target, |
|---|
| 651 | n/a | 'DBUG' : _Prop_debug, |
|---|
| 652 | n/a | 'DPND' : _Prop_dependents, |
|---|
| 653 | n/a | 'DSZE' : _Prop_data_size, |
|---|
| 654 | n/a | 'FILE' : _Prop_location, |
|---|
| 655 | n/a | 'FTYP' : _Prop_type, |
|---|
| 656 | n/a | 'ID ' : _Prop_id, |
|---|
| 657 | n/a | 'INIT' : _Prop_init_before, |
|---|
| 658 | n/a | 'LIDX' : _Prop_link_index, |
|---|
| 659 | n/a | 'LINK' : _Prop_linked, |
|---|
| 660 | n/a | 'LNKO' : _Prop_link_against_output, |
|---|
| 661 | n/a | 'MODD' : _Prop_modified_date, |
|---|
| 662 | n/a | 'MRGE' : _Prop_merge_output, |
|---|
| 663 | n/a | 'PRER' : _Prop_prerequisites, |
|---|
| 664 | n/a | 'Path' : _Prop_path, |
|---|
| 665 | n/a | 'PrjD' : _Prop_project_document, |
|---|
| 666 | n/a | 'TrgT' : _Prop_target, |
|---|
| 667 | n/a | 'WEAK' : _Prop_weak_link, |
|---|
| 668 | n/a | 'c@#^' : _Prop_inherits, |
|---|
| 669 | n/a | 'imod' : _Prop_modified, |
|---|
| 670 | n/a | 'pnam' : _Prop_name, |
|---|
| 671 | n/a | 'sele' : _Prop_selection, |
|---|
| 672 | n/a | } |
|---|
| 673 | n/a | |
|---|
| 674 | n/a | _compdeclarations = { |
|---|
| 675 | n/a | } |
|---|
| 676 | n/a | |
|---|
| 677 | n/a | _enumdeclarations = { |
|---|
| 678 | n/a | 'DKND' : _Enum_DKND, |
|---|
| 679 | n/a | 'FTYP' : _Enum_FTYP, |
|---|
| 680 | n/a | 'Inte' : _Enum_Inte, |
|---|
| 681 | n/a | 'PERM' : _Enum_PERM, |
|---|
| 682 | n/a | } |
|---|