Changing _CONFIG_H to CONFIG_H_INCLUDED.
[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 the SourceForge
8  *                IJBSWA team.  http://ijbswa.sourceforge.net
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.10  2001/07/19 19:14:19  haroon
35  *    -  Removed all #ifdef PCRS. The .rc file extension had eluded Andreas.
36  *
37  *    Revision 1.9  2001/06/07 23:08:54  jongfoster
38  *    Forward and ACL edit options removed.
39  *    Config edit option renamed from "&Junkbuster" to "&Configuration".
40  *
41  *    Revision 1.8  2001/05/31 21:37:11  jongfoster
42  *    GUI changes to rename "permissions file" to "actions file".
43  *
44  *    Revision 1.7  2001/05/29 09:50:24  jongfoster
45  *    Unified blocklist/imagelist/permissionslist.
46  *    File format is still under discussion, but the internal changes
47  *    are (mostly) done.
48  *
49  *    Also modified interceptor behaviour:
50  *    - We now intercept all URLs beginning with one of the following
51  *      prefixes (and *only* these prefixes):
52  *        * http://i.j.b/
53  *        * http://ijbswa.sf.net/config/
54  *        * http://ijbswa.sourceforge.net/config/
55  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
56  *    - Internal changes so that intercepted and fast redirect pages
57  *      are not replaced with an image.
58  *    - Interceptors now have the option to send a binary page direct
59  *      to the client. (i.e. ijb-send-banner uses this)
60  *    - Implemented show-url-info interceptor.  (Which is why I needed
61  *      the above interceptors changes - a typical URL is
62  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
63  *      The previous mechanism would not have intercepted that, and
64  *      if it had been intercepted then it then it would have replaced
65  *      it with an image.)
66  *
67  *    Revision 1.6  2001/05/26 14:15:18  jongfoster
68  *    Cosmetic fix: // -> block comment
69  *
70  *    Revision 1.5  2001/05/26 13:24:31  jongfoster
71  *    New #define, WIN_GUI_EDIT, enables the (embryonic) Win32 GUI editor.
72  *    This #define cannot be set from ./configure - there's no point, it
73  *    doesn't work yet.  See feature request # 425722
74  *    (I missed this file in my original checkin)
75  *
76  *    Revision 1.4  2001/05/26 00:28:36  jongfoster
77  *    Automatic reloading of config file.
78  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
79  *    Most of the global variables have been moved to a new
80  *    struct configuration_spec, accessed through csp->config->globalname
81  *    Most of the globals remaining are used by the Win32 GUI.
82  *
83  *    Revision 1.3  2001/05/25 22:33:40  jongfoster
84  *    CRLF->LF
85  *
86  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
87  *    Version 2.9.4 checkin.
88  *    - Merged popupfile and cookiefile, and added control over PCRS
89  *      filtering, in new "permissionsfile".
90  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
91  *      file error you now get a message box (in the Win32 GUI) rather
92  *      than the program exiting with no explanation.
93  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
94  *      skipping.
95  *    - Removed tabs from "config"
96  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
97  *    - Bumped up version number.
98  *
99  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
100  *    Initial import of version 2.9.3 source tree
101  *
102  *
103  *********************************************************************/
104
105 #include <windows.h>
106 #include "config.h"
107 #include "w32res.h"
108
109 #ifdef __MINGW32__
110 #include "cygwin.h"
111 #endif
112
113 /****************************************************************************
114  *  Language-neutral resources
115  ****************************************************************************/
116
117 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
118 #ifdef _WIN32
119 /* LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL */
120 #pragma code_page(1252)
121 #endif /* _WIN32 */
122
123 /*
124  * Icons
125  *
126  * Icon with lowest ID value placed first to ensure application icon
127  * remains consistent on all systems.
128  */
129 IDI_JUNKBUSTER          ICON    DISCARDABLE     "icons/junkbust.ico"
130 IDI_JUNKBUSTER1         ICON    DISCARDABLE     "icons/ico00001.ico"
131 IDI_JUNKBUSTER2         ICON    DISCARDABLE     "icons/ico00002.ico"
132 IDI_JUNKBUSTER3         ICON    DISCARDABLE     "icons/ico00003.ico"
133 IDI_JUNKBUSTER4         ICON    DISCARDABLE     "icons/ico00004.ico"
134 IDI_JUNKBUSTER5         ICON    DISCARDABLE     "icons/ico00005.ico"
135 IDI_JUNKBUSTER6         ICON    DISCARDABLE     "icons/ico00006.ico"
136 IDI_JUNKBUSTER7         ICON    DISCARDABLE     "icons/ico00007.ico"
137 IDI_JUNKBUSTER8         ICON    DISCARDABLE     "icons/ico00008.ico"
138 IDI_IDLE                ICON    DISCARDABLE     "icons/idle.ico"
139
140 #endif /* Neutral resources */
141
142
143 /****************************************************************************
144  *  English (U.S.) resources
145  ****************************************************************************/
146
147 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
148 #ifdef _WIN32
149 /* LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US */
150 #pragma code_page(1252)
151 #endif /* def _WIN32 */
152
153 /*
154  * File Version
155  */
156 #ifndef _MAC
157
158 VS_VERSION_INFO VERSIONINFO
159  FILEVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_POINT,0
160  PRODUCTVERSION VERSION_MAJOR,VERSION_MINOR,VERSION_POINT,0
161  FILEFLAGSMASK 0x3fL
162 #ifdef _DEBUG
163  FILEFLAGS 0x1L
164 #else
165  FILEFLAGS 0x0L
166 #endif
167  FILEOS 0x40004L
168  FILETYPE 0x1L
169  FILESUBTYPE 0x0L
170 BEGIN
171     BLOCK "StringFileInfo"
172     BEGIN
173         BLOCK "040904b0"
174         BEGIN
175             VALUE "CompanyName", "The ijbswa team - ijbswa.sourceforge.net\0"
176             VALUE "FileDescription", "JunkBuster\0"
177             VALUE "FileVersion", VERSION "\0"
178             VALUE "InternalName", "JunkBuster\0"
179             VALUE "LegalCopyright", "Distributed under the GNU GPL\0"
180             VALUE "OriginalFilename", "junkbuster.exe\0"
181             VALUE "ProductName", "JunkBuster\0"
182             VALUE "ProductVersion", VERSION "\0"
183         END
184     END
185     BLOCK "VarFileInfo"
186     BEGIN
187         VALUE "Translation", 0x409, 1200
188     END
189 END
190
191 #endif /* ndef _MAC */
192
193
194 /*
195  * Menus
196  */
197
198 IDR_TRAYMENU MENU DISCARDABLE
199 BEGIN
200     POPUP "Popup"
201     BEGIN
202         MENUITEM "E&xit JunkBuster",   ID_FILE_EXIT
203         MENUITEM                       SEPARATOR
204         POPUP "&Options"
205         BEGIN
206             MENUITEM "&Configuration...",           ID_TOOLS_EDITJUNKBUSTER
207             MENUITEM                                SEPARATOR
208             MENUITEM "&Actions...",                 ID_TOOLS_EDITACTIONS
209             MENUITEM "Perl &Regexps...",            ID_TOOLS_EDITPERLRE
210 #ifdef TRUST_FILES
211             MENUITEM "&Trust...",                   ID_TOOLS_EDITTRUST
212 #endif /* def TRUST_FILES */
213         END
214         MENUITEM                              SEPARATOR
215 #ifdef TOGGLE
216         MENUITEM "&Enable",                   ID_TOGGLE_IJB, CHECKED
217 #endif
218         MENUITEM "Show &JunkBuster Window",   ID_SHOWWINDOW
219     END
220 END
221
222 IDR_LOGVIEW MENU DISCARDABLE
223 BEGIN
224     POPUP "&File"
225     BEGIN
226         MENUITEM "E&xit",                       ID_FILE_EXIT
227     END
228     POPUP "&Edit"
229     BEGIN
230         MENUITEM "Copy",                        ID_EDIT_COPY
231     END
232     POPUP "&View"
233     BEGIN
234         MENUITEM "&Clear Log",                  ID_VIEW_CLEARLOG
235         MENUITEM                                SEPARATOR
236         MENUITEM "&Log Messages",               ID_VIEW_LOGMESSAGES, CHECKED
237         MENUITEM "Message &Highlighting",       ID_VIEW_MESSAGEHIGHLIGHTING, CHECKED
238         MENUITEM "Limit &Buffer Size",          ID_VIEW_LIMITBUFFERSIZE, CHECKED
239         MENUITEM "&Activity Animation",         ID_VIEW_ACTIVITYANIMATION, CHECKED
240     END
241     POPUP "&Options"
242     BEGIN
243 #ifdef TOGGLE
244         MENUITEM "&Enable",                     ID_TOGGLE_IJB, CHECKED
245         MENUITEM                                SEPARATOR
246 #endif
247         MENUITEM "&Configuration...",           ID_TOOLS_EDITJUNKBUSTER
248         MENUITEM                                SEPARATOR
249         MENUITEM "&Actions...",                 ID_TOOLS_EDITACTIONS
250             MENUITEM "Perl &Regexps...",        ID_TOOLS_EDITPERLRE
251 #ifdef TRUST_FILES
252             MENUITEM "&Trust...",               ID_TOOLS_EDITTRUST
253 #endif /* def TRUST_FILES */
254     END
255     POPUP "&Help"
256     BEGIN
257         MENUITEM "Junkbuster &FAQ",             ID_HELP_FAQ
258         MENUITEM "Junkbuster &Manual",          ID_HELP_MANUAL
259         MENUITEM "GNU &General Public Licence", ID_HELP_GPL
260         MENUITEM                                SEPARATOR
261         MENUITEM "Junkbuster Status...",        ID_HELP_STATUS
262         MENUITEM                                SEPARATOR
263         MENUITEM "About Junkbuster...",         ID_HELP_ABOUTJUNKBUSTER
264     END
265 END
266
267 IDR_POPUP_SELECTION MENU DISCARDABLE
268 BEGIN
269     POPUP "Popup"
270     BEGIN
271         MENUITEM "&Copy",                       ID_EDIT_COPY
272     END
273 END
274
275
276 /*
277  * Accelerators
278  */
279
280 IDR_ACCELERATOR ACCELERATORS DISCARDABLE
281 BEGIN
282     "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL, NOINVERT
283 END
284
285 #ifdef WIN_GUI_EDIT
286
287 /*
288  * Icons
289  *
290  * Icon with lowest ID value placed first to ensure application icon
291  * remains consistent on all systems.
292  */
293 IDI_DENYRULE            ICON    DISCARDABLE     "icons/denyrule.ico"
294 IDI_ALLOWRULE           ICON    DISCARDABLE     "icons/icon1.ico"
295
296 /*
297  * Dialog
298  */
299
300 IDD_RULES DIALOG DISCARDABLE  0, 0, 239, 225
301 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
302 CAPTION "Blockers"
303 FONT 8, "MS Sans Serif"
304 BEGIN
305     GROUPBOX        "New Rule",IDC_STATIC,5,5,230,55
306     LTEXT           "For:",IDC_STATIC,10,15,13,8
307     EDITTEXT        IDC_NEW,10,25,220,12,ES_AUTOHSCROLL
308     COMBOBOX        IDC_ACTION,10,40,75,37,CBS_DROPDOWNLIST | CBS_SORT |
309                     WS_VSCROLL | WS_TABSTOP
310     PUSHBUTTON      "C&reate!",IDC_CREATE,90,40,50,14
311     GROUPBOX        "Rules",IDC_STATIC,5,65,230,135
312     CONTROL         "List1",IDC_RULES,"SysListView32",LVS_REPORT |
313                     LVS_SHOWSELALWAYS | LVS_EDITLABELS | WS_BORDER |
314                     WS_TABSTOP,10,75,220,100
315     PUSHBUTTON      "Move &Up",IDC_MOVEUP,10,180,50,14,WS_DISABLED
316     PUSHBUTTON      "Move &Down",IDC_MOVEDOWN,65,180,50,14,WS_DISABLED
317     PUSHBUTTON      "&Delete",IDC_DELETE,120,180,50,14,WS_DISABLED
318     PUSHBUTTON      "&Save",IDC_SAVE,130,205,50,14
319     PUSHBUTTON      "&Cancel",IDCANCEL,185,205,50,14
320 END
321
322
323 /*
324  * DESIGNINFO
325  */
326
327 #ifdef APSTUDIO_INVOKED
328 GUIDELINES DESIGNINFO DISCARDABLE
329 BEGIN
330     IDD_RULES, DIALOG
331     BEGIN
332         LEFTMARGIN, 7
333         RIGHTMARGIN, 232
334         TOPMARGIN, 7
335         BOTTOMMARGIN, 218
336     END
337 END
338 #endif /* def APSTUDIO_INVOKED */
339
340
341 /*
342  * String Table
343  */
344
345 STRINGTABLE DISCARDABLE
346 BEGIN
347     IDS_NEW_BLOCKER         "Create rule for ""%s""..."
348 END
349
350
351 #endif /* def WIN_GUI_EDIT */
352
353 #endif /* English (U.S.) resources */