1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 """Suite gnuplot Suite: Events supplied by gnuplot
16 Level 1, version 1
17
18 Generated from Alpha:Desktop Folder:gnuplot.1:gnuplot 3.7.1a
19 AETE/AEUT resource version 1/0, language 0, script 0
20 """
21
22 __cvs_version__ = '$Revision: 2.6 $'
23
24 import aetools
25 import MacOS
26
27 _code = 'GPSE'
28
30
31 - def gnuexec(self, _object=None, _attributes={}, **_arguments):
32 """exec: execute a gnuplot command
33 Required argument: gnuplot command
34 Keyword argument _attributes: AppleEvent attribute dictionary
35 """
36 _code = 'GPSE'
37 _subcode = 'exec'
38
39 if _arguments: raise TypeError, 'No optional args expected'
40 _arguments['----'] = _object
41
42
43 _reply, _arguments, _attributes = self.send(_code, _subcode,
44 _arguments, _attributes)
45 if _arguments.has_key('errn'):
46 raise aetools.Error, aetools.decodeerror(_arguments)
47
48 if _arguments.has_key('----'):
49 return _arguments['----']
50
51 - def plot(self, _object=None, _attributes={}, **_arguments):
52 """plot: create a 2-D plot
53
54
55 Required argument: data to be plotted
56 Keyword argument _attributes: AppleEvent attribute dictionary
57 """
58 _code = 'GPLT'
59 _subcode = 'plot'
60
61 if _arguments: raise TypeError, 'No optional args expected'
62 _arguments['----'] = _object
63
64
65 _reply, _arguments, _attributes = self.send(_code, _subcode,
66 _arguments, _attributes)
67 if _arguments.has_key('errn'):
68 raise aetools.Error, aetools.decodeerror(_arguments)
69
70 if _arguments.has_key('----'):
71 return _arguments['----']
72
73 - def splot(self, _object=None, _attributes={}, **_arguments):
74 """splot: create a 3-D plot
75 Required argument: data to be plotted
76 Keyword argument _attributes: AppleEvent attribute dictionary
77 """
78 _code = 'GPLT'
79 _subcode = 'splt'
80
81 if _arguments: raise TypeError, 'No optional args expected'
82 _arguments['----'] = _object
83
84
85 _reply, _arguments, _attributes = self.send(_code, _subcode,
86 _arguments, _attributes)
87 if _arguments.has_key('errn'):
88 raise aetools.Error, aetools.decodeerror(_arguments)
89
90 if _arguments.has_key('----'):
91 return _arguments['----']
92
93
94 -class graph(aetools.ComponentItem):
95 """graph - graph - a subclass of window"""
96 want = 'cGRF'
98 """picture - gnuplot graph in "PICT" format"""
99 which = 'PICT'
100 want = 'PICT'
101 graph._propdict = {
102 'picture' : picture,
103 }
104 graph._elemdict = {
105 }
106 _Enum_lyty = {
107 'line' : 'typ1',
108 'points' : 'typ2',
109 'impulses' : 'typ3',
110 'linespoints' : 'typ4',
111 'dots' : 'typ5',
112 'steps' : 'typ6',
113 'fsteps' : 'typ7',
114 'errorbars' : 'typ8',
115 'xerrorbars' : 'typ9',
116 'yerrorbars' : 'ty10',
117 'xyerrorbars' : 'ty11',
118 'boxes' : 'ty12',
119 'boxerrorbars' : 'ty13',
120 'boxxyerrorbars' : 'ty14',
121 'vector' : 'ty19',
122 }
123
124
125
126
127
128 _classdeclarations = {
129 'cGRF' : graph,
130 }
131
132 _propdeclarations = {
133 'PICT' : picture,
134 }
135
136 _compdeclarations = {
137 }
138
139 _enumdeclarations = {
140 'lyty' : _Enum_lyty,
141 }
142
143
144 """Suite odds and ends: Things that should be in some standard suite, but arenÕt
145 Level 1, version 1
146
147 Generated from Alpha:Desktop Folder:gnuplot.1:gnuplot 3.7.1a
148 AETE/AEUT resource version 1/0, language 0, script 0
149 """
150
151 import aetools
152 import MacOS
153
154 _code = 'Odds'
155
157
158 - def select(self, _object=None, _attributes={}, **_arguments):
159 """select: Select the specified object
160 Required argument: the object to select
161 Keyword argument _attributes: AppleEvent attribute dictionary
162 """
163 _code = 'misc'
164 _subcode = 'slct'
165
166 if _arguments: raise TypeError, 'No optional args expected'
167 _arguments['----'] = _object
168
169
170 _reply, _arguments, _attributes = self.send(_code, _subcode,
171 _arguments, _attributes)
172 if _arguments.has_key('errn'):
173 raise aetools.Error, aetools.decodeerror(_arguments)
174
175 if _arguments.has_key('----'):
176 return _arguments['----']
177
178
179
180
181
182 _classdeclarations = {
183 }
184
185 _propdeclarations = {
186 }
187
188 _compdeclarations = {
189 }
190
191 _enumdeclarations = {
192 }
193
194 """Suite Standard Suite: Common terms for most applications
195 Level 1, version 1
196
197 Generated from Alpha:Desktop Folder:gnuplot.1:gnuplot 3.7.1a
198 AETE/AEUT resource version 1/0, language 0, script 0
199 """
200
201 import aetools
202 import MacOS
203
204 _code = 'CoRe'
205
207
208 _argmap_close = {
209 'saving' : 'savo',
210 '_in' : 'kfil',
211 }
212
213 - def close(self, _object, _attributes={}, **_arguments):
214 """close: Close an object
215 Required argument: the objects to close
216 Keyword argument saving: specifies whether or not changes should be saved before closing
217 Keyword argument _in: the file in which to save the object
218 Keyword argument _attributes: AppleEvent attribute dictionary
219 """
220 _code = 'core'
221 _subcode = 'clos'
222
223 aetools.keysubst(_arguments, self._argmap_close)
224 _arguments['----'] = _object
225
226 aetools.enumsubst(_arguments, 'savo', _Enum_savo)
227
228 _reply, _arguments, _attributes = self.send(_code, _subcode,
229 _arguments, _attributes)
230 if _arguments.has_key('errn'):
231 raise aetools.Error, aetools.decodeerror(_arguments)
232
233 if _arguments.has_key('----'):
234 return _arguments['----']
235
236 - def data_size(self, _object, _attributes={}, **_arguments):
237 """data size: Return the size in bytes of an object
238 Required argument: the object whose data size is to be returned
239 Keyword argument _attributes: AppleEvent attribute dictionary
240 Returns: the size of the object in bytes
241 """
242 _code = 'core'
243 _subcode = 'dsiz'
244
245 if _arguments: raise TypeError, 'No optional args expected'
246 _arguments['----'] = _object
247
248
249 _reply, _arguments, _attributes = self.send(_code, _subcode,
250 _arguments, _attributes)
251 if _arguments.has_key('errn'):
252 raise aetools.Error, aetools.decodeerror(_arguments)
253
254 if _arguments.has_key('----'):
255 return _arguments['----']
256
257 - def get(self, _object, _attributes={}, **_arguments):
258 """get: Get the data for an object
259 Required argument: the object whose data is to be returned
260 Keyword argument _attributes: AppleEvent attribute dictionary
261 Returns: The data from the object
262 """
263 _code = 'core'
264 _subcode = 'getd'
265
266 if _arguments: raise TypeError, 'No optional args expected'
267 _arguments['----'] = _object
268
269
270 _reply, _arguments, _attributes = self.send(_code, _subcode,
271 _arguments, _attributes)
272 if _arguments.has_key('errn'):
273 raise aetools.Error, aetools.decodeerror(_arguments)
274
275 if _arguments.has_key('----'):
276 return _arguments['----']
277
278 _argmap_make = {
279 'new' : 'kocl',
280 'at' : 'insh',
281 'with_data' : 'data',
282 'with_properties' : 'prdt',
283 }
284
285 - def make(self, _no_object=None, _attributes={}, **_arguments):
286 """make: Make a new element
287 Keyword argument new: the class of the new element
288 Keyword argument at: the location at which to insert the element
289 Keyword argument with_data: the initial data for the element
290 Keyword argument with_properties: the initial values for the properties of the element
291 Keyword argument _attributes: AppleEvent attribute dictionary
292 Returns: Object specifier for the new element
293 """
294 _code = 'core'
295 _subcode = 'crel'
296
297 aetools.keysubst(_arguments, self._argmap_make)
298 if _no_object != None: raise TypeError, 'No direct arg expected'
299
300
301 _reply, _arguments, _attributes = self.send(_code, _subcode,
302 _arguments, _attributes)
303 if _arguments.has_key('errn'):
304 raise aetools.Error, aetools.decodeerror(_arguments)
305
306 if _arguments.has_key('----'):
307 return _arguments['----']
308
309 - def open(self, _object, _attributes={}, **_arguments):
310 """open: Open the specified object(s)
311 Required argument: Objects to open. Can be a list of files or an object specifier.
312 Keyword argument _attributes: AppleEvent attribute dictionary
313 """
314 _code = 'aevt'
315 _subcode = 'odoc'
316
317 if _arguments: raise TypeError, 'No optional args expected'
318 _arguments['----'] = _object
319
320
321 _reply, _arguments, _attributes = self.send(_code, _subcode,
322 _arguments, _attributes)
323 if _arguments.has_key('errn'):
324 raise aetools.Error, aetools.decodeerror(_arguments)
325
326 if _arguments.has_key('----'):
327 return _arguments['----']
328
329 - def _print(self, _object, _attributes={}, **_arguments):
330 """print: Print the specified object(s)
331 Required argument: Objects to print. Can be a list of files or an object specifier.
332 Keyword argument _attributes: AppleEvent attribute dictionary
333 """
334 _code = 'aevt'
335 _subcode = 'pdoc'
336
337 if _arguments: raise TypeError, 'No optional args expected'
338 _arguments['----'] = _object
339
340
341 _reply, _arguments, _attributes = self.send(_code, _subcode,
342 _arguments, _attributes)
343 if _arguments.has_key('errn'):
344 raise aetools.Error, aetools.decodeerror(_arguments)
345
346 if _arguments.has_key('----'):
347 return _arguments['----']
348
349 _argmap_save = {
350 '_in' : 'kfil',
351 'as' : 'fltp',
352 }
353
354 - def save(self, _object, _attributes={}, **_arguments):
355 """save: save a set of objects
356 Required argument: Objects to save.
357 Keyword argument _in: the file in which to save the object(s)
358 Keyword argument as: the file type of the document in which to save the data
359 Keyword argument _attributes: AppleEvent attribute dictionary
360 """
361 _code = 'core'
362 _subcode = 'save'
363
364 aetools.keysubst(_arguments, self._argmap_save)
365 _arguments['----'] = _object
366
367
368 _reply, _arguments, _attributes = self.send(_code, _subcode,
369 _arguments, _attributes)
370 if _arguments.has_key('errn'):
371 raise aetools.Error, aetools.decodeerror(_arguments)
372
373 if _arguments.has_key('----'):
374 return _arguments['----']
375
376 _argmap_set = {
377 'to' : 'data',
378 }
379
380 - def set(self, _object, _attributes={}, **_arguments):
381 """set: Set an objectÕs data
382 Required argument: the object to change
383 Keyword argument to: the new value
384 Keyword argument _attributes: AppleEvent attribute dictionary
385 """
386 _code = 'core'
387 _subcode = 'setd'
388
389 aetools.keysubst(_arguments, self._argmap_set)
390 _arguments['----'] = _object
391
392
393 _reply, _arguments, _attributes = self.send(_code, _subcode,
394 _arguments, _attributes)
395 if _arguments.has_key('errn'):
396 raise aetools.Error, aetools.decodeerror(_arguments)
397
398 if _arguments.has_key('----'):
399 return _arguments['----']
400
401
403 """application - An application program"""
404 want = 'capp'
405
406
407
408 -class window(aetools.ComponentItem):
409 """window - A Window"""
410 want = 'cwin'
411 -class bounds(aetools.NProperty):
412 """bounds - the boundary rectangle for the window"""
413 which = 'pbnd'
414 want = 'qdrt'
416 """closeable - Does the window have a close box?"""
417 which = 'hclb'
418 want = 'bool'
419 -class titled(aetools.NProperty):
420 """titled - Does the window have a title bar?"""
421 which = 'ptit'
422 want = 'bool'
423 -class index(aetools.NProperty):
424 """index - the number of the window"""
425 which = 'pidx'
426 want = 'long'
428 """floating - Does the window float?"""
429 which = 'isfl'
430 want = 'bool'
431 -class modal(aetools.NProperty):
432 """modal - Is the window modal?"""
433 which = 'pmod'
434 want = 'bool'
436 """resizable - Is the window resizable?"""
437 which = 'prsz'
438 want = 'bool'
440 """zoomable - Is the window zoomable?"""
441 which = 'iszm'
442 want = 'bool'
443 -class zoomed(aetools.NProperty):
444 """zoomed - Is the window zoomed?"""
445 which = 'pzum'
446 want = 'bool'
447 -class name(aetools.NProperty):
448 """name - the title of the window"""
449 which = 'pnam'
450 want = 'itxt'
452 """visible - is the window visible?"""
453 which = 'pvis'
454 want = 'bool'
456 """position - upper left coordinates of window"""
457 which = 'ppos'
458 want = 'QDpt'
459
461 """document - A Document"""
462 want = 'docu'
463
465 """modified - Has the document been modified since the last save?"""
466 which = 'imod'
467 want = 'bool'
468 application._propdict = {
469 }
470 application._elemdict = {
471 'window' : window,
472 'document' : document,
473 }
474 window._propdict = {
475 'bounds' : bounds,
476 'closeable' : closeable,
477 'titled' : titled,
478 'index' : index,
479 'floating' : floating,
480 'modal' : modal,
481 'resizable' : resizable,
482 'zoomable' : zoomable,
483 'zoomed' : zoomed,
484 'name' : name,
485 'visible' : visible,
486 'position' : position,
487 }
488 window._elemdict = {
489 }
490 document._propdict = {
491 'name' : name,
492 'modified' : modified,
493 }
494 document._elemdict = {
495 }
496 _Enum_savo = {
497 'yes' : 'yes ',
498 'no' : 'no ',
499 'ask' : 'ask ',
500 }
501
502
503
504
505
506 _classdeclarations = {
507 'cwin' : window,
508 'docu' : document,
509 'capp' : application,
510 }
511
512 _propdeclarations = {
513 'ptit' : titled,
514 'pidx' : index,
515 'ppos' : position,
516 'pnam' : name,
517 'pbnd' : bounds,
518 'imod' : modified,
519 'isfl' : floating,
520 'hclb' : closeable,
521 'iszm' : zoomable,
522 'pmod' : modal,
523 'pzum' : zoomed,
524 'pvis' : visible,
525 'prsz' : resizable,
526 }
527
528 _compdeclarations = {
529 }
530
531 _enumdeclarations = {
532 'savo' : _Enum_savo,
533 }
534
535 """Suite Miscellaneous Events: Useful events that arenÕt in any other suite
536 Level 1, version 1
537
538 Generated from Alpha:Desktop Folder:gnuplot.1:gnuplot 3.7.1a
539 AETE/AEUT resource version 1/0, language 0, script 0
540 """
541
542 import aetools
543 import MacOS
544
545 _code = 'misc'
546
548
549 - def revert(self, _object, _attributes={}, **_arguments):
550 """revert: Revert an object to the most recently saved version
551 Required argument: object to revert
552 Keyword argument _attributes: AppleEvent attribute dictionary
553 """
554 _code = 'misc'
555 _subcode = 'rvrt'
556
557 if _arguments: raise TypeError, 'No optional args expected'
558 _arguments['----'] = _object
559
560
561 _reply, _arguments, _attributes = self.send(_code, _subcode,
562 _arguments, _attributes)
563 if _arguments.has_key('errn'):
564 raise aetools.Error, aetools.decodeerror(_arguments)
565
566 if _arguments.has_key('----'):
567 return _arguments['----']
568
569 - def do_script(self, _object=None, _attributes={}, **_arguments):
570 """do script: execute a gnuplot script
571 Required argument: a gnuplot script
572 Keyword argument _attributes: AppleEvent attribute dictionary
573 """
574 _code = 'misc'
575 _subcode = 'dosc'
576
577 if _arguments: raise TypeError, 'No optional args expected'
578 _arguments['----'] = _object
579
580
581 _reply, _arguments, _attributes = self.send(_code, _subcode,
582 _arguments, _attributes)
583 if _arguments.has_key('errn'):
584 raise aetools.Error, aetools.decodeerror(_arguments)
585
586 if _arguments.has_key('----'):
587 return _arguments['----']
588
589
590
591
592
593 _classdeclarations = {
594 }
595
596 _propdeclarations = {
597 }
598
599 _compdeclarations = {
600 }
601
602 _enumdeclarations = {
603 }
604