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