Subversion Repositories filter_foundry

Rev

Rev 130 | 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
/* Main dialog */
21
#define OPENITEM 3
22
#define PARAMAUTHORITEM 3
23
#define SAVEITEM 4
24
#define PARAMCOPYITEM 4
25
#define MAKEITEM 5
26
 
27
#define PREVIEWITEM 6
28
#define ZOOMINITEM 7
29
#define ZOOMOUTITEM 8
30
#define ZOOMLEVELITEM 9
31
 
122 dmarschall 32
#define FIRSTCTLLABELITEM 10  /* 10-17 */
33
#define FIRSTCTLITEM 18       /* 18-25 */
34
#define FIRSTCTLTEXTITEM 26   /* 26-33 */
2 toby 35
#define FIRSTLABELITEM 34
36
#define FIRSTICONITEM 38
37
#define FIRSTEXPRITEM 42
38
 
39
/* Build dialog */
40
#define CATEGORYITEM 3
41
#define TITLEITEM 4
42
#define COPYRIGHTITEM 5
43
#define AUTHORITEM 6
44
#define FIRSTMAPNAMEITEM 7
45
#define FIRSTCTLNAMEITEM 11
46
#define FIRSTMAPCHECKITEM 19
47
#define FIRSTCTLCHECKITEM 23
48
#define PROTECTITEM 31
85 toby 49
#define OBFUSCITEM 32
2 toby 50
 
51
#define SLIDERPAGE 16
52
 
53
#define ID_ABOUTDLG 16000
54
#define ID_ABOUTSTANDALONEDLG 16005
55
#define ID_MAINDLG 16001
56
#define ID_SYNTAXALERT 16002
57
#define ID_BUILDDLG 16003
58
#define ID_PARAMDLG 16004
59
 
60
#define ID_SLIDERCTL 16000
61
#define ID_TEXTCTL 16001
62
 
63
#define ID_CAUTIONPICT 16000
64
#define ID_ZOOMINPICT 16001
65
#define ID_ZOOMOUTPICT 16002
66
#define ID_HANDCURSOR 16000
67
 
106 dmarschall 68
#define IDC_FF_HAND_OPEN 1001
69
#define IDC_FF_HAND_GRAB 1002
126 dmarschall 70
#define IDC_FF_HAND_QUESTION 1003
106 dmarschall 71
 
2 toby 72
/* --- constants for terminology (scripting) resource */
73
#define AETE_ID                 16000
74
#define vendorName              "Telegraphics"
75
#define plugInSuiteID   'tELE'
76
#define plugInClassID   'fiFo'
77
#define plugInEventID   plugInClassID //typeNull // must be this
78
 
79
#define PARAM_R_KEY             'xprR'
80
#define PARAM_G_KEY             'xprG'
81
#define PARAM_B_KEY             'xprB'
82
#define PARAM_A_KEY             'xprA'
83
 
106 dmarschall 84
#define PARAM_CTL0_KEY  'cTl0'  // some naughty parts of the code assume
2 toby 85
#define PARAM_CTL1_KEY  'cTl1'  // these are numerically sequential
86
#define PARAM_CTL2_KEY  'cTl2'
87
#define PARAM_CTL3_KEY  'cTl3'
88
#define PARAM_CTL4_KEY  'cTl4'
89
#define PARAM_CTL5_KEY  'cTl5'
90
#define PARAM_CTL6_KEY  'cTl6'
91
#define PARAM_CTL7_KEY  'cTl7'
130 dmarschall 92
 
93
// Return value of checksliders() is a bitmask
94
// If the CHECKSLIDERS_CTL_AMBIGUOUS bit is set, the function ctl() was called with a non-constant argument.
95
// In this case, the ctlflags[] array is NOT populated correctly. The caller might want to handle this
96
// case differently (e.g. by enabling all sliders).
97
// If the CHECKSLIDERS_MAP_AMBIGUOUS bit is set, the function map() was called with a non-constant argument.
98
// In this case, the mapflags[] array is NOT populated correctly.
99
// If the return value is zero, ctlflags[] and mapflags[] are populated correctly.
100
#define CHECKSLIDERS_CTL_AMBIGUOUS 1
101
#define CHECKSLIDERS_MAP_AMBIGUOUS 2
102
 
2 toby 103
/* --- */
104
 
105
#ifndef RC_INVOKED
106
#ifndef Rez
107
 
29 toby 108
        #include "PIAbout.h"
109
        #include "PIFilter.h"
106 dmarschall 110
 
2 toby 111
        #include "ui_compat.h"
106 dmarschall 112
 
113
        enum{
2 toby 114
                MAXEXPR = 1024,
115
        };
106 dmarschall 116
 
2 toby 117
        void DoAbout(AboutRecordPtr prec);
118
        Boolean maindialog(FilterRecordPtr pb);
119
        Boolean builddialog(FilterRecordPtr pb);
120
        Boolean simplealert(char *s);
106 dmarschall 121
 
2 toby 122
        // platform independent
123
        Boolean alertuser(char *err,char *more);
124
        void maindlginit(DIALOGREF dp);
125
        Boolean maindlgitem(DIALOGREF dp,int item);
126
        void maindlgupdate(DIALOGREF dp);
127
        void slidermoved(DIALOGREF dp,int item);
130 dmarschall 128
        int checksliders(int exprs,int ctlflags[],int mapflags[]);
106 dmarschall 129
 
2 toby 130
        void builddlginit(DIALOGREF dp);
131
        Boolean builddlgitem(DIALOGREF dp,int item);
132
 
133
#endif
134
#endif