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