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