Rev 18 | Rev 78 | 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 | #include "PIResDefines.h" |
||
21 | #include "PIActions.h" |
||
22 | |||
23 | #include "ui.h" |
||
24 | #include "version.h" |
||
25 | |||
26 | #define LC(a,b,c,d) #d, #c, #b, #a |
||
27 | |||
28 | #define VENDORID LC(8,B,I,M) |
||
29 | #define NULLID 0L |
||
30 | |||
31 | /* LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL */ |
||
32 | |||
33 | 16000 PiPL DISCARDABLE |
||
34 | BEGIN |
||
35 | 0x0001, /* Reserved (for Photoshop) */ |
||
36 | 0L, /* kCurrentPiPLVersion */ |
||
37 | 8L, /* Property Count */ |
||
38 | |||
39 | VENDORID, LC(c,a,t,g), NULLID, 13L, "\014Telegraphics\0\0\0", /* PString */ |
||
40 | VENDORID, LC(n,a,m,e), NULLID, 18L, "\021Filter Foundry...\0\0", /* PString */ |
||
41 | |||
42 | /* HasTerminology { plugInClassID, plugInEventID, AETE_ID, vendorName " " plugInName }, */ |
||
43 | VENDORID, LC(h,s,t,m), NULLID, 41L, /* = 14 + sizeof(c string) */ |
||
44 | 0L, /* version */ |
||
45 | LC(f,i,F,o), /* Class ID, always required. Can be Suite ID. */ |
||
46 | LC(f,i,F,o), /* Event ID, or typeNULL if not Filter/Color Picker/Selection. */ |
||
47 | AETE_ID, /* Dictionary ('AETE') resource ID. */ |
||
48 | "Telegraphics FilterFoundry\0\0\0\0", /* Unique scope string, C format, long padded. |
||
49 | Always required in Photoshop 5.0 and later. */ |
||
50 | #include "PiPL_body.rc" |
||
51 | |||
52 | END |
||
53 | |||
54 | 16000 RCDATA DISCARDABLE |
||
55 | BEGIN |
||
56 | 0x0001, /* Reserved (for Photoshop) */ |
||
57 | 0L, /* kCurrentPiPLVersion */ |
||
58 | 5L, /* Property Count */ |
||
59 | |||
60 | #include "PiPL_body.rc" |
||
61 | |||
62 | END |
||
63 | |||
64 | /* Dictionary (scripting) resource */ |
||
65 | /* also see ui.h */ |
||
66 | |||
67 | /* |
||
68 | #define NO_REPLY \ |
||
69 | noReply, \ |
||
70 | "", \ |
||
71 | replyRequired, singleItem, notEnumerated, notTightBindingFunction, \ |
||
72 | reserved, reserved, reserved, reserved, \ |
||
73 | reserved, reserved, reserved, reserved, \ |
||
74 | verbEvent, reserved, reserved, reserved |
||
75 | #define IMAGE_DIRECT_PARAMETER \ |
||
76 | typeImageReference, \ |
||
77 | "", \ |
||
78 | flagsOptionalEnumeratedChangesDirect |
||
79 | #define flagsOptionalEnumeratedChangesDirect \ |
||
80 | directParamOptional, singleItem, enumerated, changesState, \ |
||
81 | reserved, reserved, reserved, reserved, \ |
||
82 | reserved, reserved, reserved, reserved, \ |
||
83 | reserved, reserved, reserved, reserved |
||
84 | #define flagsSingleParameter \ |
||
85 | required, singleItem, notEnumerated, reserved, \ |
||
86 | reserved, reserved, reserved, reserved, \ |
||
87 | reserved, reserved, reserved, reserved, \ |
||
88 | prepositionParam, notFeminine, notMasculine, singular |
||
89 | #define flagsSingleProperty \ |
||
90 | reserved, singleItem, notEnumerated, readWrite, \ |
||
91 | reserved, reserved, reserved, reserved, \ |
||
92 | reserved, reserved, reserved, reserved, \ |
||
93 | noApostrophe, notFeminine, notMasculine, singular |
||
94 | */ |
||
95 | #define RC_NO_REPLY \ |
||
96 | LC(n,u,l,l), /*noReply*/ \ |
||
97 | "\0", \ |
||
98 | "\000\000" /* 00 000 000|00 000 000 */ |
||
99 | #define RC_IMAGE_DIRECT_PARAM \ |
||
100 | LC(#,I,m,R), /*typeImageReference*/ \ |
||
101 | "\0", \ |
||
102 | "\260\000" /* 10 110 000|00 000 000 */ |
||
103 | |||
104 | #define FLAGS_SINGLE_PROP "\020\000" /* 00 010 000|00 000 000 */ |
||
105 | #define FLAGS_1_OPT_PARAM "\200\000" /* 10 000 000|00 000 000 */ |
||
106 | |||
107 | #define RC_typeChar LC(T,E,X,T) |
||
108 | #define RC_typeInteger LC(l,o,n,g) |
||
109 | |||
110 | /* Nota Bene: UNLIKE the Macintosh format of the 'aete' resource, |
||
111 | the Windows resource does NOT have word alignment constraints |
||
112 | after its embedded strings. */ |
||
113 | |||
114 | AETE_ID aete |
||
115 | { |
||
116 | 0x0001, /* Reserved (for Photoshop) */ |
||
117 | |||
118 | "\1\0", english, roman, /* aete version and language specifiers */ |
||
119 | |||
120 | 1, /*suites*/ |
||
121 | "\014Telegraphics", /* vendor suite name */ |
||
122 | "\0", /* optional description */ |
||
123 | LC(t,E,L,E), /* suite ID */ |
||
124 | 1, /* suite code, must be 1 */ |
||
125 | 1, /* suite level, must be 1 */ |
||
126 | |||
127 | 1, /*events*/ /* structure for filters */ |
||
128 | |||
62 | toby | 129 | "\015FilterFoundry", /* event name */ |
130 | "\0", /* event description */ |
||
131 | LC(f,i,F,o), /* event class */ |
||
132 | LC(f,i,F,o), /* event ID */ |
||
2 | toby | 133 | RC_NO_REPLY, |
134 | RC_IMAGE_DIRECT_PARAM, |
||
135 | 12, |
||
136 | "\001R", LC(x,p,r,R), RC_typeChar, "\024R channel expression", FLAGS_1_OPT_PARAM, |
||
137 | "\001G", LC(x,p,r,G), RC_typeChar, "\024G channel expression", FLAGS_1_OPT_PARAM, |
||
138 | "\001B", LC(x,p,r,B), RC_typeChar, "\024B channel expression", FLAGS_1_OPT_PARAM, |
||
139 | "\001A", LC(x,p,r,A), RC_typeChar, "\024A channel expression", FLAGS_1_OPT_PARAM, |
||
140 | "\004ctl0", LC(c,T,l,0), RC_typeInteger, "\016ctl(0) setting", FLAGS_1_OPT_PARAM, |
||
141 | "\004ctl1", LC(c,T,l,1), RC_typeInteger, "\016ctl(1) setting", FLAGS_1_OPT_PARAM, |
||
142 | "\004ctl2", LC(c,T,l,2), RC_typeInteger, "\016ctl(2) setting", FLAGS_1_OPT_PARAM, |
||
143 | "\004ctl3", LC(c,T,l,3), RC_typeInteger, "\016ctl(3) setting", FLAGS_1_OPT_PARAM, |
||
144 | "\004ctl4", LC(c,T,l,4), RC_typeInteger, "\016ctl(4) setting", FLAGS_1_OPT_PARAM, |
||
145 | "\004ctl5", LC(c,T,l,5), RC_typeInteger, "\016ctl(5) setting", FLAGS_1_OPT_PARAM, |
||
146 | "\004ctl6", LC(c,T,l,6), RC_typeInteger, "\016ctl(6) setting", FLAGS_1_OPT_PARAM, |
||
147 | "\004ctl7", LC(c,T,l,7), RC_typeInteger, "\016ctl(7) setting", FLAGS_1_OPT_PARAM, |
||
148 | |||
149 | 0, /*classes*/ /* non-filter plug-in class here */ |
||
150 | |||
151 | 0, /* comparison ops (not supported) */ |
||
152 | |||
153 | 0, /* any enumerations */ |
||
154 | |||
155 | 0L /* padding */ |
||
156 | } |
||
157 | |||
158 | /* Version info resource |
||
159 | see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/_Tools_VERSIONINFO_Resource.asp |
||
160 | and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/versioninfo_resource.asp */ |
||
161 | |||
162 | #include "winver.h" |
||
163 | |||
164 | VS_VERSION_INFO VERSIONINFO |
||
165 | FILEVERSION VI_VERS_NUM |
||
166 | PRODUCTVERSION VI_VERS_NUM |
||
167 | FILEFLAGSMASK 0x3fL |
||
168 | FILEFLAGS VI_FLAGS |
||
169 | FILEOS VOS__WINDOWS32 |
||
170 | FILETYPE VFT_DLL |
||
171 | FILESUBTYPE VFT2_UNKNOWN |
||
172 | BEGIN |
||
173 | BLOCK "StringFileInfo" |
||
174 | BEGIN |
||
175 | BLOCK "04090000" |
||
176 | BEGIN |
||
177 | VALUE "Comments", VI_COMMENTS |
||
178 | VALUE "CompanyName", "Telegraphics Pty Ltd, www.telegraphics.com.au\0" |
||
179 | VALUE "FileDescription", "Filter Foundry plugin for Photoshop(R)\0" |
||
180 | VALUE "FileVersion", VERSION_STR "\0" |
||
62 | toby | 181 | /*VALUE "InternalName", "FilterFoundry\0"*/ |
2 | toby | 182 | VALUE "LegalCopyright", "Copyright (C) 2005 Toby Thain\0" |
183 | VALUE "License", "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\0" |
||
184 | /*VALUE "LegalTrademarks", "\0"*/ |
||
185 | VALUE "OriginalFilename", "FilterFoundry.8bi\0" |
||
186 | /*VALUE "PrivateBuild", "\0"*/ |
||
187 | VALUE "ProductName", "Filter Foundry\0" |
||
188 | VALUE "ProductVersion", VERSION_STR "\0" |
||
189 | /*VALUE "SpecialBuild", "\0"*/ |
||
190 | END |
||
191 | END |
||
192 | BLOCK "VarFileInfo" /* see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/_tools_VarFileInfo_Block.asp */ |
||
193 | BEGIN |
||
194 | VALUE "Translation", 0x0809, 1200 /* UK English, Unicode */ |
||
195 | END |
||
196 | END |