Diff of /PTAdjust/PTAdjust.r [000000] .. [68cdf8] Maximize Restore

  Switch to unified view

a b/PTAdjust/PTAdjust.r
1
2
// PTLens, Copyright (C) 2004, Thomas Niemann
3
// email: thomasn@epaperpress.com, subject=ptlens
4
// 
5
// This program is free software; you can redistribute 
6
// it and/or modify it under the terms of the GNU
7
// General Public License as published by the Free 
8
// Software Foundation; either version 2 of the 
9
// License, or (at your option) any later version. 
10
//
11
// This program is distributed in the hope that it will 
12
// be useful, but WITHOUT ANY WARRANTY; without even 
13
// the implied warranty of MERCHANTABILITY or FITNESS 
14
// FOR A PARTICULAR PURPOSE. See the GNU General Public 
15
// License for more details. 
16
// 
17
// You should have received a copy of the GNU General 
18
// Public License along with this program; if not, 
19
// write to the Free Software Foundation, Inc., 675 
20
// Mass Ave, Cambridge, MA 02139, USA.
21
22
#include "PIDefines.h"
23
24
#ifdef __PIMac__
25
  #include "Types.r"
26
  #include "SysTypes.r"
27
  #include "Scripting.h"
28
  #include "PIGeneral.r"
29
  #include "PIUtilities.r"
30
  #include "DialogUtilities.r"
31
#elif defined(__PIWin__)
32
  #include "PTAdjust.h"
33
  #include "PIGeneral.h"
34
  #include "PIUtilities.r"
35
  #include "WinDialogUtils.r"
36
#endif
37
38
39
resource 'PiPL' ( 16000, "PTAdjust", purgeable )
40
{
41
  {
42
      Kind { Filter },
43
      Name { plugInName },
44
      Category { vendorName },
45
      Version { (latestFilterVersion << 16 ) | latestFilterSubVersion },
46
      #ifdef __PIWin__
47
          CodeWin32X86 { "PluginMain" },
48
      #else
49
          #if TARGET_CARBON
50
              CodeCarbonPowerPC { 0, 0, "" },
51
          #else
52
              CodePowerPC { 0, 0, "" },       
53
          #endif
54
      #endif
55
      SupportedModes
56
      {
57
          noBitmap, noSupportGrayScale,
58
          noIndexedColor, doesSupportRGBColor,
59
          noSupportCMYKColor, noSupportHSLColor,
60
          noSupportHSBColor, noSupportMultichannel,
61
          noSupportDuotone, noSupportLABColor
62
      },
63
64
      HasTerminology
65
      {
66
          plugInClassID,
67
          plugInEventID,
68
          16000,
69
          plugInUniqueID
70
      },
71
72
      EnableInfo { "in (PSHOP_ImageMode, RGBMode, RGB48Mode) && PSHOP_NumTargetChannels == 3" },
73
                  
74
      FilterCaseInfo
75
      {
76
          {
77
              /* Flat data, no selection */
78
              inWhiteMat, outWhiteMat,
79
              doNotWriteOutsideSelection,
80
              filtersLayerMasks, worksWithBlankData,
81
              copySourceToDestination,
82
                  
83
              /* Flat data with selection */
84
              inWhiteMat, outWhiteMat,
85
              writeOutsideSelection,
86
              filtersLayerMasks, worksWithBlankData,
87
              copySourceToDestination,
88
              
89
              /* Floating selection */
90
              inWhiteMat, outWhiteMat,
91
              writeOutsideSelection,
92
              filtersLayerMasks, worksWithBlankData,
93
              copySourceToDestination,
94
                  
95
              /* Editable transparency, no selection */
96
              inWhiteMat, outWhiteMat,
97
              doNotWriteOutsideSelection,
98
              filtersLayerMasks, worksWithBlankData,
99
              copySourceToDestination,
100
                  
101
              /* Editable transparency, with selection */
102
              inWhiteMat, outWhiteMat,
103
              writeOutsideSelection,
104
              filtersLayerMasks, worksWithBlankData,
105
              copySourceToDestination,
106
                  
107
              /* Preserved transparency, no selection */
108
              inWhiteMat, outWhiteMat,
109
              doNotWriteOutsideSelection,
110
              filtersLayerMasks, worksWithBlankData,
111
              copySourceToDestination,
112
                  
113
              /* Preserved transparency, with selection */
114
              inWhiteMat, outWhiteMat,
115
              writeOutsideSelection,
116
              filtersLayerMasks, worksWithBlankData,
117
              copySourceToDestination
118
          }
119
      }   
120
  }
121
};
122
123
resource 'aete' (16000, "PTAdjust dictionary", purgeable)
124
{
125
  1, 0, english, roman,                                   /* aete version and language specifiers */
126
  {
127
      vendorName,                                         /* vendor suite name */
128
      "PTAdjust",                                         /* optional description */
129
      plugInSuiteID,                                      /* suite ID */
130
      1,                                                  /* suite code, must be 1 */
131
      1,                                                  /* suite level, must be 1 */
132
      {                                                   /* structure for filters */
133
          plugInName,                                     /* unique filter name */
134
          plugInAETEComment,                              /* optional description */
135
          plugInClassID,                                  /* class ID, must be unique or Suite ID */
136
          plugInEventID,                                  /* event ID, must be unique to class ID */
137
          
138
          NO_REPLY,                                       /* never a reply */
139
          IMAGE_DIRECT_PARAMETER,                         /* direct parameter, used by Photoshop */
140
          {                                               /* parameters here, if any */
141
          }
142
      },
143
      {                                                   /* non-filter plug-in class here */
144
      },
145
      {                                                   /* comparison ops (not supported) */
146
      },
147
      {                                                   /* any enumerations */
148
              
149
      }
150
  }
151
};
152