Subversion Repositories filter_foundry

Rev

Rev 259 | Rev 320 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
259 daniel-mar 1
/*
2
    This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
3
    Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au
4
    Copyright (C) 2018-2021 Daniel Marschall, ViaThinkSoft
5
 
6
    This program is free software; you can redistribute it and/or modify
7
    it under the terms of the GNU General Public License as published by
8
    the Free Software Foundation; either version 2 of the License, or
9
    (at your option) any later version.
10
 
11
    This program is distributed in the hope that it will be useful,
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
    GNU General Public License for more details.
15
 
16
    You should have received a copy of the GNU General Public License
17
    along with this program; if not, write to the Free Software
18
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
*/
20
 
21
/* Main dialog */
22
#define OPENITEM 3
23
#define PARAMAUTHORITEM 3
24
#define SAVEITEM 4
25
#define PARAMCOPYITEM 4
26
#define MAKEITEM 5
305 daniel-mar 27
#define HELPITEM 6
259 daniel-mar 28
 
305 daniel-mar 29
#define PREVIEWITEM 7
30
#define ZOOMINITEM 8
31
#define ZOOMOUTITEM 9
32
#define ZOOMLEVELITEM 10
259 daniel-mar 33
 
305 daniel-mar 34
#define FIRSTCTLLABELITEM 11  /* 11-18 */
35
#define FIRSTCTLITEM 19       /* 19-26 */
36
#define FIRSTCTLTEXTITEM 27   /* 27-34 */
37
#define FIRSTLABELITEM 35     /* 35-38 */
38
#define FIRSTICONITEM 39      /* 39-42 */
39
#define FIRSTEXPRITEM 43      /* 43-46 */
40
#define FIRSTMAPLABELITEM 47  /* 47-50 */
259 daniel-mar 41
 
42
/* Build dialog */
43
#define CATEGORYITEM 3
44
#define TITLEITEM 4
45
#define COPYRIGHTITEM 5
46
#define AUTHORITEM 6
47
#define FIRSTMAPNAMEITEM 7
48
#define FIRSTCTLNAMEITEM 11
49
#define FIRSTMAPCHECKITEM 19
50
#define FIRSTCTLCHECKITEM 23
51
#define PROTECTITEM 31
52
 
53
#define SLIDERPAGE 16
54
 
55
#define ID_ABOUTDLG 16000
56
#define ID_ABOUTSTANDALONEDLG 16005
57
#define ID_MAINDLG 16001
58
#define ID_SYNTAXALERT 16002
59
#define ID_BUILDDLG 16003
60
#define ID_PARAMDLG 16004
61
 
62
#define ID_SLIDERCTL 16000
63
#define ID_TEXTCTL 16001
64
 
65
#define ID_CAUTIONPICT 16000
66
#define ID_ZOOMINPICT 16001
67
#define ID_ZOOMOUTPICT 16002
68
#define ID_HANDCURSOR 16000
69
 
70
#define IDC_FF_HAND_OPEN 1001
71
#define IDC_FF_HAND_GRAB 1002
72
#define IDC_FF_HAND_QUESTION 1003
73
 
74
/* --- constants for terminology (scripting) resource */
75
#define AETE_ID                 16000
76
#define vendorName              "Telegraphics"
77
#define plugInSuiteID   'tELE'
78
#define plugInClassID   'Fltr' //PITerminology.h:eventFilter
79
#define plugInEventID   'fiFo' //typeNull // must be this
80
 
81
// Return value of checksliders() is a bitmask
82
// If the CHECKSLIDERS_CTL_AMBIGUOUS bit is set, the function ctl() was called with a non-constant argument.
83
// In this case, the ctlflags[] array is NOT populated correctly. The caller might want to handle this
84
// case differently (e.g. by enabling all sliders).
85
// If the CHECKSLIDERS_MAP_AMBIGUOUS bit is set, the function map() was called with a non-constant argument.
86
// In this case, the mapflags[] array is NOT populated correctly.
87
// If the return value is zero, ctlflags[] and mapflags[] are populated correctly.
88
#define CHECKSLIDERS_CTL_AMBIGUOUS 1
89
#define CHECKSLIDERS_MAP_AMBIGUOUS 2
90
 
91
/* --- */
92
 
93
#ifndef RC_INVOKED
94
#ifndef Rez
95
 
96
        #include "PIAbout.h"
97
        #include "PIFilter.h"
98
 
99
        #include "ui_compat.h"
100
 
101
        enum{
102
                MAXEXPR = 1024,
103
        };
104
 
105
        void DoAbout(AboutRecordPtr prec);
106
        Boolean maindialog(FilterRecordPtr pb);
107
        Boolean builddialog(FilterRecordPtr pb);
108
        Boolean simplealert(char *s);
109
        Boolean showmessage(char *s);
110
 
111
        // platform independent
112
        Boolean alertuser(char *err,char *more);
113
        void maindlginit(DIALOGREF dp);
114
        Boolean maindlgitem(DIALOGREF dp,int item);
115
        void maindlgupdate(DIALOGREF dp);
116
        void slidermoved(DIALOGREF dp,int item);
117
        int checksliders(int exprs,int ctlflags[],int mapflags[]);
118
 
119
        void builddlginit(DIALOGREF dp);
120
        Boolean builddlgitem(DIALOGREF dp,int item);
121
 
122
#endif
123
#endif