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