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