Rev 256 | Rev 305 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 256 | Rev 259 | ||
---|---|---|---|
Line 1... | Line 1... | ||
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-2009 Toby Thain, toby@telegraphics.com.au |
3 | Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au |
4 | Copyright (C) 2018-2021 Daniel Marschall, ViaThinkSoft |
4 | Copyright (C) 2018-2021 Daniel Marschall, ViaThinkSoft |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify |
6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by |
7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or |
8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. |
9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, |
11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. |
14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License |
16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software |
17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ |
19 | */ |
20 | 20 | ||
21 | /* Main dialog */ |
21 | /* Main dialog */ |
22 | #define OPENITEM 3 |
22 | #define OPENITEM 3 |
23 | #define PARAMAUTHORITEM 3 |
23 | #define PARAMAUTHORITEM 3 |
24 | #define SAVEITEM 4 |
24 | #define SAVEITEM 4 |
25 | #define PARAMCOPYITEM 4 |
25 | #define PARAMCOPYITEM 4 |
26 | #define MAKEITEM 5 |
26 | #define MAKEITEM 5 |
27 | 27 | ||
28 | #define PREVIEWITEM 6 |
28 | #define PREVIEWITEM 6 |
29 | #define ZOOMINITEM 7 |
29 | #define ZOOMINITEM 7 |
30 | #define ZOOMOUTITEM 8 |
30 | #define ZOOMOUTITEM 8 |
31 | #define ZOOMLEVELITEM 9 |
31 | #define ZOOMLEVELITEM 9 |
32 | 32 | ||
33 | #define FIRSTCTLLABELITEM 10 /* 10-17 */ |
33 | #define FIRSTCTLLABELITEM 10 /* 10-17 */ |
34 | #define FIRSTCTLITEM 18 /* 18-25 */ |
34 | #define FIRSTCTLITEM 18 /* 18-25 */ |
35 | #define FIRSTCTLTEXTITEM 26 /* 26-33 */ |
35 | #define FIRSTCTLTEXTITEM 26 /* 26-33 */ |
36 | #define FIRSTLABELITEM 34 /* 34-37 */ |
36 | #define FIRSTLABELITEM 34 /* 34-37 */ |
37 | #define FIRSTICONITEM 38 /* 38-41 */ |
37 | #define FIRSTICONITEM 38 /* 38-41 */ |
38 | #define FIRSTEXPRITEM 42 /* 42-45 */ |
38 | #define FIRSTEXPRITEM 42 /* 42-45 */ |
39 | #define FIRSTMAPLABELITEM 46 /* 46-49 */ |
39 | #define FIRSTMAPLABELITEM 46 /* 46-49 */ |
40 | 40 | ||
41 | /* Build dialog */ |
41 | /* Build dialog */ |
42 | #define CATEGORYITEM 3 |
42 | #define CATEGORYITEM 3 |
43 | #define TITLEITEM 4 |
43 | #define TITLEITEM 4 |
44 | #define COPYRIGHTITEM 5 |
44 | #define COPYRIGHTITEM 5 |
45 | #define AUTHORITEM 6 |
45 | #define AUTHORITEM 6 |
46 | #define FIRSTMAPNAMEITEM 7 |
46 | #define FIRSTMAPNAMEITEM 7 |
47 | #define FIRSTCTLNAMEITEM 11 |
47 | #define FIRSTCTLNAMEITEM 11 |
48 | #define FIRSTMAPCHECKITEM 19 |
48 | #define FIRSTMAPCHECKITEM 19 |
49 | #define FIRSTCTLCHECKITEM 23 |
49 | #define FIRSTCTLCHECKITEM 23 |
50 | #define PROTECTITEM 31 |
50 | #define PROTECTITEM 31 |
51 | 51 | ||
52 | #define SLIDERPAGE 16 |
52 | #define SLIDERPAGE 16 |
53 | 53 | ||
54 | #define ID_ABOUTDLG 16000 |
54 | #define ID_ABOUTDLG 16000 |
55 | #define ID_ABOUTSTANDALONEDLG 16005 |
55 | #define ID_ABOUTSTANDALONEDLG 16005 |
56 | #define ID_MAINDLG 16001 |
56 | #define ID_MAINDLG 16001 |
57 | #define ID_SYNTAXALERT 16002 |
57 | #define ID_SYNTAXALERT 16002 |
58 | #define ID_BUILDDLG 16003 |
58 | #define ID_BUILDDLG 16003 |
59 | #define ID_PARAMDLG 16004 |
59 | #define ID_PARAMDLG 16004 |
60 | 60 | ||
61 | #define ID_SLIDERCTL 16000 |
61 | #define ID_SLIDERCTL 16000 |
62 | #define ID_TEXTCTL 16001 |
62 | #define ID_TEXTCTL 16001 |
63 | 63 | ||
64 | #define ID_CAUTIONPICT 16000 |
64 | #define ID_CAUTIONPICT 16000 |
65 | #define ID_ZOOMINPICT 16001 |
65 | #define ID_ZOOMINPICT 16001 |
66 | #define ID_ZOOMOUTPICT 16002 |
66 | #define ID_ZOOMOUTPICT 16002 |
67 | #define ID_HANDCURSOR 16000 |
67 | #define ID_HANDCURSOR 16000 |
68 | 68 | ||
69 | #define IDC_FF_HAND_OPEN 1001 |
69 | #define IDC_FF_HAND_OPEN 1001 |
70 | #define IDC_FF_HAND_GRAB 1002 |
70 | #define IDC_FF_HAND_GRAB 1002 |
71 | #define IDC_FF_HAND_QUESTION 1003 |
71 | #define IDC_FF_HAND_QUESTION 1003 |
72 | 72 | ||
73 | /* --- constants for terminology (scripting) resource */ |
73 | /* --- constants for terminology (scripting) resource */ |
74 | #define AETE_ID 16000 |
74 | #define AETE_ID 16000 |
75 | #define vendorName "Telegraphics" |
75 | #define vendorName "Telegraphics" |
76 | #define plugInSuiteID 'tELE' |
76 | #define plugInSuiteID 'tELE' |
77 | #define plugInClassID 'Fltr' //PITerminology.h:eventFilter |
77 | #define plugInClassID 'Fltr' //PITerminology.h:eventFilter |
78 | #define plugInEventID 'fiFo' //typeNull // must be this |
78 | #define plugInEventID 'fiFo' //typeNull // must be this |
79 | 79 | ||
80 | // Return value of checksliders() is a bitmask |
80 | // Return value of checksliders() is a bitmask |
81 | // If the CHECKSLIDERS_CTL_AMBIGUOUS bit is set, the function ctl() was called with a non-constant argument. |
81 | // If the CHECKSLIDERS_CTL_AMBIGUOUS bit is set, the function ctl() was called with a non-constant argument. |
82 | // In this case, the ctlflags[] array is NOT populated correctly. The caller might want to handle this |
82 | // In this case, the ctlflags[] array is NOT populated correctly. The caller might want to handle this |
83 | // case differently (e.g. by enabling all sliders). |
83 | // case differently (e.g. by enabling all sliders). |
84 | // If the CHECKSLIDERS_MAP_AMBIGUOUS bit is set, the function map() was called with a non-constant argument. |
84 | // If the CHECKSLIDERS_MAP_AMBIGUOUS bit is set, the function map() was called with a non-constant argument. |
85 | // In this case, the mapflags[] array is NOT populated correctly. |
85 | // In this case, the mapflags[] array is NOT populated correctly. |
86 | // If the return value is zero, ctlflags[] and mapflags[] are populated correctly. |
86 | // If the return value is zero, ctlflags[] and mapflags[] are populated correctly. |
87 | #define CHECKSLIDERS_CTL_AMBIGUOUS 1 |
87 | #define CHECKSLIDERS_CTL_AMBIGUOUS 1 |
88 | #define CHECKSLIDERS_MAP_AMBIGUOUS 2 |
88 | #define CHECKSLIDERS_MAP_AMBIGUOUS 2 |
89 | 89 | ||
90 | /* --- */ |
90 | /* --- */ |
91 | 91 | ||
92 | #ifndef RC_INVOKED |
92 | #ifndef RC_INVOKED |
93 | #ifndef Rez |
93 | #ifndef Rez |
94 | 94 | ||
95 | #include "PIAbout.h" |
95 | #include "PIAbout.h" |
96 | #include "PIFilter.h" |
96 | #include "PIFilter.h" |
97 | 97 | ||
98 | #include "ui_compat.h" |
98 | #include "ui_compat.h" |
99 | 99 | ||
100 | enum{ |
100 | enum{ |
101 | MAXEXPR = 1024, |
101 | MAXEXPR = 1024, |
102 | }; |
102 | }; |
103 | 103 | ||
104 | void DoAbout(AboutRecordPtr prec); |
104 | void DoAbout(AboutRecordPtr prec); |
105 | Boolean maindialog(FilterRecordPtr pb); |
105 | Boolean maindialog(FilterRecordPtr pb); |
106 | Boolean builddialog(FilterRecordPtr pb); |
106 | Boolean builddialog(FilterRecordPtr pb); |
107 | Boolean simplealert(char *s); |
107 | Boolean simplealert(char *s); |
108 | Boolean showmessage(char *s); |
108 | Boolean showmessage(char *s); |
109 | 109 | ||
110 | // platform independent |
110 | // platform independent |
111 | Boolean alertuser(char *err,char *more); |
111 | Boolean alertuser(char *err,char *more); |
112 | void maindlginit(DIALOGREF dp); |
112 | void maindlginit(DIALOGREF dp); |
113 | Boolean maindlgitem(DIALOGREF dp,int item); |
113 | Boolean maindlgitem(DIALOGREF dp,int item); |
114 | void maindlgupdate(DIALOGREF dp); |
114 | void maindlgupdate(DIALOGREF dp); |
115 | void slidermoved(DIALOGREF dp,int item); |
115 | void slidermoved(DIALOGREF dp,int item); |
116 | int checksliders(int exprs,int ctlflags[],int mapflags[]); |
116 | int checksliders(int exprs,int ctlflags[],int mapflags[]); |
117 | 117 | ||
118 | void builddlginit(DIALOGREF dp); |
118 | void builddlginit(DIALOGREF dp); |
119 | Boolean builddlgitem(DIALOGREF dp,int item); |
119 | Boolean builddlgitem(DIALOGREF dp,int item); |
120 | 120 | ||
121 | #endif |
121 | #endif |
122 | #endif |
122 | #endif |