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