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