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