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