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