Subversion Repositories filter_foundry

Rev

Rev 164 | Rev 178 | 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
171 dmarschall 3
    Copyright (C) 2003-2019 Toby Thain, toby@telegraphics.com.au
2 toby 4
 
5
    This program is free software; you can redistribute it and/or modify
106 dmarschall 6
    it under the terms of the GNU General Public License as published by
2 toby 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
 
106 dmarschall 15
    You should have received a copy of the GNU General Public License
2 toby 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
 
133 dmarschall 31
/* Note: make_win.c writes language 0. So, this should be language 0, too, otherwise the standalone filter would have 2 languages for this resource. */
32
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
2 toby 33
16000  PiPL  DISCARDABLE
34
BEGIN
35
	0x0001, 		/* Reserved (for Photoshop) */
36
	0L, 			/* kCurrentPiPLVersion */
37
	8L, 			/* Property Count */
106 dmarschall 38
 
164 dmarschall 39
	VENDORID, LC(c,a,t,g), NULLID, 16L, "\014Telegraphics\0\0\0", /* PString */
40
	VENDORID, LC(n,a,m,e), NULLID, 20L, "\021Filter Foundry...\0\0", /* PString */
2 toby 41
#include "PiPL_body.rc"
106 dmarschall 42
 
2 toby 43
END
44
 
133 dmarschall 45
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
2 toby 46
16000  RCDATA  DISCARDABLE
47
BEGIN
48
	0x0001, 		/* Reserved (for Photoshop) */
49
	0L, 			/* kCurrentPiPLVersion */
97 toby 50
	6L, 			/* Property Count */
106 dmarschall 51
 
2 toby 52
#include "PiPL_body.rc"
106 dmarschall 53
 
2 toby 54
END
55
 
56
/*	Dictionary (scripting) resource */
57
/* also see ui.h */
58
 
59
/*
60
#define NO_REPLY		\
61
	noReply,			\
62
	"",					\
63
	replyRequired,	singleItem,	notEnumerated,	notTightBindingFunction,	\
64
	reserved,		reserved,	reserved,		reserved,					\
65
	reserved,		reserved,	reserved,		reserved,					\
66
	verbEvent,		reserved,	reserved,		reserved
67
#define IMAGE_DIRECT_PARAMETER	\
68
	typeImageReference,			\
69
	"",							\
70
	flagsOptionalEnumeratedChangesDirect
71
#define flagsOptionalEnumeratedChangesDirect	\
72
	directParamOptional,	singleItem,	enumerated,	changesState,	\
73
	reserved,				reserved,	reserved,	reserved,		\
74
	reserved,				reserved,	reserved,	reserved,		\
75
	reserved,				reserved,	reserved,	reserved
76
#define flagsSingleParameter					\
77
	required,			singleItem,		notEnumerated,	reserved,	\
78
	reserved,			reserved,		reserved,		reserved,	\
79
	reserved,			reserved,		reserved,		reserved,	\
80
	prepositionParam,	notFeminine,	notMasculine,	singular
81
#define flagsSingleProperty						\
82
	reserved,			singleItem,		notEnumerated,	readWrite,	\
83
	reserved,			reserved,		reserved,		reserved,	\
84
	reserved,			reserved,		reserved,		reserved,	\
85
	noApostrophe,		notFeminine,	notMasculine,	singular
86
*/
87
#define RC_NO_REPLY \
88
	LC(n,u,l,l),	/*noReply*/ \
89
	"\0", \
90
	"\000\000"		/* 00 000 000|00 000 000 */
91
#define RC_IMAGE_DIRECT_PARAM \
102 toby 92
	LC('#',I,m,R),	/*typeImageReference*/ \
2 toby 93
	"\0", \
94
	"\260\000"		/* 10 110 000|00 000 000 */
106 dmarschall 95
 
2 toby 96
#define FLAGS_SINGLE_PROP	"\020\000" /* 00 010 000|00 000 000 */
97
#define FLAGS_1_OPT_PARAM	"\200\000" /* 10 000 000|00 000 000 */
98
 
99
#define RC_typeChar			LC(T,E,X,T)
100
#define RC_typeInteger		LC(l,o,n,g)
101
 
102
/* Nota Bene: UNLIKE the Macintosh format of the 'aete' resource,
103
   the Windows resource does NOT have word alignment constraints
104
   after its embedded strings. */
105
 
133 dmarschall 106
/* Note: make_win.c writes language 0. So, this should be language 0, too, otherwise the standalone filter would have 2 languages for this resource. */
107
LANGUAGE LANG_NEUTRAL,SUBLANG_NEUTRAL
2 toby 108
AETE_ID aete
109
{
110
	0x0001, 		/* Reserved (for Photoshop) */
111
 
112
	"\1\0", english, roman,				/* aete version and language specifiers */
113
 
114
	1, /*suites*/
115
		"\014Telegraphics",				/* vendor suite name */
116
		"\0",							/* optional description */
117
		LC(t,E,L,E),					/* suite ID */
118
		1,								/* suite code, must be 1 */
119
		1,								/* suite level, must be 1 */
120
 
121
		1, /*events*/					/* structure for filters */
122
 
62 toby 123
			"\015FilterFoundry",		/* event name               */
124
			"\0",						/* event description        */
125
			LC(f,i,F,o),				/* event class              */
126
			LC(f,i,F,o),				/* event ID                 */
2 toby 127
			RC_NO_REPLY,
128
			RC_IMAGE_DIRECT_PARAM,
129
			12,
130
				"\001R", LC(x,p,r,R), RC_typeChar, "\024R channel expression", FLAGS_1_OPT_PARAM,
131
				"\001G", LC(x,p,r,G), RC_typeChar, "\024G channel expression", FLAGS_1_OPT_PARAM,
132
				"\001B", LC(x,p,r,B), RC_typeChar, "\024B channel expression", FLAGS_1_OPT_PARAM,
133
				"\001A", LC(x,p,r,A), RC_typeChar, "\024A channel expression", FLAGS_1_OPT_PARAM,
134
				"\004ctl0", LC(c,T,l,0), RC_typeInteger, "\016ctl(0) setting", FLAGS_1_OPT_PARAM,
135
				"\004ctl1", LC(c,T,l,1), RC_typeInteger, "\016ctl(1) setting", FLAGS_1_OPT_PARAM,
136
				"\004ctl2", LC(c,T,l,2), RC_typeInteger, "\016ctl(2) setting", FLAGS_1_OPT_PARAM,
137
				"\004ctl3", LC(c,T,l,3), RC_typeInteger, "\016ctl(3) setting", FLAGS_1_OPT_PARAM,
138
				"\004ctl4", LC(c,T,l,4), RC_typeInteger, "\016ctl(4) setting", FLAGS_1_OPT_PARAM,
139
				"\004ctl5", LC(c,T,l,5), RC_typeInteger, "\016ctl(5) setting", FLAGS_1_OPT_PARAM,
140
				"\004ctl6", LC(c,T,l,6), RC_typeInteger, "\016ctl(6) setting", FLAGS_1_OPT_PARAM,
141
				"\004ctl7", LC(c,T,l,7), RC_typeInteger, "\016ctl(7) setting", FLAGS_1_OPT_PARAM,
142
 
143
		0, /*classes*/					/* non-filter plug-in class here */
144
 
145
		0, /* comparison ops (not supported) */
146
 
147
		0, /* any enumerations */
148
 
149
	0L /* padding */
150
}