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