]>
Commit | Line | Data |
---|---|---|
e0c749a7 RN |
1 | /** |
2 | * Name: wx/chkconf.h | |
3 | * Purpose: check the config settings for consistency | |
4 | * Author: Vadim Zeitlin | |
5 | * Modified by: | |
6 | * Created: 09.08.00 | |
7 | * RCS-ID: $Id$ | |
77ffb593 | 8 | * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org> |
65571936 | 9 | * Licence: wxWindows licence |
e0c749a7 | 10 | */ |
1e6feb95 VZ |
11 | |
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
13 | ||
01ebf752 JS |
14 | /* |
15 | Compiler-specific checking. | |
16 | */ | |
17 | ||
4055ed82 | 18 | #if defined(__WXPALMOS__) |
ffecfa5a JS |
19 | # include "wx/palmos/chkconf.h" |
20 | #elif defined(__WXMSW__) | |
01ebf752 JS |
21 | # include "wx/msw/chkconf.h" |
22 | #elif defined(__WXMAC__) | |
23 | # include "wx/mac/chkconf.h" | |
24 | #endif | |
25 | ||
1e6feb95 | 26 | /* |
730dfeb4 | 27 | this global setting determines what should we do if the setting FOO |
1e6feb95 VZ |
28 | requires BAR and BAR is not set: we can either silently define BAR |
29 | (default, recommended) or give an error and abort (mainly useful for | |
730dfeb4 | 30 | developers only) |
1e6feb95 VZ |
31 | */ |
32 | #define wxABORT_ON_CONFIG_ERROR | |
33 | ||
6962f34e VZ |
34 | /* |
35 | global features | |
36 | */ | |
37 | ||
38 | /* GUI build by default */ | |
39 | #if !defined(wxUSE_GUI) | |
40 | # define wxUSE_GUI 1 | |
41 | #endif /* !defined(wxUSE_GUI) */ | |
42 | ||
1e6feb95 | 43 | /* |
03169422 RL |
44 | tests for non GUI features |
45 | */ | |
46 | ||
47 | #ifndef wxUSE_DYNLIB_CLASS | |
48 | # ifdef wxABORT_ON_CONFIG_ERROR | |
49 | # error "wxUSE_DYNLIB_CLASS must be defined." | |
50 | # else | |
51 | # define wxUSE_DYNLIB_CLASS 0 | |
52 | # endif | |
53 | #endif /* !defined(wxUSE_DYNLIB_CLASS) */ | |
54 | ||
4199367e VZ |
55 | #ifndef wxUSE_EXCEPTIONS |
56 | # ifdef wxABORT_ON_CONFIG_ERROR | |
57 | # error "wxUSE_EXCEPTIONS must be defined." | |
58 | # else | |
59 | # define wxUSE_EXCEPTIONS 0 | |
60 | # endif | |
61 | #endif /* !defined(wxUSE_EXCEPTIONS) */ | |
62 | ||
c7f3eecc VZ |
63 | #ifndef wxUSE_FILESYSTEM |
64 | # ifdef wxABORT_ON_CONFIG_ERROR | |
65 | # error "wxUSE_FILESYSTEM must be defined." | |
66 | # else | |
67 | # define wxUSE_FILESYSTEM 0 | |
68 | # endif | |
69 | #endif /* !defined(wxUSE_FILESYSTEM) */ | |
70 | ||
6fb17fd5 | 71 | /* don't give an error about this one yet, it's not fully implemented */ |
05815ab3 | 72 | #ifndef wxUSE_FSVOLUME |
6fb17fd5 | 73 | # define wxUSE_FSVOLUME 0 |
05815ab3 VZ |
74 | #endif /* !defined(wxUSE_FSVOLUME) */ |
75 | ||
03169422 RL |
76 | #ifndef wxUSE_DYNAMIC_LOADER |
77 | # ifdef wxABORT_ON_CONFIG_ERROR | |
78 | # error "wxUSE_DYNAMIC_LOADER must be defined." | |
79 | # else | |
80 | # define wxUSE_DYNAMIC_LOADER 0 | |
81 | # endif | |
82 | #endif /* !defined(wxUSE_DYNAMIC_LOADER) */ | |
83 | ||
a5d46b73 VZ |
84 | #ifndef wxUSE_LOG |
85 | # ifdef wxABORT_ON_CONFIG_ERROR | |
86 | # error "wxUSE_LOG must be defined." | |
87 | # else | |
88 | # define wxUSE_LOG 0 | |
89 | # endif | |
90 | #endif /* !defined(wxUSE_LOG) */ | |
91 | ||
92 | #ifndef wxUSE_LONGLONG | |
93 | # ifdef wxABORT_ON_CONFIG_ERROR | |
94 | # error "wxUSE_LONGLONG must be defined." | |
95 | # else | |
96 | # define wxUSE_LONGLONG 0 | |
97 | # endif | |
98 | #endif /* !defined(wxUSE_LONGLONG) */ | |
99 | ||
100 | #ifndef wxUSE_MIMETYPE | |
101 | # ifdef wxABORT_ON_CONFIG_ERROR | |
102 | # error "wxUSE_MIMETYPE must be defined." | |
103 | # else | |
104 | # define wxUSE_MIMETYPE 0 | |
105 | # endif | |
106 | #endif /* !defined(wxUSE_MIMETYPE) */ | |
107 | ||
108 | #ifndef wxUSE_PROTOCOL | |
109 | # ifdef wxABORT_ON_CONFIG_ERROR | |
110 | # error "wxUSE_PROTOCOL must be defined." | |
111 | # else | |
112 | # define wxUSE_PROTOCOL 0 | |
113 | # endif | |
114 | #endif /* !defined(wxUSE_PROTOCOL) */ | |
115 | ||
116 | /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */ | |
117 | #if !wxUSE_PROTOCOL | |
118 | # undef wxUSE_PROTOCOL_HTTP | |
119 | # undef wxUSE_PROTOCOL_FTP | |
120 | # undef wxUSE_PROTOCOL_FILE | |
121 | # define wxUSE_PROTOCOL_HTTP 0 | |
122 | # define wxUSE_PROTOCOL_FTP 0 | |
123 | # define wxUSE_PROTOCOL_FILE 0 | |
124 | #endif /* wxUSE_PROTOCOL */ | |
125 | ||
126 | #ifndef wxUSE_PROTOCOL_HTTP | |
127 | # ifdef wxABORT_ON_CONFIG_ERROR | |
128 | # error "wxUSE_PROTOCOL_HTTP must be defined." | |
129 | # else | |
130 | # define wxUSE_PROTOCOL_HTTP 0 | |
131 | # endif | |
132 | #endif /* !defined(wxUSE_PROTOCOL_HTTP) */ | |
133 | ||
134 | #ifndef wxUSE_PROTOCOL_FTP | |
135 | # ifdef wxABORT_ON_CONFIG_ERROR | |
136 | # error "wxUSE_PROTOCOL_FTP must be defined." | |
137 | # else | |
138 | # define wxUSE_PROTOCOL_FTP 0 | |
139 | # endif | |
140 | #endif /* !defined(wxUSE_PROTOCOL_FTP) */ | |
141 | ||
142 | #ifndef wxUSE_PROTOCOL_FILE | |
143 | # ifdef wxABORT_ON_CONFIG_ERROR | |
144 | # error "wxUSE_PROTOCOL_FILE must be defined." | |
145 | # else | |
146 | # define wxUSE_PROTOCOL_FILE 0 | |
147 | # endif | |
148 | #endif /* !defined(wxUSE_PROTOCOL_FILE) */ | |
149 | ||
150 | #ifndef wxUSE_REGEX | |
151 | # ifdef wxABORT_ON_CONFIG_ERROR | |
152 | # error "wxUSE_REGEX must be defined." | |
153 | # else | |
154 | # define wxUSE_REGEX 0 | |
155 | # endif | |
156 | #endif /* !defined(wxUSE_REGEX) */ | |
157 | ||
27b0c286 VS |
158 | #ifndef wxUSE_XML |
159 | # ifdef wxABORT_ON_CONFIG_ERROR | |
160 | # error "wxUSE_XML must be defined." | |
161 | # else | |
162 | # define wxUSE_XML 0 | |
163 | # endif | |
164 | #endif /* !defined(wxUSE_XML) */ | |
165 | ||
a5d46b73 VZ |
166 | #ifndef wxUSE_SOCKETS |
167 | # ifdef wxABORT_ON_CONFIG_ERROR | |
168 | # error "wxUSE_SOCKETS must be defined." | |
169 | # else | |
170 | # define wxUSE_SOCKETS 0 | |
171 | # endif | |
172 | #endif /* !defined(wxUSE_SOCKETS) */ | |
173 | ||
174 | #ifndef wxUSE_STREAMS | |
175 | # ifdef wxABORT_ON_CONFIG_ERROR | |
176 | # error "wxUSE_STREAMS must be defined." | |
177 | # else | |
178 | # define wxUSE_STREAMS 0 | |
179 | # endif | |
180 | #endif /* !defined(wxUSE_STREAMS) */ | |
181 | ||
182 | #ifndef wxUSE_STOPWATCH | |
183 | # ifdef wxABORT_ON_CONFIG_ERROR | |
184 | # error "wxUSE_STOPWATCH must be defined." | |
185 | # else | |
186 | # define wxUSE_STOPWATCH 0 | |
187 | # endif | |
188 | #endif /* !defined(wxUSE_STOPWATCH) */ | |
189 | ||
190 | #ifndef wxUSE_TEXTBUFFER | |
191 | # ifdef wxABORT_ON_CONFIG_ERROR | |
192 | # error "wxUSE_TEXTBUFFER must be defined." | |
193 | # else | |
194 | # define wxUSE_TEXTBUFFER 0 | |
195 | # endif | |
196 | #endif /* !defined(wxUSE_TEXTBUFFER) */ | |
197 | ||
198 | #ifndef wxUSE_TEXTFILE | |
199 | # ifdef wxABORT_ON_CONFIG_ERROR | |
200 | # error "wxUSE_TEXTFILE must be defined." | |
201 | # else | |
202 | # define wxUSE_TEXTFILE 0 | |
203 | # endif | |
204 | #endif /* !defined(wxUSE_TEXTFILE) */ | |
205 | ||
206 | #ifndef wxUSE_UNICODE | |
207 | # ifdef wxABORT_ON_CONFIG_ERROR | |
208 | # error "wxUSE_UNICODE must be defined." | |
209 | # else | |
210 | # define wxUSE_UNICODE 0 | |
211 | # endif | |
212 | #endif /* !defined(wxUSE_UNICODE) */ | |
213 | ||
214 | #ifndef wxUSE_URL | |
215 | # ifdef wxABORT_ON_CONFIG_ERROR | |
216 | # error "wxUSE_URL must be defined." | |
217 | # else | |
218 | # define wxUSE_URL 0 | |
219 | # endif | |
220 | #endif /* !defined(wxUSE_URL) */ | |
221 | ||
03169422 RL |
222 | /* |
223 | all these tests are for GUI only | |
1e6feb95 VZ |
224 | */ |
225 | #if wxUSE_GUI | |
226 | ||
227 | /* | |
228 | all of the settings tested below must be defined or we'd get an error from | |
229 | preprocessor about invalid integer expression | |
230 | */ | |
231 | ||
232 | #ifndef wxUSE_ACCEL | |
233 | # ifdef wxABORT_ON_CONFIG_ERROR | |
234 | # error "wxUSE_ACCEL must be defined." | |
235 | # else | |
236 | # define wxUSE_ACCEL 0 | |
237 | # endif | |
238 | #endif /* !defined(wxUSE_ACCEL) */ | |
239 | ||
240 | #ifndef wxUSE_BMPBUTTON | |
241 | # ifdef wxABORT_ON_CONFIG_ERROR | |
242 | # error "wxUSE_BMPBUTTON must be defined." | |
243 | # else | |
244 | # define wxUSE_BMPBUTTON 0 | |
245 | # endif | |
246 | #endif /* !defined(wxUSE_BMPBUTTON) */ | |
247 | ||
248 | #ifndef wxUSE_BUTTON | |
249 | # ifdef wxABORT_ON_CONFIG_ERROR | |
250 | # error "wxUSE_BUTTON must be defined." | |
251 | # else | |
252 | # define wxUSE_BUTTON 0 | |
253 | # endif | |
254 | #endif /* !defined(wxUSE_BUTTON) */ | |
255 | ||
256 | #ifndef wxUSE_CALENDARCTRL | |
257 | # ifdef wxABORT_ON_CONFIG_ERROR | |
258 | # error "wxUSE_CALENDARCTRL must be defined." | |
259 | # else | |
260 | # define wxUSE_CALENDARCTRL 0 | |
261 | # endif | |
262 | #endif /* !defined(wxUSE_CALENDARCTRL) */ | |
263 | ||
264 | #ifndef wxUSE_CARET | |
265 | # ifdef wxABORT_ON_CONFIG_ERROR | |
266 | # error "wxUSE_CARET must be defined." | |
267 | # else | |
268 | # define wxUSE_CARET 0 | |
269 | # endif | |
270 | #endif /* !defined(wxUSE_CARET) */ | |
271 | ||
272 | #ifndef wxUSE_CHECKBOX | |
273 | # ifdef wxABORT_ON_CONFIG_ERROR | |
274 | # error "wxUSE_CHECKBOX must be defined." | |
275 | # else | |
276 | # define wxUSE_CHECKBOX 0 | |
277 | # endif | |
278 | #endif /* !defined(wxUSE_CHECKBOX) */ | |
279 | ||
280 | #ifndef wxUSE_CHECKLISTBOX | |
281 | # ifdef wxABORT_ON_CONFIG_ERROR | |
282 | # error "wxUSE_CHECKLISTBOX must be defined." | |
283 | # else | |
284 | # define wxUSE_CHECKLISTBOX 0 | |
285 | # endif | |
286 | #endif /* !defined(wxUSE_CHECKLISTBOX) */ | |
287 | ||
288 | #ifndef wxUSE_CHOICE | |
289 | # ifdef wxABORT_ON_CONFIG_ERROR | |
290 | # error "wxUSE_CHOICE must be defined." | |
291 | # else | |
292 | # define wxUSE_CHOICE 0 | |
293 | # endif | |
294 | #endif /* !defined(wxUSE_CHOICE) */ | |
295 | ||
f5e0b4bc WS |
296 | #ifndef wxUSE_CHOICEBOOK |
297 | # ifdef wxABORT_ON_CONFIG_ERROR | |
298 | # error "wxUSE_CHOICEBOOK must be defined." | |
299 | # else | |
300 | # define wxUSE_CHOICEBOOK 0 | |
301 | # endif | |
302 | #endif /* !defined(wxUSE_CHOICEBOOK) */ | |
303 | ||
3379ed37 VZ |
304 | #ifndef wxUSE_CHOICEDLG |
305 | # ifdef wxABORT_ON_CONFIG_ERROR | |
306 | # error "wxUSE_CHOICEDLG must be defined." | |
307 | # else | |
308 | # define wxUSE_CHOICEDLG 0 | |
309 | # endif | |
310 | #endif /* !defined(wxUSE_CHOICEDLG) */ | |
311 | ||
1e6feb95 VZ |
312 | #ifndef wxUSE_CLIPBOARD |
313 | # ifdef wxABORT_ON_CONFIG_ERROR | |
314 | # error "wxUSE_CLIPBOARD must be defined." | |
315 | # else | |
316 | # define wxUSE_CLIPBOARD 0 | |
317 | # endif | |
318 | #endif /* !defined(wxUSE_CLIPBOARD) */ | |
319 | ||
a2c0a9c5 VZ |
320 | #ifndef wxUSE_COLOURDLG |
321 | # ifdef wxABORT_ON_CONFIG_ERROR | |
322 | # error "wxUSE_COLOURDLG must be defined." | |
323 | # else | |
324 | # define wxUSE_COLOURDLG 0 | |
325 | # endif | |
326 | #endif /* !defined(wxUSE_COLOURDLG) */ | |
327 | ||
1e6feb95 VZ |
328 | #ifndef wxUSE_COMBOBOX |
329 | # ifdef wxABORT_ON_CONFIG_ERROR | |
330 | # error "wxUSE_COMBOBOX must be defined." | |
331 | # else | |
332 | # define wxUSE_COMBOBOX 0 | |
333 | # endif | |
334 | #endif /* !defined(wxUSE_COMBOBOX) */ | |
335 | ||
336 | #ifndef wxUSE_DATAOBJ | |
337 | # ifdef wxABORT_ON_CONFIG_ERROR | |
338 | # error "wxUSE_DATAOBJ must be defined." | |
339 | # else | |
340 | # define wxUSE_DATAOBJ 0 | |
341 | # endif | |
342 | #endif /* !defined(wxUSE_DATAOBJ) */ | |
343 | ||
f8ba082e VZ |
344 | #ifndef wxUSE_DISPLAY |
345 | # ifdef wxABORT_ON_CONFIG_ERROR | |
346 | # error "wxUSE_DISPLAY must be defined." | |
347 | # else | |
348 | # define wxUSE_DISPLAY 0 | |
349 | # endif | |
350 | #endif /* !defined(wxUSE_DISPLAY) */ | |
351 | ||
3379ed37 VZ |
352 | #ifndef wxUSE_DOC_VIEW_ARCHITECTURE |
353 | # ifdef wxABORT_ON_CONFIG_ERROR | |
354 | # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined." | |
355 | # else | |
356 | # define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
357 | # endif | |
358 | #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */ | |
359 | ||
1e6feb95 VZ |
360 | #ifndef wxUSE_FILEDLG |
361 | # ifdef wxABORT_ON_CONFIG_ERROR | |
362 | # error "wxUSE_FILEDLG must be defined." | |
363 | # else | |
364 | # define wxUSE_FILEDLG 0 | |
365 | # endif | |
366 | #endif /* !defined(wxUSE_FILEDLG) */ | |
367 | ||
368 | #ifndef wxUSE_FONTDLG | |
369 | # ifdef wxABORT_ON_CONFIG_ERROR | |
370 | # error "wxUSE_FONTDLG must be defined." | |
371 | # else | |
372 | # define wxUSE_FONTDLG 0 | |
373 | # endif | |
374 | #endif /* !defined(wxUSE_FONTDLG) */ | |
375 | ||
376 | #ifndef wxUSE_FONTMAP | |
377 | # ifdef wxABORT_ON_CONFIG_ERROR | |
378 | # error "wxUSE_FONTMAP must be defined." | |
379 | # else | |
380 | # define wxUSE_FONTMAP 0 | |
381 | # endif | |
382 | #endif /* !defined(wxUSE_FONTMAP) */ | |
383 | ||
384 | #ifndef wxUSE_GAUGE | |
385 | # ifdef wxABORT_ON_CONFIG_ERROR | |
386 | # error "wxUSE_GAUGE must be defined." | |
387 | # else | |
388 | # define wxUSE_GAUGE 0 | |
389 | # endif | |
390 | #endif /* !defined(wxUSE_GAUGE) */ | |
391 | ||
392 | #ifndef wxUSE_GRID | |
393 | # ifdef wxABORT_ON_CONFIG_ERROR | |
394 | # error "wxUSE_GRID must be defined." | |
395 | # else | |
396 | # define wxUSE_GRID 0 | |
397 | # endif | |
398 | #endif /* !defined(wxUSE_GRID) */ | |
399 | ||
3379ed37 VZ |
400 | #ifndef wxUSE_HELP |
401 | # ifdef wxABORT_ON_CONFIG_ERROR | |
402 | # error "wxUSE_HELP must be defined." | |
403 | # else | |
404 | # define wxUSE_HELP 0 | |
405 | # endif | |
406 | #endif /* !defined(wxUSE_HELP) */ | |
407 | ||
05dcbb8e VZ |
408 | #ifndef wxUSE_HTML |
409 | # ifdef wxABORT_ON_CONFIG_ERROR | |
410 | # error "wxUSE_HTML must be defined." | |
411 | # else | |
412 | # define wxUSE_HTML 0 | |
413 | # endif | |
414 | #endif /* !defined(wxUSE_HTML) */ | |
415 | ||
d2ebf0b7 VS |
416 | #ifndef wxUSE_XRC |
417 | # ifdef wxABORT_ON_CONFIG_ERROR | |
418 | # error "wxUSE_XRC must be defined." | |
419 | # else | |
420 | # define wxUSE_XRC 0 | |
421 | # endif | |
422 | #endif /* !defined(wxUSE_XRC) */ | |
423 | ||
c839485c VS |
424 | #ifndef wxUSE_LIBMSPACK |
425 | # ifndef __UNIX__ | |
426 | /* set to 0 on platforms that don't have libmspack */ | |
427 | # define wxUSE_LIBMSPACK 0 | |
428 | # else | |
429 | # ifdef wxABORT_ON_CONFIG_ERROR | |
430 | # error "wxUSE_LIBMSPACK must be defined." | |
431 | # else | |
432 | # define wxUSE_LIBMSPACK 0 | |
433 | # endif | |
434 | # endif | |
435 | #endif /* !defined(wxUSE_LIBMSPACK) */ | |
436 | ||
658974ae VS |
437 | #ifndef wxUSE_ICO_CUR |
438 | # ifdef wxABORT_ON_CONFIG_ERROR | |
439 | # error "wxUSE_ICO_CUR must be defined." | |
440 | # else | |
441 | # define wxUSE_ICO_CUR 0 | |
442 | # endif | |
443 | #endif /* !defined(wxUSE_ICO_CUR) */ | |
444 | ||
1663afc0 VS |
445 | #ifndef wxUSE_IFF |
446 | # ifdef wxABORT_ON_CONFIG_ERROR | |
447 | # error "wxUSE_IFF must be defined." | |
448 | # else | |
449 | # define wxUSE_IFF 0 | |
450 | # endif | |
451 | #endif /* !defined(wxUSE_IFF) */ | |
452 | ||
1e6feb95 VZ |
453 | #ifndef wxUSE_IMAGLIST |
454 | # ifdef wxABORT_ON_CONFIG_ERROR | |
455 | # error "wxUSE_IMAGLIST must be defined." | |
456 | # else | |
457 | # define wxUSE_IMAGLIST 0 | |
458 | # endif | |
459 | #endif /* !defined(wxUSE_IMAGLIST) */ | |
460 | ||
2131b89d VZ |
461 | #ifndef wxUSE_JOYSTICK |
462 | # ifdef wxABORT_ON_CONFIG_ERROR | |
463 | # error "wxUSE_JOYSTICK must be defined." | |
464 | # else | |
465 | # define wxUSE_JOYSTICK 0 | |
466 | # endif | |
467 | #endif /* !defined(wxUSE_JOYSTICK) */ | |
468 | ||
5b5e4f32 VZ |
469 | #ifndef wxUSE_LISTBOOK |
470 | # ifdef wxABORT_ON_CONFIG_ERROR | |
471 | # error "wxUSE_LISTBOOK must be defined." | |
472 | # else | |
473 | # define wxUSE_LISTBOOK 0 | |
474 | # endif | |
475 | #endif /* !defined(wxUSE_LISTBOOK) */ | |
476 | ||
1e6feb95 VZ |
477 | #ifndef wxUSE_LISTBOX |
478 | # ifdef wxABORT_ON_CONFIG_ERROR | |
479 | # error "wxUSE_LISTBOX must be defined." | |
480 | # else | |
481 | # define wxUSE_LISTBOX 0 | |
482 | # endif | |
483 | #endif /* !defined(wxUSE_LISTBOX) */ | |
484 | ||
485 | #ifndef wxUSE_LISTCTRL | |
486 | # ifdef wxABORT_ON_CONFIG_ERROR | |
487 | # error "wxUSE_LISTCTRL must be defined." | |
488 | # else | |
489 | # define wxUSE_LISTCTRL 0 | |
490 | # endif | |
491 | #endif /* !defined(wxUSE_LISTCTRL) */ | |
492 | ||
3379ed37 VZ |
493 | #ifndef wxUSE_LOGGUI |
494 | # ifdef wxABORT_ON_CONFIG_ERROR | |
495 | # error "wxUSE_LOGGUI must be defined." | |
496 | # else | |
497 | # define wxUSE_LOGGUI 0 | |
498 | # endif | |
499 | #endif /* !defined(wxUSE_LOGGUI) */ | |
500 | ||
501 | #ifndef wxUSE_LOGWINDOW | |
502 | # ifdef wxABORT_ON_CONFIG_ERROR | |
503 | # error "wxUSE_LOGWINDOW must be defined." | |
504 | # else | |
505 | # define wxUSE_LOGWINDOW 0 | |
506 | # endif | |
507 | #endif /* !defined(wxUSE_LOGWINDOW) */ | |
e421922f | 508 | |
3e6e2754 JS |
509 | #ifndef wxUSE_LOG_DIALOG |
510 | # ifdef wxABORT_ON_CONFIG_ERROR | |
511 | # error "wxUSE_LOG_DIALOG must be defined." | |
512 | # else | |
513 | # define wxUSE_LOG_DIALOG 0 | |
514 | # endif | |
71908213 | 515 | #endif /* !defined(wxUSE_LOG_DIALOG) */ |
3e6e2754 | 516 | |
efd17a1d VZ |
517 | #ifndef wxUSE_MDI |
518 | # ifdef wxABORT_ON_CONFIG_ERROR | |
519 | # error "wxUSE_MDI must be defined." | |
520 | # else | |
521 | # define wxUSE_MDI 0 | |
522 | # endif | |
523 | #endif /* !defined(wxUSE_MDI) */ | |
524 | ||
1e6feb95 VZ |
525 | #ifndef wxUSE_MDI_ARCHITECTURE |
526 | # ifdef wxABORT_ON_CONFIG_ERROR | |
527 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
528 | # else | |
529 | # define wxUSE_MDI_ARCHITECTURE 0 | |
530 | # endif | |
531 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
532 | ||
533 | #ifndef wxUSE_MENUS | |
534 | # ifdef wxABORT_ON_CONFIG_ERROR | |
535 | # error "wxUSE_MENUS must be defined." | |
536 | # else | |
537 | # define wxUSE_MENUS 0 | |
538 | # endif | |
539 | #endif /* !defined(wxUSE_MENUS) */ | |
540 | ||
3379ed37 VZ |
541 | #ifndef wxUSE_MSGDLG |
542 | # ifdef wxABORT_ON_CONFIG_ERROR | |
543 | # error "wxUSE_MSGDLG must be defined." | |
544 | # else | |
545 | # define wxUSE_MSGDLG 0 | |
546 | # endif | |
547 | #endif /* !defined(wxUSE_MSGDLG) */ | |
548 | ||
1e6feb95 VZ |
549 | #ifndef wxUSE_NOTEBOOK |
550 | # ifdef wxABORT_ON_CONFIG_ERROR | |
551 | # error "wxUSE_NOTEBOOK must be defined." | |
552 | # else | |
553 | # define wxUSE_NOTEBOOK 0 | |
554 | # endif | |
555 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
556 | ||
d275c7eb VZ |
557 | #ifndef wxUSE_PALETTE |
558 | # ifdef wxABORT_ON_CONFIG_ERROR | |
559 | # error "wxUSE_PALETTE must be defined." | |
560 | # else | |
561 | # define wxUSE_PALETTE 0 | |
562 | # endif | |
563 | #endif /* !defined(wxUSE_PALETTE) */ | |
564 | ||
1e6feb95 VZ |
565 | #ifndef wxUSE_POPUPWIN |
566 | # ifdef wxABORT_ON_CONFIG_ERROR | |
567 | # error "wxUSE_POPUPWIN must be defined." | |
568 | # else | |
569 | # define wxUSE_POPUPWIN 0 | |
570 | # endif | |
571 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
572 | ||
3379ed37 VZ |
573 | #ifndef wxUSE_PRINTING_ARCHITECTURE |
574 | # ifdef wxABORT_ON_CONFIG_ERROR | |
575 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
576 | # else | |
577 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
578 | # endif | |
579 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
580 | ||
1e6feb95 VZ |
581 | #ifndef wxUSE_RADIOBOX |
582 | # ifdef wxABORT_ON_CONFIG_ERROR | |
583 | # error "wxUSE_RADIOBOX must be defined." | |
584 | # else | |
585 | # define wxUSE_RADIOBOX 0 | |
586 | # endif | |
587 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
588 | ||
589 | #ifndef wxUSE_RADIOBTN | |
590 | # ifdef wxABORT_ON_CONFIG_ERROR | |
591 | # error "wxUSE_RADIOBTN must be defined." | |
592 | # else | |
593 | # define wxUSE_RADIOBTN 0 | |
594 | # endif | |
595 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
596 | ||
597 | #ifndef wxUSE_SASH | |
598 | # ifdef wxABORT_ON_CONFIG_ERROR | |
599 | # error "wxUSE_SASH must be defined." | |
600 | # else | |
601 | # define wxUSE_SASH 0 | |
602 | # endif | |
603 | #endif /* !defined(wxUSE_SASH) */ | |
604 | ||
605 | #ifndef wxUSE_SCROLLBAR | |
606 | # ifdef wxABORT_ON_CONFIG_ERROR | |
607 | # error "wxUSE_SCROLLBAR must be defined." | |
608 | # else | |
609 | # define wxUSE_SCROLLBAR 0 | |
610 | # endif | |
611 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
612 | ||
613 | #ifndef wxUSE_SLIDER | |
614 | # ifdef wxABORT_ON_CONFIG_ERROR | |
615 | # error "wxUSE_SLIDER must be defined." | |
616 | # else | |
617 | # define wxUSE_SLIDER 0 | |
618 | # endif | |
619 | #endif /* !defined(wxUSE_SLIDER) */ | |
620 | ||
cad1a197 VS |
621 | #ifndef wxUSE_SOUND |
622 | # ifdef wxABORT_ON_CONFIG_ERROR | |
623 | # error "wxUSE_SOUND must be defined." | |
624 | # else | |
625 | # define wxUSE_SOUND 0 | |
626 | # endif | |
627 | #endif /* !defined(wxUSE_SOUND) */ | |
628 | ||
1e6feb95 VZ |
629 | #ifndef wxUSE_SPINBTN |
630 | # ifdef wxABORT_ON_CONFIG_ERROR | |
631 | # error "wxUSE_SPINBTN must be defined." | |
632 | # else | |
633 | # define wxUSE_SPINBTN 0 | |
634 | # endif | |
635 | #endif /* !defined(wxUSE_SPINBTN) */ | |
636 | ||
637 | #ifndef wxUSE_SPINCTRL | |
638 | # ifdef wxABORT_ON_CONFIG_ERROR | |
639 | # error "wxUSE_SPINCTRL must be defined." | |
640 | # else | |
641 | # define wxUSE_SPINCTRL 0 | |
642 | # endif | |
643 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
644 | ||
2654a046 MB |
645 | #ifndef wxUSE_SPLASH |
646 | # ifdef wxABORT_ON_CONFIG_ERROR | |
647 | # error "wxUSE_SPLASH must be defined." | |
648 | # else | |
649 | # define wxUSE_SPLASH 0 | |
650 | # endif | |
651 | #endif /* !defined(wxUSE_SPLASH) */ | |
652 | ||
1e6feb95 VZ |
653 | #ifndef wxUSE_SPLITTER |
654 | # ifdef wxABORT_ON_CONFIG_ERROR | |
655 | # error "wxUSE_SPLITTER must be defined." | |
656 | # else | |
657 | # define wxUSE_SPLITTER 0 | |
658 | # endif | |
659 | #endif /* !defined(wxUSE_SPLITTER) */ | |
660 | ||
661 | #ifndef wxUSE_STATBMP | |
662 | # ifdef wxABORT_ON_CONFIG_ERROR | |
663 | # error "wxUSE_STATBMP must be defined." | |
664 | # else | |
665 | # define wxUSE_STATBMP 0 | |
666 | # endif | |
667 | #endif /* !defined(wxUSE_STATBMP) */ | |
668 | ||
669 | #ifndef wxUSE_STATBOX | |
670 | # ifdef wxABORT_ON_CONFIG_ERROR | |
671 | # error "wxUSE_STATBOX must be defined." | |
672 | # else | |
673 | # define wxUSE_STATBOX 0 | |
674 | # endif | |
675 | #endif /* !defined(wxUSE_STATBOX) */ | |
676 | ||
677 | #ifndef wxUSE_STATLINE | |
678 | # ifdef wxABORT_ON_CONFIG_ERROR | |
679 | # error "wxUSE_STATLINE must be defined." | |
680 | # else | |
681 | # define wxUSE_STATLINE 0 | |
682 | # endif | |
683 | #endif /* !defined(wxUSE_STATLINE) */ | |
684 | ||
3379ed37 VZ |
685 | #ifndef wxUSE_STATTEXT |
686 | # ifdef wxABORT_ON_CONFIG_ERROR | |
687 | # error "wxUSE_STATTEXT must be defined." | |
688 | # else | |
689 | # define wxUSE_STATTEXT 0 | |
690 | # endif | |
691 | #endif /* !defined(wxUSE_STATTEXT) */ | |
692 | ||
1e6feb95 VZ |
693 | #ifndef wxUSE_STATUSBAR |
694 | # ifdef wxABORT_ON_CONFIG_ERROR | |
695 | # error "wxUSE_STATUSBAR must be defined." | |
696 | # else | |
697 | # define wxUSE_STATUSBAR 0 | |
698 | # endif | |
699 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
700 | ||
1e6feb95 VZ |
701 | #ifndef wxUSE_TAB_DIALOG |
702 | # ifdef wxABORT_ON_CONFIG_ERROR | |
703 | # error "wxUSE_TAB_DIALOG must be defined." | |
704 | # else | |
705 | # define wxUSE_TAB_DIALOG 0 | |
706 | # endif | |
707 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
708 | ||
709 | #ifndef wxUSE_TEXTCTRL | |
710 | # ifdef wxABORT_ON_CONFIG_ERROR | |
711 | # error "wxUSE_TEXTCTRL must be defined." | |
712 | # else | |
713 | # define wxUSE_TEXTCTRL 0 | |
714 | # endif | |
715 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
716 | ||
f38bcae5 VZ |
717 | #ifndef wxUSE_TIPWINDOW |
718 | # ifdef wxABORT_ON_CONFIG_ERROR | |
719 | # error "wxUSE_TIPWINDOW must be defined." | |
720 | # else | |
721 | # define wxUSE_TIPWINDOW 0 | |
722 | # endif | |
723 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
724 | ||
1e6feb95 VZ |
725 | #ifndef wxUSE_TOOLBAR |
726 | # ifdef wxABORT_ON_CONFIG_ERROR | |
727 | # error "wxUSE_TOOLBAR must be defined." | |
728 | # else | |
729 | # define wxUSE_TOOLBAR 0 | |
730 | # endif | |
731 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
732 | ||
733 | #ifndef wxUSE_TOOLTIPS | |
734 | # ifdef wxABORT_ON_CONFIG_ERROR | |
735 | # error "wxUSE_TOOLTIPS must be defined." | |
736 | # else | |
737 | # define wxUSE_TOOLTIPS 0 | |
738 | # endif | |
739 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
740 | ||
741 | #ifndef wxUSE_TREECTRL | |
742 | # ifdef wxABORT_ON_CONFIG_ERROR | |
743 | # error "wxUSE_TREECTRL must be defined." | |
744 | # else | |
745 | # define wxUSE_TREECTRL 0 | |
746 | # endif | |
747 | #endif /* !defined(wxUSE_TREECTRL) */ | |
748 | ||
f8ba082e | 749 | #ifndef wxUSE_VALIDATORS |
12491c1f | 750 | # ifdef wxABORT_ON_CONFIG_ERROR |
f8ba082e | 751 | # error "wxUSE_VALIDATORS must be defined." |
12491c1f | 752 | # else |
f8ba082e | 753 | # define wxUSE_VALIDATORS 0 |
12491c1f | 754 | # endif |
f8ba082e | 755 | #endif /* !defined(wxUSE_VALIDATORS) */ |
12491c1f | 756 | |
3379ed37 VZ |
757 | #ifndef wxUSE_WXHTML_HELP |
758 | # ifdef wxABORT_ON_CONFIG_ERROR | |
759 | # error "wxUSE_WXHTML_HELP must be defined." | |
760 | # else | |
761 | # define wxUSE_WXHTML_HELP 0 | |
762 | # endif | |
763 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
764 | ||
a5d46b73 | 765 | #endif /* wxUSE_GUI */ |
c4d596ea | 766 | |
1e6feb95 VZ |
767 | /* |
768 | check consistency of the settings | |
769 | */ | |
a5d46b73 VZ |
770 | |
771 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP | |
772 | # if !wxUSE_PROTOCOL | |
773 | # ifdef wxABORT_ON_CONFIG_ERROR | |
774 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
775 | # else | |
776 | # undef wxUSE_PROTOCOL | |
777 | # define wxUSE_PROTOCOL 1 | |
778 | # endif | |
779 | # endif | |
780 | #endif /* wxUSE_PROTOCOL_XXX */ | |
781 | ||
782 | #if wxUSE_URL | |
783 | # if !wxUSE_PROTOCOL | |
784 | # ifdef wxABORT_ON_CONFIG_ERROR | |
785 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
786 | # else | |
787 | # undef wxUSE_PROTOCOL | |
788 | # define wxUSE_PROTOCOL 1 | |
789 | # endif | |
790 | # endif | |
791 | #endif /* wxUSE_URL */ | |
792 | ||
793 | #if wxUSE_PROTOCOL | |
794 | # if !wxUSE_SOCKETS | |
795 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
796 | # ifdef wxABORT_ON_CONFIG_ERROR | |
797 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
798 | # else | |
799 | # undef wxUSE_SOCKETS | |
800 | # define wxUSE_SOCKETS 1 | |
801 | # endif | |
802 | # endif | |
803 | # endif | |
804 | ||
805 | # if !wxUSE_STREAMS | |
806 | # ifdef wxABORT_ON_CONFIG_ERROR | |
807 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
808 | # else | |
809 | # undef wxUSE_STREAMS | |
810 | # define wxUSE_STREAMS 1 | |
811 | # endif | |
812 | # endif | |
813 | #endif /* wxUSE_PROTOCOL */ | |
814 | ||
c7f3eecc VZ |
815 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ |
816 | #if wxUSE_HTML | |
817 | # if !wxUSE_FILESYSTEM | |
818 | # ifdef wxABORT_ON_CONFIG_ERROR | |
819 | # error "wxHTML requires wxFileSystem" | |
820 | # else | |
821 | # undef wxUSE_FILESYSTEM | |
822 | # define wxUSE_FILESYSTEM 1 | |
823 | # endif | |
824 | # endif | |
825 | #endif /* wxUSE_HTML */ | |
826 | ||
827 | #if wxUSE_FILESYSTEM | |
828 | # if !wxUSE_STREAMS | |
829 | # ifdef wxABORT_ON_CONFIG_ERROR | |
830 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
831 | # else | |
832 | # undef wxUSE_STREAMS | |
833 | # define wxUSE_STREAMS 1 | |
834 | # endif | |
835 | # endif | |
836 | #endif /* wxUSE_FILESYSTEM */ | |
837 | ||
ce73e654 VS |
838 | #if wxUSE_FS_INET |
839 | # if !wxUSE_PROTOCOL | |
840 | # ifdef wxABORT_ON_CONFIG_ERROR | |
841 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
842 | # else | |
843 | # undef wxUSE_PROTOCOL | |
844 | # define wxUSE_PROTOCOL 1 | |
845 | # endif | |
846 | # endif | |
847 | #endif /* wxUSE_FS_INET */ | |
848 | ||
c7f3eecc | 849 | #if wxUSE_STOPWATCH || wxUSE_DATETIME |
a5d46b73 VZ |
850 | # if !wxUSE_LONGLONG |
851 | # ifdef wxABORT_ON_CONFIG_ERROR | |
c7f3eecc | 852 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" |
a5d46b73 VZ |
853 | # else |
854 | # undef wxUSE_LONGLONG | |
855 | # define wxUSE_LONGLONG 1 | |
856 | # endif | |
857 | # endif | |
858 | #endif /* wxUSE_STOPWATCH */ | |
859 | ||
860 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
861 | # ifdef wxABORT_ON_CONFIG_ERROR | |
862 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
863 | # else | |
864 | # undef wxUSE_TEXTFILE | |
865 | # define wxUSE_TEXTFILE 1 | |
866 | # endif | |
867 | #endif /* wxUSE_MIMETYPE */ | |
868 | ||
869 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER | |
870 | # ifdef wxABORT_ON_CONFIG_ERROR | |
871 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
872 | # else | |
873 | # undef wxUSE_TEXTBUFFER | |
874 | # define wxUSE_TEXTBUFFER 1 | |
875 | # endif | |
876 | #endif /* wxUSE_TEXTFILE */ | |
877 | ||
878 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
879 | # ifdef wxABORT_ON_CONFIG_ERROR | |
880 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
881 | # else | |
882 | # undef wxUSE_FILE | |
883 | # define wxUSE_FILE 1 | |
884 | # endif | |
885 | #endif /* wxUSE_TEXTFILE */ | |
886 | ||
887 | #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE | |
888 | # ifdef wxABORT_ON_CONFIG_ERROR | |
889 | # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE" | |
890 | # else | |
891 | # undef wxUSE_UNICODE | |
892 | # define wxUSE_UNICODE 1 | |
893 | # endif | |
894 | #endif /* wxUSE_UNICODE_MSLU */ | |
895 | ||
38a0984e JS |
896 | /* ODBC and Unicode are now compatible */ |
897 | ||
67e489c5 | 898 | #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */ |
4ccf704a VZ |
899 | # ifdef wxABORT_ON_CONFIG_ERROR |
900 | /* (ODBC classes aren't Unicode-compatible yet) */ | |
901 | # error "wxUSE_ODBC can't be used with wxUSE_UNICODE" | |
902 | # else | |
903 | # undef wxUSE_ODBC | |
904 | # define wxUSE_ODBC 0 | |
905 | # endif | |
906 | #endif /* wxUSE_ODBC */ | |
907 | ||
7f799744 VS |
908 | #if wxUSE_XML && !wxUSE_WCHAR_T |
909 | # ifdef wxABORT_ON_CONFIG_ERROR | |
910 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
911 | # else | |
912 | # undef wxUSE_XML | |
913 | # define wxUSE_XML 0 | |
914 | # endif | |
915 | #endif /* wxUSE_UNICODE_MSLU */ | |
916 | ||
1948bb32 VS |
917 | #if !wxUSE_DYNLIB_CLASS |
918 | # if wxUSE_DYNAMIC_LOADER | |
919 | # ifdef wxABORT_ON_CONFIG_ERROR | |
920 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
921 | # else | |
922 | # define wxUSE_DYNLIB_CLASS 1 | |
923 | # endif | |
924 | # endif | |
925 | #endif /* wxUSE_DYNLIB_CLASS */ | |
926 | ||
a5d46b73 VZ |
927 | /* the rest of the tests is for the GUI settings only */ |
928 | #if wxUSE_GUI | |
929 | ||
1e6feb95 VZ |
930 | #if wxUSE_BUTTON || \ |
931 | wxUSE_CALENDARCTRL || \ | |
932 | wxUSE_CARET || \ | |
933 | wxUSE_COMBOBOX || \ | |
934 | wxUSE_BMPBUTTON || \ | |
935 | wxUSE_CHECKBOX || \ | |
936 | wxUSE_CHECKLISTBOX || \ | |
937 | wxUSE_CHOICE || \ | |
938 | wxUSE_GAUGE || \ | |
939 | wxUSE_GRID || \ | |
1e6feb95 VZ |
940 | wxUSE_LISTBOX || \ |
941 | wxUSE_LISTCTRL || \ | |
942 | wxUSE_NOTEBOOK || \ | |
943 | wxUSE_RADIOBOX || \ | |
944 | wxUSE_RADIOBTN || \ | |
945 | wxUSE_SCROLLBAR || \ | |
946 | wxUSE_SLIDER || \ | |
947 | wxUSE_SPINBTN || \ | |
948 | wxUSE_SPINCTRL || \ | |
949 | wxUSE_STATBMP || \ | |
950 | wxUSE_STATBOX || \ | |
951 | wxUSE_STATLINE || \ | |
3379ed37 | 952 | wxUSE_STATTEXT || \ |
1e6feb95 VZ |
953 | wxUSE_STATUSBAR || \ |
954 | wxUSE_TEXTCTRL || \ | |
955 | wxUSE_TOOLBAR || \ | |
956 | wxUSE_TREECTRL | |
957 | # if !wxUSE_CONTROLS | |
958 | # ifdef wxABORT_ON_CONFIG_ERROR | |
959 | # error "wxUSE_CONTROLS unset but some controls used" | |
960 | # else | |
961 | # undef wxUSE_CONTROLS | |
962 | # define wxUSE_CONTROLS 1 | |
963 | # endif | |
964 | # endif | |
965 | #endif /* controls */ | |
966 | ||
0b4f47a3 DS |
967 | #if wxUSE_BMPBUTTON |
968 | # if !wxUSE_BUTTON | |
969 | # ifdef wxABORT_ON_CONFIG_ERROR | |
970 | # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON" | |
971 | # else | |
972 | # undef wxUSE_BUTTON | |
973 | # define wxUSE_BUTTON 1 | |
974 | # endif | |
975 | # endif | |
976 | #endif /* wxUSE_BMPBUTTON */ | |
977 | ||
f5e0b4bc | 978 | #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK |
15aad3b9 VZ |
979 | # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL |
980 | # ifdef wxABORT_ON_CONFIG_ERROR | |
981 | # error "wxUSE_BOOKCTRL must be set." | |
982 | # else | |
983 | # undef wxUSE_BOOKCTRL | |
984 | # endif | |
985 | # endif | |
986 | ||
987 | # ifndef wxUSE_BOOKCTRL | |
988 | # define wxUSE_BOOKCTRL 1 | |
989 | # endif | |
990 | #endif /* wxUSE_NOTEBOOK */ | |
991 | ||
5b5e4f32 VZ |
992 | #if wxUSE_LISTBOOK |
993 | # if !wxUSE_LISTCTRL | |
994 | # ifdef wxABORT_ON_CONFIG_ERROR | |
995 | # error "wxListbook requires wxListCtrl" | |
996 | # else | |
997 | # undef wxUSE_LISTCTRL | |
998 | # define wxUSE_LISTCTRL 1 | |
999 | # endif | |
1000 | # endif | |
1001 | #endif /* wxUSE_LISTBOOK */ | |
1002 | ||
f5e0b4bc WS |
1003 | #if wxUSE_CHOICEBOOK |
1004 | # if !wxUSE_CHOICE | |
1005 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1006 | # error "wxChoicebook requires wxChoice" | |
1007 | # else | |
1008 | # undef wxUSE_CHOICE | |
1009 | # define wxUSE_CHOICE 1 | |
1010 | # endif | |
1011 | # endif | |
1012 | #endif /* wxUSE_CHOICEBOOK */ | |
1013 | ||
da4486fb VZ |
1014 | /* don't attempt to use native status bar on the platforms not having it */ |
1015 | #ifndef wxUSE_NATIVE_STATUSBAR | |
1016 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1017 | #elif wxUSE_NATIVE_STATUSBAR | |
6ee03aed | 1018 | # if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || defined(__WXMAC__)) |
da4486fb VZ |
1019 | # undef wxUSE_NATIVE_STATUSBAR |
1020 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1021 | # endif | |
1022 | #endif | |
1023 | ||
3379ed37 VZ |
1024 | /* wxUniv-specific dependencies */ |
1025 | #if defined(__WXUNIVERSAL__) | |
1026 | # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN | |
1027 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1028 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
1029 | # else | |
1030 | # undef wxUSE_POPUPWIN | |
1031 | # define wxUSE_POPUPWIN 1 | |
1032 | # endif | |
1033 | # endif | |
1034 | ||
1035 | # if wxUSE_COMBOBOX | |
1036 | # if !wxUSE_LISTBOX | |
1037 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1038 | # error "wxComboBox requires wxListBox in wxUniversal" | |
1039 | # else | |
1040 | # undef wxUSE_LISTBOX | |
1041 | # define wxUSE_LISTBOX 1 | |
1042 | # endif | |
1043 | # endif | |
1044 | # endif /* wxUSE_COMBOBOX */ | |
1045 | ||
1046 | # if wxUSE_RADIOBTN | |
1047 | # if !wxUSE_CHECKBOX | |
1048 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1049 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
1050 | # else | |
1051 | # undef wxUSE_CHECKBOX | |
1052 | # define wxUSE_CHECKBOX 1 | |
1053 | # endif | |
1054 | # endif | |
1055 | # endif /* wxUSE_RADIOBTN */ | |
1056 | ||
1057 | # if wxUSE_TEXTCTRL | |
1058 | # if !wxUSE_CARET | |
1059 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1060 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
1061 | # else | |
1062 | # undef wxUSE_CARET | |
1063 | # define wxUSE_CARET 1 | |
1064 | # endif | |
1065 | # endif /* wxUSE_CARET */ | |
1066 | ||
1067 | # if !wxUSE_SCROLLBAR | |
1068 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1069 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
1070 | # else | |
1071 | # undef wxUSE_SCROLLBAR | |
1072 | # define wxUSE_SCROLLBAR 1 | |
1073 | # endif | |
1074 | # endif /* wxUSE_SCROLLBAR */ | |
1075 | # endif /* wxUSE_TEXTCTRL */ | |
1076 | #endif /* __WXUNIVERSAL__ */ | |
1077 | ||
1078 | /* wxGTK-specific dependencies */ | |
2131b89d VZ |
1079 | #ifdef __WXGTK__ |
1080 | # ifndef __WXUNIVERSAL__ | |
1081 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1082 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1083 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1084 | # else | |
1085 | # undef wxUSE_MENUS | |
1086 | # define wxUSE_MENUS 1 | |
1087 | # endif | |
1088 | # endif | |
1089 | # endif /* !__WXUNIVERSAL__ */ | |
1090 | ||
1091 | # if wxUSE_JOYSTICK | |
1092 | # if !wxUSE_THREADS | |
1093 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1094 | # error "wxJoystick requires threads in wxGTK" | |
1095 | # else | |
1096 | # undef wxUSE_JOYSTICK | |
1097 | # define wxUSE_JOYSTICK 0 | |
1098 | # endif | |
3379ed37 VZ |
1099 | # endif |
1100 | # endif | |
1101 | #endif /* wxGTK && !wxUniv */ | |
1102 | ||
03169422 RL |
1103 | /* wxMSW-specific dependencies */ |
1104 | #ifdef __WXMSW__ | |
1105 | # ifndef wxUSE_UNICODE_MSLU | |
1106 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1107 | # error "wxUSE_UNICODE_MSLU must be defined." | |
1108 | # else | |
1109 | # define wxUSE_UNICODE_MSLU 0 | |
1110 | # endif | |
1111 | # endif /* wxUSE_UNICODE_MSLU */ | |
9c7f7573 VS |
1112 | # ifndef wxUSE_UXTHEME |
1113 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1114 | # error "wxUSE_UXTHEME must be defined." | |
1115 | # else | |
1116 | # define wxUSE_UXTHEME 0 | |
1117 | # endif | |
1118 | # endif /* wxUSE_UXTHEME */ | |
1119 | # ifndef wxUSE_UXTHEME_AUTO | |
1120 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1121 | # error "wxUSE_UXTHEME_AUTO must be defined." | |
1122 | # else | |
1123 | # define wxUSE_UXTHEME_AUTO 0 | |
1124 | # endif | |
1125 | # endif /* wxUSE_UXTHEME_AUTO */ | |
03169422 RL |
1126 | # ifndef wxUSE_MS_HTML_HELP |
1127 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1128 | # error "wxUSE_MS_HTML_HELP must be defined." | |
1129 | # else | |
1130 | # define wxUSE_MS_HTML_HELP 0 | |
1131 | # endif | |
1132 | # endif /* !defined(wxUSE_MS_HTML_HELP) */ | |
1133 | # ifndef wxUSE_DIALUP_MANAGER | |
1134 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1135 | # error "wxUSE_DIALUP_MANAGER must be defined." | |
1136 | # else | |
1137 | # define wxUSE_DIALUP_MANAGER 0 | |
1138 | # endif | |
1139 | # endif /* !defined(wxUSE_DIALUP_MANAGER) */ | |
1140 | ||
19f478fd | 1141 | # if !wxUSE_DYNAMIC_LOADER |
03169422 RL |
1142 | # if wxUSE_MS_HTML_HELP |
1143 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1144 | # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER." | |
1145 | # else | |
1146 | # define wxUSE_DYNAMIC_LOADER 1 | |
1147 | # endif | |
1148 | # endif | |
1149 | # if wxUSE_DIALUP_MANAGER | |
1150 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1151 | # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER." | |
1152 | # else | |
1153 | # define wxUSE_DYNAMIC_LOADER 1 | |
1154 | # endif | |
1155 | # endif | |
1156 | # endif /* wxUSE_DYNAMIC_LOADER */ | |
7efaa702 | 1157 | |
03169422 RL |
1158 | #endif /* wxMSW */ |
1159 | ||
c4e41ce3 SC |
1160 | /* wxMAC-specific dependencies */ |
1161 | #ifdef __WXMAC__ | |
1162 | # if wxUSE_UNICODE | |
1163 | # if !TARGET_CARBON | |
1164 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1165 | # error "wxUSE_UNICODE is only supported for Carbon Targets." | |
1166 | # else | |
1167 | # define wxUSE_UNICODE 0 | |
1168 | # endif | |
1169 | # endif | |
1170 | # endif | |
1171 | #endif /* wxMAC */ | |
9806a47c JS |
1172 | /* wxMotif-specific dependencies */ |
1173 | #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG | |
1174 | # undef wxUSE_TAB_DIALOG | |
1175 | # define wxUSE_TAB_DIALOG 1 | |
1176 | #endif | |
9806a47c | 1177 | |
bfc4a1c1 VS |
1178 | /* wxMGL-specific dependencies */ |
1179 | #ifdef __WXMGL__ | |
1180 | # if !wxUSE_PALETTE | |
1181 | # error "wxMGL requires wxUSE_PALETTE=1" | |
1182 | # endif | |
1183 | #endif /* wxMGL */ | |
1184 | ||
67e489c5 | 1185 | /* Hopefully we can emulate these dialogs in due course */ |
9b141468 | 1186 | #if defined(__SMARTPHONE__) && defined(__WXWINCE__) |
b92203a8 VZ |
1187 | # ifdef wxUSE_COLOURDLG |
1188 | # undef wxUSE_COLOURDLG | |
1189 | # define wxUSE_COLOURDLG 0 | |
1190 | # endif | |
9b141468 | 1191 | #endif /* __SMARTPHONE__ && __WXWINCE__ */ |
b92203a8 VZ |
1192 | |
1193 | ||
3379ed37 VZ |
1194 | /* generic controls dependencies */ |
1195 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1196 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1197 | /* all common controls are needed by these dialogs */ | |
1198 | # if !defined(wxUSE_CHOICE) || \ | |
1199 | !defined(wxUSE_TEXTCTRL) || \ | |
1200 | !defined(wxUSE_BUTTON) || \ | |
1201 | !defined(wxUSE_CHECKBOX) || \ | |
1202 | !defined(wxUSE_STATTEXT) | |
1203 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1204 | # error "These common controls are needed by common dialogs" | |
1205 | # else | |
1206 | # undef wxUSE_CHOICE | |
1207 | # define wxUSE_CHOICE 1 | |
1208 | # undef wxUSE_TEXTCTRL | |
1209 | # define wxUSE_TEXTCTRL 1 | |
1210 | # undef wxUSE_BUTTON | |
1211 | # define wxUSE_BUTTON 1 | |
1212 | # undef wxUSE_CHECKBOX | |
1213 | # define wxUSE_CHECKBOX 1 | |
1214 | # undef wxUSE_STATTEXT | |
1215 | # define wxUSE_STATTEXT 1 | |
1216 | # endif | |
1217 | # endif | |
1218 | # endif | |
1219 | #endif /* !wxMSW || wxUniv */ | |
1220 | ||
1221 | /* common dependencies */ | |
1e6feb95 VZ |
1222 | #if wxUSE_CALENDARCTRL |
1223 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1224 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1225 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1226 | # else | |
1227 | # undef wxUSE_SPINBTN | |
1228 | # undef wxUSE_COMBOBOX | |
1229 | # define wxUSE_SPINBTN 1 | |
1230 | # define wxUSE_COMBOBOX 1 | |
1231 | # endif | |
1232 | # endif | |
e2b87f38 VZ |
1233 | |
1234 | # if !wxUSE_DATETIME | |
1235 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1236 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1237 | # else | |
1238 | # undef wxUSE_DATETIME | |
1239 | # define wxUSE_DATETIME 1 | |
1240 | # endif | |
1241 | # endif | |
1e6feb95 VZ |
1242 | #endif /* wxUSE_CALENDARCTRL */ |
1243 | ||
1244 | #if wxUSE_CHECKLISTBOX | |
1245 | # if !wxUSE_LISTBOX | |
1246 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1247 | # error "wxCheckListBox requires wxListBox" | |
1248 | # else | |
1249 | # undef wxUSE_LISTBOX | |
1250 | # define wxUSE_LISTBOX 1 | |
1251 | # endif | |
1252 | # endif | |
97e4cf6d WS |
1253 | #endif /* wxUSE_CHECKLISTBOX */ |
1254 | ||
1255 | #if wxUSE_CHOICEDLG | |
1256 | # if !wxUSE_LISTBOX | |
1257 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1258 | # error "Choice dialogs requires wxListBox" | |
1259 | # else | |
1260 | # undef wxUSE_LISTBOX | |
1261 | # define wxUSE_LISTBOX 1 | |
1262 | # endif | |
1263 | # endif | |
1264 | #endif /* wxUSE_CHOICEDLG */ | |
1e6feb95 | 1265 | |
0b4f47a3 DS |
1266 | #if wxUSE_HELP |
1267 | # if !wxUSE_BMPBUTTON | |
1268 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1269 | # error "wxUSE_HELP requires wxUSE_BMPBUTTON" | |
1270 | # else | |
1271 | # undef wxUSE_BMPBUTTON | |
1272 | # define wxUSE_BMPBUTTON 1 | |
1273 | # endif | |
1274 | # endif | |
adb799d6 DS |
1275 | |
1276 | # if !wxUSE_CHOICEDLG | |
1277 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1278 | # error "wxUSE_HELP requires wxUSE_CHOICEDLG" | |
1279 | # else | |
1280 | # undef wxUSE_CHOICEDLG | |
1281 | # define wxUSE_CHOICEDLG 1 | |
1282 | # endif | |
1283 | # endif | |
0b4f47a3 DS |
1284 | #endif /* wxUSE_HELP */ |
1285 | ||
3379ed37 | 1286 | #if wxUSE_WXHTML_HELP |
0e871ad0 | 1287 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL |
3379ed37 VZ |
1288 | # ifdef wxABORT_ON_CONFIG_ERROR |
1289 | # error "Built in help controller can't be compiled" | |
1290 | # else | |
1291 | # undef wxUSE_HELP | |
1292 | # define wxUSE_HELP 1 | |
1293 | # undef wxUSE_HTML | |
1294 | # define wxUSE_HTML 1 | |
1295 | # undef wxUSE_COMBOBOX | |
1296 | # define wxUSE_COMBOBOX 1 | |
730dfeb4 VS |
1297 | # undef wxUSE_NOTEBOOK |
1298 | # define wxUSE_NOTEBOOK 1 | |
0e871ad0 WS |
1299 | # undef wxUSE_SPINCTRL |
1300 | # define wxUSE_SPINCTRL 1 | |
3379ed37 VZ |
1301 | # endif |
1302 | # endif | |
1303 | #endif /* wxUSE_WXHTML_HELP */ | |
1304 | ||
05e4fd64 DS |
1305 | #if !wxUSE_IMAGE |
1306 | /* | |
1307 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1308 | user explicitly wants this and disable all other features that require | |
1309 | wxUSE_IMAGE. | |
1310 | */ | |
1311 | # if wxUSE_DRAGIMAGE | |
1312 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1313 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1314 | # else | |
1315 | # undef wxUSE_DRAGIMAGE | |
1316 | # define wxUSE_DRAGIMAGE 0 | |
1317 | # endif | |
1318 | # endif | |
1319 | ||
1320 | # if wxUSE_LIBPNG | |
1321 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1322 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1323 | # else | |
1324 | # undef wxUSE_LIBPNG | |
1325 | # define wxUSE_LIBPNG 0 | |
1326 | # endif | |
1327 | # endif | |
1328 | ||
1329 | # if wxUSE_LIBJPEG | |
1330 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1331 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1332 | # else | |
1333 | # undef wxUSE_LIBJPEG | |
1334 | # define wxUSE_LIBJPEG 0 | |
1335 | # endif | |
1336 | # endif | |
1337 | ||
1338 | # if wxUSE_LIBTIFF | |
1339 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1340 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1341 | # else | |
1342 | # undef wxUSE_LIBTIFF | |
1343 | # define wxUSE_LIBTIFF 0 | |
1344 | # endif | |
1345 | # endif | |
1346 | ||
1347 | # if wxUSE_GIF | |
1348 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1349 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1350 | # else | |
1351 | # undef wxUSE_GIF | |
1352 | # define wxUSE_GIF 0 | |
1353 | # endif | |
1354 | # endif | |
1355 | ||
1356 | # if wxUSE_PNM | |
1357 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1358 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1359 | # else | |
1360 | # undef wxUSE_PNM | |
1361 | # define wxUSE_PNM 0 | |
1362 | # endif | |
1363 | # endif | |
1364 | ||
1365 | # if wxUSE_PCX | |
1366 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1367 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1368 | # else | |
1369 | # undef wxUSE_PCX | |
1370 | # define wxUSE_PCX 0 | |
1371 | # endif | |
1372 | # endif | |
1373 | ||
1374 | # if wxUSE_IFF | |
1375 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1376 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1377 | # else | |
1378 | # undef wxUSE_IFF | |
1379 | # define wxUSE_IFF 0 | |
1380 | # endif | |
1381 | # endif | |
1382 | ||
1383 | # if wxUSE_TOOLBAR | |
1384 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1385 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1386 | # else | |
1387 | # undef wxUSE_TOOLBAR | |
1388 | # define wxUSE_TOOLBAR 0 | |
1389 | # endif | |
1390 | # endif | |
1391 | ||
1392 | # if wxUSE_XPM | |
1393 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1394 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1395 | # else | |
1396 | # undef wxUSE_XPM | |
1397 | # define wxUSE_XPM 0 | |
1398 | # endif | |
1399 | # endif | |
1400 | ||
1401 | #endif /* !wxUSE_IMAGE */ | |
1402 | ||
e30285ab VZ |
1403 | #if wxUSE_DOC_VIEW_ARCHITECTURE |
1404 | # if !wxUSE_MENUS | |
1405 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1406 | # error "DocView requires wxUSE_MENUS" | |
1407 | # else | |
1408 | # undef wxUSE_MENUS | |
1409 | # define wxUSE_MENUS 1 | |
1410 | # endif | |
1411 | # endif | |
1412 | ||
adb799d6 DS |
1413 | # if !wxUSE_CHOICEDLG |
1414 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1415 | # error "DocView requires wxUSE_CHOICEDLG" | |
1416 | # else | |
1417 | # undef wxUSE_CHOICEDLG | |
1418 | # define wxUSE_CHOICEDLG 1 | |
1419 | # endif | |
1420 | # endif | |
1421 | ||
e30285ab VZ |
1422 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM |
1423 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1424 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1425 | # else | |
1426 | # undef wxUSE_STREAMS | |
1427 | # define wxUSE_STREAMS 1 | |
1428 | # endif | |
1429 | # endif | |
1430 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1431 | ||
3379ed37 VZ |
1432 | #if wxUSE_PRINTING_ARCHITECTURE |
1433 | # if !wxUSE_COMBOBOX | |
1434 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1435 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1436 | # else | |
1437 | # undef wxUSE_COMBOBOX | |
1438 | # define wxUSE_COMBOBOX 1 | |
1439 | # endif | |
1440 | # endif | |
1441 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1442 | ||
e30285ab | 1443 | #if wxUSE_MDI_ARCHITECTURE |
efd17a1d VZ |
1444 | # if !wxUSE_MDI |
1445 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1446 | # error "MDI requires wxUSE_MDI" | |
1447 | # else | |
1448 | # undef wxUSE_MDI | |
1449 | # define wxUSE_MDI 1 | |
1450 | # endif | |
1451 | # endif | |
1452 | ||
e30285ab | 1453 | # if !wxUSE_DOC_VIEW_ARCHITECTURE |
1e6feb95 | 1454 | # ifdef wxABORT_ON_CONFIG_ERROR |
e30285ab | 1455 | # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE" |
1e6feb95 | 1456 | # else |
e30285ab VZ |
1457 | # undef wxUSE_DOC_VIEW_ARCHITECTURE |
1458 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1e6feb95 VZ |
1459 | # endif |
1460 | # endif | |
e30285ab | 1461 | #endif /* wxUSE_MDI_ARCHITECTURE */ |
1e6feb95 VZ |
1462 | |
1463 | #if !wxUSE_FILEDLG | |
2119e280 | 1464 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP |
1e6feb95 VZ |
1465 | # ifdef wxABORT_ON_CONFIG_ERROR |
1466 | # error "wxFileDialog must be compiled as well" | |
1467 | # else | |
1468 | # undef wxUSE_FILEDLG | |
1469 | # define wxUSE_FILEDLG 1 | |
1470 | # endif | |
1471 | # endif | |
e421922f | 1472 | #endif /* wxUSE_FILEDLG */ |
1e6feb95 | 1473 | |
555f645a WS |
1474 | #if !wxUSE_GAUGE || !wxUSE_BUTTON |
1475 | # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__) | |
063b752e | 1476 | # ifdef wxABORT_ON_CONFIG_ERROR |
555f645a | 1477 | # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON" |
063b752e WS |
1478 | # else |
1479 | # undef wxUSE_GAUGE | |
555f645a | 1480 | # undef wxUSE_BUTTON |
063b752e | 1481 | # define wxUSE_GAUGE 1 |
555f645a | 1482 | # define wxUSE_BUTTON 1 |
063b752e WS |
1483 | # endif |
1484 | # endif | |
1485 | #endif /* !wxUSE_GAUGE */ | |
1486 | ||
0b4f47a3 | 1487 | #if !wxUSE_BUTTON |
555f645a | 1488 | # if wxUSE_FONTDLG || \ |
0b4f47a3 DS |
1489 | wxUSE_FILEDLG || \ |
1490 | wxUSE_CHOICEDLG || \ | |
1491 | wxUSE_NUMBERDLG || \ | |
1492 | wxUSE_TEXTDLG || \ | |
1493 | wxUSE_DIRDLG || \ | |
1494 | wxUSE_STARTUP_TIPS || \ | |
1495 | wxUSE_WIZARDDLG | |
1496 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1497 | # error "Common and generic dialogs require wxUSE_BUTTON" | |
1498 | # else | |
1499 | # undef wxUSE_BUTTON | |
1500 | # define wxUSE_BUTTON 1 | |
1501 | # endif | |
1502 | # endif | |
063b752e | 1503 | #endif /* !wxUSE_BUTTON */ |
0b4f47a3 | 1504 | |
12491c1f JS |
1505 | #if !wxUSE_TOOLBAR |
1506 | # if wxUSE_TOOLBAR_NATIVE | |
1507 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1508 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1509 | # else | |
1510 | # undef wxUSE_TOOLBAR_NATIVE | |
1511 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1512 | # endif | |
1513 | # endif | |
1514 | ||
1515 | # if wxUSE_TOOLBAR_SIMPLE | |
1516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1517 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1" | |
1518 | # else | |
1519 | # undef wxUSE_TOOLBAR_SIMPLE | |
1520 | # define wxUSE_TOOLBAR_SIMPLE 0 | |
1521 | # endif | |
1522 | # endif | |
1523 | #endif | |
1524 | ||
1e6feb95 VZ |
1525 | #if !wxUSE_IMAGLIST |
1526 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1527 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1528 | # error "wxImageList must be compiled as well" | |
1529 | # else | |
1530 | # undef wxUSE_IMAGLIST | |
1531 | # define wxUSE_IMAGLIST 1 | |
1532 | # endif | |
1533 | # endif | |
1534 | #endif /* !wxUSE_IMAGLIST */ | |
1535 | ||
e421922f VZ |
1536 | #if !wxUSE_MSGDLG |
1537 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1538 | /* FIXME: should compile without it, of course, but doesn't */ | |
1539 | # error "wxMessageBox is always needed" | |
1540 | # else | |
1541 | # undef wxUSE_MSGDLG | |
1542 | # define wxUSE_MSGDLG 1 | |
1543 | # endif | |
1544 | #endif | |
1545 | ||
1e6feb95 VZ |
1546 | #if wxUSE_RADIOBOX |
1547 | # if !wxUSE_RADIOBTN || !wxUSE_STATBOX | |
1548 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1549 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX" | |
1550 | # else | |
1551 | # undef wxUSE_RADIOBTN | |
1552 | # undef wxUSE_STATBOX | |
1553 | # define wxUSE_RADIOBTN 1 | |
1554 | # define wxUSE_STATBOX 1 | |
1555 | # endif | |
1556 | # endif | |
1557 | #endif /* wxUSE_RADIOBOX */ | |
1558 | ||
3379ed37 VZ |
1559 | #if wxUSE_LOGWINDOW |
1560 | # if !wxUSE_TEXTCTRL | |
1561 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1562 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1563 | # else | |
1564 | # undef wxUSE_TEXTCTRL | |
1565 | # define wxUSE_TEXTCTRL 1 | |
1566 | # endif | |
1567 | # endif | |
1568 | #endif /* wxUSE_LOGWINDOW */ | |
1e6feb95 | 1569 | |
3e6e2754 | 1570 | #if wxUSE_LOG_DIALOG |
0b4f47a3 | 1571 | # if !wxUSE_LISTCTRL || !wxUSE_BUTTON |
3e6e2754 | 1572 | # ifdef wxABORT_ON_CONFIG_ERROR |
0b4f47a3 | 1573 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON" |
3e6e2754 JS |
1574 | # else |
1575 | # undef wxUSE_LISTCTRL | |
1576 | # define wxUSE_LISTCTRL 1 | |
0b4f47a3 DS |
1577 | # undef wxUSE_BUTTON |
1578 | # define wxUSE_BUTTON 1 | |
3e6e2754 JS |
1579 | # endif |
1580 | # endif | |
1581 | #endif /* wxUSE_LOG_DIALOG */ | |
1582 | ||
1e6feb95 | 1583 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ |
3379ed37 | 1584 | # ifdef wxABORT_ON_CONFIG_ERROR |
1e6feb95 VZ |
1585 | # error "wxClipboard requires wxDataObject" |
1586 | # else | |
1587 | # undef wxUSE_DATAOBJ | |
1588 | # define wxUSE_DATAOBJ 1 | |
1589 | # endif | |
1590 | #endif /* wxUSE_CLIPBOARD */ | |
1591 | ||
2b5f62a0 VZ |
1592 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO |
1593 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1594 | # error "wxr resources require PrologIO" | |
1595 | # else | |
1596 | # undef wxUSE_PROLOGIO | |
1597 | # define wxUSE_PROLOGIO 1 | |
1598 | # endif | |
1599 | #endif /* wxUSE_WX_RESOURCES */ | |
1600 | ||
d2ebf0b7 VS |
1601 | #if wxUSE_XRC && !wxUSE_XML |
1602 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1603 | # error "wxUSE_XRC requires wxUSE_XML" | |
1604 | # else | |
1605 | # undef wxUSE_XRC | |
1606 | # define wxUSE_XRC 0 | |
1607 | # endif | |
5a017695 | 1608 | #endif /* wxUSE_XRC */ |
d2ebf0b7 | 1609 | |
1e6feb95 VZ |
1610 | #endif /* wxUSE_GUI */ |
1611 |