Adding a missing #if
[privoxy.git] / src / w32res.rc
1 /*********************************************************************
2  *
3  * File        :  $Source: /cvsroot/ijbswa/current/w32.rc,v $
4  *
5  * Purpose     :  Windows GUI resource script.
6  *
7  * Copyright   :  Written by and Copyright (C) 2001-2002 members of
8  *                the Privoxy team.  http://www.privoxy.org/
9  *
10  *                Based on the Internet Junkbuster originally written
11  *                by and Copyright (C) 1997 Anonymous Coders and 
12  *                Junkbusters Corporation.  http://www.junkbusters.com
13  *
14  *                This program is free software; you can redistribute it 
15  *                and/or modify it under the terms of the GNU General
16  *                Public License as published by the Free Software
17  *                Foundation; either version 2 of the License, or (at
18  *                your option) any later version.
19  *
20  *                This program is distributed in the hope that it will
21  *                be useful, but WITHOUT ANY WARRANTY; without even the
22  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
23  *                PARTICULAR PURPOSE.  See the GNU General Public
24  *                License for more details.
25  *
26  *                The GNU General Public License should be included with
27  *                this file.  If not, you can view it at
28  *                http://www.gnu.org/copyleft/gpl.html
29  *                or write to the Free Software Foundation, Inc., 59
30  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31  *
32  * Revisions   :
33  *    $Log: w32.rc,v $
34  *    Revision 1.17  2002/03/31 17:19:00  jongfoster
35  *    Win32 only: Enabling STRICT to fix a VC++ compile warning.
36  *
37  *    Revision 1.16  2002/03/26 22:57:44  jongfoster
38  *    Web server name should begin www.
39  *
40  *    Revision 1.15  2002/03/24 14:29:25  jongfoster
41  *    Renaming icon file
42  *
43  *    Revision 1.14  2002/03/24 12:07:36  jongfoster
44  *    Consistern name for filters file
45  *
46  *    Revision 1.13  2002/03/24 12:03:47  jongfoster
47  *    Name change
48  *
49  *    Revision 1.12  2001/07/30 22:16:07  jongfoster
50  *    Tidying up #defines:
51  *    - All feature #defines are now of the form FEATURE_xxx
52  *    - Permanently turned off WIN_GUI_EDIT
53  *    - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
54  *
55  *    Revision 1.11  2001/07/21 17:53:41  jongfoster
56  *    Adding version information block.
57  *
58  *    Revision 1.10  2001/07/19 19:14:19  haroon
59  *    -  Removed all #ifdef PCRS. The .rc file extension had eluded Andreas.
60  *
61  *    Revision 1.9  2001/06/07 23:08:54  jongfoster
62  *    Forward and ACL edit options removed.
63  *    Config edit option renamed from "&Junkbuster" to "&Configuration".
64  *
65  *    Revision 1.8  2001/05/31 21:37:11  jongfoster
66  *    GUI changes to rename "permissions file" to "actions file".
67  *
68  *    Revision 1.7  2001/05/29 09:50:24  jongfoster
69  *    Unified blocklist/imagelist/permissionslist.
70  *    File format is still under discussion, but the internal changes
71  *    are (mostly) done.
72  *
73  *    Also modified interceptor behaviour:
74  *    - We now intercept all URLs beginning with one of the following
75  *      prefixes (and *only* these prefixes):
76  *        * http://i.j.b/
77  *        * http://ijbswa.sf.net/config/
78  *        * http://ijbswa.sourceforge.net/config/
79  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
80  *    - Internal changes so that intercepted and fast redirect pages
81  *      are not replaced with an image.
82  *    - Interceptors now have the option to send a binary page direct
83  *      to the client. (i.e. ijb-send-banner uses this)
84  *    - Implemented show-url-info interceptor.  (Which is why I needed
85  *      the above interceptors changes - a typical URL is
86  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
87  *      The previous mechanism would not have intercepted that, and
88  *      if it had been intercepted then it then it would have replaced
89  *      it with an image.)
90  *
91  *    Revision 1.6  2001/05/26 14:15:18  jongfoster
92  *    Cosmetic fix: // -> block comment
93  *
94  *    Revision 1.5  2001/05/26 13:24:31  jongfoster
95  *    New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
96  *    This #define cannot be set from ./configure - there's no point, it
97  *    doesn't work yet.  See feature request # 425722
98  *    (I missed this file in my original checkin)
99  *
100  *    Revision 1.4  2001/05/26 00:28:36  jongfoster
101  *    Automatic reloading of config file.
102  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
103  *    Most of the global variables have been moved to a new
104  *    struct configuration_spec, accessed through csp->config->globalname
105  *    Most of the globals remaining are used by the Win32 GUI.
106  *
107  *    Revision 1.3  2001/05/25 22:33:40  jongfoster
108  *    CRLF->LF
109  *
110  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
111  *    Version 2.9.4 checkin.
112  *    - Merged popupfile and cookiefile, and added control over PCRS
113  *      filtering, in new "permissionsfile".
114  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
115  *      file error you now get a message box (in the Win32 GUI) rather
116  *      than the program exiting with no explanation.
117  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
118  *      skipping.
119  *    - Removed tabs from "config"
120  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
121  *    - Bumped up version number.
122  *
123  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
124  *    Initial import of version 2.9.3 source tree
125  *
126  *
127  *********************************************************************/
128
129 #include "config.h"
130
131 #ifndef STRICT
132 #define STRICT
133 #endif
134 #include <windows.h>
135
136 #include "w32res.h"
137
138 #ifdef __MINGW32__
139 #include "cygwin.h"
140 #endif
141
142 /****************************************************************************
143  *  Language-neutral resources
144  ****************************************************************************/
145
146 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
147 #ifdef _WIN32
148 /* LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL */
149 #pragma code_page(1252)
150 #endif /* _WIN32 */
151
152 /*
153  * Icons
154  *
155  * Icon with lowest ID value placed first to ensure application icon
156  * remains consistent on all systems.
157  */
158 IDI_MAINICON            ICON    DISCARDABLE     "icons/privoxy.ico"
159 IDI_ANIMATED1           ICON    DISCARDABLE     "icons/ico00001.ico"
160 IDI_ANIMATED2           ICON    DISCARDABLE     "icons/ico00002.ico"
161 IDI_ANIMATED3           ICON    DISCARDABLE     "icons/ico00003.ico"
162 IDI_ANIMATED4           ICON    DISCARDABLE     "icons/ico00004.ico"
163 IDI_ANIMATED5           ICON    DISCARDABLE     "icons/ico00005.ico"
164 IDI_ANIMATED6           ICON    DISCARDABLE     "icons/ico00006.ico"
165 IDI_ANIMATED7           ICON    DISCARDABLE     "icons/ico00007.ico"
166 IDI_ANIMATED8           ICON    DISCARDABLE     "icons/ico00008.ico"
167 IDI_IDLE                ICON    DISCARDABLE     "icons/idle.ico"
168
169 #endif /* Neutral resources */
170
171
172 /****************************************************************************
173  *  English (U.S.) resources
174  ****************************************************************************/
175
176 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
177 #ifdef _WIN32
178 /* LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US */
179 #pragma code_page(1252)
180 #endif /* def _WIN32 */
181
182 /*
183  * File Version
184  */
185 #ifndef _MAC
186
187 VS_VERSION_INFO VERSIONINFO
188  FILEVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_POINT,0
189  PRODUCTVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_POINT,0
190  FILEFLAGSMASK 0x3fL
191 #ifdef _DEBUG
192  FILEFLAGS 0x1L
193 #else
194  FILEFLAGS 0x0L
195 #endif
196  FILEOS 0x40004L
197  FILETYPE 0x1L
198  FILESUBTYPE 0x0L
199 BEGIN
200     BLOCK "StringFileInfo"
201     BEGIN
202         BLOCK "040904b0"
203         BEGIN
204             VALUE "CompanyName", "The Privoxy team - www.privoxy.org\0"
205             VALUE "FileDescription", "Privoxy\0"
206             VALUE "FileVersion", VERSION "\0"
207             VALUE "InternalName", "Privoxy\0"
208             VALUE "LegalCopyright", "Distributed under the GNU GPL\0"
209             VALUE "OriginalFilename", "privoxy.exe\0"
210             VALUE "ProductName", "Privoxy\0"
211             VALUE "ProductVersion", VERSION "\0"
212         END
213     END
214     BLOCK "VarFileInfo"
215     BEGIN
216         VALUE "Translation", 0x409, 1200
217     END
218 END
219
220 #endif /* ndef _MAC */
221
222
223 /*
224  * Menus
225  */
226
227 IDR_TRAYMENU MENU DISCARDABLE
228 BEGIN
229     POPUP "Popup"
230     BEGIN
231         MENUITEM "E&xit Privoxy",      ID_FILE_EXIT
232         MENUITEM                       SEPARATOR
233         POPUP "&Options"
234         BEGIN
235             MENUITEM "&Configuration...",           ID_TOOLS_EDITCONFIG
236             MENUITEM                                SEPARATOR
237             MENUITEM "&Actions...",                 ID_TOOLS_EDITACTIONS
238             MENUITEM "&Filters...",                 ID_TOOLS_EDITFILTERS
239 #ifdef FEATURE_TRUST
240             MENUITEM "&Trust...",                   ID_TOOLS_EDITTRUST
241 #endif /* def FEATURE_TRUST */
242         END
243         MENUITEM                              SEPARATOR
244 #ifdef FEATURE_TOGGLE
245         MENUITEM "&Enable",                   ID_TOGGLE_ENABLED, CHECKED
246 #endif /* def FEATURE_TOGGLE */
247         MENUITEM "Show Privoxy &Window",      ID_SHOWWINDOW
248     END
249 END
250
251 IDR_LOGVIEW MENU DISCARDABLE
252 BEGIN
253     POPUP "&File"
254     BEGIN
255         MENUITEM "E&xit",                       ID_FILE_EXIT
256     END
257     POPUP "&Edit"
258     BEGIN
259         MENUITEM "Copy",                        ID_EDIT_COPY
260     END
261     POPUP "&View"
262     BEGIN
263         MENUITEM "&Clear Log",                  ID_VIEW_CLEARLOG
264         MENUITEM                                SEPARATOR
265         MENUITEM "&Log Messages",               ID_VIEW_LOGMESSAGES, CHECKED
266         MENUITEM "Message &Highlighting",       ID_VIEW_MESSAGEHIGHLIGHTING, CHECKED
267         MENUITEM "Limit &Buffer Size",          ID_VIEW_LIMITBUFFERSIZE, CHECKED
268         MENUITEM "&Activity Animation",         ID_VIEW_ACTIVITYANIMATION, CHECKED
269     END
270     POPUP "&Options"
271     BEGIN
272 #ifdef FEATURE_TOGGLE
273         MENUITEM "&Enable",                     ID_TOGGLE_ENABLED, CHECKED
274         MENUITEM                                SEPARATOR
275 #endif /* def FEATURE_TOGGLE */
276         MENUITEM "&Configuration...",           ID_TOOLS_EDITCONFIG
277         MENUITEM                                SEPARATOR
278         MENUITEM "&Actions...",                 ID_TOOLS_EDITACTIONS
279             MENUITEM "&Filters...",             ID_TOOLS_EDITFILTERS
280 #ifdef FEATURE_TRUST
281             MENUITEM "&Trust...",               ID_TOOLS_EDITTRUST
282 #endif /* def FEATURE_TRUST */
283     END
284     POPUP "&Help"
285     BEGIN
286         MENUITEM "Privoxy &FAQ",                ID_HELP_FAQ
287         MENUITEM "Privoxy &Manual",             ID_HELP_MANUAL
288         MENUITEM "GNU &General Public Licence", ID_HELP_GPL
289         MENUITEM                                SEPARATOR
290         MENUITEM "Privoxy Status...",           ID_HELP_STATUS
291         MENUITEM                                SEPARATOR
292         MENUITEM "About Privoxy...",            ID_HELP_ABOUT
293     END
294 END
295
296 IDR_POPUP_SELECTION MENU DISCARDABLE
297 BEGIN
298     POPUP "Popup"
299     BEGIN
300         MENUITEM "&Copy",                       ID_EDIT_COPY
301     END
302 END
303
304
305 /*
306  * Accelerators
307  */
308
309 IDR_ACCELERATOR ACCELERATORS DISCARDABLE
310 BEGIN
311     "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL, NOINVERT
312 END
313
314 #endif /* English (U.S.) resources */