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