Rev 87 | Rev 95 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 87 | Rev 94 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | 25 | ||
26 | #include "str.h" |
26 | #include "str.h" |
27 | 27 | ||
28 | #include "ff.h" |
28 | #include "ff.h" |
29 | 29 | ||
30 | extern PSPixelMap preview_pmap; |
- | |
31 | extern PSPixelMask preview_pmask; |
- | |
32 | extern Handle preview_handle; |
- | |
33 | extern UIRECT preview_rect; |
- | |
34 | extern int preview_w,preview_h; |
- | |
35 | - | ||
36 | extern Point preview_scroll; |
30 | extern Point preview_scroll; |
37 | 31 | ||
38 | CursHandle handcursor,ibeamcursor; |
32 | CursHandle handcursor,ibeamcursor; |
39 | ControlActionUPP action_UPP,indaction_UPP; |
33 | ControlActionUPP action_UPP,indaction_UPP; |
40 | DIALOGREF thedialog; |
34 | DIALOGREF thedialog; |
41 | ControlRef exprctls[4]; |
35 | ControlRef exprctls[4]; |
42 | int trackingitem; |
36 | int trackingitem; |
43 | extern double zoomfactor; |
- | |
44 | 37 | ||
45 | pascal void preview_item(DialogRef dp,DialogItemIndex item); |
38 | pascal void preview_item(DialogRef dp,DialogItemIndex item); |
46 | pascal void slideraction(ControlRef theControl,short partCode); |
39 | pascal void slideraction(ControlRef theControl,short partCode); |
47 | pascal Boolean sliderfilter(DialogRef dialog,EventRecord *event,short *item); |
40 | pascal Boolean sliderfilter(DialogRef dialog,EventRecord *event,short *item); |
48 | 41 | ||
Line 65... | Line 58... | ||
65 | i = StopAlert(ID_SYNTAXALERT,NULL); |
58 | i = StopAlert(ID_SYNTAXALERT,NULL); |
66 | myp2cstr((StringPtr)s); |
59 | myp2cstr((StringPtr)s); |
67 | return i == ok; |
60 | return i == ok; |
68 | } |
61 | } |
69 | 62 | ||
70 | pascal void preview_item(DialogRef dp,DialogItemIndex item){ |
- | |
71 | GrafPtr port; |
- | |
72 | - | ||
73 | ENTERCALLBACK(); |
- | |
74 | - | ||
75 | GetPort(&port); |
- | |
76 | SetPortDialogPort(dp); |
- | |
77 | - | ||
78 | drawpreview(dp,0,PILOCKHANDLE(preview_handle,false)); |
- | |
79 | PIUNLOCKHANDLE(preview_handle); |
- | |
80 | - | ||
81 | FrameRect(&preview_rect); |
- | |
82 | - | ||
83 | SetPort(port); |
- | |
84 | - | ||
85 | EXITCALLBACK(); |
- | |
86 | } |
- | |
87 | - | ||
88 | /* |
63 | /* |
89 | NOTE ON CONTROL ACTION PROCS |
64 | NOTE ON CONTROL ACTION PROCS |
90 | 65 | ||
91 | When using the TrackControl() call when tracking an indicator, the actionProc parameter |
66 | When using the TrackControl() call when tracking an indicator, the actionProc parameter |
92 | (type ControlActionUPP) should be replaced by a parameter of type DragGrayRgnUPP |
67 | (type ControlActionUPP) should be replaced by a parameter of type DragGrayRgnUPP |