*** empty log message ***
[privoxy.git] / w32.rc
1 /*********************************************************************\r
2  *\r
3  * File        :  $Source:  $\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:$\r
34  *\r
35  *********************************************************************/\r
36 \r
37 #include <windows.h>\r
38 #include "config.h"\r
39 #include "w32res.h"\r
40 \r
41 #ifdef __MINGW32__\r
42 #include "cygwin.h"\r
43 #endif\r
44 \r
45 /****************************************************************************\r
46  *  Language-neutral resources\r
47  ****************************************************************************/\r
48 \r
49 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)\r
50 #ifdef _WIN32\r
51 /* LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL */\r
52 #pragma code_page(1252)\r
53 #endif /* _WIN32 */\r
54 \r
55 /*\r
56  * Icons\r
57  *\r
58  * Icon with lowest ID value placed first to ensure application icon\r
59  * remains consistent on all systems.\r
60  */\r
61 IDI_JUNKBUSTER          ICON    DISCARDABLE     "icons/junkbust.ico"\r
62 IDI_JUNKBUSTER1         ICON    DISCARDABLE     "icons/ico00001.ico"\r
63 IDI_JUNKBUSTER2         ICON    DISCARDABLE     "icons/ico00002.ico"\r
64 IDI_JUNKBUSTER3         ICON    DISCARDABLE     "icons/ico00003.ico"\r
65 IDI_JUNKBUSTER4         ICON    DISCARDABLE     "icons/ico00004.ico"\r
66 IDI_JUNKBUSTER5         ICON    DISCARDABLE     "icons/ico00005.ico"\r
67 IDI_JUNKBUSTER6         ICON    DISCARDABLE     "icons/ico00006.ico"\r
68 IDI_JUNKBUSTER7         ICON    DISCARDABLE     "icons/ico00007.ico"\r
69 IDI_JUNKBUSTER8         ICON    DISCARDABLE     "icons/ico00008.ico"\r
70 IDI_IDLE                ICON    DISCARDABLE     "icons/idle.ico"\r
71 \r
72 #endif /* Neutral resources */\r
73 \r
74 \r
75 /****************************************************************************\r
76  *  English (U.S.) resources\r
77  ****************************************************************************/\r
78 \r
79 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
80 #ifdef _WIN32\r
81 /* LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US */\r
82 #pragma code_page(1252)\r
83 #endif //_WIN32\r
84 \r
85 /*\r
86  * Menus\r
87  */\r
88 \r
89 IDR_TRAYMENU MENU DISCARDABLE\r
90 BEGIN\r
91     POPUP "Popup"\r
92     BEGIN\r
93         MENUITEM "E&xit JunkBuster",   ID_FILE_EXIT\r
94         MENUITEM                       SEPARATOR\r
95         POPUP "&Options"\r
96         BEGIN\r
97             MENUITEM "&Junkbuster...",              ID_TOOLS_EDITJUNKBUSTER\r
98             MENUITEM                                SEPARATOR\r
99             MENUITEM "&Blockers...",                ID_TOOLS_EDITBLOCKERS\r
100             MENUITEM "&Cookies...",                 ID_TOOLS_EDITCOOKIES\r
101             MENUITEM "&Forward...",                 ID_TOOLS_EDITFORWARD\r
102 #ifdef ACL_FILES\r
103             MENUITEM "&Access Control Lists...",    ID_TOOLS_EDITACLS\r
104 #endif /* def ACL_FILES */\r
105 #ifdef USE_IMAGE_LIST\r
106             MENUITEM "&Images...",                  ID_TOOLS_EDITIMAGE\r
107 #endif /* def USE_IMAGE_LIST */\r
108 #ifdef KILLPOPUPS\r
109             MENUITEM "&Popups...",                  ID_TOOLS_EDITPOPUPS\r
110 #endif /* def KILLPOPUPS */\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 "&Cookies...",                 ID_TOOLS_EDITCOOKIES\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 KILLPOPUPS\r
165             MENUITEM "&Popups...",              ID_TOOLS_EDITPOPUPS\r
166 #endif /* def KILLPOPUPS */\r
167 #ifdef PCRS\r
168             MENUITEM "Perl &Regexps...",        ID_TOOLS_EDITPERLRE\r
169 #endif /* def PCRS */\r
170 #ifdef TRUST_FILES\r
171             MENUITEM "&Trust...",               ID_TOOLS_EDITTRUST\r
172 #endif /* def TRUST_FILES */\r
173     END\r
174     POPUP "&Help"\r
175     BEGIN\r
176         MENUITEM "Junkbuster &FAQ",             ID_HELP_FAQ\r
177         MENUITEM "Junkbuster &Manual",          ID_HELP_MANUAL\r
178         MENUITEM "GNU &General Public Licence", ID_HELP_GPL\r
179         MENUITEM                                SEPARATOR\r
180         MENUITEM "Junkbuster Status...",        ID_HELP_STATUS\r
181         MENUITEM                                SEPARATOR\r
182         MENUITEM "About Junkbuster...",         ID_HELP_ABOUTJUNKBUSTER\r
183     END\r
184 END\r
185 \r
186 IDR_POPUP_SELECTION MENU DISCARDABLE\r
187 BEGIN\r
188     POPUP "Popup"\r
189     BEGIN\r
190         MENUITEM "&Copy",                       ID_EDIT_COPY\r
191     END\r
192 END\r
193 \r
194 \r
195 /*\r
196  * Accelerators\r
197  */\r
198 \r
199 IDR_ACCELERATOR ACCELERATORS DISCARDABLE\r
200 BEGIN\r
201     "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL, NOINVERT\r
202 END\r
203 \r
204 /*\r
205  * Icons\r
206  *\r
207  * Icon with lowest ID value placed first to ensure application icon\r
208  * remains consistent on all systems.\r
209  */\r
210 IDI_DENYRULE            ICON    DISCARDABLE     "icons/denyrule.ico"\r
211 IDI_ALLOWRULE           ICON    DISCARDABLE     "icons/icon1.ico"\r
212 \r
213 /*\r
214  * Dialog\r
215  */\r
216 \r
217 IDD_RULES DIALOG DISCARDABLE  0, 0, 239, 225\r
218 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\r
219 CAPTION "Blockers"\r
220 FONT 8, "MS Sans Serif"\r
221 BEGIN\r
222     GROUPBOX        "New Rule",IDC_STATIC,5,5,230,55\r
223     LTEXT           "For:",IDC_STATIC,10,15,13,8\r
224     EDITTEXT        IDC_NEW,10,25,220,12,ES_AUTOHSCROLL\r
225     COMBOBOX        IDC_ACTION,10,40,75,37,CBS_DROPDOWNLIST | CBS_SORT |\r
226                     WS_VSCROLL | WS_TABSTOP\r
227     PUSHBUTTON      "C&reate!",IDC_CREATE,90,40,50,14\r
228     GROUPBOX        "Rules",IDC_STATIC,5,65,230,135\r
229     CONTROL         "List1",IDC_RULES,"SysListView32",LVS_REPORT |\r
230                     LVS_SHOWSELALWAYS | LVS_EDITLABELS | WS_BORDER |\r
231                     WS_TABSTOP,10,75,220,100\r
232     PUSHBUTTON      "Move &Up",IDC_MOVEUP,10,180,50,14,WS_DISABLED\r
233     PUSHBUTTON      "Move &Down",IDC_MOVEDOWN,65,180,50,14,WS_DISABLED\r
234     PUSHBUTTON      "&Delete",IDC_DELETE,120,180,50,14,WS_DISABLED\r
235     PUSHBUTTON      "&Save",IDC_SAVE,130,205,50,14\r
236     PUSHBUTTON      "&Cancel",IDCANCEL,185,205,50,14\r
237 END\r
238 \r
239 \r
240 /*\r
241  * DESIGNINFO\r
242  */\r
243 \r
244 #ifdef APSTUDIO_INVOKED\r
245 GUIDELINES DESIGNINFO DISCARDABLE\r
246 BEGIN\r
247     IDD_RULES, DIALOG\r
248     BEGIN\r
249         LEFTMARGIN, 7\r
250         RIGHTMARGIN, 232\r
251         TOPMARGIN, 7\r
252         BOTTOMMARGIN, 218\r
253     END\r
254 END\r
255 #endif    // APSTUDIO_INVOKED\r
256 \r
257 \r
258 /*\r
259  * String Table\r
260  */\r
261 \r
262 STRINGTABLE DISCARDABLE\r
263 BEGIN\r
264     IDS_NEW_BLOCKER         "Create rule for ""%s""..."\r
265 END\r
266 \r
267 #endif /* English (U.S.) resources */\r