Version 2.9.4 checkin.
[privoxy.git] / w32.rc
1 /*********************************************************************\r
2  *\r
3  * File        :  $Source: /cvsroot/ijbswa/current/w32.rc,v $\r
4  *\r
5  * Purpose     :  Windows GUI resource script.\r
6  *\r
7  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge\r
8  *                IJBSWA team.  http://ijbswa.sourceforge.net\r
9  *\r
10  *                Based on the Internet Junkbuster originally written\r
11  *                by and Copyright (C) 1997 Anonymous Coders and \r
12  *                Junkbusters Corporation.  http://www.junkbusters.com\r
13  *\r
14  *                This program is free software; you can redistribute it \r
15  *                and/or modify it under the terms of the GNU General\r
16  *                Public License as published by the Free Software\r
17  *                Foundation; either version 2 of the License, or (at\r
18  *                your option) any later version.\r
19  *\r
20  *                This program is distributed in the hope that it will\r
21  *                be useful, but WITHOUT ANY WARRANTY; without even the\r
22  *                implied warranty of MERCHANTABILITY or FITNESS FOR A\r
23  *                PARTICULAR PURPOSE.  See the GNU General Public\r
24  *                License for more details.\r
25  *\r
26  *                The GNU General Public License should be included with\r
27  *                this file.  If not, you can view it at\r
28  *                http://www.gnu.org/copyleft/gpl.html\r
29  *                or write to the Free Software Foundation, Inc., 59\r
30  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
31  *\r
32  * Revisions   :\r
33  *    $Log: w32.rc,v $
34  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
35  *    Initial import of version 2.9.3 source tree
36  *\r
37  *\r
38  *********************************************************************/\r
39 \r
40 #include <windows.h>\r
41 #include "config.h"\r
42 #include "w32res.h"\r
43 \r
44 #ifdef __MINGW32__\r
45 #include "cygwin.h"\r
46 #endif\r
47 \r
48 /****************************************************************************\r
49  *  Language-neutral resources\r
50  ****************************************************************************/\r
51 \r
52 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)\r
53 #ifdef _WIN32\r
54 /* LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL */\r
55 #pragma code_page(1252)\r
56 #endif /* _WIN32 */\r
57 \r
58 /*\r
59  * Icons\r
60  *\r
61  * Icon with lowest ID value placed first to ensure application icon\r
62  * remains consistent on all systems.\r
63  */\r
64 IDI_JUNKBUSTER          ICON    DISCARDABLE     "icons/junkbust.ico"\r
65 IDI_JUNKBUSTER1         ICON    DISCARDABLE     "icons/ico00001.ico"\r
66 IDI_JUNKBUSTER2         ICON    DISCARDABLE     "icons/ico00002.ico"\r
67 IDI_JUNKBUSTER3         ICON    DISCARDABLE     "icons/ico00003.ico"\r
68 IDI_JUNKBUSTER4         ICON    DISCARDABLE     "icons/ico00004.ico"\r
69 IDI_JUNKBUSTER5         ICON    DISCARDABLE     "icons/ico00005.ico"\r
70 IDI_JUNKBUSTER6         ICON    DISCARDABLE     "icons/ico00006.ico"\r
71 IDI_JUNKBUSTER7         ICON    DISCARDABLE     "icons/ico00007.ico"\r
72 IDI_JUNKBUSTER8         ICON    DISCARDABLE     "icons/ico00008.ico"\r
73 IDI_IDLE                ICON    DISCARDABLE     "icons/idle.ico"\r
74 \r
75 #endif /* Neutral resources */\r
76 \r
77 \r
78 /****************************************************************************\r
79  *  English (U.S.) resources\r
80  ****************************************************************************/\r
81 \r
82 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
83 #ifdef _WIN32\r
84 /* LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US */\r
85 #pragma code_page(1252)\r
86 #endif //_WIN32\r
87 \r
88 /*\r
89  * Menus\r
90  */\r
91 \r
92 IDR_TRAYMENU MENU DISCARDABLE\r
93 BEGIN\r
94     POPUP "Popup"\r
95     BEGIN\r
96         MENUITEM "E&xit JunkBuster",   ID_FILE_EXIT\r
97         MENUITEM                       SEPARATOR\r
98         POPUP "&Options"\r
99         BEGIN\r
100             MENUITEM "&Junkbuster...",              ID_TOOLS_EDITJUNKBUSTER\r
101             MENUITEM                                SEPARATOR\r
102             MENUITEM "&Blockers...",                ID_TOOLS_EDITBLOCKERS\r
103             MENUITEM "&Permissions...",             ID_TOOLS_EDITPERMISSIONS\r
104             MENUITEM "&Forward...",                 ID_TOOLS_EDITFORWARD\r
105 #ifdef ACL_FILES\r
106             MENUITEM "&Access Control Lists...",    ID_TOOLS_EDITACLS\r
107 #endif /* def ACL_FILES */\r
108 #ifdef USE_IMAGE_LIST\r
109             MENUITEM "&Images...",                  ID_TOOLS_EDITIMAGE\r
110 #endif /* def USE_IMAGE_LIST */\r
111 #ifdef PCRS\r
112             MENUITEM "Perl &Regexps...",            ID_TOOLS_EDITPERLRE\r
113 #endif /* def PCRS */\r
114 #ifdef TRUST_FILES\r
115             MENUITEM "&Trust...",                   ID_TOOLS_EDITTRUST\r
116 #endif /* def TRUST_FILES */\r
117         END\r
118         MENUITEM                              SEPARATOR\r
119 #ifdef TOGGLE\r
120         MENUITEM "&Enable",                   ID_TOGGLE_IJB, CHECKED\r
121 #endif\r
122         MENUITEM "&Reload config",            ID_RELOAD_CONFIG\r
123         MENUITEM "Show &JunkBuster Window",   ID_SHOWWINDOW\r
124     END\r
125 END\r
126 \r
127 IDR_LOGVIEW MENU DISCARDABLE\r
128 BEGIN\r
129     POPUP "&File"\r
130     BEGIN\r
131         MENUITEM "E&xit",                       ID_FILE_EXIT\r
132     END\r
133     POPUP "&Edit"\r
134     BEGIN\r
135         MENUITEM "Copy",                        ID_EDIT_COPY\r
136     END\r
137     POPUP "&View"\r
138     BEGIN\r
139         MENUITEM "&Clear Log",                  ID_VIEW_CLEARLOG\r
140         MENUITEM                                SEPARATOR\r
141         MENUITEM "&Log Messages",               ID_VIEW_LOGMESSAGES, CHECKED\r
142         MENUITEM "Message &Highlighting",       ID_VIEW_MESSAGEHIGHLIGHTING, CHECKED\r
143         MENUITEM "Limit &Buffer Size",          ID_VIEW_LIMITBUFFERSIZE, CHECKED\r
144         MENUITEM "&Activity Animation",         ID_VIEW_ACTIVITYANIMATION, CHECKED\r
145     END\r
146     POPUP "&Options"\r
147     BEGIN\r
148 #ifdef TOGGLE\r
149         MENUITEM "&Enable",                     ID_TOGGLE_IJB, CHECKED\r
150         MENUITEM "&Reload config",              ID_RELOAD_CONFIG\r
151         MENUITEM                                SEPARATOR\r
152 #endif\r
153         MENUITEM "&Junkbuster...",              ID_TOOLS_EDITJUNKBUSTER\r
154         MENUITEM                                SEPARATOR\r
155         MENUITEM "&Blockers...",                ID_TOOLS_EDITBLOCKERS\r
156         MENUITEM "&Permissions...",             ID_TOOLS_EDITPERMISSIONS\r
157         MENUITEM "&Forward...",                 ID_TOOLS_EDITFORWARD\r
158 #ifdef ACL_FILES\r
159             MENUITEM "&Access Control Lists...",ID_TOOLS_EDITACLS\r
160 #endif /* def ACL_FILES */\r
161 #ifdef USE_IMAGE_LIST\r
162             MENUITEM "&Images...",              ID_TOOLS_EDITIMAGE\r
163 #endif /* def USE_IMAGE_LIST */\r
164 #ifdef PCRS\r
165             MENUITEM "Perl &Regexps...",        ID_TOOLS_EDITPERLRE\r
166 #endif /* def PCRS */\r
167 #ifdef TRUST_FILES\r
168             MENUITEM "&Trust...",               ID_TOOLS_EDITTRUST\r
169 #endif /* def TRUST_FILES */\r
170     END\r
171     POPUP "&Help"\r
172     BEGIN\r
173         MENUITEM "Junkbuster &FAQ",             ID_HELP_FAQ\r
174         MENUITEM "Junkbuster &Manual",          ID_HELP_MANUAL\r
175         MENUITEM "GNU &General Public Licence", ID_HELP_GPL\r
176         MENUITEM                                SEPARATOR\r
177         MENUITEM "Junkbuster Status...",        ID_HELP_STATUS\r
178         MENUITEM                                SEPARATOR\r
179         MENUITEM "About Junkbuster...",         ID_HELP_ABOUTJUNKBUSTER\r
180     END\r
181 END\r
182 \r
183 IDR_POPUP_SELECTION MENU DISCARDABLE\r
184 BEGIN\r
185     POPUP "Popup"\r
186     BEGIN\r
187         MENUITEM "&Copy",                       ID_EDIT_COPY\r
188     END\r
189 END\r
190 \r
191 \r
192 /*\r
193  * Accelerators\r
194  */\r
195 \r
196 IDR_ACCELERATOR ACCELERATORS DISCARDABLE\r
197 BEGIN\r
198     "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL, NOINVERT\r
199 END\r
200 \r
201 /*\r
202  * Icons\r
203  *\r
204  * Icon with lowest ID value placed first to ensure application icon\r
205  * remains consistent on all systems.\r
206  */\r
207 IDI_DENYRULE            ICON    DISCARDABLE     "icons/denyrule.ico"\r
208 IDI_ALLOWRULE           ICON    DISCARDABLE     "icons/icon1.ico"\r
209 \r
210 /*\r
211  * Dialog\r
212  */\r
213 \r
214 IDD_RULES DIALOG DISCARDABLE  0, 0, 239, 225\r
215 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\r
216 CAPTION "Blockers"\r
217 FONT 8, "MS Sans Serif"\r
218 BEGIN\r
219     GROUPBOX        "New Rule",IDC_STATIC,5,5,230,55\r
220     LTEXT           "For:",IDC_STATIC,10,15,13,8\r
221     EDITTEXT        IDC_NEW,10,25,220,12,ES_AUTOHSCROLL\r
222     COMBOBOX        IDC_ACTION,10,40,75,37,CBS_DROPDOWNLIST | CBS_SORT |\r
223                     WS_VSCROLL | WS_TABSTOP\r
224     PUSHBUTTON      "C&reate!",IDC_CREATE,90,40,50,14\r
225     GROUPBOX        "Rules",IDC_STATIC,5,65,230,135\r
226     CONTROL         "List1",IDC_RULES,"SysListView32",LVS_REPORT |\r
227                     LVS_SHOWSELALWAYS | LVS_EDITLABELS | WS_BORDER |\r
228                     WS_TABSTOP,10,75,220,100\r
229     PUSHBUTTON      "Move &Up",IDC_MOVEUP,10,180,50,14,WS_DISABLED\r
230     PUSHBUTTON      "Move &Down",IDC_MOVEDOWN,65,180,50,14,WS_DISABLED\r
231     PUSHBUTTON      "&Delete",IDC_DELETE,120,180,50,14,WS_DISABLED\r
232     PUSHBUTTON      "&Save",IDC_SAVE,130,205,50,14\r
233     PUSHBUTTON      "&Cancel",IDCANCEL,185,205,50,14\r
234 END\r
235 \r
236 \r
237 /*\r
238  * DESIGNINFO\r
239  */\r
240 \r
241 #ifdef APSTUDIO_INVOKED\r
242 GUIDELINES DESIGNINFO DISCARDABLE\r
243 BEGIN\r
244     IDD_RULES, DIALOG\r
245     BEGIN\r
246         LEFTMARGIN, 7\r
247         RIGHTMARGIN, 232\r
248         TOPMARGIN, 7\r
249         BOTTOMMARGIN, 218\r
250     END\r
251 END\r
252 #endif    // APSTUDIO_INVOKED\r
253 \r
254 \r
255 /*\r
256  * String Table\r
257  */\r
258 \r
259 STRINGTABLE DISCARDABLE\r
260 BEGIN\r
261     IDS_NEW_BLOCKER         "Create rule for ""%s""..."\r
262 END\r
263 \r
264 #endif /* English (U.S.) resources */\r