]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13 #ifndef _WX_CHKCONF_H_
14 #define _WX_CHKCONF_H_
17 This file has the following sections:
18 1. checks that all wxUSE_XXX symbols we use are defined
19 a) first the non-GUI ones
20 b) then the GUI-only ones
21 2. platform-specific checks done in the platform headers
22 3. generic consistency checks
23 a) first the non-GUI ones
24 b) then the GUI-only ones
28 this global setting determines what should we do if the setting FOO
29 requires BAR and BAR is not set: we can either silently unset FOO as well
30 (do this if you're trying to build the smallest possible library) or give an
31 error and abort (default as leads to least surprizing behaviour)
33 #define wxABORT_ON_CONFIG_ERROR
39 /* GUI build by default */
40 #if !defined(wxUSE_GUI)
42 #endif /* !defined(wxUSE_GUI) */
45 If we're compiling without support for threads/exceptions we have to
46 disable the corresponding features.
50 # define wxUSE_THREADS 0
51 #endif /* wxNO_THREADS */
53 #ifdef wxNO_EXCEPTIONS
54 # undef wxUSE_EXCEPTIONS
55 # define wxUSE_EXCEPTIONS 0
56 #endif /* wxNO_EXCEPTIONS */
58 /* we also must disable exceptions if compiler doesn't support them */
59 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
60 # undef wxUSE_EXCEPTIONS
61 # define wxUSE_EXCEPTIONS 0
62 #endif /* VC++ without exceptions support */
66 Section 1a: tests for non GUI features.
68 please keep the options in alphabetical order!
71 #ifndef wxUSE_CONSOLE_EVENTLOOP
72 # ifdef wxABORT_ON_CONFIG_ERROR
73 # error "wxUSE_CONSOLE_EVENTLOOP must be defined."
75 # define wxUSE_CONSOLE_EVENTLOOP 0
77 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
79 #ifndef wxUSE_DYNLIB_CLASS
80 # ifdef wxABORT_ON_CONFIG_ERROR
81 # error "wxUSE_DYNLIB_CLASS must be defined."
83 # define wxUSE_DYNLIB_CLASS 0
85 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
87 #ifndef wxUSE_EXCEPTIONS
88 # ifdef wxABORT_ON_CONFIG_ERROR
89 # error "wxUSE_EXCEPTIONS must be defined."
91 # define wxUSE_EXCEPTIONS 0
93 #endif /* !defined(wxUSE_EXCEPTIONS) */
95 #ifndef wxUSE_FILESYSTEM
96 # ifdef wxABORT_ON_CONFIG_ERROR
97 # error "wxUSE_FILESYSTEM must be defined."
99 # define wxUSE_FILESYSTEM 0
101 #endif /* !defined(wxUSE_FILESYSTEM) */
103 #ifndef wxUSE_FS_ARCHIVE
104 # ifdef wxABORT_ON_CONFIG_ERROR
105 # error "wxUSE_FS_ARCHIVE must be defined."
107 # define wxUSE_FS_ARCHIVE 0
109 #endif /* !defined(wxUSE_FS_ARCHIVE) */
111 /* don't give an error about this one yet, it's not fully implemented */
112 #ifndef wxUSE_FSVOLUME
113 # define wxUSE_FSVOLUME 0
114 #endif /* !defined(wxUSE_FSVOLUME) */
116 #ifndef wxUSE_DYNAMIC_LOADER
117 # ifdef wxABORT_ON_CONFIG_ERROR
118 # error "wxUSE_DYNAMIC_LOADER must be defined."
120 # define wxUSE_DYNAMIC_LOADER 0
122 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_INTL must be defined."
128 # define wxUSE_INTL 0
130 #endif /* !defined(wxUSE_INTL) */
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_LOG must be defined."
138 #endif /* !defined(wxUSE_LOG) */
140 #ifndef wxUSE_LONGLONG
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_LONGLONG must be defined."
144 # define wxUSE_LONGLONG 0
146 #endif /* !defined(wxUSE_LONGLONG) */
148 #ifndef wxUSE_MIMETYPE
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_MIMETYPE must be defined."
152 # define wxUSE_MIMETYPE 0
154 #endif /* !defined(wxUSE_MIMETYPE) */
156 #ifndef wxUSE_ON_FATAL_EXCEPTION
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
160 # define wxUSE_ON_FATAL_EXCEPTION 0
162 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
164 #ifndef wxUSE_PRINTF_POS_PARAMS
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
168 # define wxUSE_PRINTF_POS_PARAMS 0
170 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
172 #ifndef wxUSE_PROTOCOL
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_PROTOCOL must be defined."
176 # define wxUSE_PROTOCOL 0
178 #endif /* !defined(wxUSE_PROTOCOL) */
180 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
182 # undef wxUSE_PROTOCOL_HTTP
183 # undef wxUSE_PROTOCOL_FTP
184 # undef wxUSE_PROTOCOL_FILE
185 # define wxUSE_PROTOCOL_HTTP 0
186 # define wxUSE_PROTOCOL_FTP 0
187 # define wxUSE_PROTOCOL_FILE 0
188 #endif /* wxUSE_PROTOCOL */
190 #ifndef wxUSE_PROTOCOL_HTTP
191 # ifdef wxABORT_ON_CONFIG_ERROR
192 # error "wxUSE_PROTOCOL_HTTP must be defined."
194 # define wxUSE_PROTOCOL_HTTP 0
196 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
198 #ifndef wxUSE_PROTOCOL_FTP
199 # ifdef wxABORT_ON_CONFIG_ERROR
200 # error "wxUSE_PROTOCOL_FTP must be defined."
202 # define wxUSE_PROTOCOL_FTP 0
204 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
206 #ifndef wxUSE_PROTOCOL_FILE
207 # ifdef wxABORT_ON_CONFIG_ERROR
208 # error "wxUSE_PROTOCOL_FILE must be defined."
210 # define wxUSE_PROTOCOL_FILE 0
212 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
215 # ifdef wxABORT_ON_CONFIG_ERROR
216 # error "wxUSE_REGEX must be defined."
218 # define wxUSE_REGEX 0
220 #endif /* !defined(wxUSE_REGEX) */
222 #ifndef wxUSE_STDPATHS
223 # ifdef wxABORT_ON_CONFIG_ERROR
224 # error "wxUSE_STDPATHS must be defined."
226 # define wxUSE_STDPATHS 1
228 #endif /* !defined(wxUSE_STDPATHS) */
231 # ifdef wxABORT_ON_CONFIG_ERROR
232 # error "wxUSE_XML must be defined."
236 #endif /* !defined(wxUSE_XML) */
238 #ifndef wxUSE_SOCKETS
239 # ifdef wxABORT_ON_CONFIG_ERROR
240 # error "wxUSE_SOCKETS must be defined."
242 # define wxUSE_SOCKETS 0
244 #endif /* !defined(wxUSE_SOCKETS) */
246 #ifndef wxUSE_STREAMS
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_STREAMS must be defined."
250 # define wxUSE_STREAMS 0
252 #endif /* !defined(wxUSE_STREAMS) */
254 #ifndef wxUSE_STOPWATCH
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_STOPWATCH must be defined."
258 # define wxUSE_STOPWATCH 0
260 #endif /* !defined(wxUSE_STOPWATCH) */
262 #ifndef wxUSE_TEXTBUFFER
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_TEXTBUFFER must be defined."
266 # define wxUSE_TEXTBUFFER 0
268 #endif /* !defined(wxUSE_TEXTBUFFER) */
270 #ifndef wxUSE_TEXTFILE
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_TEXTFILE must be defined."
274 # define wxUSE_TEXTFILE 0
276 #endif /* !defined(wxUSE_TEXTFILE) */
278 #ifndef wxUSE_UNICODE
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_UNICODE must be defined."
282 # define wxUSE_UNICODE 0
284 #endif /* !defined(wxUSE_UNICODE) */
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_URL must be defined."
292 #endif /* !defined(wxUSE_URL) */
294 #ifndef wxUSE_VARIANT
295 # ifdef wxABORT_ON_CONFIG_ERROR
296 # error "wxUSE_VARIANT must be defined."
298 # define wxUSE_VARIANT 0
300 #endif /* wxUSE_VARIANT */
302 #ifndef wxUSE_XLOCALE
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_XLOCALE must be defined."
306 # define wxUSE_XLOCALE 0
308 #endif /* !defined(wxUSE_XLOCALE) */
311 Section 1b: all these tests are for GUI only.
313 please keep the options in alphabetical order!
318 all of the settings tested below must be defined or we'd get an error from
319 preprocessor about invalid integer expression
322 #ifndef wxUSE_ABOUTDLG
323 # ifdef wxABORT_ON_CONFIG_ERROR
324 # error "wxUSE_ABOUTDLG must be defined."
326 # define wxUSE_ABOUTDLG 0
328 #endif /* !defined(wxUSE_ABOUTDLG) */
331 # ifdef wxABORT_ON_CONFIG_ERROR
332 # error "wxUSE_ACCEL must be defined."
334 # define wxUSE_ACCEL 0
336 #endif /* !defined(wxUSE_ACCEL) */
338 #ifndef wxUSE_ACCESSIBILITY
339 # ifdef wxABORT_ON_CONFIG_ERROR
340 # error "wxUSE_ACCESSIBILITY must be defined."
342 # define wxUSE_ACCESSIBILITY 0
344 #endif /* !defined(wxUSE_ACCESSIBILITY) */
346 #ifndef wxUSE_ANIMATIONCTRL
347 # ifdef wxABORT_ON_CONFIG_ERROR
348 # error "wxUSE_ANIMATIONCTRL must be defined."
350 # define wxUSE_ANIMATIONCTRL 0
352 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
354 #ifndef wxUSE_AUTOID_MANAGEMENT
355 # ifdef wxABORT_ON_CONFIG_ERROR
356 # error "wxUSE_AUTOID_MANAGEMENT must be defined."
358 # define wxUSE_AUTOID_MANAGEMENT 0
360 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
362 #ifndef wxUSE_BITMAPCOMBOBOX
363 # ifdef wxABORT_ON_CONFIG_ERROR
364 # error "wxUSE_BITMAPCOMBOBOX must be defined."
366 # define wxUSE_BITMAPCOMBOBOX 0
368 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
370 #ifndef wxUSE_BMPBUTTON
371 # ifdef wxABORT_ON_CONFIG_ERROR
372 # error "wxUSE_BMPBUTTON must be defined."
374 # define wxUSE_BMPBUTTON 0
376 #endif /* !defined(wxUSE_BMPBUTTON) */
379 # ifdef wxABORT_ON_CONFIG_ERROR
380 # error "wxUSE_BUTTON must be defined."
382 # define wxUSE_BUTTON 0
384 #endif /* !defined(wxUSE_BUTTON) */
386 #ifndef wxUSE_CALENDARCTRL
387 # ifdef wxABORT_ON_CONFIG_ERROR
388 # error "wxUSE_CALENDARCTRL must be defined."
390 # define wxUSE_CALENDARCTRL 0
392 #endif /* !defined(wxUSE_CALENDARCTRL) */
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_CARET must be defined."
398 # define wxUSE_CARET 0
400 #endif /* !defined(wxUSE_CARET) */
402 #ifndef wxUSE_CHECKBOX
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_CHECKBOX must be defined."
406 # define wxUSE_CHECKBOX 0
408 #endif /* !defined(wxUSE_CHECKBOX) */
410 #ifndef wxUSE_CHECKLISTBOX
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_CHECKLISTBOX must be defined."
414 # define wxUSE_CHECKLISTBOX 0
416 #endif /* !defined(wxUSE_CHECKLISTBOX) */
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_CHOICE must be defined."
422 # define wxUSE_CHOICE 0
424 #endif /* !defined(wxUSE_CHOICE) */
426 #ifndef wxUSE_CHOICEBOOK
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_CHOICEBOOK must be defined."
430 # define wxUSE_CHOICEBOOK 0
432 #endif /* !defined(wxUSE_CHOICEBOOK) */
434 #ifndef wxUSE_CHOICEDLG
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_CHOICEDLG must be defined."
438 # define wxUSE_CHOICEDLG 0
440 #endif /* !defined(wxUSE_CHOICEDLG) */
442 #ifndef wxUSE_CLIPBOARD
443 # ifdef wxABORT_ON_CONFIG_ERROR
444 # error "wxUSE_CLIPBOARD must be defined."
446 # define wxUSE_CLIPBOARD 0
448 #endif /* !defined(wxUSE_CLIPBOARD) */
450 #ifndef wxUSE_COLLPANE
451 # ifdef wxABORT_ON_CONFIG_ERROR
452 # error "wxUSE_COLLPANE must be defined."
454 # define wxUSE_COLLPANE 0
456 #endif /* !defined(wxUSE_COLLPANE) */
458 #ifndef wxUSE_COLOURDLG
459 # ifdef wxABORT_ON_CONFIG_ERROR
460 # error "wxUSE_COLOURDLG must be defined."
462 # define wxUSE_COLOURDLG 0
464 #endif /* !defined(wxUSE_COLOURDLG) */
466 #ifndef wxUSE_COLOURPICKERCTRL
467 # ifdef wxABORT_ON_CONFIG_ERROR
468 # error "wxUSE_COLOURPICKERCTRL must be defined."
470 # define wxUSE_COLOURPICKERCTRL 0
472 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
474 #ifndef wxUSE_COMBOBOX
475 # ifdef wxABORT_ON_CONFIG_ERROR
476 # error "wxUSE_COMBOBOX must be defined."
478 # define wxUSE_COMBOBOX 0
480 #endif /* !defined(wxUSE_COMBOBOX) */
482 #ifndef wxUSE_COMBOCTRL
483 # ifdef wxABORT_ON_CONFIG_ERROR
484 # error "wxUSE_COMBOCTRL must be defined."
486 # define wxUSE_COMBOCTRL 0
488 #endif /* !defined(wxUSE_COMBOCTRL) */
490 #ifndef wxUSE_DATAOBJ
491 # ifdef wxABORT_ON_CONFIG_ERROR
492 # error "wxUSE_DATAOBJ must be defined."
494 # define wxUSE_DATAOBJ 0
496 #endif /* !defined(wxUSE_DATAOBJ) */
498 #ifndef wxUSE_DATAVIEWCTRL
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_DATAVIEWCTRL must be defined."
502 # define wxUSE_DATAVIEWCTRL 0
504 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
506 #ifndef wxUSE_DATEPICKCTRL
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_DATEPICKCTRL must be defined."
510 # define wxUSE_DATEPICKCTRL 0
512 #endif /* !defined(wxUSE_DATEPICKCTRL) */
514 #ifndef wxUSE_DIRPICKERCTRL
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_DIRPICKERCTRL must be defined."
518 # define wxUSE_DIRPICKERCTRL 0
520 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
522 #ifndef wxUSE_DISPLAY
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_DISPLAY must be defined."
526 # define wxUSE_DISPLAY 0
528 #endif /* !defined(wxUSE_DISPLAY) */
530 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
534 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
536 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
538 #ifndef wxUSE_FILECTRL
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_FILECTRL must be defined."
542 # define wxUSE_FILECTRL 0
544 #endif /* !defined(wxUSE_FILECTRL) */
546 #ifndef wxUSE_FILEDLG
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_FILEDLG must be defined."
550 # define wxUSE_FILEDLG 0
552 #endif /* !defined(wxUSE_FILEDLG) */
554 #ifndef wxUSE_FILEPICKERCTRL
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_FILEPICKERCTRL must be defined."
558 # define wxUSE_FILEPICKERCTRL 0
560 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
562 #ifndef wxUSE_FONTDLG
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_FONTDLG must be defined."
566 # define wxUSE_FONTDLG 0
568 #endif /* !defined(wxUSE_FONTDLG) */
570 #ifndef wxUSE_FONTMAP
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_FONTMAP must be defined."
574 # define wxUSE_FONTMAP 0
576 #endif /* !defined(wxUSE_FONTMAP) */
578 #ifndef wxUSE_FONTPICKERCTRL
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_FONTPICKERCTRL must be defined."
582 # define wxUSE_FONTPICKERCTRL 0
584 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_GAUGE must be defined."
590 # define wxUSE_GAUGE 0
592 #endif /* !defined(wxUSE_GAUGE) */
594 #ifndef wxUSE_GRAPHICS_CONTEXT
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
598 # define wxUSE_GRAPHICS_CONTEXT 0
600 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
604 # ifdef wxABORT_ON_CONFIG_ERROR
605 # error "wxUSE_GRID must be defined."
607 # define wxUSE_GRID 0
609 #endif /* !defined(wxUSE_GRID) */
612 # ifdef wxABORT_ON_CONFIG_ERROR
613 # error "wxUSE_HELP must be defined."
615 # define wxUSE_HELP 0
617 #endif /* !defined(wxUSE_HELP) */
619 #ifndef wxUSE_HYPERLINKCTRL
620 # ifdef wxABORT_ON_CONFIG_ERROR
621 # error "wxUSE_HYPERLINKCTRL must be defined."
623 # define wxUSE_HYPERLINKCTRL 0
625 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
628 # ifdef wxABORT_ON_CONFIG_ERROR
629 # error "wxUSE_HTML must be defined."
631 # define wxUSE_HTML 0
633 #endif /* !defined(wxUSE_HTML) */
635 #ifndef wxUSE_LIBMSPACK
636 # if !defined(__UNIX__) || defined(__WXPALMOS__)
637 /* set to 0 on platforms that don't have libmspack */
638 # define wxUSE_LIBMSPACK 0
640 # ifdef wxABORT_ON_CONFIG_ERROR
641 # error "wxUSE_LIBMSPACK must be defined."
643 # define wxUSE_LIBMSPACK 0
646 #endif /* !defined(wxUSE_LIBMSPACK) */
648 #ifndef wxUSE_ICO_CUR
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_ICO_CUR must be defined."
652 # define wxUSE_ICO_CUR 0
654 #endif /* !defined(wxUSE_ICO_CUR) */
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_IFF must be defined."
662 #endif /* !defined(wxUSE_IFF) */
664 #ifndef wxUSE_IMAGLIST
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_IMAGLIST must be defined."
668 # define wxUSE_IMAGLIST 0
670 #endif /* !defined(wxUSE_IMAGLIST) */
672 #ifndef wxUSE_JOYSTICK
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_JOYSTICK must be defined."
676 # define wxUSE_JOYSTICK 0
678 #endif /* !defined(wxUSE_JOYSTICK) */
680 #ifndef wxUSE_LISTBOOK
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_LISTBOOK must be defined."
684 # define wxUSE_LISTBOOK 0
686 #endif /* !defined(wxUSE_LISTBOOK) */
688 #ifndef wxUSE_LISTBOX
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_LISTBOX must be defined."
692 # define wxUSE_LISTBOX 0
694 #endif /* !defined(wxUSE_LISTBOX) */
696 #ifndef wxUSE_LISTCTRL
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_LISTCTRL must be defined."
700 # define wxUSE_LISTCTRL 0
702 #endif /* !defined(wxUSE_LISTCTRL) */
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_LOGGUI must be defined."
708 # define wxUSE_LOGGUI 0
710 #endif /* !defined(wxUSE_LOGGUI) */
712 #ifndef wxUSE_LOGWINDOW
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_LOGWINDOW must be defined."
716 # define wxUSE_LOGWINDOW 0
718 #endif /* !defined(wxUSE_LOGWINDOW) */
720 #ifndef wxUSE_LOG_DIALOG
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_LOG_DIALOG must be defined."
724 # define wxUSE_LOG_DIALOG 0
726 #endif /* !defined(wxUSE_LOG_DIALOG) */
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_MDI must be defined."
734 #endif /* !defined(wxUSE_MDI) */
736 #ifndef wxUSE_MDI_ARCHITECTURE
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_MDI_ARCHITECTURE must be defined."
740 # define wxUSE_MDI_ARCHITECTURE 0
742 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_MENUS must be defined."
748 # define wxUSE_MENUS 0
750 #endif /* !defined(wxUSE_MENUS) */
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_MSGDLG must be defined."
756 # define wxUSE_MSGDLG 0
758 #endif /* !defined(wxUSE_MSGDLG) */
760 #ifndef wxUSE_NOTEBOOK
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_NOTEBOOK must be defined."
764 # define wxUSE_NOTEBOOK 0
766 #endif /* !defined(wxUSE_NOTEBOOK) */
768 #ifndef wxUSE_NOTIFICATION_MESSAGE
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_NOTIFICATION_MESSAGE must be defined."
772 # define wxUSE_NOTIFICATION_MESSAGE 0
774 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
776 #ifndef wxUSE_ODCOMBOBOX
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_ODCOMBOBOX must be defined."
780 # define wxUSE_ODCOMBOBOX 0
782 #endif /* !defined(wxUSE_ODCOMBOBOX) */
784 #ifndef wxUSE_PALETTE
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_PALETTE must be defined."
788 # define wxUSE_PALETTE 0
790 #endif /* !defined(wxUSE_PALETTE) */
792 #ifndef wxUSE_POPUPWIN
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_POPUPWIN must be defined."
796 # define wxUSE_POPUPWIN 0
798 #endif /* !defined(wxUSE_POPUPWIN) */
800 #ifndef wxUSE_PRINTING_ARCHITECTURE
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
804 # define wxUSE_PRINTING_ARCHITECTURE 0
806 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
808 #ifndef wxUSE_RADIOBOX
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_RADIOBOX must be defined."
812 # define wxUSE_RADIOBOX 0
814 #endif /* !defined(wxUSE_RADIOBOX) */
816 #ifndef wxUSE_RADIOBTN
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_RADIOBTN must be defined."
820 # define wxUSE_RADIOBTN 0
822 #endif /* !defined(wxUSE_RADIOBTN) */
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_SASH must be defined."
828 # define wxUSE_SASH 0
830 #endif /* !defined(wxUSE_SASH) */
832 #ifndef wxUSE_SCROLLBAR
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_SCROLLBAR must be defined."
836 # define wxUSE_SCROLLBAR 0
838 #endif /* !defined(wxUSE_SCROLLBAR) */
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_SLIDER must be defined."
844 # define wxUSE_SLIDER 0
846 #endif /* !defined(wxUSE_SLIDER) */
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_SOUND must be defined."
852 # define wxUSE_SOUND 0
854 #endif /* !defined(wxUSE_SOUND) */
856 #ifndef wxUSE_SPINBTN
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_SPINBTN must be defined."
860 # define wxUSE_SPINBTN 0
862 #endif /* !defined(wxUSE_SPINBTN) */
864 #ifndef wxUSE_SPINCTRL
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_SPINCTRL must be defined."
868 # define wxUSE_SPINCTRL 0
870 #endif /* !defined(wxUSE_SPINCTRL) */
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_SPLASH must be defined."
876 # define wxUSE_SPLASH 0
878 #endif /* !defined(wxUSE_SPLASH) */
880 #ifndef wxUSE_SPLITTER
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_SPLITTER must be defined."
884 # define wxUSE_SPLITTER 0
886 #endif /* !defined(wxUSE_SPLITTER) */
888 #ifndef wxUSE_STATBMP
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_STATBMP must be defined."
892 # define wxUSE_STATBMP 0
894 #endif /* !defined(wxUSE_STATBMP) */
896 #ifndef wxUSE_STATBOX
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_STATBOX must be defined."
900 # define wxUSE_STATBOX 0
902 #endif /* !defined(wxUSE_STATBOX) */
904 #ifndef wxUSE_STATLINE
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_STATLINE must be defined."
908 # define wxUSE_STATLINE 0
910 #endif /* !defined(wxUSE_STATLINE) */
912 #ifndef wxUSE_STATTEXT
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_STATTEXT must be defined."
916 # define wxUSE_STATTEXT 0
918 #endif /* !defined(wxUSE_STATTEXT) */
920 #ifndef wxUSE_STATUSBAR
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_STATUSBAR must be defined."
924 # define wxUSE_STATUSBAR 0
926 #endif /* !defined(wxUSE_STATUSBAR) */
928 #ifndef wxUSE_TAB_DIALOG
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_TAB_DIALOG must be defined."
932 # define wxUSE_TAB_DIALOG 0
934 #endif /* !defined(wxUSE_TAB_DIALOG) */
936 #ifndef wxUSE_TASKBARICON
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_TASKBARICON must be defined."
940 # define wxUSE_TASKBARICON 0
942 #endif /* !defined(wxUSE_TASKBARICON) */
944 #ifndef wxUSE_TEXTCTRL
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_TEXTCTRL must be defined."
948 # define wxUSE_TEXTCTRL 0
950 #endif /* !defined(wxUSE_TEXTCTRL) */
952 #ifndef wxUSE_TIPWINDOW
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_TIPWINDOW must be defined."
956 # define wxUSE_TIPWINDOW 0
958 #endif /* !defined(wxUSE_TIPWINDOW) */
960 #ifndef wxUSE_TOOLBAR
961 # ifdef wxABORT_ON_CONFIG_ERROR
962 # error "wxUSE_TOOLBAR must be defined."
964 # define wxUSE_TOOLBAR 0
966 #endif /* !defined(wxUSE_TOOLBAR) */
968 #ifndef wxUSE_TOOLTIPS
969 # ifdef wxABORT_ON_CONFIG_ERROR
970 # error "wxUSE_TOOLTIPS must be defined."
972 # define wxUSE_TOOLTIPS 0
974 #endif /* !defined(wxUSE_TOOLTIPS) */
976 #ifndef wxUSE_TREECTRL
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "wxUSE_TREECTRL must be defined."
980 # define wxUSE_TREECTRL 0
982 #endif /* !defined(wxUSE_TREECTRL) */
984 #ifndef wxUSE_VALIDATORS
985 # ifdef wxABORT_ON_CONFIG_ERROR
986 # error "wxUSE_VALIDATORS must be defined."
988 # define wxUSE_VALIDATORS 0
990 #endif /* !defined(wxUSE_VALIDATORS) */
992 #ifndef wxUSE_WXHTML_HELP
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxUSE_WXHTML_HELP must be defined."
996 # define wxUSE_WXHTML_HELP 0
998 #endif /* !defined(wxUSE_WXHTML_HELP) */
1001 # ifdef wxABORT_ON_CONFIG_ERROR
1002 # error "wxUSE_XRC must be defined."
1004 # define wxUSE_XRC 0
1006 #endif /* !defined(wxUSE_XRC) */
1008 #endif /* wxUSE_GUI */
1011 Section 2: platform-specific checks.
1013 This must be done after checking that everything is defined as the platform
1014 checks use wxUSE_XXX symbols in #if tests.
1017 #if defined(__WXPALMOS__)
1018 # include "wx/palmos/chkconf.h"
1019 #elif defined(__WXWINCE__)
1020 # include "wx/msw/wince/chkconf.h"
1021 #elif defined(__WXMSW__)
1022 # include "wx/msw/chkconf.h"
1023 #elif defined(__WXGTK__)
1024 # include "wx/gtk/chkconf.h"
1025 #elif defined(__WXMAC__)
1026 # include "wx/osx/chkconf.h"
1027 #elif defined(__OS2__)
1028 # include "wx/os2/chkconf.h"
1029 #elif defined(__WXMGL__)
1030 # include "wx/mgl/chkconf.h"
1031 #elif defined(__WXDFB__)
1032 # include "wx/dfb/chkconf.h"
1033 #elif defined(__WXMOTIF__)
1034 # include "wx/motif/chkconf.h"
1035 #elif defined(__WXX11__)
1036 # include "wx/x11/chkconf.h"
1040 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1041 there if we're building wxMSW.
1043 #if defined(__UNIX__) && !defined(__WXMSW__)
1044 # include "wx/unix/chkconf.h"
1047 #ifdef __WXUNIVERSAL__
1048 # include "wx/univ/chkconf.h"
1052 Section 3a: check consistency of the non-GUI settings.
1055 #if WXWIN_COMPATIBILITY_2_6
1056 # if !WXWIN_COMPATIBILITY_2_8
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "2.6.X compatibility requires 2.8.X compatibility"
1060 # undef WXWIN_COMPATIBILITY_2_8
1061 # define WXWIN_COMPATIBILITY_2_8 1
1064 #endif /* WXWIN_COMPATIBILITY_2_6 */
1066 #if wxUSE_ARCHIVE_STREAMS
1067 # if !wxUSE_DATETIME
1068 # ifdef wxABORT_ON_CONFIG_ERROR
1069 # error "wxArchive requires wxUSE_DATETIME"
1071 # undef wxUSE_ARCHIVE_STREAMS
1072 # define wxUSE_ARCHIVE_STREAMS 0
1075 #endif /* wxUSE_ARCHIVE_STREAMS */
1077 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1078 # if !wxUSE_PROTOCOL
1079 # ifdef wxABORT_ON_CONFIG_ERROR
1080 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1082 # undef wxUSE_PROTOCOL
1083 # define wxUSE_PROTOCOL 1
1086 #endif /* wxUSE_PROTOCOL_XXX */
1089 # if !wxUSE_PROTOCOL
1090 # ifdef wxABORT_ON_CONFIG_ERROR
1091 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1093 # undef wxUSE_PROTOCOL
1094 # define wxUSE_PROTOCOL 1
1097 #endif /* wxUSE_URL */
1101 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1102 # ifdef wxABORT_ON_CONFIG_ERROR
1103 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1105 # undef wxUSE_SOCKETS
1106 # define wxUSE_SOCKETS 1
1112 # ifdef wxABORT_ON_CONFIG_ERROR
1113 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1115 # undef wxUSE_STREAMS
1116 # define wxUSE_STREAMS 1
1119 #endif /* wxUSE_PROTOCOL */
1121 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1123 # if !wxUSE_FILESYSTEM
1124 # ifdef wxABORT_ON_CONFIG_ERROR
1125 # error "wxHTML requires wxFileSystem"
1127 # undef wxUSE_FILESYSTEM
1128 # define wxUSE_FILESYSTEM 1
1131 #endif /* wxUSE_HTML */
1133 #if wxUSE_FS_ARCHIVE
1134 # if !wxUSE_FILESYSTEM
1135 # ifdef wxABORT_ON_CONFIG_ERROR
1136 # error "wxArchiveFSHandler requires wxFileSystem"
1138 # undef wxUSE_FILESYSTEM
1139 # define wxUSE_FILESYSTEM 1
1142 # if !wxUSE_ARCHIVE_STREAMS
1143 # ifdef wxABORT_ON_CONFIG_ERROR
1144 # error "wxArchiveFSHandler requires wxArchive"
1146 # undef wxUSE_ARCHIVE_STREAMS
1147 # define wxUSE_ARCHIVE_STREAMS 1
1150 #endif /* wxUSE_FS_ARCHIVE */
1152 #if wxUSE_FILESYSTEM
1154 # ifdef wxABORT_ON_CONFIG_ERROR
1155 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1157 # undef wxUSE_STREAMS
1158 # define wxUSE_STREAMS 1
1161 # if !wxUSE_FILE && !wxUSE_FFILE
1162 # ifdef wxABORT_ON_CONFIG_ERROR
1163 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1166 # define wxUSE_FILE 1
1168 # define wxUSE_FFILE 1
1171 #endif /* wxUSE_FILESYSTEM */
1174 # if !wxUSE_PROTOCOL
1175 # ifdef wxABORT_ON_CONFIG_ERROR
1176 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1178 # undef wxUSE_PROTOCOL
1179 # define wxUSE_PROTOCOL 1
1182 #endif /* wxUSE_FS_INET */
1184 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1185 # if !wxUSE_LONGLONG
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1189 # undef wxUSE_LONGLONG
1190 # define wxUSE_LONGLONG 1
1193 #endif /* wxUSE_STOPWATCH */
1195 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1196 # ifdef wxABORT_ON_CONFIG_ERROR
1197 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1199 # undef wxUSE_TEXTFILE
1200 # define wxUSE_TEXTFILE 1
1202 #endif /* wxUSE_MIMETYPE */
1204 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1205 # ifdef wxABORT_ON_CONFIG_ERROR
1206 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1208 # undef wxUSE_TEXTBUFFER
1209 # define wxUSE_TEXTBUFFER 1
1211 #endif /* wxUSE_TEXTFILE */
1213 #if wxUSE_TEXTFILE && !wxUSE_FILE
1214 # ifdef wxABORT_ON_CONFIG_ERROR
1215 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1218 # define wxUSE_FILE 1
1220 #endif /* wxUSE_TEXTFILE */
1222 #if wxUSE_XML && !wxUSE_WCHAR_T
1223 # ifdef wxABORT_ON_CONFIG_ERROR
1224 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1227 # define wxUSE_XML 0
1229 #endif /* wxUSE_XML */
1231 #if !wxUSE_DYNLIB_CLASS
1232 # if wxUSE_DYNAMIC_LOADER
1233 # ifdef wxABORT_ON_CONFIG_ERROR
1234 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1236 # define wxUSE_DYNLIB_CLASS 1
1239 #endif /* wxUSE_DYNLIB_CLASS */
1243 # ifdef wxABORT_ON_CONFIG_ERROR
1244 # error "wxZip requires wxZlib"
1247 # define wxUSE_ZLIB 1
1250 # if !wxUSE_ARCHIVE_STREAMS
1251 # ifdef wxABORT_ON_CONFIG_ERROR
1252 # error "wxZip requires wxArchive"
1254 # undef wxUSE_ARCHIVE_STREAMS
1255 # define wxUSE_ARCHIVE_STREAMS 1
1258 #endif /* wxUSE_ZIPSTREAM */
1261 # if !wxUSE_ARCHIVE_STREAMS
1262 # ifdef wxABORT_ON_CONFIG_ERROR
1263 # error "wxTar requires wxArchive"
1265 # undef wxUSE_ARCHIVE_STREAMS
1266 # define wxUSE_ARCHIVE_STREAMS 1
1269 #endif /* wxUSE_TARSTREAM */
1272 Section 3b: the tests for the GUI settings only.
1276 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__)
1277 # ifdef wxABORT_ON_CONFIG_ERROR
1278 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1280 # undef wxUSE_ACCESSIBILITY
1281 # define wxUSE_ACCESSIBILITY 0
1283 #endif /* wxUSE_ACCESSIBILITY */
1285 #if wxUSE_BUTTON || \
1286 wxUSE_CALENDARCTRL || \
1289 wxUSE_BMPBUTTON || \
1291 wxUSE_CHECKLISTBOX || \
1300 wxUSE_SCROLLBAR || \
1308 wxUSE_STATUSBAR || \
1312 # if !wxUSE_CONTROLS
1313 # ifdef wxABORT_ON_CONFIG_ERROR
1314 # error "wxUSE_CONTROLS unset but some controls used"
1316 # undef wxUSE_CONTROLS
1317 # define wxUSE_CONTROLS 1
1320 #endif /* controls */
1324 # ifdef wxABORT_ON_CONFIG_ERROR
1325 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1327 # undef wxUSE_BUTTON
1328 # define wxUSE_BUTTON 1
1331 #endif /* wxUSE_BMPBUTTON */
1334 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1337 #ifdef wxUSE_BOOKCTRL
1338 # ifdef wxABORT_ON_CONFIG_ERROR
1339 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1341 # undef wxUSE_BOOKCTRL
1345 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1347 wxUSE_CHOICEBOOK || \
1352 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1356 # undef wxUSE_COLLPANE
1357 # define wxUSE_COLLPANE 0
1360 #endif /* wxUSE_COLLPANE */
1363 # if !wxUSE_LISTCTRL
1364 # ifdef wxABORT_ON_CONFIG_ERROR
1365 # error "wxListbook requires wxListCtrl"
1367 # undef wxUSE_LISTCTRL
1368 # define wxUSE_LISTCTRL 1
1371 #endif /* wxUSE_LISTBOOK */
1373 #if wxUSE_CHOICEBOOK
1375 # ifdef wxABORT_ON_CONFIG_ERROR
1376 # error "wxChoicebook requires wxChoice"
1378 # undef wxUSE_CHOICE
1379 # define wxUSE_CHOICE 1
1382 #endif /* wxUSE_CHOICEBOOK */
1386 # ifdef wxABORT_ON_CONFIG_ERROR
1387 # error "wxToolbook requires wxToolBar"
1389 # undef wxUSE_TOOLBAR
1390 # define wxUSE_TOOLBAR 1
1393 #endif /* wxUSE_TOOLBOOK */
1395 #if !wxUSE_ODCOMBOBOX
1396 # if wxUSE_BITMAPCOMBOBOX
1397 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1399 # undef wxUSE_BITMAPCOMBOBOX
1400 # define wxUSE_BITMAPCOMBOBOX 0
1402 #endif /* !wxUSE_ODCOMBOBOX */
1404 /* don't attempt to use native status bar on the platforms not having it */
1405 #ifndef wxUSE_NATIVE_STATUSBAR
1406 # define wxUSE_NATIVE_STATUSBAR 0
1407 #elif wxUSE_NATIVE_STATUSBAR
1408 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1409 defined(__WXMAC__) || \
1410 defined(__WXPALMOS__) )
1411 # undef wxUSE_NATIVE_STATUSBAR
1412 # define wxUSE_NATIVE_STATUSBAR 0
1416 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1417 # ifdef wxABORT_ON_CONFIG_ERROR
1418 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1420 # undef wxUSE_GRAPHICS_CONTEXT
1421 # define wxUSE_GRAPHICS_CONTEXT 0
1423 #endif /* wxUSE_GRAPHICS_CONTEXT */
1426 /* generic controls dependencies */
1427 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1428 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1429 /* all common controls are needed by these dialogs */
1430 # if !defined(wxUSE_CHOICE) || \
1431 !defined(wxUSE_TEXTCTRL) || \
1432 !defined(wxUSE_BUTTON) || \
1433 !defined(wxUSE_CHECKBOX) || \
1434 !defined(wxUSE_STATTEXT)
1435 # ifdef wxABORT_ON_CONFIG_ERROR
1436 # error "These common controls are needed by common dialogs"
1438 # undef wxUSE_CHOICE
1439 # define wxUSE_CHOICE 1
1440 # undef wxUSE_TEXTCTRL
1441 # define wxUSE_TEXTCTRL 1
1442 # undef wxUSE_BUTTON
1443 # define wxUSE_BUTTON 1
1444 # undef wxUSE_CHECKBOX
1445 # define wxUSE_CHECKBOX 1
1446 # undef wxUSE_STATTEXT
1447 # define wxUSE_STATTEXT 1
1451 #endif /* !wxMSW || wxUniv */
1453 /* generic file dialog depends on (generic) file control */
1454 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1455 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1456 # ifdef wxABORT_ON_CONFIG_ERROR
1457 # error "Generic wxFileDialog requires wxFileCtrl"
1459 # undef wxUSE_FILECTRL
1460 # define wxUSE_FILECTRL 1
1462 #endif /* wxUSE_FILEDLG */
1464 /* common dependencies */
1465 #if wxUSE_CALENDARCTRL
1466 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1467 # ifdef wxABORT_ON_CONFIG_ERROR
1468 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1470 # undef wxUSE_SPINBTN
1471 # undef wxUSE_COMBOBOX
1472 # define wxUSE_SPINBTN 1
1473 # define wxUSE_COMBOBOX 1
1477 # if !wxUSE_DATETIME
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1481 # undef wxUSE_DATETIME
1482 # define wxUSE_DATETIME 1
1485 #endif /* wxUSE_CALENDARCTRL */
1487 #if wxUSE_DATEPICKCTRL
1488 # if !wxUSE_DATETIME
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1492 # undef wxUSE_DATETIME
1493 # define wxUSE_DATETIME 1
1496 #endif /* wxUSE_DATEPICKCTRL */
1498 #if wxUSE_CHECKLISTBOX
1500 # ifdef wxABORT_ON_CONFIG_ERROR
1501 # error "wxCheckListBox requires wxListBox"
1503 # undef wxUSE_LISTBOX
1504 # define wxUSE_LISTBOX 1
1507 #endif /* wxUSE_CHECKLISTBOX */
1511 # ifdef wxABORT_ON_CONFIG_ERROR
1512 # error "Choice dialogs requires wxListBox"
1514 # undef wxUSE_LISTBOX
1515 # define wxUSE_LISTBOX 1
1518 #endif /* wxUSE_CHOICEDLG */
1521 # if !wxUSE_BMPBUTTON
1522 # ifdef wxABORT_ON_CONFIG_ERROR
1523 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1525 # undef wxUSE_BMPBUTTON
1526 # define wxUSE_BMPBUTTON 1
1530 # if !wxUSE_CHOICEDLG
1531 # ifdef wxABORT_ON_CONFIG_ERROR
1532 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1534 # undef wxUSE_CHOICEDLG
1535 # define wxUSE_CHOICEDLG 1
1538 #endif /* wxUSE_HELP */
1540 #if wxUSE_MS_HTML_HELP
1542 this doesn't make sense for platforms other than MSW but we still
1543 define it in wx/setup_inc.h so don't complain if it happens to be
1544 defined under another platform but just silently fix it.
1547 # undef wxUSE_MS_HTML_HELP
1548 # define wxUSE_MS_HTML_HELP 0
1550 #endif /* wxUSE_MS_HTML_HELP */
1552 #if wxUSE_WXHTML_HELP
1553 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1554 # ifdef wxABORT_ON_CONFIG_ERROR
1555 # error "Built in help controller can't be compiled"
1558 # define wxUSE_HELP 1
1560 # define wxUSE_HTML 1
1561 # undef wxUSE_COMBOBOX
1562 # define wxUSE_COMBOBOX 1
1563 # undef wxUSE_NOTEBOOK
1564 # define wxUSE_NOTEBOOK 1
1565 # undef wxUSE_SPINCTRL
1566 # define wxUSE_SPINCTRL 1
1569 #endif /* wxUSE_WXHTML_HELP */
1573 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1574 user explicitly wants this and disable all other features that require
1577 # if wxUSE_DRAGIMAGE
1578 # ifdef wxABORT_ON_CONFIG_ERROR
1579 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1581 # undef wxUSE_DRAGIMAGE
1582 # define wxUSE_DRAGIMAGE 0
1587 # ifdef wxABORT_ON_CONFIG_ERROR
1588 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1590 # undef wxUSE_LIBPNG
1591 # define wxUSE_LIBPNG 0
1596 # ifdef wxABORT_ON_CONFIG_ERROR
1597 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1599 # undef wxUSE_LIBJPEG
1600 # define wxUSE_LIBJPEG 0
1605 # ifdef wxABORT_ON_CONFIG_ERROR
1606 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1608 # undef wxUSE_LIBTIFF
1609 # define wxUSE_LIBTIFF 0
1614 # ifdef wxABORT_ON_CONFIG_ERROR
1615 # error "wxUSE_GIF requires wxUSE_IMAGE"
1618 # define wxUSE_GIF 0
1623 # ifdef wxABORT_ON_CONFIG_ERROR
1624 # error "wxUSE_PNM requires wxUSE_IMAGE"
1627 # define wxUSE_PNM 0
1632 # ifdef wxABORT_ON_CONFIG_ERROR
1633 # error "wxUSE_PCX requires wxUSE_IMAGE"
1636 # define wxUSE_PCX 0
1641 # ifdef wxABORT_ON_CONFIG_ERROR
1642 # error "wxUSE_IFF requires wxUSE_IMAGE"
1645 # define wxUSE_IFF 0
1650 # ifdef wxABORT_ON_CONFIG_ERROR
1651 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1653 # undef wxUSE_TOOLBAR
1654 # define wxUSE_TOOLBAR 0
1659 # ifdef wxABORT_ON_CONFIG_ERROR
1660 # error "wxUSE_XPM requires wxUSE_IMAGE"
1663 # define wxUSE_XPM 0
1667 #endif /* !wxUSE_IMAGE */
1669 #if wxUSE_DOC_VIEW_ARCHITECTURE
1671 # ifdef wxABORT_ON_CONFIG_ERROR
1672 # error "DocView requires wxUSE_MENUS"
1675 # define wxUSE_MENUS 1
1679 # if !wxUSE_CHOICEDLG
1680 # ifdef wxABORT_ON_CONFIG_ERROR
1681 # error "DocView requires wxUSE_CHOICEDLG"
1683 # undef wxUSE_CHOICEDLG
1684 # define wxUSE_CHOICEDLG 1
1688 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1689 # ifdef wxABORT_ON_CONFIG_ERROR
1690 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1692 # undef wxUSE_STREAMS
1693 # define wxUSE_STREAMS 1
1696 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1698 #if wxUSE_PRINTING_ARCHITECTURE
1699 # if !wxUSE_COMBOBOX
1700 # ifdef wxABORT_ON_CONFIG_ERROR
1701 # error "Print dialog requires wxUSE_COMBOBOX"
1703 # undef wxUSE_COMBOBOX
1704 # define wxUSE_COMBOBOX 1
1707 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1709 #if wxUSE_MDI_ARCHITECTURE
1711 # ifdef wxABORT_ON_CONFIG_ERROR
1712 # error "MDI requires wxUSE_MDI"
1715 # define wxUSE_MDI 1
1719 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1720 # ifdef wxABORT_ON_CONFIG_ERROR
1721 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1723 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1724 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1727 #endif /* wxUSE_MDI_ARCHITECTURE */
1730 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1731 # ifdef wxABORT_ON_CONFIG_ERROR
1732 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1734 # undef wxUSE_FILEDLG
1735 # define wxUSE_FILEDLG 1
1738 #endif /* wxUSE_FILEDLG */
1740 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1741 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1742 # ifdef wxABORT_ON_CONFIG_ERROR
1743 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1746 # undef wxUSE_BUTTON
1747 # define wxUSE_GAUGE 1
1748 # define wxUSE_BUTTON 1
1751 #endif /* !wxUSE_GAUGE */
1754 # if wxUSE_FONTDLG || \
1756 wxUSE_CHOICEDLG || \
1757 wxUSE_NUMBERDLG || \
1760 wxUSE_STARTUP_TIPS || \
1762 # ifdef wxABORT_ON_CONFIG_ERROR
1763 # error "Common and generic dialogs require wxUSE_BUTTON"
1765 # undef wxUSE_BUTTON
1766 # define wxUSE_BUTTON 1
1769 #endif /* !wxUSE_BUTTON */
1772 # if wxUSE_TOOLBAR_NATIVE
1773 # ifdef wxABORT_ON_CONFIG_ERROR
1774 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1776 # undef wxUSE_TOOLBAR_NATIVE
1777 # define wxUSE_TOOLBAR_NATIVE 0
1783 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1784 # ifdef wxABORT_ON_CONFIG_ERROR
1785 # error "wxImageList must be compiled as well"
1787 # undef wxUSE_IMAGLIST
1788 # define wxUSE_IMAGLIST 1
1791 #endif /* !wxUSE_IMAGLIST */
1794 # if !wxUSE_RADIOBTN
1795 # ifdef wxABORT_ON_CONFIG_ERROR
1796 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1798 # undef wxUSE_RADIOBTN
1799 # define wxUSE_RADIOBTN 1
1802 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1803 # ifdef wxABORT_ON_CONFIG_ERROR
1804 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1806 # undef wxUSE_STATBOX
1807 # define wxUSE_STATBOX 1
1810 #endif /* wxUSE_RADIOBOX */
1813 # if !wxUSE_TEXTCTRL
1814 # ifdef wxABORT_ON_CONFIG_ERROR
1815 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1817 # undef wxUSE_TEXTCTRL
1818 # define wxUSE_TEXTCTRL 1
1821 #endif /* wxUSE_LOGWINDOW */
1823 #if wxUSE_LOG_DIALOG
1824 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1825 # ifdef wxABORT_ON_CONFIG_ERROR
1826 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1828 # undef wxUSE_LISTCTRL
1829 # define wxUSE_LISTCTRL 1
1830 # undef wxUSE_BUTTON
1831 # define wxUSE_BUTTON 1
1834 #endif /* wxUSE_LOG_DIALOG */
1836 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1837 # ifdef wxABORT_ON_CONFIG_ERROR
1838 # error "wxClipboard requires wxDataObject"
1840 # undef wxUSE_DATAOBJ
1841 # define wxUSE_DATAOBJ 1
1843 #endif /* wxUSE_CLIPBOARD */
1845 #if wxUSE_XRC && !wxUSE_XML
1846 # ifdef wxABORT_ON_CONFIG_ERROR
1847 # error "wxUSE_XRC requires wxUSE_XML"
1850 # define wxUSE_XRC 0
1852 #endif /* wxUSE_XRC */
1854 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1855 # ifdef wxABORT_ON_CONFIG_ERROR
1856 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1858 # undef wxUSE_SOCKETS
1859 # define wxUSE_SOCKETS 0
1861 #endif /* wxUSE_SOCKETS */
1863 #if wxUSE_SVG && !wxUSE_STREAMS
1864 # ifdef wxABORT_ON_CONFIG_ERROR
1865 # error "wxUSE_SVG requires wxUSE_STREAMS"
1868 # define wxUSE_SVG 0
1870 #endif /* wxUSE_SVG */
1872 #if wxUSE_SVG && !wxUSE_IMAGE
1873 # ifdef wxABORT_ON_CONFIG_ERROR
1874 # error "wxUSE_SVG requires wxUSE_IMAGE"
1877 # define wxUSE_SVG 0
1879 #endif /* wxUSE_SVG */
1881 #if wxUSE_SVG && !wxUSE_LIBPNG
1882 # ifdef wxABORT_ON_CONFIG_ERROR
1883 # error "wxUSE_SVG requires wxUSE_LIBPNG"
1886 # define wxUSE_SVG 0
1888 #endif /* wxUSE_SVG */
1891 # if wxUSE_DATAVIEWCTRL
1892 # ifdef wxABORT_ON_CONFIG_ERROR
1893 # error "wxDataViewCtrl requires wxVariant"
1895 # undef wxUSE_DATAVIEWCTRL
1896 # define wxUSE_DATAVIEWCTRL 0
1899 #endif /* wxUSE_VARIANT */
1901 #endif /* wxUSE_GUI */
1903 #endif /* _WX_CHKCONF_H_ */