]> git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
fixed wxMOUSE_BTN_XXX values, use them instead of hard coded constants
[wxWidgets.git] / include / wx / chkconf.h
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$
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwindows.org>
9 * Licence: wxWindows licence
10 */
11
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
14 /*
15 Compiler-specific checking.
16 */
17
18 #if defined(__WXMSW__)
19 # include "wx/msw/chkconf.h"
20 #elif defined(__WXMAC__)
21 # include "wx/mac/chkconf.h"
22 #endif
23
24 /*
25 this global setting determines what should we do if the setting FOO
26 requires BAR and BAR is not set: we can either silently define BAR
27 (default, recommended) or give an error and abort (mainly useful for
28 developers only)
29 */
30 #define wxABORT_ON_CONFIG_ERROR
31
32 /*
33 global features
34 */
35
36 /* GUI build by default */
37 #if !defined(wxUSE_GUI)
38 # define wxUSE_GUI 1
39 #endif /* !defined(wxUSE_GUI) */
40
41 /*
42 tests for non GUI features
43 */
44
45 #ifndef wxUSE_DYNLIB_CLASS
46 # ifdef wxABORT_ON_CONFIG_ERROR
47 # error "wxUSE_DYNLIB_CLASS must be defined."
48 # else
49 # define wxUSE_DYNLIB_CLASS 0
50 # endif
51 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
52
53 #ifndef wxUSE_EXCEPTIONS
54 # ifdef wxABORT_ON_CONFIG_ERROR
55 # error "wxUSE_EXCEPTIONS must be defined."
56 # else
57 # define wxUSE_EXCEPTIONS 0
58 # endif
59 #endif /* !defined(wxUSE_EXCEPTIONS) */
60
61 #ifndef wxUSE_FILESYSTEM
62 # ifdef wxABORT_ON_CONFIG_ERROR
63 # error "wxUSE_FILESYSTEM must be defined."
64 # else
65 # define wxUSE_FILESYSTEM 0
66 # endif
67 #endif /* !defined(wxUSE_FILESYSTEM) */
68
69 /* don't give an error about this one yet, it's not fully implemented */
70 #ifndef wxUSE_FSVOLUME
71 # define wxUSE_FSVOLUME 0
72 #endif /* !defined(wxUSE_FSVOLUME) */
73
74 #ifndef wxUSE_DYNAMIC_LOADER
75 # ifdef wxABORT_ON_CONFIG_ERROR
76 # error "wxUSE_DYNAMIC_LOADER must be defined."
77 # else
78 # define wxUSE_DYNAMIC_LOADER 0
79 # endif
80 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
81
82 #ifndef wxUSE_LOG
83 # ifdef wxABORT_ON_CONFIG_ERROR
84 # error "wxUSE_LOG must be defined."
85 # else
86 # define wxUSE_LOG 0
87 # endif
88 #endif /* !defined(wxUSE_LOG) */
89
90 #ifndef wxUSE_LONGLONG
91 # ifdef wxABORT_ON_CONFIG_ERROR
92 # error "wxUSE_LONGLONG must be defined."
93 # else
94 # define wxUSE_LONGLONG 0
95 # endif
96 #endif /* !defined(wxUSE_LONGLONG) */
97
98 #ifndef wxUSE_MIMETYPE
99 # ifdef wxABORT_ON_CONFIG_ERROR
100 # error "wxUSE_MIMETYPE must be defined."
101 # else
102 # define wxUSE_MIMETYPE 0
103 # endif
104 #endif /* !defined(wxUSE_MIMETYPE) */
105
106 #ifndef wxUSE_PROTOCOL
107 # ifdef wxABORT_ON_CONFIG_ERROR
108 # error "wxUSE_PROTOCOL must be defined."
109 # else
110 # define wxUSE_PROTOCOL 0
111 # endif
112 #endif /* !defined(wxUSE_PROTOCOL) */
113
114 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
115 #if !wxUSE_PROTOCOL
116 # undef wxUSE_PROTOCOL_HTTP
117 # undef wxUSE_PROTOCOL_FTP
118 # undef wxUSE_PROTOCOL_FILE
119 # define wxUSE_PROTOCOL_HTTP 0
120 # define wxUSE_PROTOCOL_FTP 0
121 # define wxUSE_PROTOCOL_FILE 0
122 #endif /* wxUSE_PROTOCOL */
123
124 #ifndef wxUSE_PROTOCOL_HTTP
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_PROTOCOL_HTTP must be defined."
127 # else
128 # define wxUSE_PROTOCOL_HTTP 0
129 # endif
130 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
131
132 #ifndef wxUSE_PROTOCOL_FTP
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_PROTOCOL_FTP must be defined."
135 # else
136 # define wxUSE_PROTOCOL_FTP 0
137 # endif
138 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
139
140 #ifndef wxUSE_PROTOCOL_FILE
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_PROTOCOL_FILE must be defined."
143 # else
144 # define wxUSE_PROTOCOL_FILE 0
145 # endif
146 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
147
148 #ifndef wxUSE_REGEX
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_REGEX must be defined."
151 # else
152 # define wxUSE_REGEX 0
153 # endif
154 #endif /* !defined(wxUSE_REGEX) */
155
156 #ifndef wxUSE_XML
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_XML must be defined."
159 # else
160 # define wxUSE_XML 0
161 # endif
162 #endif /* !defined(wxUSE_XML) */
163
164 #ifndef wxUSE_SOCKETS
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_SOCKETS must be defined."
167 # else
168 # define wxUSE_SOCKETS 0
169 # endif
170 #endif /* !defined(wxUSE_SOCKETS) */
171
172 #ifndef wxUSE_STREAMS
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_STREAMS must be defined."
175 # else
176 # define wxUSE_STREAMS 0
177 # endif
178 #endif /* !defined(wxUSE_STREAMS) */
179
180 #ifndef wxUSE_STOPWATCH
181 # ifdef wxABORT_ON_CONFIG_ERROR
182 # error "wxUSE_STOPWATCH must be defined."
183 # else
184 # define wxUSE_STOPWATCH 0
185 # endif
186 #endif /* !defined(wxUSE_STOPWATCH) */
187
188 #ifndef wxUSE_TEXTBUFFER
189 # ifdef wxABORT_ON_CONFIG_ERROR
190 # error "wxUSE_TEXTBUFFER must be defined."
191 # else
192 # define wxUSE_TEXTBUFFER 0
193 # endif
194 #endif /* !defined(wxUSE_TEXTBUFFER) */
195
196 #ifndef wxUSE_TEXTFILE
197 # ifdef wxABORT_ON_CONFIG_ERROR
198 # error "wxUSE_TEXTFILE must be defined."
199 # else
200 # define wxUSE_TEXTFILE 0
201 # endif
202 #endif /* !defined(wxUSE_TEXTFILE) */
203
204 #ifndef wxUSE_UNICODE
205 # ifdef wxABORT_ON_CONFIG_ERROR
206 # error "wxUSE_UNICODE must be defined."
207 # else
208 # define wxUSE_UNICODE 0
209 # endif
210 #endif /* !defined(wxUSE_UNICODE) */
211
212 #ifndef wxUSE_URL
213 # ifdef wxABORT_ON_CONFIG_ERROR
214 # error "wxUSE_URL must be defined."
215 # else
216 # define wxUSE_URL 0
217 # endif
218 #endif /* !defined(wxUSE_URL) */
219
220 /*
221 all these tests are for GUI only
222 */
223 #if wxUSE_GUI
224
225 /*
226 all of the settings tested below must be defined or we'd get an error from
227 preprocessor about invalid integer expression
228 */
229
230 #ifndef wxUSE_ACCEL
231 # ifdef wxABORT_ON_CONFIG_ERROR
232 # error "wxUSE_ACCEL must be defined."
233 # else
234 # define wxUSE_ACCEL 0
235 # endif
236 #endif /* !defined(wxUSE_ACCEL) */
237
238 #ifndef wxUSE_BMPBUTTON
239 # ifdef wxABORT_ON_CONFIG_ERROR
240 # error "wxUSE_BMPBUTTON must be defined."
241 # else
242 # define wxUSE_BMPBUTTON 0
243 # endif
244 #endif /* !defined(wxUSE_BMPBUTTON) */
245
246 #ifndef wxUSE_BUTTON
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_BUTTON must be defined."
249 # else
250 # define wxUSE_BUTTON 0
251 # endif
252 #endif /* !defined(wxUSE_BUTTON) */
253
254 #ifndef wxUSE_CALENDARCTRL
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_CALENDARCTRL must be defined."
257 # else
258 # define wxUSE_CALENDARCTRL 0
259 # endif
260 #endif /* !defined(wxUSE_CALENDARCTRL) */
261
262 #ifndef wxUSE_CARET
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_CARET must be defined."
265 # else
266 # define wxUSE_CARET 0
267 # endif
268 #endif /* !defined(wxUSE_CARET) */
269
270 #ifndef wxUSE_CHECKBOX
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_CHECKBOX must be defined."
273 # else
274 # define wxUSE_CHECKBOX 0
275 # endif
276 #endif /* !defined(wxUSE_CHECKBOX) */
277
278 #ifndef wxUSE_CHECKLISTBOX
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_CHECKLISTBOX must be defined."
281 # else
282 # define wxUSE_CHECKLISTBOX 0
283 # endif
284 #endif /* !defined(wxUSE_CHECKLISTBOX) */
285
286 #ifndef wxUSE_CHOICE
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_CHOICE must be defined."
289 # else
290 # define wxUSE_CHOICE 0
291 # endif
292 #endif /* !defined(wxUSE_CHOICE) */
293
294 #ifndef wxUSE_CHOICEDLG
295 # ifdef wxABORT_ON_CONFIG_ERROR
296 # error "wxUSE_CHOICEDLG must be defined."
297 # else
298 # define wxUSE_CHOICEDLG 0
299 # endif
300 #endif /* !defined(wxUSE_CHOICEDLG) */
301
302 #ifndef wxUSE_CLIPBOARD
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_CLIPBOARD must be defined."
305 # else
306 # define wxUSE_CLIPBOARD 0
307 # endif
308 #endif /* !defined(wxUSE_CLIPBOARD) */
309
310 #ifndef wxUSE_COLOURDLG
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_COLOURDLG must be defined."
313 # else
314 # define wxUSE_COLOURDLG 0
315 # endif
316 #endif /* !defined(wxUSE_COLOURDLG) */
317
318 #ifndef wxUSE_COMBOBOX
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_COMBOBOX must be defined."
321 # else
322 # define wxUSE_COMBOBOX 0
323 # endif
324 #endif /* !defined(wxUSE_COMBOBOX) */
325
326 #ifndef wxUSE_DATAOBJ
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_DATAOBJ must be defined."
329 # else
330 # define wxUSE_DATAOBJ 0
331 # endif
332 #endif /* !defined(wxUSE_DATAOBJ) */
333
334 #ifndef wxUSE_DISPLAY
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_DISPLAY must be defined."
337 # else
338 # define wxUSE_DISPLAY 0
339 # endif
340 #endif /* !defined(wxUSE_DISPLAY) */
341
342 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
345 # else
346 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
347 # endif
348 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
349
350 #ifndef wxUSE_FILEDLG
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_FILEDLG must be defined."
353 # else
354 # define wxUSE_FILEDLG 0
355 # endif
356 #endif /* !defined(wxUSE_FILEDLG) */
357
358 #ifndef wxUSE_FONTDLG
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_FONTDLG must be defined."
361 # else
362 # define wxUSE_FONTDLG 0
363 # endif
364 #endif /* !defined(wxUSE_FONTDLG) */
365
366 #ifndef wxUSE_FONTMAP
367 # ifdef wxABORT_ON_CONFIG_ERROR
368 # error "wxUSE_FONTMAP must be defined."
369 # else
370 # define wxUSE_FONTMAP 0
371 # endif
372 #endif /* !defined(wxUSE_FONTMAP) */
373
374 #ifndef wxUSE_GAUGE
375 # ifdef wxABORT_ON_CONFIG_ERROR
376 # error "wxUSE_GAUGE must be defined."
377 # else
378 # define wxUSE_GAUGE 0
379 # endif
380 #endif /* !defined(wxUSE_GAUGE) */
381
382 #ifndef wxUSE_GRID
383 # ifdef wxABORT_ON_CONFIG_ERROR
384 # error "wxUSE_GRID must be defined."
385 # else
386 # define wxUSE_GRID 0
387 # endif
388 #endif /* !defined(wxUSE_GRID) */
389
390 #ifndef wxUSE_HELP
391 # ifdef wxABORT_ON_CONFIG_ERROR
392 # error "wxUSE_HELP must be defined."
393 # else
394 # define wxUSE_HELP 0
395 # endif
396 #endif /* !defined(wxUSE_HELP) */
397
398 #ifndef wxUSE_HTML
399 # ifdef wxABORT_ON_CONFIG_ERROR
400 # error "wxUSE_HTML must be defined."
401 # else
402 # define wxUSE_HTML 0
403 # endif
404 #endif /* !defined(wxUSE_HTML) */
405
406 #ifndef wxUSE_ICO_CUR
407 # ifdef wxABORT_ON_CONFIG_ERROR
408 # error "wxUSE_ICO_CUR must be defined."
409 # else
410 # define wxUSE_ICO_CUR 0
411 # endif
412 #endif /* !defined(wxUSE_ICO_CUR) */
413
414 #ifndef wxUSE_IFF
415 # ifdef wxABORT_ON_CONFIG_ERROR
416 # error "wxUSE_IFF must be defined."
417 # else
418 # define wxUSE_IFF 0
419 # endif
420 #endif /* !defined(wxUSE_IFF) */
421
422 #ifndef wxUSE_IMAGLIST
423 # ifdef wxABORT_ON_CONFIG_ERROR
424 # error "wxUSE_IMAGLIST must be defined."
425 # else
426 # define wxUSE_IMAGLIST 0
427 # endif
428 #endif /* !defined(wxUSE_IMAGLIST) */
429
430 #ifndef wxUSE_JOYSTICK
431 # ifdef wxABORT_ON_CONFIG_ERROR
432 # error "wxUSE_JOYSTICK must be defined."
433 # else
434 # define wxUSE_JOYSTICK 0
435 # endif
436 #endif /* !defined(wxUSE_JOYSTICK) */
437
438 #ifndef wxUSE_LISTBOOK
439 # ifdef wxABORT_ON_CONFIG_ERROR
440 # error "wxUSE_LISTBOOK must be defined."
441 # else
442 # define wxUSE_LISTBOOK 0
443 # endif
444 #endif /* !defined(wxUSE_LISTBOOK) */
445
446 #ifndef wxUSE_LISTBOX
447 # ifdef wxABORT_ON_CONFIG_ERROR
448 # error "wxUSE_LISTBOX must be defined."
449 # else
450 # define wxUSE_LISTBOX 0
451 # endif
452 #endif /* !defined(wxUSE_LISTBOX) */
453
454 #ifndef wxUSE_LISTCTRL
455 # ifdef wxABORT_ON_CONFIG_ERROR
456 # error "wxUSE_LISTCTRL must be defined."
457 # else
458 # define wxUSE_LISTCTRL 0
459 # endif
460 #endif /* !defined(wxUSE_LISTCTRL) */
461
462 #ifndef wxUSE_LOGGUI
463 # ifdef wxABORT_ON_CONFIG_ERROR
464 # error "wxUSE_LOGGUI must be defined."
465 # else
466 # define wxUSE_LOGGUI 0
467 # endif
468 #endif /* !defined(wxUSE_LOGGUI) */
469
470 #ifndef wxUSE_LOGWINDOW
471 # ifdef wxABORT_ON_CONFIG_ERROR
472 # error "wxUSE_LOGWINDOW must be defined."
473 # else
474 # define wxUSE_LOGWINDOW 0
475 # endif
476 #endif /* !defined(wxUSE_LOGWINDOW) */
477
478 #ifndef wxUSE_LOG_DIALOG
479 # ifdef wxABORT_ON_CONFIG_ERROR
480 # error "wxUSE_LOG_DIALOG must be defined."
481 # else
482 # define wxUSE_LOG_DIALOG 0
483 # endif
484 #endif /* !defined(wxUSE_LOG_DIALOG) */
485
486 #ifndef wxUSE_MDI_ARCHITECTURE
487 # ifdef wxABORT_ON_CONFIG_ERROR
488 # error "wxUSE_MDI_ARCHITECTURE must be defined."
489 # else
490 # define wxUSE_MDI_ARCHITECTURE 0
491 # endif
492 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
493
494 #ifndef wxUSE_MENUS
495 # ifdef wxABORT_ON_CONFIG_ERROR
496 # error "wxUSE_MENUS must be defined."
497 # else
498 # define wxUSE_MENUS 0
499 # endif
500 #endif /* !defined(wxUSE_MENUS) */
501
502 #ifndef wxUSE_MSGDLG
503 # ifdef wxABORT_ON_CONFIG_ERROR
504 # error "wxUSE_MSGDLG must be defined."
505 # else
506 # define wxUSE_MSGDLG 0
507 # endif
508 #endif /* !defined(wxUSE_MSGDLG) */
509
510 #ifndef wxUSE_NOTEBOOK
511 # ifdef wxABORT_ON_CONFIG_ERROR
512 # error "wxUSE_NOTEBOOK must be defined."
513 # else
514 # define wxUSE_NOTEBOOK 0
515 # endif
516 #endif /* !defined(wxUSE_NOTEBOOK) */
517
518 #ifndef wxUSE_PALETTE
519 # ifdef wxABORT_ON_CONFIG_ERROR
520 # error "wxUSE_PALETTE must be defined."
521 # else
522 # define wxUSE_PALETTE 0
523 # endif
524 #endif /* !defined(wxUSE_PALETTE) */
525
526 #ifndef wxUSE_POPUPWIN
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_POPUPWIN must be defined."
529 # else
530 # define wxUSE_POPUPWIN 0
531 # endif
532 #endif /* !defined(wxUSE_POPUPWIN) */
533
534 #ifndef wxUSE_PRINTING_ARCHITECTURE
535 # ifdef wxABORT_ON_CONFIG_ERROR
536 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
537 # else
538 # define wxUSE_PRINTING_ARCHITECTURE 0
539 # endif
540 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
541
542 #ifndef wxUSE_RADIOBOX
543 # ifdef wxABORT_ON_CONFIG_ERROR
544 # error "wxUSE_RADIOBOX must be defined."
545 # else
546 # define wxUSE_RADIOBOX 0
547 # endif
548 #endif /* !defined(wxUSE_RADIOBOX) */
549
550 #ifndef wxUSE_RADIOBTN
551 # ifdef wxABORT_ON_CONFIG_ERROR
552 # error "wxUSE_RADIOBTN must be defined."
553 # else
554 # define wxUSE_RADIOBTN 0
555 # endif
556 #endif /* !defined(wxUSE_RADIOBTN) */
557
558 #ifndef wxUSE_SASH
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxUSE_SASH must be defined."
561 # else
562 # define wxUSE_SASH 0
563 # endif
564 #endif /* !defined(wxUSE_SASH) */
565
566 #ifndef wxUSE_SCROLLBAR
567 # ifdef wxABORT_ON_CONFIG_ERROR
568 # error "wxUSE_SCROLLBAR must be defined."
569 # else
570 # define wxUSE_SCROLLBAR 0
571 # endif
572 #endif /* !defined(wxUSE_SCROLLBAR) */
573
574 #ifndef wxUSE_SLIDER
575 # ifdef wxABORT_ON_CONFIG_ERROR
576 # error "wxUSE_SLIDER must be defined."
577 # else
578 # define wxUSE_SLIDER 0
579 # endif
580 #endif /* !defined(wxUSE_SLIDER) */
581
582 #ifndef wxUSE_SPINBTN
583 # ifdef wxABORT_ON_CONFIG_ERROR
584 # error "wxUSE_SPINBTN must be defined."
585 # else
586 # define wxUSE_SPINBTN 0
587 # endif
588 #endif /* !defined(wxUSE_SPINBTN) */
589
590 #ifndef wxUSE_SPINCTRL
591 # ifdef wxABORT_ON_CONFIG_ERROR
592 # error "wxUSE_SPINCTRL must be defined."
593 # else
594 # define wxUSE_SPINCTRL 0
595 # endif
596 #endif /* !defined(wxUSE_SPINCTRL) */
597
598 #ifndef wxUSE_SPLASH
599 # ifdef wxABORT_ON_CONFIG_ERROR
600 # error "wxUSE_SPLASH must be defined."
601 # else
602 # define wxUSE_SPLASH 0
603 # endif
604 #endif /* !defined(wxUSE_SPLASH) */
605
606 #ifndef wxUSE_SPLITTER
607 # ifdef wxABORT_ON_CONFIG_ERROR
608 # error "wxUSE_SPLITTER must be defined."
609 # else
610 # define wxUSE_SPLITTER 0
611 # endif
612 #endif /* !defined(wxUSE_SPLITTER) */
613
614 #ifndef wxUSE_STATBMP
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_STATBMP must be defined."
617 # else
618 # define wxUSE_STATBMP 0
619 # endif
620 #endif /* !defined(wxUSE_STATBMP) */
621
622 #ifndef wxUSE_STATBOX
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_STATBOX must be defined."
625 # else
626 # define wxUSE_STATBOX 0
627 # endif
628 #endif /* !defined(wxUSE_STATBOX) */
629
630 #ifndef wxUSE_STATLINE
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_STATLINE must be defined."
633 # else
634 # define wxUSE_STATLINE 0
635 # endif
636 #endif /* !defined(wxUSE_STATLINE) */
637
638 #ifndef wxUSE_STATTEXT
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_STATTEXT must be defined."
641 # else
642 # define wxUSE_STATTEXT 0
643 # endif
644 #endif /* !defined(wxUSE_STATTEXT) */
645
646 #ifndef wxUSE_STATUSBAR
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_STATUSBAR must be defined."
649 # else
650 # define wxUSE_STATUSBAR 0
651 # endif
652 #endif /* !defined(wxUSE_STATUSBAR) */
653
654 #ifndef wxUSE_TAB_DIALOG
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_TAB_DIALOG must be defined."
657 # else
658 # define wxUSE_TAB_DIALOG 0
659 # endif
660 #endif /* !defined(wxUSE_TAB_DIALOG) */
661
662 #ifndef wxUSE_TEXTCTRL
663 # ifdef wxABORT_ON_CONFIG_ERROR
664 # error "wxUSE_TEXTCTRL must be defined."
665 # else
666 # define wxUSE_TEXTCTRL 0
667 # endif
668 #endif /* !defined(wxUSE_TEXTCTRL) */
669
670 #ifndef wxUSE_TIPWINDOW
671 # ifdef wxABORT_ON_CONFIG_ERROR
672 # error "wxUSE_TIPWINDOW must be defined."
673 # else
674 # define wxUSE_TIPWINDOW 0
675 # endif
676 #endif /* !defined(wxUSE_TIPWINDOW) */
677
678 #ifndef wxUSE_TOOLBAR
679 # ifdef wxABORT_ON_CONFIG_ERROR
680 # error "wxUSE_TOOLBAR must be defined."
681 # else
682 # define wxUSE_TOOLBAR 0
683 # endif
684 #endif /* !defined(wxUSE_TOOLBAR) */
685
686 #ifndef wxUSE_TOOLTIPS
687 # ifdef wxABORT_ON_CONFIG_ERROR
688 # error "wxUSE_TOOLTIPS must be defined."
689 # else
690 # define wxUSE_TOOLTIPS 0
691 # endif
692 #endif /* !defined(wxUSE_TOOLTIPS) */
693
694 #ifndef wxUSE_TREECTRL
695 # ifdef wxABORT_ON_CONFIG_ERROR
696 # error "wxUSE_TREECTRL must be defined."
697 # else
698 # define wxUSE_TREECTRL 0
699 # endif
700 #endif /* !defined(wxUSE_TREECTRL) */
701
702 #ifndef wxUSE_VALIDATORS
703 # ifdef wxABORT_ON_CONFIG_ERROR
704 # error "wxUSE_VALIDATORS must be defined."
705 # else
706 # define wxUSE_VALIDATORS 0
707 # endif
708 #endif /* !defined(wxUSE_VALIDATORS) */
709
710 #ifndef wxUSE_WXHTML_HELP
711 # ifdef wxABORT_ON_CONFIG_ERROR
712 # error "wxUSE_WXHTML_HELP must be defined."
713 # else
714 # define wxUSE_WXHTML_HELP 0
715 # endif
716 #endif /* !defined(wxUSE_WXHTML_HELP) */
717
718 #endif /* wxUSE_GUI */
719
720 /*
721 check consistency of the settings
722 */
723
724 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
725 # if !wxUSE_PROTOCOL
726 # ifdef wxABORT_ON_CONFIG_ERROR
727 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
728 # else
729 # undef wxUSE_PROTOCOL
730 # define wxUSE_PROTOCOL 1
731 # endif
732 # endif
733 #endif /* wxUSE_PROTOCOL_XXX */
734
735 #if wxUSE_URL
736 # if !wxUSE_PROTOCOL
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_URL requires wxUSE_PROTOCOL"
739 # else
740 # undef wxUSE_PROTOCOL
741 # define wxUSE_PROTOCOL 1
742 # endif
743 # endif
744 #endif /* wxUSE_URL */
745
746 #if wxUSE_PROTOCOL
747 # if !wxUSE_SOCKETS
748 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
751 # else
752 # undef wxUSE_SOCKETS
753 # define wxUSE_SOCKETS 1
754 # endif
755 # endif
756 # endif
757
758 # if !wxUSE_STREAMS
759 # ifdef wxABORT_ON_CONFIG_ERROR
760 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
761 # else
762 # undef wxUSE_STREAMS
763 # define wxUSE_STREAMS 1
764 # endif
765 # endif
766 #endif /* wxUSE_PROTOCOL */
767
768 #if wxUSE_GZSTREAM
769 # if !wxUSE_ZLIB
770 # ifdef wxABORT_ON_CONFIG_ERROR
771 # error "wxUSE_GZSTREAM requires wxUSE_ZLIB"
772 # else
773 # undef wxUSE_ZLIB
774 # define wxUSE_ZLIB 1
775 # endif
776 # endif
777 #endif /* wxUSE_GZSTREAM */
778
779 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
780 #if wxUSE_HTML
781 # if !wxUSE_FILESYSTEM
782 # ifdef wxABORT_ON_CONFIG_ERROR
783 # error "wxHTML requires wxFileSystem"
784 # else
785 # undef wxUSE_FILESYSTEM
786 # define wxUSE_FILESYSTEM 1
787 # endif
788 # endif
789 #endif /* wxUSE_HTML */
790
791 #if wxUSE_FILESYSTEM
792 # if !wxUSE_STREAMS
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
795 # else
796 # undef wxUSE_STREAMS
797 # define wxUSE_STREAMS 1
798 # endif
799 # endif
800 #endif /* wxUSE_FILESYSTEM */
801
802 #if wxUSE_FS_INET
803 # if !wxUSE_PROTOCOL
804 # ifdef wxABORT_ON_CONFIG_ERROR
805 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
806 # else
807 # undef wxUSE_PROTOCOL
808 # define wxUSE_PROTOCOL 1
809 # endif
810 # endif
811 #endif /* wxUSE_FS_INET */
812
813 #if wxUSE_STOPWATCH || wxUSE_DATETIME
814 # if !wxUSE_LONGLONG
815 # ifdef wxABORT_ON_CONFIG_ERROR
816 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
817 # else
818 # undef wxUSE_LONGLONG
819 # define wxUSE_LONGLONG 1
820 # endif
821 # endif
822 #endif /* wxUSE_STOPWATCH */
823
824 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
827 # else
828 # undef wxUSE_TEXTFILE
829 # define wxUSE_TEXTFILE 1
830 # endif
831 #endif /* wxUSE_MIMETYPE */
832
833 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
834 # ifdef wxABORT_ON_CONFIG_ERROR
835 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
836 # else
837 # undef wxUSE_TEXTBUFFER
838 # define wxUSE_TEXTBUFFER 1
839 # endif
840 #endif /* wxUSE_TEXTFILE */
841
842 #if wxUSE_TEXTFILE && !wxUSE_FILE
843 # ifdef wxABORT_ON_CONFIG_ERROR
844 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
845 # else
846 # undef wxUSE_FILE
847 # define wxUSE_FILE 1
848 # endif
849 #endif /* wxUSE_TEXTFILE */
850
851 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
852 # ifdef wxABORT_ON_CONFIG_ERROR
853 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
854 # else
855 # undef wxUSE_UNICODE
856 # define wxUSE_UNICODE 1
857 # endif
858 #endif /* wxUSE_UNICODE_MSLU */
859
860 #if wxUSE_ODBC && wxUSE_UNICODE
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 /* (ODBC classes aren't Unicode-compatible yet) */
863 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
864 # else
865 # undef wxUSE_ODBC
866 # define wxUSE_ODBC 0
867 # endif
868 #endif /* wxUSE_ODBC */
869
870 #if wxUSE_XML && !wxUSE_WCHAR_T
871 # ifdef wxABORT_ON_CONFIG_ERROR
872 # error "wxUSE_XML requires wxUSE_WCHAR_T"
873 # else
874 # undef wxUSE_XML
875 # define wxUSE_XML 0
876 # endif
877 #endif /* wxUSE_UNICODE_MSLU */
878
879 #if !wxUSE_DYNLIB_CLASS
880 # if wxUSE_DYNAMIC_LOADER
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
883 # else
884 # define wxUSE_DYNLIB_CLASS 1
885 # endif
886 # endif
887 #endif /* wxUSE_DYNLIB_CLASS */
888
889 /* the rest of the tests is for the GUI settings only */
890 #if wxUSE_GUI
891
892 #if wxUSE_BUTTON || \
893 wxUSE_CALENDARCTRL || \
894 wxUSE_CARET || \
895 wxUSE_COMBOBOX || \
896 wxUSE_BMPBUTTON || \
897 wxUSE_CHECKBOX || \
898 wxUSE_CHECKLISTBOX || \
899 wxUSE_CHOICE || \
900 wxUSE_GAUGE || \
901 wxUSE_GRID || \
902 wxUSE_LISTBOX || \
903 wxUSE_LISTCTRL || \
904 wxUSE_NOTEBOOK || \
905 wxUSE_RADIOBOX || \
906 wxUSE_RADIOBTN || \
907 wxUSE_SCROLLBAR || \
908 wxUSE_SLIDER || \
909 wxUSE_SPINBTN || \
910 wxUSE_SPINCTRL || \
911 wxUSE_STATBMP || \
912 wxUSE_STATBOX || \
913 wxUSE_STATLINE || \
914 wxUSE_STATTEXT || \
915 wxUSE_STATUSBAR || \
916 wxUSE_TEXTCTRL || \
917 wxUSE_TOOLBAR || \
918 wxUSE_TREECTRL
919 # if !wxUSE_CONTROLS
920 # ifdef wxABORT_ON_CONFIG_ERROR
921 # error "wxUSE_CONTROLS unset but some controls used"
922 # else
923 # undef wxUSE_CONTROLS
924 # define wxUSE_CONTROLS 1
925 # endif
926 # endif
927 #endif /* controls */
928
929 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK
930 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
931 # ifdef wxABORT_ON_CONFIG_ERROR
932 # error "wxUSE_BOOKCTRL must be set."
933 # else
934 # undef wxUSE_BOOKCTRL
935 # endif
936 # endif
937
938 # ifndef wxUSE_BOOKCTRL
939 # define wxUSE_BOOKCTRL 1
940 # endif
941 #endif /* wxUSE_NOTEBOOK */
942
943 #if wxUSE_LISTBOOK
944 # if !wxUSE_LISTCTRL
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxListbook requires wxListCtrl"
947 # else
948 # undef wxUSE_LISTCTRL
949 # define wxUSE_LISTCTRL 1
950 # endif
951 # endif
952 #endif /* wxUSE_LISTBOOK */
953
954 /* wxUniv-specific dependencies */
955 #if defined(__WXUNIVERSAL__)
956 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
957 # ifdef wxABORT_ON_CONFIG_ERROR
958 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
959 # else
960 # undef wxUSE_POPUPWIN
961 # define wxUSE_POPUPWIN 1
962 # endif
963 # endif
964
965 # if wxUSE_COMBOBOX
966 # if !wxUSE_LISTBOX
967 # ifdef wxABORT_ON_CONFIG_ERROR
968 # error "wxComboBox requires wxListBox in wxUniversal"
969 # else
970 # undef wxUSE_LISTBOX
971 # define wxUSE_LISTBOX 1
972 # endif
973 # endif
974 # endif /* wxUSE_COMBOBOX */
975
976 # if wxUSE_RADIOBTN
977 # if !wxUSE_CHECKBOX
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
980 # else
981 # undef wxUSE_CHECKBOX
982 # define wxUSE_CHECKBOX 1
983 # endif
984 # endif
985 # endif /* wxUSE_RADIOBTN */
986
987 # if wxUSE_TEXTCTRL
988 # if !wxUSE_CARET
989 # ifdef wxABORT_ON_CONFIG_ERROR
990 # error "wxTextCtrl requires wxCaret in wxUniversal"
991 # else
992 # undef wxUSE_CARET
993 # define wxUSE_CARET 1
994 # endif
995 # endif /* wxUSE_CARET */
996
997 # if !wxUSE_SCROLLBAR
998 # ifdef wxABORT_ON_CONFIG_ERROR
999 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1000 # else
1001 # undef wxUSE_SCROLLBAR
1002 # define wxUSE_SCROLLBAR 1
1003 # endif
1004 # endif /* wxUSE_SCROLLBAR */
1005 # endif /* wxUSE_TEXTCTRL */
1006 #endif /* __WXUNIVERSAL__ */
1007
1008 /* wxGTK-specific dependencies */
1009 #ifdef __WXGTK__
1010 # ifndef __WXUNIVERSAL__
1011 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "MDI requires wxUSE_MENUS in wxGTK"
1014 # else
1015 # undef wxUSE_MENUS
1016 # define wxUSE_MENUS 1
1017 # endif
1018 # endif
1019 # endif /* !__WXUNIVERSAL__ */
1020
1021 # if wxUSE_JOYSTICK
1022 # if !wxUSE_THREADS
1023 # ifdef wxABORT_ON_CONFIG_ERROR
1024 # error "wxJoystick requires threads in wxGTK"
1025 # else
1026 # undef wxUSE_JOYSTICK
1027 # define wxUSE_JOYSTICK 0
1028 # endif
1029 # endif
1030 # endif
1031 #endif /* wxGTK && !wxUniv */
1032
1033 /* wxMSW-specific dependencies */
1034 #ifdef __WXMSW__
1035 # ifndef wxUSE_UNICODE_MSLU
1036 # ifdef wxABORT_ON_CONFIG_ERROR
1037 # error "wxUSE_UNICODE_MSLU must be defined."
1038 # else
1039 # define wxUSE_UNICODE_MSLU 0
1040 # endif
1041 # endif /* wxUSE_UNICODE_MSLU */
1042 # ifndef wxUSE_UXTHEME
1043 # ifdef wxABORT_ON_CONFIG_ERROR
1044 # error "wxUSE_UXTHEME must be defined."
1045 # else
1046 # define wxUSE_UXTHEME 0
1047 # endif
1048 # endif /* wxUSE_UXTHEME */
1049 # ifndef wxUSE_UXTHEME_AUTO
1050 # ifdef wxABORT_ON_CONFIG_ERROR
1051 # error "wxUSE_UXTHEME_AUTO must be defined."
1052 # else
1053 # define wxUSE_UXTHEME_AUTO 0
1054 # endif
1055 # endif /* wxUSE_UXTHEME_AUTO */
1056 # ifndef wxUSE_MS_HTML_HELP
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxUSE_MS_HTML_HELP must be defined."
1059 # else
1060 # define wxUSE_MS_HTML_HELP 0
1061 # endif
1062 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1063 # ifndef wxUSE_DIALUP_MANAGER
1064 # ifdef wxABORT_ON_CONFIG_ERROR
1065 # error "wxUSE_DIALUP_MANAGER must be defined."
1066 # else
1067 # define wxUSE_DIALUP_MANAGER 0
1068 # endif
1069 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1070
1071 # if !wxUSE_DYNAMIC_LOADER
1072 # if wxUSE_MS_HTML_HELP
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1075 # else
1076 # define wxUSE_DYNAMIC_LOADER 1
1077 # endif
1078 # endif
1079 # if wxUSE_DIALUP_MANAGER
1080 # ifdef wxABORT_ON_CONFIG_ERROR
1081 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1082 # else
1083 # define wxUSE_DYNAMIC_LOADER 1
1084 # endif
1085 # endif
1086 # endif /* wxUSE_DYNAMIC_LOADER */
1087 #endif /* wxMSW */
1088
1089 /* wxMAC-specific dependencies */
1090 #ifdef __WXMAC__
1091 # if wxUSE_UNICODE
1092 # if !TARGET_CARBON
1093 # ifdef wxABORT_ON_CONFIG_ERROR
1094 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1095 # else
1096 # define wxUSE_UNICODE 0
1097 # endif
1098 # endif
1099 # endif
1100 #endif /* wxMAC */
1101 /* wxMotif-specific dependencies */
1102 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1103 # undef wxUSE_TAB_DIALOG
1104 # define wxUSE_TAB_DIALOG 1
1105 #endif
1106
1107 /* wxMGL-specific dependencies */
1108 #ifdef __WXMGL__
1109 # if !wxUSE_PALETTE
1110 # error "wxMGL requires wxUSE_PALETTE=1"
1111 # endif
1112 #endif /* wxMGL */
1113
1114 // Hopefully we can emulate these dialogs in due course
1115 #if wxUSE_SMARTPHONE
1116 # ifdef wxUSE_COLOURDLG
1117 # undef wxUSE_COLOURDLG
1118 # define wxUSE_COLOURDLG 0
1119 # endif
1120 #endif /* wxUSE_SMARTPHONE */
1121
1122
1123 /* generic controls dependencies */
1124 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1125 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1126 /* all common controls are needed by these dialogs */
1127 # if !defined(wxUSE_CHOICE) || \
1128 !defined(wxUSE_TEXTCTRL) || \
1129 !defined(wxUSE_BUTTON) || \
1130 !defined(wxUSE_CHECKBOX) || \
1131 !defined(wxUSE_STATTEXT)
1132 # ifdef wxABORT_ON_CONFIG_ERROR
1133 # error "These common controls are needed by common dialogs"
1134 # else
1135 # undef wxUSE_CHOICE
1136 # define wxUSE_CHOICE 1
1137 # undef wxUSE_TEXTCTRL
1138 # define wxUSE_TEXTCTRL 1
1139 # undef wxUSE_BUTTON
1140 # define wxUSE_BUTTON 1
1141 # undef wxUSE_CHECKBOX
1142 # define wxUSE_CHECKBOX 1
1143 # undef wxUSE_STATTEXT
1144 # define wxUSE_STATTEXT 1
1145 # endif
1146 # endif
1147 # endif
1148 #endif /* !wxMSW || wxUniv */
1149
1150 /* common dependencies */
1151 #if wxUSE_CALENDARCTRL
1152 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1153 # ifdef wxABORT_ON_CONFIG_ERROR
1154 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1155 # else
1156 # undef wxUSE_SPINBTN
1157 # undef wxUSE_COMBOBOX
1158 # define wxUSE_SPINBTN 1
1159 # define wxUSE_COMBOBOX 1
1160 # endif
1161 # endif
1162
1163 # if !wxUSE_DATETIME
1164 # ifdef wxABORT_ON_CONFIG_ERROR
1165 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1166 # else
1167 # undef wxUSE_DATETIME
1168 # define wxUSE_DATETIME 1
1169 # endif
1170 # endif
1171 #endif /* wxUSE_CALENDARCTRL */
1172
1173 #if wxUSE_CHECKLISTBOX
1174 # if !wxUSE_LISTBOX
1175 # ifdef wxABORT_ON_CONFIG_ERROR
1176 # error "wxCheckListBox requires wxListBox"
1177 # else
1178 # undef wxUSE_LISTBOX
1179 # define wxUSE_LISTBOX 1
1180 # endif
1181 # endif
1182 #endif /* wxUSE_RADIOBTN */
1183
1184 #if wxUSE_WXHTML_HELP
1185 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "Built in help controller can't be compiled"
1188 # else
1189 # undef wxUSE_HELP
1190 # define wxUSE_HELP 1
1191 # undef wxUSE_HTML
1192 # define wxUSE_HTML 1
1193 # undef wxUSE_COMBOBOX
1194 # define wxUSE_COMBOBOX 1
1195 # undef wxUSE_NOTEBOOK
1196 # define wxUSE_NOTEBOOK 1
1197 # endif
1198 # endif
1199 #endif /* wxUSE_WXHTML_HELP */
1200
1201 #if wxUSE_DOC_VIEW_ARCHITECTURE
1202 # if !wxUSE_MENUS
1203 # ifdef wxABORT_ON_CONFIG_ERROR
1204 # error "DocView requires wxUSE_MENUS"
1205 # else
1206 # undef wxUSE_MENUS
1207 # define wxUSE_MENUS 1
1208 # endif
1209 # endif
1210
1211 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1214 # else
1215 # undef wxUSE_STREAMS
1216 # define wxUSE_STREAMS 1
1217 # endif
1218 # endif
1219 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1220
1221 #if wxUSE_PRINTING_ARCHITECTURE
1222 # if !wxUSE_COMBOBOX
1223 # ifdef wxABORT_ON_CONFIG_ERROR
1224 # error "Print dialog requires wxUSE_COMBOBOX"
1225 # else
1226 # undef wxUSE_COMBOBOX
1227 # define wxUSE_COMBOBOX 1
1228 # endif
1229 # endif
1230 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1231
1232 #if wxUSE_MDI_ARCHITECTURE
1233 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1234 # ifdef wxABORT_ON_CONFIG_ERROR
1235 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1236 # else
1237 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1238 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1239 # endif
1240 # endif
1241 #endif /* wxUSE_MDI_ARCHITECTURE */
1242
1243 #if !wxUSE_FILEDLG
1244 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1245 # ifdef wxABORT_ON_CONFIG_ERROR
1246 # error "wxFileDialog must be compiled as well"
1247 # else
1248 # undef wxUSE_FILEDLG
1249 # define wxUSE_FILEDLG 1
1250 # endif
1251 # endif
1252 #endif /* wxUSE_FILEDLG */
1253
1254 #if !wxUSE_TOOLBAR
1255 # if wxUSE_TOOLBAR_NATIVE
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1258 # else
1259 # undef wxUSE_TOOLBAR_NATIVE
1260 # define wxUSE_TOOLBAR_NATIVE 0
1261 # endif
1262 # endif
1263
1264 # if wxUSE_TOOLBAR_SIMPLE
1265 # ifdef wxABORT_ON_CONFIG_ERROR
1266 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1267 # else
1268 # undef wxUSE_TOOLBAR_SIMPLE
1269 # define wxUSE_TOOLBAR_SIMPLE 0
1270 # endif
1271 # endif
1272 #endif
1273
1274 #if !wxUSE_IMAGLIST
1275 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1276 # ifdef wxABORT_ON_CONFIG_ERROR
1277 # error "wxImageList must be compiled as well"
1278 # else
1279 # undef wxUSE_IMAGLIST
1280 # define wxUSE_IMAGLIST 1
1281 # endif
1282 # endif
1283 #endif /* !wxUSE_IMAGLIST */
1284
1285 #if !wxUSE_MSGDLG
1286 # ifdef wxABORT_ON_CONFIG_ERROR
1287 /* FIXME: should compile without it, of course, but doesn't */
1288 # error "wxMessageBox is always needed"
1289 # else
1290 # undef wxUSE_MSGDLG
1291 # define wxUSE_MSGDLG 1
1292 # endif
1293 #endif
1294
1295 #if wxUSE_RADIOBOX
1296 # if !wxUSE_RADIOBTN || !wxUSE_STATBOX
1297 # ifdef wxABORT_ON_CONFIG_ERROR
1298 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX"
1299 # else
1300 # undef wxUSE_RADIOBTN
1301 # undef wxUSE_STATBOX
1302 # define wxUSE_RADIOBTN 1
1303 # define wxUSE_STATBOX 1
1304 # endif
1305 # endif
1306 #endif /* wxUSE_RADIOBOX */
1307
1308 #if wxUSE_LOGWINDOW
1309 # if !wxUSE_TEXTCTRL
1310 # ifdef wxABORT_ON_CONFIG_ERROR
1311 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1312 # else
1313 # undef wxUSE_TEXTCTRL
1314 # define wxUSE_TEXTCTRL 1
1315 # endif
1316 # endif
1317 #endif /* wxUSE_LOGWINDOW */
1318
1319 #if wxUSE_LOG_DIALOG
1320 # if !wxUSE_LISTCTRL
1321 # ifdef wxABORT_ON_CONFIG_ERROR
1322 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL"
1323 # else
1324 # undef wxUSE_LISTCTRL
1325 # define wxUSE_LISTCTRL 1
1326 # endif
1327 # endif
1328 #endif /* wxUSE_LOG_DIALOG */
1329
1330 /* I wonder if we shouldn't just remove all occurrences of
1331 wxUSE_DYNAMIC_CLASSES from the sources? */
1332 #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
1333 # ifdef wxABORT_ON_CONFIG_ERROR
1334 # error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
1335 # else
1336 # undef wxUSE_DYNAMIC_CLASSES
1337 # define wxUSE_DYNAMIC_CLASSES 1
1338 # endif
1339 #endif /* wxUSE_DYNAMIC_CLASSES */
1340
1341 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "wxClipboard requires wxDataObject"
1344 # else
1345 # undef wxUSE_DATAOBJ
1346 # define wxUSE_DATAOBJ 1
1347 # endif
1348 #endif /* wxUSE_CLIPBOARD */
1349
1350 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1351 # ifdef wxABORT_ON_CONFIG_ERROR
1352 # error "wxr resources require PrologIO"
1353 # else
1354 # undef wxUSE_PROLOGIO
1355 # define wxUSE_PROLOGIO 1
1356 # endif
1357 #endif /* wxUSE_WX_RESOURCES */
1358
1359 #endif /* wxUSE_GUI */
1360