Subversion Repositories filter_foundry

Rev

Rev 94 | Rev 122 | 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
85 toby 3
    Copyright (C) 2003-7 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
 
32
#define FIRSTCTLLABELITEM 10
33
#define FIRSTCTLITEM 18
34
#define FIRSTCTLTEXTITEM 26
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
70
 
2 toby 71
/* --- constants for terminology (scripting) resource */
72
#define AETE_ID                 16000
73
#define vendorName              "Telegraphics"
74
#define plugInSuiteID   'tELE'
75
#define plugInClassID   'fiFo'
76
#define plugInEventID   plugInClassID //typeNull // must be this
77
 
78
#define PARAM_R_KEY             'xprR'
79
#define PARAM_G_KEY             'xprG'
80
#define PARAM_B_KEY             'xprB'
81
#define PARAM_A_KEY             'xprA'
82
 
106 dmarschall 83
#define PARAM_CTL0_KEY  'cTl0'  // some naughty parts of the code assume
2 toby 84
#define PARAM_CTL1_KEY  'cTl1'  // these are numerically sequential
85
#define PARAM_CTL2_KEY  'cTl2'
86
#define PARAM_CTL3_KEY  'cTl3'
87
#define PARAM_CTL4_KEY  'cTl4'
88
#define PARAM_CTL5_KEY  'cTl5'
89
#define PARAM_CTL6_KEY  'cTl6'
90
#define PARAM_CTL7_KEY  'cTl7'
91
/* --- */
92
 
93
#ifndef RC_INVOKED
94
#ifndef Rez
95
 
29 toby 96
        #include "PIAbout.h"
97
        #include "PIFilter.h"
106 dmarschall 98
 
2 toby 99
        #include "ui_compat.h"
106 dmarschall 100
 
101
        enum{
2 toby 102
                MAXEXPR = 1024,
103
        };
106 dmarschall 104
 
2 toby 105
        void DoAbout(AboutRecordPtr prec);
106
        Boolean maindialog(FilterRecordPtr pb);
107
        Boolean builddialog(FilterRecordPtr pb);
108
        Boolean simplealert(char *s);
106 dmarschall 109
 
2 toby 110
        // platform independent
111
        Boolean alertuser(char *err,char *more);
112
        void maindlginit(DIALOGREF dp);
113
        Boolean maindlgitem(DIALOGREF dp,int item);
114
        void maindlgupdate(DIALOGREF dp);
115
        void slidermoved(DIALOGREF dp,int item);
116
        Boolean checksliders(int exprs,int ctlflags[],int mapflags[]);
106 dmarschall 117
 
2 toby 118
        void builddlginit(DIALOGREF dp);
119
        Boolean builddlgitem(DIALOGREF dp,int item);
120
 
121
#endif
122
#endif