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