Rev 8 | Rev 29 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | toby | 1 | /* |
18 | toby | 2 | This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop |
2 | toby | 3 | Copyright (C) 2003-5 Toby Thain, toby@telegraphics.com.au |
4 | |||
5 | This program is free software; you can redistribute it and/or modify |
||
6 | it under the terms of the GNU General Public License as published by |
||
7 | the Free Software Foundation; either version 2 of the License, or |
||
8 | (at your option) any later version. |
||
9 | |||
10 | This program is distributed in the hope that it will be useful, |
||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
13 | GNU General Public License for more details. |
||
14 | |||
15 | You should have received a copy of the GNU General Public License |
||
16 | along with this program; if not, write to the Free Software |
||
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
18 | */ |
||
19 | |||
20 | /* Main dialog */ |
||
21 | #define OPENITEM 3 |
||
22 | #define PARAMAUTHORITEM 3 |
||
23 | #define SAVEITEM 4 |
||
24 | #define PARAMCOPYITEM 4 |
||
25 | #define MAKEITEM 5 |
||
26 | |||
27 | #define PREVIEWITEM 6 |
||
28 | #define ZOOMINITEM 7 |
||
29 | #define ZOOMOUTITEM 8 |
||
30 | #define ZOOMLEVELITEM 9 |
||
31 | |||
32 | #define FIRSTCTLLABELITEM 10 |
||
33 | #define FIRSTCTLITEM 18 |
||
34 | #define FIRSTCTLTEXTITEM 26 |
||
35 | #define FIRSTLABELITEM 34 |
||
36 | #define FIRSTICONITEM 38 |
||
37 | #define FIRSTEXPRITEM 42 |
||
38 | |||
39 | /* Build dialog */ |
||
40 | #define CATEGORYITEM 3 |
||
41 | #define TITLEITEM 4 |
||
42 | #define COPYRIGHTITEM 5 |
||
43 | #define AUTHORITEM 6 |
||
44 | #define FIRSTMAPNAMEITEM 7 |
||
45 | #define FIRSTCTLNAMEITEM 11 |
||
46 | #define FIRSTMAPCHECKITEM 19 |
||
47 | #define FIRSTCTLCHECKITEM 23 |
||
48 | #define PROTECTITEM 31 |
||
49 | |||
50 | #define SLIDERPAGE 16 |
||
51 | |||
52 | #define ID_ABOUTDLG 16000 |
||
53 | #define ID_ABOUTSTANDALONEDLG 16005 |
||
54 | #define ID_MAINDLG 16001 |
||
55 | #define ID_SYNTAXALERT 16002 |
||
56 | #define ID_BUILDDLG 16003 |
||
57 | #define ID_PARAMDLG 16004 |
||
58 | |||
59 | #define ID_SLIDERCTL 16000 |
||
60 | #define ID_TEXTCTL 16001 |
||
61 | |||
62 | #define ID_CAUTIONPICT 16000 |
||
63 | #define ID_ZOOMINPICT 16001 |
||
64 | #define ID_ZOOMOUTPICT 16002 |
||
65 | #define ID_HANDCURSOR 16000 |
||
66 | |||
67 | /* --- constants for terminology (scripting) resource */ |
||
68 | #define AETE_ID 16000 |
||
69 | #define vendorName "Telegraphics" |
||
70 | #define plugInSuiteID 'tELE' |
||
71 | #define plugInClassID 'fiFo' |
||
72 | #define plugInEventID plugInClassID //typeNull // must be this |
||
73 | |||
74 | #define PARAM_R_KEY 'xprR' |
||
75 | #define PARAM_G_KEY 'xprG' |
||
76 | #define PARAM_B_KEY 'xprB' |
||
77 | #define PARAM_A_KEY 'xprA' |
||
78 | |||
79 | #define PARAM_CTL0_KEY 'cTl0' // some naughty parts of the code assume |
||
80 | #define PARAM_CTL1_KEY 'cTl1' // these are numerically sequential |
||
81 | #define PARAM_CTL2_KEY 'cTl2' |
||
82 | #define PARAM_CTL3_KEY 'cTl3' |
||
83 | #define PARAM_CTL4_KEY 'cTl4' |
||
84 | #define PARAM_CTL5_KEY 'cTl5' |
||
85 | #define PARAM_CTL6_KEY 'cTl6' |
||
86 | #define PARAM_CTL7_KEY 'cTl7' |
||
87 | /* --- */ |
||
88 | |||
89 | #ifndef RC_INVOKED |
||
90 | #ifndef Rez |
||
91 | |||
92 | #include "piabout.h" |
||
93 | #include "pifilter.h" |
||
94 | |||
95 | #include "ui_compat.h" |
||
96 | |||
97 | enum{ |
||
98 | MAXEXPR = 1024, |
||
99 | }; |
||
100 | |||
101 | void DoAbout(AboutRecordPtr prec); |
||
102 | Boolean maindialog(FilterRecordPtr pb); |
||
103 | Boolean builddialog(FilterRecordPtr pb); |
||
104 | Boolean simplealert(char *s); |
||
105 | |||
106 | Boolean setup_preview(FilterRecordPtr pb); |
||
107 | void recalc_preview(FilterRecordPtr pb,DIALOGREF dp); |
||
108 | void dispose_preview(); |
||
109 | OSErr drawpreview(DIALOGREF dp,void *hdc,Ptr imageptr); |
||
110 | |||
111 | // platform independent |
||
112 | Boolean alertuser(char *err,char *more); |
||
113 | void maindlginit(DIALOGREF dp); |
||
114 | Boolean maindlgitem(DIALOGREF dp,int item); |
||
115 | void maindlgupdate(DIALOGREF dp); |
||
116 | void slidermoved(DIALOGREF dp,int item); |
||
117 | Boolean checksliders(int exprs,int ctlflags[],int mapflags[]); |
||
118 | |||
119 | void builddlginit(DIALOGREF dp); |
||
120 | Boolean builddlgitem(DIALOGREF dp,int item); |
||
121 | |||
122 | #endif |
||
123 | #endif |