]>
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 */
15 Compiler-specific checking.
18 #if defined(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXMSW__)
21 # include "wx/msw/chkconf.h"
22 #elif defined(__WXMAC__)
23 # include "wx/mac/chkconf.h"
27 this global setting determines what should we do if the setting FOO
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
32 #define wxABORT_ON_CONFIG_ERROR
38 /* GUI build by default */
39 #if !defined(wxUSE_GUI)
41 #endif /* !defined(wxUSE_GUI) */
44 If we're compiling without support for threads/exceptions we have to
45 disable the corresponding features.
49 # define wxUSE_THREADS 0
50 #endif /* wxNO_THREADS */
52 #ifdef wxNO_EXCEPTIONS
53 # undef wxUSE_EXCEPTIONS
54 # define wxUSE_EXCEPTIONS 0
55 #endif /* wxNO_EXCEPTIONS */
59 tests for non GUI features
62 #ifndef wxUSE_DYNLIB_CLASS
63 # ifdef wxABORT_ON_CONFIG_ERROR
64 # error "wxUSE_DYNLIB_CLASS must be defined."
66 # define wxUSE_DYNLIB_CLASS 0
68 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
70 #ifndef wxUSE_EXCEPTIONS
71 # ifdef wxABORT_ON_CONFIG_ERROR
72 # error "wxUSE_EXCEPTIONS must be defined."
74 # define wxUSE_EXCEPTIONS 0
76 #endif /* !defined(wxUSE_EXCEPTIONS) */
78 #ifndef wxUSE_FILESYSTEM
79 # ifdef wxABORT_ON_CONFIG_ERROR
80 # error "wxUSE_FILESYSTEM must be defined."
82 # define wxUSE_FILESYSTEM 0
84 #endif /* !defined(wxUSE_FILESYSTEM) */
86 /* don't give an error about this one yet, it's not fully implemented */
87 #ifndef wxUSE_FSVOLUME
88 # define wxUSE_FSVOLUME 0
89 #endif /* !defined(wxUSE_FSVOLUME) */
91 #ifndef wxUSE_DYNAMIC_LOADER
92 # ifdef wxABORT_ON_CONFIG_ERROR
93 # error "wxUSE_DYNAMIC_LOADER must be defined."
95 # define wxUSE_DYNAMIC_LOADER 0
97 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
100 # ifdef wxABORT_ON_CONFIG_ERROR
101 # error "wxUSE_LOG must be defined."
105 #endif /* !defined(wxUSE_LOG) */
107 #ifndef wxUSE_LONGLONG
108 # ifdef wxABORT_ON_CONFIG_ERROR
109 # error "wxUSE_LONGLONG must be defined."
111 # define wxUSE_LONGLONG 0
113 #endif /* !defined(wxUSE_LONGLONG) */
115 #ifndef wxUSE_MIMETYPE
116 # ifdef wxABORT_ON_CONFIG_ERROR
117 # error "wxUSE_MIMETYPE must be defined."
119 # define wxUSE_MIMETYPE 0
121 #endif /* !defined(wxUSE_MIMETYPE) */
123 #ifndef wxUSE_PROTOCOL
124 # ifdef wxABORT_ON_CONFIG_ERROR
125 # error "wxUSE_PROTOCOL must be defined."
127 # define wxUSE_PROTOCOL 0
129 #endif /* !defined(wxUSE_PROTOCOL) */
131 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
133 # undef wxUSE_PROTOCOL_HTTP
134 # undef wxUSE_PROTOCOL_FTP
135 # undef wxUSE_PROTOCOL_FILE
136 # define wxUSE_PROTOCOL_HTTP 0
137 # define wxUSE_PROTOCOL_FTP 0
138 # define wxUSE_PROTOCOL_FILE 0
139 #endif /* wxUSE_PROTOCOL */
141 #ifndef wxUSE_PROTOCOL_HTTP
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_PROTOCOL_HTTP must be defined."
145 # define wxUSE_PROTOCOL_HTTP 0
147 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
149 #ifndef wxUSE_PROTOCOL_FTP
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_PROTOCOL_FTP must be defined."
153 # define wxUSE_PROTOCOL_FTP 0
155 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
157 #ifndef wxUSE_PROTOCOL_FILE
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_PROTOCOL_FILE must be defined."
161 # define wxUSE_PROTOCOL_FILE 0
163 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_REGEX must be defined."
169 # define wxUSE_REGEX 0
171 #endif /* !defined(wxUSE_REGEX) */
174 # ifdef wxABORT_ON_CONFIG_ERROR
175 # error "wxUSE_XML must be defined."
179 #endif /* !defined(wxUSE_XML) */
181 #ifndef wxUSE_SOCKETS
182 # ifdef wxABORT_ON_CONFIG_ERROR
183 # error "wxUSE_SOCKETS must be defined."
185 # define wxUSE_SOCKETS 0
187 #endif /* !defined(wxUSE_SOCKETS) */
189 #ifndef wxUSE_STREAMS
190 # ifdef wxABORT_ON_CONFIG_ERROR
191 # error "wxUSE_STREAMS must be defined."
193 # define wxUSE_STREAMS 0
195 #endif /* !defined(wxUSE_STREAMS) */
197 #ifndef wxUSE_STOPWATCH
198 # ifdef wxABORT_ON_CONFIG_ERROR
199 # error "wxUSE_STOPWATCH must be defined."
201 # define wxUSE_STOPWATCH 0
203 #endif /* !defined(wxUSE_STOPWATCH) */
205 #ifndef wxUSE_TEXTBUFFER
206 # ifdef wxABORT_ON_CONFIG_ERROR
207 # error "wxUSE_TEXTBUFFER must be defined."
209 # define wxUSE_TEXTBUFFER 0
211 #endif /* !defined(wxUSE_TEXTBUFFER) */
213 #ifndef wxUSE_TEXTFILE
214 # ifdef wxABORT_ON_CONFIG_ERROR
215 # error "wxUSE_TEXTFILE must be defined."
217 # define wxUSE_TEXTFILE 0
219 #endif /* !defined(wxUSE_TEXTFILE) */
221 #ifndef wxUSE_UNICODE
222 # ifdef wxABORT_ON_CONFIG_ERROR
223 # error "wxUSE_UNICODE must be defined."
225 # define wxUSE_UNICODE 0
227 #endif /* !defined(wxUSE_UNICODE) */
230 # ifdef wxABORT_ON_CONFIG_ERROR
231 # error "wxUSE_URL must be defined."
235 #endif /* !defined(wxUSE_URL) */
238 all these tests are for GUI only
243 all of the settings tested below must be defined or we'd get an error from
244 preprocessor about invalid integer expression
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_ACCEL must be defined."
251 # define wxUSE_ACCEL 0
253 #endif /* !defined(wxUSE_ACCEL) */
255 #ifndef wxUSE_BMPBUTTON
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_BMPBUTTON must be defined."
259 # define wxUSE_BMPBUTTON 0
261 #endif /* !defined(wxUSE_BMPBUTTON) */
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_BUTTON must be defined."
267 # define wxUSE_BUTTON 0
269 #endif /* !defined(wxUSE_BUTTON) */
271 #ifndef wxUSE_CALENDARCTRL
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_CALENDARCTRL must be defined."
275 # define wxUSE_CALENDARCTRL 0
277 #endif /* !defined(wxUSE_CALENDARCTRL) */
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_CARET must be defined."
283 # define wxUSE_CARET 0
285 #endif /* !defined(wxUSE_CARET) */
287 #ifndef wxUSE_CHECKBOX
288 # ifdef wxABORT_ON_CONFIG_ERROR
289 # error "wxUSE_CHECKBOX must be defined."
291 # define wxUSE_CHECKBOX 0
293 #endif /* !defined(wxUSE_CHECKBOX) */
295 #ifndef wxUSE_CHECKLISTBOX
296 # ifdef wxABORT_ON_CONFIG_ERROR
297 # error "wxUSE_CHECKLISTBOX must be defined."
299 # define wxUSE_CHECKLISTBOX 0
301 #endif /* !defined(wxUSE_CHECKLISTBOX) */
304 # ifdef wxABORT_ON_CONFIG_ERROR
305 # error "wxUSE_CHOICE must be defined."
307 # define wxUSE_CHOICE 0
309 #endif /* !defined(wxUSE_CHOICE) */
311 #ifndef wxUSE_CHOICEBOOK
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_CHOICEBOOK must be defined."
315 # define wxUSE_CHOICEBOOK 0
317 #endif /* !defined(wxUSE_CHOICEBOOK) */
319 #ifndef wxUSE_CHOICEDLG
320 # ifdef wxABORT_ON_CONFIG_ERROR
321 # error "wxUSE_CHOICEDLG must be defined."
323 # define wxUSE_CHOICEDLG 0
325 #endif /* !defined(wxUSE_CHOICEDLG) */
327 #ifndef wxUSE_CLIPBOARD
328 # ifdef wxABORT_ON_CONFIG_ERROR
329 # error "wxUSE_CLIPBOARD must be defined."
331 # define wxUSE_CLIPBOARD 0
333 #endif /* !defined(wxUSE_CLIPBOARD) */
335 #ifndef wxUSE_COLOURDLG
336 # ifdef wxABORT_ON_CONFIG_ERROR
337 # error "wxUSE_COLOURDLG must be defined."
339 # define wxUSE_COLOURDLG 0
341 #endif /* !defined(wxUSE_COLOURDLG) */
343 #ifndef wxUSE_COMBOBOX
344 # ifdef wxABORT_ON_CONFIG_ERROR
345 # error "wxUSE_COMBOBOX must be defined."
347 # define wxUSE_COMBOBOX 0
349 #endif /* !defined(wxUSE_COMBOBOX) */
351 #ifndef wxUSE_DATAOBJ
352 # ifdef wxABORT_ON_CONFIG_ERROR
353 # error "wxUSE_DATAOBJ must be defined."
355 # define wxUSE_DATAOBJ 0
357 #endif /* !defined(wxUSE_DATAOBJ) */
359 #ifndef wxUSE_DATEPICKCTRL
360 # ifdef wxABORT_ON_CONFIG_ERROR
361 # error "wxUSE_DATEPICKCTRL must be defined."
363 # define wxUSE_DATEPICKCTRL 0
365 #endif /* !defined(wxUSE_DATEPICKCTRL) */
367 #ifndef wxUSE_DISPLAY
368 # ifdef wxABORT_ON_CONFIG_ERROR
369 # error "wxUSE_DISPLAY must be defined."
371 # define wxUSE_DISPLAY 0
373 #endif /* !defined(wxUSE_DISPLAY) */
375 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
376 # ifdef wxABORT_ON_CONFIG_ERROR
377 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
379 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
381 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
383 #ifndef wxUSE_FILEDLG
384 # ifdef wxABORT_ON_CONFIG_ERROR
385 # error "wxUSE_FILEDLG must be defined."
387 # define wxUSE_FILEDLG 0
389 #endif /* !defined(wxUSE_FILEDLG) */
391 #ifndef wxUSE_FONTDLG
392 # ifdef wxABORT_ON_CONFIG_ERROR
393 # error "wxUSE_FONTDLG must be defined."
395 # define wxUSE_FONTDLG 0
397 #endif /* !defined(wxUSE_FONTDLG) */
399 #ifndef wxUSE_FONTMAP
400 # ifdef wxABORT_ON_CONFIG_ERROR
401 # error "wxUSE_FONTMAP must be defined."
403 # define wxUSE_FONTMAP 0
405 #endif /* !defined(wxUSE_FONTMAP) */
408 # ifdef wxABORT_ON_CONFIG_ERROR
409 # error "wxUSE_GAUGE must be defined."
411 # define wxUSE_GAUGE 0
413 #endif /* !defined(wxUSE_GAUGE) */
416 # ifdef wxABORT_ON_CONFIG_ERROR
417 # error "wxUSE_GRID must be defined."
419 # define wxUSE_GRID 0
421 #endif /* !defined(wxUSE_GRID) */
424 # ifdef wxABORT_ON_CONFIG_ERROR
425 # error "wxUSE_HELP must be defined."
427 # define wxUSE_HELP 0
429 #endif /* !defined(wxUSE_HELP) */
432 # ifdef wxABORT_ON_CONFIG_ERROR
433 # error "wxUSE_HTML must be defined."
435 # define wxUSE_HTML 0
437 #endif /* !defined(wxUSE_HTML) */
440 # ifdef wxABORT_ON_CONFIG_ERROR
441 # error "wxUSE_XRC must be defined."
445 #endif /* !defined(wxUSE_XRC) */
447 #ifndef wxUSE_LIBMSPACK
449 /* set to 0 on platforms that don't have libmspack */
450 # define wxUSE_LIBMSPACK 0
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_LIBMSPACK must be defined."
455 # define wxUSE_LIBMSPACK 0
458 #endif /* !defined(wxUSE_LIBMSPACK) */
460 #ifndef wxUSE_ICO_CUR
461 # ifdef wxABORT_ON_CONFIG_ERROR
462 # error "wxUSE_ICO_CUR must be defined."
464 # define wxUSE_ICO_CUR 0
466 #endif /* !defined(wxUSE_ICO_CUR) */
469 # ifdef wxABORT_ON_CONFIG_ERROR
470 # error "wxUSE_IFF must be defined."
474 #endif /* !defined(wxUSE_IFF) */
476 #ifndef wxUSE_IMAGLIST
477 # ifdef wxABORT_ON_CONFIG_ERROR
478 # error "wxUSE_IMAGLIST must be defined."
480 # define wxUSE_IMAGLIST 0
482 #endif /* !defined(wxUSE_IMAGLIST) */
484 #ifndef wxUSE_JOYSTICK
485 # ifdef wxABORT_ON_CONFIG_ERROR
486 # error "wxUSE_JOYSTICK must be defined."
488 # define wxUSE_JOYSTICK 0
490 #endif /* !defined(wxUSE_JOYSTICK) */
492 #ifndef wxUSE_LISTBOOK
493 # ifdef wxABORT_ON_CONFIG_ERROR
494 # error "wxUSE_LISTBOOK must be defined."
496 # define wxUSE_LISTBOOK 0
498 #endif /* !defined(wxUSE_LISTBOOK) */
500 #ifndef wxUSE_LISTBOX
501 # ifdef wxABORT_ON_CONFIG_ERROR
502 # error "wxUSE_LISTBOX must be defined."
504 # define wxUSE_LISTBOX 0
506 #endif /* !defined(wxUSE_LISTBOX) */
508 #ifndef wxUSE_LISTCTRL
509 # ifdef wxABORT_ON_CONFIG_ERROR
510 # error "wxUSE_LISTCTRL must be defined."
512 # define wxUSE_LISTCTRL 0
514 #endif /* !defined(wxUSE_LISTCTRL) */
517 # ifdef wxABORT_ON_CONFIG_ERROR
518 # error "wxUSE_LOGGUI must be defined."
520 # define wxUSE_LOGGUI 0
522 #endif /* !defined(wxUSE_LOGGUI) */
524 #ifndef wxUSE_LOGWINDOW
525 # ifdef wxABORT_ON_CONFIG_ERROR
526 # error "wxUSE_LOGWINDOW must be defined."
528 # define wxUSE_LOGWINDOW 0
530 #endif /* !defined(wxUSE_LOGWINDOW) */
532 #ifndef wxUSE_LOG_DIALOG
533 # ifdef wxABORT_ON_CONFIG_ERROR
534 # error "wxUSE_LOG_DIALOG must be defined."
536 # define wxUSE_LOG_DIALOG 0
538 #endif /* !defined(wxUSE_LOG_DIALOG) */
541 # ifdef wxABORT_ON_CONFIG_ERROR
542 # error "wxUSE_MDI must be defined."
546 #endif /* !defined(wxUSE_MDI) */
548 #ifndef wxUSE_MDI_ARCHITECTURE
549 # ifdef wxABORT_ON_CONFIG_ERROR
550 # error "wxUSE_MDI_ARCHITECTURE must be defined."
552 # define wxUSE_MDI_ARCHITECTURE 0
554 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
557 # ifdef wxABORT_ON_CONFIG_ERROR
558 # error "wxUSE_MENUS must be defined."
560 # define wxUSE_MENUS 0
562 #endif /* !defined(wxUSE_MENUS) */
565 # ifdef wxABORT_ON_CONFIG_ERROR
566 # error "wxUSE_MSGDLG must be defined."
568 # define wxUSE_MSGDLG 0
570 #endif /* !defined(wxUSE_MSGDLG) */
572 #ifndef wxUSE_NOTEBOOK
573 # ifdef wxABORT_ON_CONFIG_ERROR
574 # error "wxUSE_NOTEBOOK must be defined."
576 # define wxUSE_NOTEBOOK 0
578 #endif /* !defined(wxUSE_NOTEBOOK) */
580 #ifndef wxUSE_PALETTE
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_PALETTE must be defined."
584 # define wxUSE_PALETTE 0
586 #endif /* !defined(wxUSE_PALETTE) */
588 #ifndef wxUSE_POPUPWIN
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_POPUPWIN must be defined."
592 # define wxUSE_POPUPWIN 0
594 #endif /* !defined(wxUSE_POPUPWIN) */
596 #ifndef wxUSE_PRINTING_ARCHITECTURE
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
600 # define wxUSE_PRINTING_ARCHITECTURE 0
602 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
604 #ifndef wxUSE_RADIOBOX
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_RADIOBOX must be defined."
608 # define wxUSE_RADIOBOX 0
610 #endif /* !defined(wxUSE_RADIOBOX) */
612 #ifndef wxUSE_RADIOBTN
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_RADIOBTN must be defined."
616 # define wxUSE_RADIOBTN 0
618 #endif /* !defined(wxUSE_RADIOBTN) */
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_SASH must be defined."
624 # define wxUSE_SASH 0
626 #endif /* !defined(wxUSE_SASH) */
628 #ifndef wxUSE_SCROLLBAR
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_SCROLLBAR must be defined."
632 # define wxUSE_SCROLLBAR 0
634 #endif /* !defined(wxUSE_SCROLLBAR) */
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_SLIDER must be defined."
640 # define wxUSE_SLIDER 0
642 #endif /* !defined(wxUSE_SLIDER) */
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_SOUND must be defined."
648 # define wxUSE_SOUND 0
650 #endif /* !defined(wxUSE_SOUND) */
652 #ifndef wxUSE_SPINBTN
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_SPINBTN must be defined."
656 # define wxUSE_SPINBTN 0
658 #endif /* !defined(wxUSE_SPINBTN) */
660 #ifndef wxUSE_SPINCTRL
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_SPINCTRL must be defined."
664 # define wxUSE_SPINCTRL 0
666 #endif /* !defined(wxUSE_SPINCTRL) */
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_SPLASH must be defined."
672 # define wxUSE_SPLASH 0
674 #endif /* !defined(wxUSE_SPLASH) */
676 #ifndef wxUSE_SPLITTER
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_SPLITTER must be defined."
680 # define wxUSE_SPLITTER 0
682 #endif /* !defined(wxUSE_SPLITTER) */
684 #ifndef wxUSE_STATBMP
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_STATBMP must be defined."
688 # define wxUSE_STATBMP 0
690 #endif /* !defined(wxUSE_STATBMP) */
692 #ifndef wxUSE_STATBOX
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_STATBOX must be defined."
696 # define wxUSE_STATBOX 0
698 #endif /* !defined(wxUSE_STATBOX) */
700 #ifndef wxUSE_STATLINE
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_STATLINE must be defined."
704 # define wxUSE_STATLINE 0
706 #endif /* !defined(wxUSE_STATLINE) */
708 #ifndef wxUSE_STATTEXT
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_STATTEXT must be defined."
712 # define wxUSE_STATTEXT 0
714 #endif /* !defined(wxUSE_STATTEXT) */
716 #ifndef wxUSE_STATUSBAR
717 # ifdef wxABORT_ON_CONFIG_ERROR
718 # error "wxUSE_STATUSBAR must be defined."
720 # define wxUSE_STATUSBAR 0
722 #endif /* !defined(wxUSE_STATUSBAR) */
724 #ifndef wxUSE_TAB_DIALOG
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_TAB_DIALOG must be defined."
728 # define wxUSE_TAB_DIALOG 0
730 #endif /* !defined(wxUSE_TAB_DIALOG) */
732 #ifndef wxUSE_TEXTCTRL
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_TEXTCTRL must be defined."
736 # define wxUSE_TEXTCTRL 0
738 #endif /* !defined(wxUSE_TEXTCTRL) */
740 #ifndef wxUSE_TIPWINDOW
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_TIPWINDOW must be defined."
744 # define wxUSE_TIPWINDOW 0
746 #endif /* !defined(wxUSE_TIPWINDOW) */
748 #ifndef wxUSE_TOOLBAR
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_TOOLBAR must be defined."
752 # define wxUSE_TOOLBAR 0
754 #endif /* !defined(wxUSE_TOOLBAR) */
756 #ifndef wxUSE_TOOLTIPS
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_TOOLTIPS must be defined."
760 # define wxUSE_TOOLTIPS 0
762 #endif /* !defined(wxUSE_TOOLTIPS) */
764 #ifndef wxUSE_TREECTRL
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_TREECTRL must be defined."
768 # define wxUSE_TREECTRL 0
770 #endif /* !defined(wxUSE_TREECTRL) */
772 #ifndef wxUSE_VALIDATORS
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_VALIDATORS must be defined."
776 # define wxUSE_VALIDATORS 0
778 #endif /* !defined(wxUSE_VALIDATORS) */
780 #ifndef wxUSE_WXHTML_HELP
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_WXHTML_HELP must be defined."
784 # define wxUSE_WXHTML_HELP 0
786 #endif /* !defined(wxUSE_WXHTML_HELP) */
788 #endif /* wxUSE_GUI */
791 check consistency of the settings
794 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
796 # ifdef wxABORT_ON_CONFIG_ERROR
797 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
799 # undef wxUSE_PROTOCOL
800 # define wxUSE_PROTOCOL 1
803 #endif /* wxUSE_PROTOCOL_XXX */
807 # ifdef wxABORT_ON_CONFIG_ERROR
808 # error "wxUSE_URL requires wxUSE_PROTOCOL"
810 # undef wxUSE_PROTOCOL
811 # define wxUSE_PROTOCOL 1
814 #endif /* wxUSE_URL */
818 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
819 # ifdef wxABORT_ON_CONFIG_ERROR
820 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
822 # undef wxUSE_SOCKETS
823 # define wxUSE_SOCKETS 1
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
832 # undef wxUSE_STREAMS
833 # define wxUSE_STREAMS 1
836 #endif /* wxUSE_PROTOCOL */
838 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
840 # if !wxUSE_FILESYSTEM
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxHTML requires wxFileSystem"
844 # undef wxUSE_FILESYSTEM
845 # define wxUSE_FILESYSTEM 1
848 #endif /* wxUSE_HTML */
852 # ifdef wxABORT_ON_CONFIG_ERROR
853 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
855 # undef wxUSE_STREAMS
856 # define wxUSE_STREAMS 1
859 #endif /* wxUSE_FILESYSTEM */
863 # ifdef wxABORT_ON_CONFIG_ERROR
864 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
866 # undef wxUSE_PROTOCOL
867 # define wxUSE_PROTOCOL 1
870 #endif /* wxUSE_FS_INET */
872 #if wxUSE_STOPWATCH || wxUSE_DATETIME
874 # ifdef wxABORT_ON_CONFIG_ERROR
875 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
877 # undef wxUSE_LONGLONG
878 # define wxUSE_LONGLONG 1
881 #endif /* wxUSE_STOPWATCH */
883 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
884 # ifdef wxABORT_ON_CONFIG_ERROR
885 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
887 # undef wxUSE_TEXTFILE
888 # define wxUSE_TEXTFILE 1
890 #endif /* wxUSE_MIMETYPE */
892 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
893 # ifdef wxABORT_ON_CONFIG_ERROR
894 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
896 # undef wxUSE_TEXTBUFFER
897 # define wxUSE_TEXTBUFFER 1
899 #endif /* wxUSE_TEXTFILE */
901 #if wxUSE_TEXTFILE && !wxUSE_FILE
902 # ifdef wxABORT_ON_CONFIG_ERROR
903 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
906 # define wxUSE_FILE 1
908 #endif /* wxUSE_TEXTFILE */
910 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
911 # ifdef wxABORT_ON_CONFIG_ERROR
912 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
914 # undef wxUSE_UNICODE
915 # define wxUSE_UNICODE 1
917 #endif /* wxUSE_UNICODE_MSLU */
919 /* ODBC and Unicode are now compatible */
921 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
922 # ifdef wxABORT_ON_CONFIG_ERROR
923 /* (ODBC classes aren't Unicode-compatible yet) */
924 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
927 # define wxUSE_ODBC 0
929 #endif /* wxUSE_ODBC */
931 #if wxUSE_XML && !wxUSE_WCHAR_T
932 # ifdef wxABORT_ON_CONFIG_ERROR
933 # error "wxUSE_XML requires wxUSE_WCHAR_T"
938 #endif /* wxUSE_UNICODE_MSLU */
940 #if !wxUSE_DYNLIB_CLASS
941 # if wxUSE_DYNAMIC_LOADER
942 # ifdef wxABORT_ON_CONFIG_ERROR
943 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
945 # define wxUSE_DYNLIB_CLASS 1
948 #endif /* wxUSE_DYNLIB_CLASS */
952 # ifdef wxABORT_ON_CONFIG_ERROR
953 # error "wxZip requires wxZlib"
956 # define wxUSE_ZLIB 1
959 # if !wxUSE_ARCHIVE_STREAMS
960 # ifdef wxABORT_ON_CONFIG_ERROR
961 # error "wxZip requires wxArchive"
963 # undef wxUSE_ARCHIVE_STREAMS
964 # define wxUSE_ARCHIVE_STREAMS 1
967 #endif /* wxUSE_ZIPSTREAM */
969 /* the rest of the tests is for the GUI settings only */
972 #if wxUSE_BUTTON || \
973 wxUSE_CALENDARCTRL || \
978 wxUSE_CHECKLISTBOX || \
1000 # ifdef wxABORT_ON_CONFIG_ERROR
1001 # error "wxUSE_CONTROLS unset but some controls used"
1003 # undef wxUSE_CONTROLS
1004 # define wxUSE_CONTROLS 1
1007 #endif /* controls */
1011 # ifdef wxABORT_ON_CONFIG_ERROR
1012 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1014 # undef wxUSE_BUTTON
1015 # define wxUSE_BUTTON 1
1018 #endif /* wxUSE_BMPBUTTON */
1020 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1021 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1022 # ifdef wxABORT_ON_CONFIG_ERROR
1023 # error "wxUSE_BOOKCTRL must be set."
1025 # undef wxUSE_BOOKCTRL
1029 # ifndef wxUSE_BOOKCTRL
1030 # define wxUSE_BOOKCTRL 1
1032 #endif /* wxUSE_NOTEBOOK */
1035 # if !wxUSE_LISTCTRL
1036 # ifdef wxABORT_ON_CONFIG_ERROR
1037 # error "wxListbook requires wxListCtrl"
1039 # undef wxUSE_LISTCTRL
1040 # define wxUSE_LISTCTRL 1
1043 #endif /* wxUSE_LISTBOOK */
1045 #if wxUSE_CHOICEBOOK
1047 # ifdef wxABORT_ON_CONFIG_ERROR
1048 # error "wxChoicebook requires wxChoice"
1050 # undef wxUSE_CHOICE
1051 # define wxUSE_CHOICE 1
1054 #endif /* wxUSE_CHOICEBOOK */
1056 /* don't attempt to use native status bar on the platforms not having it */
1057 #ifndef wxUSE_NATIVE_STATUSBAR
1058 # define wxUSE_NATIVE_STATUSBAR 0
1059 #elif wxUSE_NATIVE_STATUSBAR
1060 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1061 defined(__WXMAC__) || \
1062 defined(__WXPALMOS__) )
1063 # undef wxUSE_NATIVE_STATUSBAR
1064 # define wxUSE_NATIVE_STATUSBAR 0
1068 /* wxUniv-specific dependencies */
1069 #if defined(__WXUNIVERSAL__)
1070 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1071 # ifdef wxABORT_ON_CONFIG_ERROR
1072 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1074 # undef wxUSE_POPUPWIN
1075 # define wxUSE_POPUPWIN 1
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxComboBox requires wxListBox in wxUniversal"
1084 # undef wxUSE_LISTBOX
1085 # define wxUSE_LISTBOX 1
1088 # endif /* wxUSE_COMBOBOX */
1091 # if !wxUSE_CHECKBOX
1092 # ifdef wxABORT_ON_CONFIG_ERROR
1093 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1095 # undef wxUSE_CHECKBOX
1096 # define wxUSE_CHECKBOX 1
1099 # endif /* wxUSE_RADIOBTN */
1103 # ifdef wxABORT_ON_CONFIG_ERROR
1104 # error "wxTextCtrl requires wxCaret in wxUniversal"
1107 # define wxUSE_CARET 1
1109 # endif /* wxUSE_CARET */
1111 # if !wxUSE_SCROLLBAR
1112 # ifdef wxABORT_ON_CONFIG_ERROR
1113 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1115 # undef wxUSE_SCROLLBAR
1116 # define wxUSE_SCROLLBAR 1
1118 # endif /* wxUSE_SCROLLBAR */
1119 # endif /* wxUSE_TEXTCTRL */
1120 #endif /* __WXUNIVERSAL__ */
1122 /* wxGTK-specific dependencies */
1124 # ifndef __WXUNIVERSAL__
1125 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1126 # ifdef wxABORT_ON_CONFIG_ERROR
1127 # error "MDI requires wxUSE_MENUS in wxGTK"
1130 # define wxUSE_MENUS 1
1133 # endif /* !__WXUNIVERSAL__ */
1137 # ifdef wxABORT_ON_CONFIG_ERROR
1138 # error "wxJoystick requires threads in wxGTK"
1140 # undef wxUSE_JOYSTICK
1141 # define wxUSE_JOYSTICK 0
1145 #endif /* wxGTK && !wxUniv */
1147 /* wxMSW-specific dependencies */
1149 # ifndef wxUSE_UNICODE_MSLU
1150 # ifdef wxABORT_ON_CONFIG_ERROR
1151 # error "wxUSE_UNICODE_MSLU must be defined."
1153 # define wxUSE_UNICODE_MSLU 0
1155 # endif /* wxUSE_UNICODE_MSLU */
1156 # ifndef wxUSE_UXTHEME
1157 # ifdef wxABORT_ON_CONFIG_ERROR
1158 # error "wxUSE_UXTHEME must be defined."
1160 # define wxUSE_UXTHEME 0
1162 # endif /* wxUSE_UXTHEME */
1163 # ifndef wxUSE_UXTHEME_AUTO
1164 # ifdef wxABORT_ON_CONFIG_ERROR
1165 # error "wxUSE_UXTHEME_AUTO must be defined."
1167 # define wxUSE_UXTHEME_AUTO 0
1169 # endif /* wxUSE_UXTHEME_AUTO */
1170 # ifndef wxUSE_MS_HTML_HELP
1171 # ifdef wxABORT_ON_CONFIG_ERROR
1172 # error "wxUSE_MS_HTML_HELP must be defined."
1174 # define wxUSE_MS_HTML_HELP 0
1176 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1177 # ifndef wxUSE_DIALUP_MANAGER
1178 # ifdef wxABORT_ON_CONFIG_ERROR
1179 # error "wxUSE_DIALUP_MANAGER must be defined."
1181 # define wxUSE_DIALUP_MANAGER 0
1183 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1185 # if !wxUSE_DYNAMIC_LOADER
1186 # if wxUSE_MS_HTML_HELP
1187 # ifdef wxABORT_ON_CONFIG_ERROR
1188 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1190 # define wxUSE_DYNAMIC_LOADER 1
1193 # if wxUSE_DIALUP_MANAGER
1194 # ifdef wxABORT_ON_CONFIG_ERROR
1195 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1197 # define wxUSE_DYNAMIC_LOADER 1
1200 # endif /* wxUSE_DYNAMIC_LOADER */
1204 /* wxMAC-specific dependencies */
1208 # ifdef wxABORT_ON_CONFIG_ERROR
1209 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1211 # define wxUSE_UNICODE 0
1216 /* wxMotif-specific dependencies */
1217 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1218 # undef wxUSE_TAB_DIALOG
1219 # define wxUSE_TAB_DIALOG 1
1222 /* wxMGL-specific dependencies */
1225 # error "wxMGL requires wxUSE_PALETTE=1"
1229 /* Hopefully we can emulate these dialogs in due course */
1230 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1231 # ifdef wxUSE_COLOURDLG
1232 # undef wxUSE_COLOURDLG
1233 # define wxUSE_COLOURDLG 0
1235 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1238 /* generic controls dependencies */
1239 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1240 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1241 /* all common controls are needed by these dialogs */
1242 # if !defined(wxUSE_CHOICE) || \
1243 !defined(wxUSE_TEXTCTRL) || \
1244 !defined(wxUSE_BUTTON) || \
1245 !defined(wxUSE_CHECKBOX) || \
1246 !defined(wxUSE_STATTEXT)
1247 # ifdef wxABORT_ON_CONFIG_ERROR
1248 # error "These common controls are needed by common dialogs"
1250 # undef wxUSE_CHOICE
1251 # define wxUSE_CHOICE 1
1252 # undef wxUSE_TEXTCTRL
1253 # define wxUSE_TEXTCTRL 1
1254 # undef wxUSE_BUTTON
1255 # define wxUSE_BUTTON 1
1256 # undef wxUSE_CHECKBOX
1257 # define wxUSE_CHECKBOX 1
1258 # undef wxUSE_STATTEXT
1259 # define wxUSE_STATTEXT 1
1263 #endif /* !wxMSW || wxUniv */
1265 /* common dependencies */
1266 #if wxUSE_CALENDARCTRL
1267 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1268 # ifdef wxABORT_ON_CONFIG_ERROR
1269 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1271 # undef wxUSE_SPINBTN
1272 # undef wxUSE_COMBOBOX
1273 # define wxUSE_SPINBTN 1
1274 # define wxUSE_COMBOBOX 1
1278 # if !wxUSE_DATETIME
1279 # ifdef wxABORT_ON_CONFIG_ERROR
1280 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1282 # undef wxUSE_DATETIME
1283 # define wxUSE_DATETIME 1
1286 #endif /* wxUSE_CALENDARCTRL */
1288 #if wxUSE_DATEPICKCTRL
1289 # if !wxUSE_DATETIME
1290 # ifdef wxABORT_ON_CONFIG_ERROR
1291 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1293 # undef wxUSE_DATETIME
1294 # define wxUSE_DATETIME 1
1297 #endif /* wxUSE_DATEPICKCTRL */
1299 #if wxUSE_CHECKLISTBOX
1301 # ifdef wxABORT_ON_CONFIG_ERROR
1302 # error "wxCheckListBox requires wxListBox"
1304 # undef wxUSE_LISTBOX
1305 # define wxUSE_LISTBOX 1
1308 #endif /* wxUSE_CHECKLISTBOX */
1312 # ifdef wxABORT_ON_CONFIG_ERROR
1313 # error "Choice dialogs requires wxListBox"
1315 # undef wxUSE_LISTBOX
1316 # define wxUSE_LISTBOX 1
1319 #endif /* wxUSE_CHOICEDLG */
1322 # if !wxUSE_BMPBUTTON
1323 # ifdef wxABORT_ON_CONFIG_ERROR
1324 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1326 # undef wxUSE_BMPBUTTON
1327 # define wxUSE_BMPBUTTON 1
1331 # if !wxUSE_CHOICEDLG
1332 # ifdef wxABORT_ON_CONFIG_ERROR
1333 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1335 # undef wxUSE_CHOICEDLG
1336 # define wxUSE_CHOICEDLG 1
1339 #endif /* wxUSE_HELP */
1341 #if wxUSE_WXHTML_HELP
1342 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1343 # ifdef wxABORT_ON_CONFIG_ERROR
1344 # error "Built in help controller can't be compiled"
1347 # define wxUSE_HELP 1
1349 # define wxUSE_HTML 1
1350 # undef wxUSE_COMBOBOX
1351 # define wxUSE_COMBOBOX 1
1352 # undef wxUSE_NOTEBOOK
1353 # define wxUSE_NOTEBOOK 1
1354 # undef wxUSE_SPINCTRL
1355 # define wxUSE_SPINCTRL 1
1358 #endif /* wxUSE_WXHTML_HELP */
1362 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1363 user explicitly wants this and disable all other features that require
1366 # if wxUSE_DRAGIMAGE
1367 # ifdef wxABORT_ON_CONFIG_ERROR
1368 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1370 # undef wxUSE_DRAGIMAGE
1371 # define wxUSE_DRAGIMAGE 0
1376 # ifdef wxABORT_ON_CONFIG_ERROR
1377 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1379 # undef wxUSE_LIBPNG
1380 # define wxUSE_LIBPNG 0
1385 # ifdef wxABORT_ON_CONFIG_ERROR
1386 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1388 # undef wxUSE_LIBJPEG
1389 # define wxUSE_LIBJPEG 0
1394 # ifdef wxABORT_ON_CONFIG_ERROR
1395 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1397 # undef wxUSE_LIBTIFF
1398 # define wxUSE_LIBTIFF 0
1403 # ifdef wxABORT_ON_CONFIG_ERROR
1404 # error "wxUSE_GIF requires wxUSE_IMAGE"
1407 # define wxUSE_GIF 0
1412 # ifdef wxABORT_ON_CONFIG_ERROR
1413 # error "wxUSE_PNM requires wxUSE_IMAGE"
1416 # define wxUSE_PNM 0
1421 # ifdef wxABORT_ON_CONFIG_ERROR
1422 # error "wxUSE_PCX requires wxUSE_IMAGE"
1425 # define wxUSE_PCX 0
1430 # ifdef wxABORT_ON_CONFIG_ERROR
1431 # error "wxUSE_IFF requires wxUSE_IMAGE"
1434 # define wxUSE_IFF 0
1439 # ifdef wxABORT_ON_CONFIG_ERROR
1440 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1442 # undef wxUSE_TOOLBAR
1443 # define wxUSE_TOOLBAR 0
1448 # ifdef wxABORT_ON_CONFIG_ERROR
1449 # error "wxUSE_XPM requires wxUSE_IMAGE"
1452 # define wxUSE_XPM 0
1456 #endif /* !wxUSE_IMAGE */
1458 #if wxUSE_DOC_VIEW_ARCHITECTURE
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "DocView requires wxUSE_MENUS"
1464 # define wxUSE_MENUS 1
1468 # if !wxUSE_CHOICEDLG
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "DocView requires wxUSE_CHOICEDLG"
1472 # undef wxUSE_CHOICEDLG
1473 # define wxUSE_CHOICEDLG 1
1477 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1481 # undef wxUSE_STREAMS
1482 # define wxUSE_STREAMS 1
1485 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1487 #if wxUSE_PRINTING_ARCHITECTURE
1488 # if !wxUSE_COMBOBOX
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "Print dialog requires wxUSE_COMBOBOX"
1492 # undef wxUSE_COMBOBOX
1493 # define wxUSE_COMBOBOX 1
1496 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1498 #if wxUSE_MDI_ARCHITECTURE
1500 # ifdef wxABORT_ON_CONFIG_ERROR
1501 # error "MDI requires wxUSE_MDI"
1504 # define wxUSE_MDI 1
1508 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1509 # ifdef wxABORT_ON_CONFIG_ERROR
1510 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1512 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1513 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1516 #endif /* wxUSE_MDI_ARCHITECTURE */
1519 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1520 # ifdef wxABORT_ON_CONFIG_ERROR
1521 # error "wxFileDialog must be compiled as well"
1523 # undef wxUSE_FILEDLG
1524 # define wxUSE_FILEDLG 1
1527 #endif /* wxUSE_FILEDLG */
1529 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1530 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1531 # ifdef wxABORT_ON_CONFIG_ERROR
1532 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1535 # undef wxUSE_BUTTON
1536 # define wxUSE_GAUGE 1
1537 # define wxUSE_BUTTON 1
1540 #endif /* !wxUSE_GAUGE */
1543 # if wxUSE_FONTDLG || \
1545 wxUSE_CHOICEDLG || \
1546 wxUSE_NUMBERDLG || \
1549 wxUSE_STARTUP_TIPS || \
1551 # ifdef wxABORT_ON_CONFIG_ERROR
1552 # error "Common and generic dialogs require wxUSE_BUTTON"
1554 # undef wxUSE_BUTTON
1555 # define wxUSE_BUTTON 1
1558 #endif /* !wxUSE_BUTTON */
1561 # if wxUSE_TOOLBAR_NATIVE
1562 # ifdef wxABORT_ON_CONFIG_ERROR
1563 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1565 # undef wxUSE_TOOLBAR_NATIVE
1566 # define wxUSE_TOOLBAR_NATIVE 0
1570 # if wxUSE_TOOLBAR_SIMPLE
1571 # ifdef wxABORT_ON_CONFIG_ERROR
1572 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1574 # undef wxUSE_TOOLBAR_SIMPLE
1575 # define wxUSE_TOOLBAR_SIMPLE 0
1581 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1582 # ifdef wxABORT_ON_CONFIG_ERROR
1583 # error "wxImageList must be compiled as well"
1585 # undef wxUSE_IMAGLIST
1586 # define wxUSE_IMAGLIST 1
1589 #endif /* !wxUSE_IMAGLIST */
1592 # ifdef wxABORT_ON_CONFIG_ERROR
1593 /* FIXME: should compile without it, of course, but doesn't */
1594 # error "wxMessageBox is always needed"
1596 # undef wxUSE_MSGDLG
1597 # define wxUSE_MSGDLG 1
1602 # if !wxUSE_RADIOBTN
1603 # ifdef wxABORT_ON_CONFIG_ERROR
1604 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1606 # undef wxUSE_RADIOBTN
1607 # define wxUSE_RADIOBTN 1
1610 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1611 # ifdef wxABORT_ON_CONFIG_ERROR
1612 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1614 # undef wxUSE_STATBOX
1615 # define wxUSE_STATBOX 1
1618 #endif /* wxUSE_RADIOBOX */
1621 # if !wxUSE_TEXTCTRL
1622 # ifdef wxABORT_ON_CONFIG_ERROR
1623 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1625 # undef wxUSE_TEXTCTRL
1626 # define wxUSE_TEXTCTRL 1
1629 #endif /* wxUSE_LOGWINDOW */
1631 #if wxUSE_LOG_DIALOG
1632 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1633 # ifdef wxABORT_ON_CONFIG_ERROR
1634 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1636 # undef wxUSE_LISTCTRL
1637 # define wxUSE_LISTCTRL 1
1638 # undef wxUSE_BUTTON
1639 # define wxUSE_BUTTON 1
1642 #endif /* wxUSE_LOG_DIALOG */
1644 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1645 # ifdef wxABORT_ON_CONFIG_ERROR
1646 # error "wxClipboard requires wxDataObject"
1648 # undef wxUSE_DATAOBJ
1649 # define wxUSE_DATAOBJ 1
1651 #endif /* wxUSE_CLIPBOARD */
1653 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1654 # ifdef wxABORT_ON_CONFIG_ERROR
1655 # error "wxr resources require PrologIO"
1657 # undef wxUSE_PROLOGIO
1658 # define wxUSE_PROLOGIO 1
1660 #endif /* wxUSE_WX_RESOURCES */
1662 #if wxUSE_XRC && !wxUSE_XML
1663 # ifdef wxABORT_ON_CONFIG_ERROR
1664 # error "wxUSE_XRC requires wxUSE_XML"
1667 # define wxUSE_XRC 0
1669 #endif /* wxUSE_XRC */
1671 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1672 # ifdef wxABORT_ON_CONFIG_ERROR
1673 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1675 # undef wxUSE_SOCKETS
1676 # define wxUSE_SOCKETS 0
1678 #endif /* wxUSE_SOCKETS */
1680 #endif /* wxUSE_GUI */