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