Renaming _PCRS_H, and adding "extern C {}"
[privoxy.git] / w32res.h
1 #ifndef W32RES_H_INCLUDED
2 #define W32RES_H_INCLUDED
3 #define W32RES_H_VERSION "$Id: w32res.h,v 1.8 2001/07/13 14:04:59 oes Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/w32res.h,v $
7  *
8  * Purpose     :  Identifiers for Windows GUI resources.
9  *
10  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
11  *                IJBSWA team.  http://ijbswa.sourceforge.net
12  *
13  *                Based on the Internet Junkbuster originally written
14  *                by and Copyright (C) 1997 Anonymous Coders and 
15  *                Junkbusters Corporation.  http://www.junkbusters.com
16  *
17  *                This program is free software; you can redistribute it 
18  *                and/or modify it under the terms of the GNU General
19  *                Public License as published by the Free Software
20  *                Foundation; either version 2 of the License, or (at
21  *                your option) any later version.
22  *
23  *                This program is distributed in the hope that it will
24  *                be useful, but WITHOUT ANY WARRANTY; without even the
25  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
26  *                PARTICULAR PURPOSE.  See the GNU General Public
27  *                License for more details.
28  *
29  *                The GNU General Public License should be included with
30  *                this file.  If not, you can view it at
31  *                http://www.gnu.org/copyleft/gpl.html
32  *                or write to the Free Software Foundation, Inc., 59
33  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34  *
35  * Revisions   :
36  *    $Log: w32res.h,v $
37  *    Revision 1.8  2001/07/13 14:04:59  oes
38  *    Removed all #ifdef PCRS
39  *
40  *    Revision 1.7  2001/06/07 23:08:12  jongfoster
41  *    Forward and ACL edit options removed.
42  *
43  *    Revision 1.6  2001/05/31 21:37:11  jongfoster
44  *    GUI changes to rename "permissions file" to "actions file".
45  *
46  *    Revision 1.5  2001/05/29 09:50:24  jongfoster
47  *    Unified blocklist/imagelist/permissionslist.
48  *    File format is still under discussion, but the internal changes
49  *    are (mostly) done.
50  *
51  *    Also modified interceptor behaviour:
52  *    - We now intercept all URLs beginning with one of the following
53  *      prefixes (and *only* these prefixes):
54  *        * http://i.j.b/
55  *        * http://ijbswa.sf.net/config/
56  *        * http://ijbswa.sourceforge.net/config/
57  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
58  *    - Internal changes so that intercepted and fast redirect pages
59  *      are not replaced with an image.
60  *    - Interceptors now have the option to send a binary page direct
61  *      to the client. (i.e. ijb-send-banner uses this)
62  *    - Implemented show-url-info interceptor.  (Which is why I needed
63  *      the above interceptors changes - a typical URL is
64  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
65  *      The previous mechanism would not have intercepted that, and
66  *      if it had been intercepted then it then it would have replaced
67  *      it with an image.)
68  *
69  *    Revision 1.4  2001/05/26 01:26:34  jongfoster
70  *    New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
71  *    This #define cannot be set from ./configure - there's no point, it
72  *    doesn't work yet.  See feature request # 425722
73  *
74  *    Revision 1.3  2001/05/26 00:28:36  jongfoster
75  *    Automatic reloading of config file.
76  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
77  *    Most of the global variables have been moved to a new
78  *    struct configuration_spec, accessed through csp->config->globalname
79  *    Most of the globals remaining are used by the Win32 GUI.
80  *
81  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
82  *    Version 2.9.4 checkin.
83  *    - Merged popupfile and cookiefile, and added control over PCRS
84  *      filtering, in new "permissionsfile".
85  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
86  *      file error you now get a message box (in the Win32 GUI) rather
87  *      than the program exiting with no explanation.
88  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
89  *      skipping.
90  *    - Removed tabs from "config"
91  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
92  *    - Bumped up version number.
93  *
94  *    Revision 1.1.1.1  2001/05/15 13:59:08  oes
95  *    Initial import of version 2.9.3 source tree
96  *
97  *
98  *********************************************************************/
99
100 #ifdef WIN_GUI_EDIT
101 #define IDS_NEW_BLOCKER                   1
102
103 #define ID_NEW_BLOCKER                    100
104 #endif /* def WIN_GUI_EDIT */
105
106 #define IDR_TRAYMENU                      101
107 #define IDI_IDLE                          102
108 #define IDR_LOGVIEW                       103
109 #define IDR_ACCELERATOR                   104
110 #define IDR_POPUP_SELECTION               105
111
112 #ifdef WIN_GUI_EDIT
113 #define IDD_RULES                         106
114 #endif /* def WIN_GUI_EDIT */
115
116
117 #define IDI_JUNKBUSTER                    200
118 #define IDI_JUNKBUSTER1                   201
119 #define IDI_JUNKBUSTER2                   202
120 #define IDI_JUNKBUSTER3                   203
121 #define IDI_JUNKBUSTER4                   204
122 #define IDI_JUNKBUSTER5                   205
123 #define IDI_JUNKBUSTER6                   206
124 #define IDI_JUNKBUSTER7                   207
125 #define IDI_JUNKBUSTER8                   208
126
127 #ifdef WIN_GUI_EDIT
128 #define IDI_DENYRULE                      209
129 #define IDI_ALLOWRULE                     210
130
131 #define IDC_NEW                           300
132 #define IDC_ACTION                        301
133 #define IDC_RULES                         302
134 #define IDC_CREATE                        303
135 #define IDC_MOVEUP                        304
136 #define IDC_MOVEDOWN                      305
137 #define IDC_DELETE                        306
138 #define IDC_SAVE                          307
139 #endif /* def WIN_GUI_EDIT */
140
141 #define ID_SHOWWINDOW                     4000
142 #define ID_HELP_ABOUTJUNKBUSTER           4001
143 #define ID_FILE_EXIT                      4002
144 #define ID_VIEW_CLEARLOG                  4003
145 #define ID_VIEW_LOGMESSAGES               4004
146 #define ID_VIEW_MESSAGEHIGHLIGHTING       4005
147 #define ID_VIEW_LIMITBUFFERSIZE           4006
148 #define ID_VIEW_ACTIVITYANIMATION         4007
149 #define ID_HELP_FAQ                       4008
150 #define ID_HELP_MANUAL                    4009
151 #define ID_HELP_GPL                       4010
152 #define ID_HELP_STATUS                    4011
153 #ifdef TOGGLE
154 #define ID_TOGGLE_IJB                     4012
155 #endif
156
157 /* Break these out so they are easier to extend, but keep consecutive */
158 #define ID_TOOLS_EDITJUNKBUSTER           5000
159 #define ID_TOOLS_EDITACTIONS              5001
160 #define ID_TOOLS_EDITPERLRE               5002
161
162 #ifdef TRUST_FILES
163 #define ID_TOOLS_EDITTRUST                5003
164 #endif /* def TRUST_FILES */
165
166 /*
167  * The following symbols are declared in <afxres.h> in VC++.
168  * However, mingw32 doesn't have that header.  Let's 
169  * always declare them here, for consistency.
170  * These are the VC++ values.
171  */
172 #define IDC_STATIC      (-1)
173 #define ID_EDIT_COPY  30000
174
175
176 #endif /* ndef W32RES_H_INCLUDED */
177
178 /*
179   Local Variables:
180   tab-width: 3
181   end:
182 */