File: TransEdit1.h

package info (click to toggle)
xlispstat 3.52.14-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,560 kB
  • ctags: 12,676
  • sloc: ansic: 91,357; lisp: 21,759; sh: 1,525; makefile: 521; csh: 1
file content (62 lines) | stat: -rw-r--r-- 2,224 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
	TransEdit1.h - TransEdit header file -- modified for Xlisp-Stat, L. Tierney
*/

#ifndef __TRANSEDIT_H__
#define __TRANSEDIT_H__

#include "TransSkel1.h"

#ifdef applec
# include	<Controls.h>	/* includes WindowMgr.h, QuickDraw.h, MacTypes.h */
# include	<Packages.h>
# include	<Files.h>
# include	<Scrap.h>
#endif /* applec */

typedef	pascal void (*TEditKeyProcPtr) (void);
typedef	pascal void (*TEditActivateProcPtr) (Boolean);
typedef	pascal void (*TEditCloseProcPtr) (void);

/**** XLISP-STAT addition -- L. Tierney */
typedef	pascal void (*TEditIdleProcPtr) (void);

pascal WindowPtr NewEWindow (Rect *bounds, StringPtr title, Boolean visible,
							WindowPtr behind, Boolean goAway,
							long refNum, Boolean bindToFile);

pascal WindowPtr GetNewEWindow (short resourceNum, WindowPtr behind, Boolean bindToFile);
pascal TEHandle GetEWindowTE (WindowPtr wind);
pascal Boolean GetEWindowFile (WindowPtr wind, SFReply *fileInfo);
pascal Boolean IsEWindow (WindowPtr wind);
pascal Boolean IsEWindowDirty (WindowPtr wind);

pascal void SetEWindowProcs (WindowPtr wind, TEditKeyProcPtr pKey,
					TEditActivateProcPtr pActivate, TEditCloseProcPtr pClose,
					TEditIdleProcPtr pIdle);
pascal void SetEWindowStyle (WindowPtr wind, short font,
						short size, Style style, short wrap, short just);
				        /* added style parameter - L. Tierney */
pascal void EWindowOverhaul (WindowPtr wind, Boolean showCaret,
						Boolean recalc, Boolean dirty);

pascal void SetEWindowCreator (OSType creat);
pascal Boolean EWindowSave (WindowPtr wind);
pascal Boolean EWindowSaveAs (WindowPtr wind);
pascal Boolean EWindowSaveCopy (WindowPtr wind);
pascal Boolean EWindowClose (WindowPtr wind);
pascal Boolean EWindowRevert (WindowPtr wind);
pascal Boolean ClobberEWindows (void);
pascal void EWindowEditOp (short item);

/**** XLISP-STAT additions -- L. Tierney */
pascal void SetEWindowDirty (WindowPtr theWind, Boolean ndirty);
pascal void EWindowAdjustDisplay (WindowPtr theWind);

/* from FakeAlert.h */

pascal short FakeAlert (StringPtr s1, StringPtr s2, StringPtr s3, StringPtr s4,
					short nButtons, short defButton, short cancelButton,
					StringPtr t1, StringPtr t2, StringPtr t3);

#endif /* __TRANSEDIT_H__ */