]>
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(__WXWINCE__)
21 # include "wx/msw/wince/chkconf.h"
22 #elif defined(__WXMSW__)
23 # include "wx/msw/chkconf.h"
24 #elif defined(__WXMAC__)
25 # include "wx/mac/chkconf.h"
29 this global setting determines what should we do if the setting FOO
30 requires BAR and BAR is not set: we can either silently define BAR
31 (default, recommended) or give an error and abort (mainly useful for
34 #define wxABORT_ON_CONFIG_ERROR
40 /* GUI build by default */
41 #if !defined(wxUSE_GUI)
43 #endif /* !defined(wxUSE_GUI) */
46 If we're compiling without support for threads/exceptions we have to
47 disable the corresponding features.
51 # define wxUSE_THREADS 0
52 #endif /* wxNO_THREADS */
54 #ifdef wxNO_EXCEPTIONS
55 # undef wxUSE_EXCEPTIONS
56 # define wxUSE_EXCEPTIONS 0
57 #endif /* wxNO_EXCEPTIONS */
61 tests for non GUI features
64 #ifndef wxUSE_DYNLIB_CLASS
65 # ifdef wxABORT_ON_CONFIG_ERROR
66 # error "wxUSE_DYNLIB_CLASS must be defined."
68 # define wxUSE_DYNLIB_CLASS 0
70 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
72 #ifndef wxUSE_EXCEPTIONS
73 # ifdef wxABORT_ON_CONFIG_ERROR
74 # error "wxUSE_EXCEPTIONS must be defined."
76 # define wxUSE_EXCEPTIONS 0
78 #endif /* !defined(wxUSE_EXCEPTIONS) */
80 #ifndef wxUSE_FILESYSTEM
81 # ifdef wxABORT_ON_CONFIG_ERROR
82 # error "wxUSE_FILESYSTEM must be defined."
84 # define wxUSE_FILESYSTEM 0
86 #endif /* !defined(wxUSE_FILESYSTEM) */
88 /* don't give an error about this one yet, it's not fully implemented */
89 #ifndef wxUSE_FSVOLUME
90 # define wxUSE_FSVOLUME 0
91 #endif /* !defined(wxUSE_FSVOLUME) */
93 #ifndef wxUSE_DYNAMIC_LOADER
94 # ifdef wxABORT_ON_CONFIG_ERROR
95 # error "wxUSE_DYNAMIC_LOADER must be defined."
97 # define wxUSE_DYNAMIC_LOADER 0
99 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
102 # ifdef wxABORT_ON_CONFIG_ERROR
103 # error "wxUSE_LOG must be defined."
107 #endif /* !defined(wxUSE_LOG) */
109 #ifndef wxUSE_LONGLONG
110 # ifdef wxABORT_ON_CONFIG_ERROR
111 # error "wxUSE_LONGLONG must be defined."
113 # define wxUSE_LONGLONG 0
115 #endif /* !defined(wxUSE_LONGLONG) */
117 #ifndef wxUSE_MIMETYPE
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "wxUSE_MIMETYPE must be defined."
121 # define wxUSE_MIMETYPE 0
123 #endif /* !defined(wxUSE_MIMETYPE) */
125 #ifndef wxUSE_PROTOCOL
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_PROTOCOL must be defined."
129 # define wxUSE_PROTOCOL 0
131 #endif /* !defined(wxUSE_PROTOCOL) */
133 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
135 # undef wxUSE_PROTOCOL_HTTP
136 # undef wxUSE_PROTOCOL_FTP
137 # undef wxUSE_PROTOCOL_FILE
138 # define wxUSE_PROTOCOL_HTTP 0
139 # define wxUSE_PROTOCOL_FTP 0
140 # define wxUSE_PROTOCOL_FILE 0
141 #endif /* wxUSE_PROTOCOL */
143 #ifndef wxUSE_PROTOCOL_HTTP
144 # ifdef wxABORT_ON_CONFIG_ERROR
145 # error "wxUSE_PROTOCOL_HTTP must be defined."
147 # define wxUSE_PROTOCOL_HTTP 0
149 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
151 #ifndef wxUSE_PROTOCOL_FTP
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_PROTOCOL_FTP must be defined."
155 # define wxUSE_PROTOCOL_FTP 0
157 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
159 #ifndef wxUSE_PROTOCOL_FILE
160 # ifdef wxABORT_ON_CONFIG_ERROR
161 # error "wxUSE_PROTOCOL_FILE must be defined."
163 # define wxUSE_PROTOCOL_FILE 0
165 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
168 # ifdef wxABORT_ON_CONFIG_ERROR
169 # error "wxUSE_REGEX must be defined."
171 # define wxUSE_REGEX 0
173 #endif /* !defined(wxUSE_REGEX) */
175 #ifndef wxUSE_STDPATHS
176 # ifdef wxABORT_ON_CONFIG_ERROR
177 # error "wxUSE_STDPATHS must be defined."
179 # define wxUSE_STDPATHS 1
181 #endif /* !defined(wxUSE_STDPATHS) */
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_XML must be defined."
189 #endif /* !defined(wxUSE_XML) */
191 #ifndef wxUSE_SOCKETS
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_SOCKETS must be defined."
195 # define wxUSE_SOCKETS 0
197 #endif /* !defined(wxUSE_SOCKETS) */
199 #ifndef wxUSE_STREAMS
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_STREAMS must be defined."
203 # define wxUSE_STREAMS 0
205 #endif /* !defined(wxUSE_STREAMS) */
207 #ifndef wxUSE_STOPWATCH
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_STOPWATCH must be defined."
211 # define wxUSE_STOPWATCH 0
213 #endif /* !defined(wxUSE_STOPWATCH) */
215 #ifndef wxUSE_TEXTBUFFER
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_TEXTBUFFER must be defined."
219 # define wxUSE_TEXTBUFFER 0
221 #endif /* !defined(wxUSE_TEXTBUFFER) */
223 #ifndef wxUSE_TEXTFILE
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_TEXTFILE must be defined."
227 # define wxUSE_TEXTFILE 0
229 #endif /* !defined(wxUSE_TEXTFILE) */
231 #ifndef wxUSE_UNICODE
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_UNICODE must be defined."
235 # define wxUSE_UNICODE 0
237 #endif /* !defined(wxUSE_UNICODE) */
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_URL must be defined."
245 #endif /* !defined(wxUSE_URL) */
248 all these tests are for GUI only
253 all of the settings tested below must be defined or we'd get an error from
254 preprocessor about invalid integer expression
258 # ifdef wxABORT_ON_CONFIG_ERROR
259 # error "wxUSE_ACCEL must be defined."
261 # define wxUSE_ACCEL 0
263 #endif /* !defined(wxUSE_ACCEL) */
265 #ifndef wxUSE_BMPBUTTON
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_BMPBUTTON must be defined."
269 # define wxUSE_BMPBUTTON 0
271 #endif /* !defined(wxUSE_BMPBUTTON) */
274 # ifdef wxABORT_ON_CONFIG_ERROR
275 # error "wxUSE_BUTTON must be defined."
277 # define wxUSE_BUTTON 0
279 #endif /* !defined(wxUSE_BUTTON) */
281 #ifndef wxUSE_CALENDARCTRL
282 # ifdef wxABORT_ON_CONFIG_ERROR
283 # error "wxUSE_CALENDARCTRL must be defined."
285 # define wxUSE_CALENDARCTRL 0
287 #endif /* !defined(wxUSE_CALENDARCTRL) */
290 # ifdef wxABORT_ON_CONFIG_ERROR
291 # error "wxUSE_CARET must be defined."
293 # define wxUSE_CARET 0
295 #endif /* !defined(wxUSE_CARET) */
297 #ifndef wxUSE_CHECKBOX
298 # ifdef wxABORT_ON_CONFIG_ERROR
299 # error "wxUSE_CHECKBOX must be defined."
301 # define wxUSE_CHECKBOX 0
303 #endif /* !defined(wxUSE_CHECKBOX) */
305 #ifndef wxUSE_CHECKLISTBOX
306 # ifdef wxABORT_ON_CONFIG_ERROR
307 # error "wxUSE_CHECKLISTBOX must be defined."
309 # define wxUSE_CHECKLISTBOX 0
311 #endif /* !defined(wxUSE_CHECKLISTBOX) */
314 # ifdef wxABORT_ON_CONFIG_ERROR
315 # error "wxUSE_CHOICE must be defined."
317 # define wxUSE_CHOICE 0
319 #endif /* !defined(wxUSE_CHOICE) */
321 #ifndef wxUSE_CHOICEBOOK
322 # ifdef wxABORT_ON_CONFIG_ERROR
323 # error "wxUSE_CHOICEBOOK must be defined."
325 # define wxUSE_CHOICEBOOK 0
327 #endif /* !defined(wxUSE_CHOICEBOOK) */
329 #ifndef wxUSE_CHOICEDLG
330 # ifdef wxABORT_ON_CONFIG_ERROR
331 # error "wxUSE_CHOICEDLG must be defined."
333 # define wxUSE_CHOICEDLG 0
335 #endif /* !defined(wxUSE_CHOICEDLG) */
337 #ifndef wxUSE_CLIPBOARD
338 # ifdef wxABORT_ON_CONFIG_ERROR
339 # error "wxUSE_CLIPBOARD must be defined."
341 # define wxUSE_CLIPBOARD 0
343 #endif /* !defined(wxUSE_CLIPBOARD) */
345 #ifndef wxUSE_COLOURDLG
346 # ifdef wxABORT_ON_CONFIG_ERROR
347 # error "wxUSE_COLOURDLG must be defined."
349 # define wxUSE_COLOURDLG 0
351 #endif /* !defined(wxUSE_COLOURDLG) */
353 #ifndef wxUSE_COMBOBOX
354 # ifdef wxABORT_ON_CONFIG_ERROR
355 # error "wxUSE_COMBOBOX must be defined."
357 # define wxUSE_COMBOBOX 0
359 #endif /* !defined(wxUSE_COMBOBOX) */
361 #ifndef wxUSE_DATAOBJ
362 # ifdef wxABORT_ON_CONFIG_ERROR
363 # error "wxUSE_DATAOBJ must be defined."
365 # define wxUSE_DATAOBJ 0
367 #endif /* !defined(wxUSE_DATAOBJ) */
369 #ifndef wxUSE_DATEPICKCTRL
370 # ifdef wxABORT_ON_CONFIG_ERROR
371 # error "wxUSE_DATEPICKCTRL must be defined."
373 # define wxUSE_DATEPICKCTRL 0
375 #endif /* !defined(wxUSE_DATEPICKCTRL) */
377 #ifndef wxUSE_DISPLAY
378 # ifdef wxABORT_ON_CONFIG_ERROR
379 # error "wxUSE_DISPLAY must be defined."
381 # define wxUSE_DISPLAY 0
383 #endif /* !defined(wxUSE_DISPLAY) */
385 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
386 # ifdef wxABORT_ON_CONFIG_ERROR
387 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
389 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
391 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
393 #ifndef wxUSE_FILEDLG
394 # ifdef wxABORT_ON_CONFIG_ERROR
395 # error "wxUSE_FILEDLG must be defined."
397 # define wxUSE_FILEDLG 0
399 #endif /* !defined(wxUSE_FILEDLG) */
401 #ifndef wxUSE_FONTDLG
402 # ifdef wxABORT_ON_CONFIG_ERROR
403 # error "wxUSE_FONTDLG must be defined."
405 # define wxUSE_FONTDLG 0
407 #endif /* !defined(wxUSE_FONTDLG) */
409 #ifndef wxUSE_FONTMAP
410 # ifdef wxABORT_ON_CONFIG_ERROR
411 # error "wxUSE_FONTMAP must be defined."
413 # define wxUSE_FONTMAP 0
415 #endif /* !defined(wxUSE_FONTMAP) */
418 # ifdef wxABORT_ON_CONFIG_ERROR
419 # error "wxUSE_GAUGE must be defined."
421 # define wxUSE_GAUGE 0
423 #endif /* !defined(wxUSE_GAUGE) */
426 # ifdef wxABORT_ON_CONFIG_ERROR
427 # error "wxUSE_GRID must be defined."
429 # define wxUSE_GRID 0
431 #endif /* !defined(wxUSE_GRID) */
434 # ifdef wxABORT_ON_CONFIG_ERROR
435 # error "wxUSE_HELP must be defined."
437 # define wxUSE_HELP 0
439 #endif /* !defined(wxUSE_HELP) */
442 # ifdef wxABORT_ON_CONFIG_ERROR
443 # error "wxUSE_HTML must be defined."
445 # define wxUSE_HTML 0
447 #endif /* !defined(wxUSE_HTML) */
450 # ifdef wxABORT_ON_CONFIG_ERROR
451 # error "wxUSE_XRC must be defined."
455 #endif /* !defined(wxUSE_XRC) */
457 #ifndef wxUSE_LIBMSPACK
459 /* set to 0 on platforms that don't have libmspack */
460 # define wxUSE_LIBMSPACK 0
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_LIBMSPACK must be defined."
465 # define wxUSE_LIBMSPACK 0
468 #endif /* !defined(wxUSE_LIBMSPACK) */
470 #ifndef wxUSE_ICO_CUR
471 # ifdef wxABORT_ON_CONFIG_ERROR
472 # error "wxUSE_ICO_CUR must be defined."
474 # define wxUSE_ICO_CUR 0
476 #endif /* !defined(wxUSE_ICO_CUR) */
479 # ifdef wxABORT_ON_CONFIG_ERROR
480 # error "wxUSE_IFF must be defined."
484 #endif /* !defined(wxUSE_IFF) */
486 #ifndef wxUSE_IMAGLIST
487 # ifdef wxABORT_ON_CONFIG_ERROR
488 # error "wxUSE_IMAGLIST must be defined."
490 # define wxUSE_IMAGLIST 0
492 #endif /* !defined(wxUSE_IMAGLIST) */
494 #ifndef wxUSE_JOYSTICK
495 # ifdef wxABORT_ON_CONFIG_ERROR
496 # error "wxUSE_JOYSTICK must be defined."
498 # define wxUSE_JOYSTICK 0
500 #endif /* !defined(wxUSE_JOYSTICK) */
502 #ifndef wxUSE_LISTBOOK
503 # ifdef wxABORT_ON_CONFIG_ERROR
504 # error "wxUSE_LISTBOOK must be defined."
506 # define wxUSE_LISTBOOK 0
508 #endif /* !defined(wxUSE_LISTBOOK) */
510 #ifndef wxUSE_LISTBOX
511 # ifdef wxABORT_ON_CONFIG_ERROR
512 # error "wxUSE_LISTBOX must be defined."
514 # define wxUSE_LISTBOX 0
516 #endif /* !defined(wxUSE_LISTBOX) */
518 #ifndef wxUSE_LISTCTRL
519 # ifdef wxABORT_ON_CONFIG_ERROR
520 # error "wxUSE_LISTCTRL must be defined."
522 # define wxUSE_LISTCTRL 0
524 #endif /* !defined(wxUSE_LISTCTRL) */
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_LOGGUI must be defined."
530 # define wxUSE_LOGGUI 0
532 #endif /* !defined(wxUSE_LOGGUI) */
534 #ifndef wxUSE_LOGWINDOW
535 # ifdef wxABORT_ON_CONFIG_ERROR
536 # error "wxUSE_LOGWINDOW must be defined."
538 # define wxUSE_LOGWINDOW 0
540 #endif /* !defined(wxUSE_LOGWINDOW) */
542 #ifndef wxUSE_LOG_DIALOG
543 # ifdef wxABORT_ON_CONFIG_ERROR
544 # error "wxUSE_LOG_DIALOG must be defined."
546 # define wxUSE_LOG_DIALOG 0
548 #endif /* !defined(wxUSE_LOG_DIALOG) */
551 # ifdef wxABORT_ON_CONFIG_ERROR
552 # error "wxUSE_MDI must be defined."
556 #endif /* !defined(wxUSE_MDI) */
558 #ifndef wxUSE_MDI_ARCHITECTURE
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxUSE_MDI_ARCHITECTURE must be defined."
562 # define wxUSE_MDI_ARCHITECTURE 0
564 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
567 # ifdef wxABORT_ON_CONFIG_ERROR
568 # error "wxUSE_MENUS must be defined."
570 # define wxUSE_MENUS 0
572 #endif /* !defined(wxUSE_MENUS) */
575 # ifdef wxABORT_ON_CONFIG_ERROR
576 # error "wxUSE_MSGDLG must be defined."
578 # define wxUSE_MSGDLG 0
580 #endif /* !defined(wxUSE_MSGDLG) */
582 #ifndef wxUSE_NOTEBOOK
583 # ifdef wxABORT_ON_CONFIG_ERROR
584 # error "wxUSE_NOTEBOOK must be defined."
586 # define wxUSE_NOTEBOOK 0
588 #endif /* !defined(wxUSE_NOTEBOOK) */
590 #ifndef wxUSE_PALETTE
591 # ifdef wxABORT_ON_CONFIG_ERROR
592 # error "wxUSE_PALETTE must be defined."
594 # define wxUSE_PALETTE 0
596 #endif /* !defined(wxUSE_PALETTE) */
598 #ifndef wxUSE_POPUPWIN
599 # ifdef wxABORT_ON_CONFIG_ERROR
600 # error "wxUSE_POPUPWIN must be defined."
602 # define wxUSE_POPUPWIN 0
604 #endif /* !defined(wxUSE_POPUPWIN) */
606 #ifndef wxUSE_PRINTING_ARCHITECTURE
607 # ifdef wxABORT_ON_CONFIG_ERROR
608 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
610 # define wxUSE_PRINTING_ARCHITECTURE 0
612 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
614 #ifndef wxUSE_RADIOBOX
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_RADIOBOX must be defined."
618 # define wxUSE_RADIOBOX 0
620 #endif /* !defined(wxUSE_RADIOBOX) */
622 #ifndef wxUSE_RADIOBTN
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_RADIOBTN must be defined."
626 # define wxUSE_RADIOBTN 0
628 #endif /* !defined(wxUSE_RADIOBTN) */
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_SASH must be defined."
634 # define wxUSE_SASH 0
636 #endif /* !defined(wxUSE_SASH) */
638 #ifndef wxUSE_SCROLLBAR
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_SCROLLBAR must be defined."
642 # define wxUSE_SCROLLBAR 0
644 #endif /* !defined(wxUSE_SCROLLBAR) */
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_SLIDER must be defined."
650 # define wxUSE_SLIDER 0
652 #endif /* !defined(wxUSE_SLIDER) */
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_SOUND must be defined."
658 # define wxUSE_SOUND 0
660 #endif /* !defined(wxUSE_SOUND) */
662 #ifndef wxUSE_SPINBTN
663 # ifdef wxABORT_ON_CONFIG_ERROR
664 # error "wxUSE_SPINBTN must be defined."
666 # define wxUSE_SPINBTN 0
668 #endif /* !defined(wxUSE_SPINBTN) */
670 #ifndef wxUSE_SPINCTRL
671 # ifdef wxABORT_ON_CONFIG_ERROR
672 # error "wxUSE_SPINCTRL must be defined."
674 # define wxUSE_SPINCTRL 0
676 #endif /* !defined(wxUSE_SPINCTRL) */
679 # ifdef wxABORT_ON_CONFIG_ERROR
680 # error "wxUSE_SPLASH must be defined."
682 # define wxUSE_SPLASH 0
684 #endif /* !defined(wxUSE_SPLASH) */
686 #ifndef wxUSE_SPLITTER
687 # ifdef wxABORT_ON_CONFIG_ERROR
688 # error "wxUSE_SPLITTER must be defined."
690 # define wxUSE_SPLITTER 0
692 #endif /* !defined(wxUSE_SPLITTER) */
694 #ifndef wxUSE_STATBMP
695 # ifdef wxABORT_ON_CONFIG_ERROR
696 # error "wxUSE_STATBMP must be defined."
698 # define wxUSE_STATBMP 0
700 #endif /* !defined(wxUSE_STATBMP) */
702 #ifndef wxUSE_STATBOX
703 # ifdef wxABORT_ON_CONFIG_ERROR
704 # error "wxUSE_STATBOX must be defined."
706 # define wxUSE_STATBOX 0
708 #endif /* !defined(wxUSE_STATBOX) */
710 #ifndef wxUSE_STATLINE
711 # ifdef wxABORT_ON_CONFIG_ERROR
712 # error "wxUSE_STATLINE must be defined."
714 # define wxUSE_STATLINE 0
716 #endif /* !defined(wxUSE_STATLINE) */
718 #ifndef wxUSE_STATTEXT
719 # ifdef wxABORT_ON_CONFIG_ERROR
720 # error "wxUSE_STATTEXT must be defined."
722 # define wxUSE_STATTEXT 0
724 #endif /* !defined(wxUSE_STATTEXT) */
726 #ifndef wxUSE_STATUSBAR
727 # ifdef wxABORT_ON_CONFIG_ERROR
728 # error "wxUSE_STATUSBAR must be defined."
730 # define wxUSE_STATUSBAR 0
732 #endif /* !defined(wxUSE_STATUSBAR) */
734 #ifndef wxUSE_TAB_DIALOG
735 # ifdef wxABORT_ON_CONFIG_ERROR
736 # error "wxUSE_TAB_DIALOG must be defined."
738 # define wxUSE_TAB_DIALOG 0
740 #endif /* !defined(wxUSE_TAB_DIALOG) */
742 #ifndef wxUSE_TEXTCTRL
743 # ifdef wxABORT_ON_CONFIG_ERROR
744 # error "wxUSE_TEXTCTRL must be defined."
746 # define wxUSE_TEXTCTRL 0
748 #endif /* !defined(wxUSE_TEXTCTRL) */
750 #ifndef wxUSE_TIPWINDOW
751 # ifdef wxABORT_ON_CONFIG_ERROR
752 # error "wxUSE_TIPWINDOW must be defined."
754 # define wxUSE_TIPWINDOW 0
756 #endif /* !defined(wxUSE_TIPWINDOW) */
758 #ifndef wxUSE_TOOLBAR
759 # ifdef wxABORT_ON_CONFIG_ERROR
760 # error "wxUSE_TOOLBAR must be defined."
762 # define wxUSE_TOOLBAR 0
764 #endif /* !defined(wxUSE_TOOLBAR) */
766 #ifndef wxUSE_TOOLTIPS
767 # ifdef wxABORT_ON_CONFIG_ERROR
768 # error "wxUSE_TOOLTIPS must be defined."
770 # define wxUSE_TOOLTIPS 0
772 #endif /* !defined(wxUSE_TOOLTIPS) */
774 #ifndef wxUSE_TREECTRL
775 # ifdef wxABORT_ON_CONFIG_ERROR
776 # error "wxUSE_TREECTRL must be defined."
778 # define wxUSE_TREECTRL 0
780 #endif /* !defined(wxUSE_TREECTRL) */
782 #ifndef wxUSE_VALIDATORS
783 # ifdef wxABORT_ON_CONFIG_ERROR
784 # error "wxUSE_VALIDATORS must be defined."
786 # define wxUSE_VALIDATORS 0
788 #endif /* !defined(wxUSE_VALIDATORS) */
790 #ifndef wxUSE_WXHTML_HELP
791 # ifdef wxABORT_ON_CONFIG_ERROR
792 # error "wxUSE_WXHTML_HELP must be defined."
794 # define wxUSE_WXHTML_HELP 0
796 #endif /* !defined(wxUSE_WXHTML_HELP) */
798 #endif /* wxUSE_GUI */
801 check consistency of the settings
804 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
806 # ifdef wxABORT_ON_CONFIG_ERROR
807 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
809 # undef wxUSE_PROTOCOL
810 # define wxUSE_PROTOCOL 1
813 #endif /* wxUSE_PROTOCOL_XXX */
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_URL requires wxUSE_PROTOCOL"
820 # undef wxUSE_PROTOCOL
821 # define wxUSE_PROTOCOL 1
824 #endif /* wxUSE_URL */
828 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
832 # undef wxUSE_SOCKETS
833 # define wxUSE_SOCKETS 1
839 # ifdef wxABORT_ON_CONFIG_ERROR
840 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
842 # undef wxUSE_STREAMS
843 # define wxUSE_STREAMS 1
846 #endif /* wxUSE_PROTOCOL */
848 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
850 # if !wxUSE_FILESYSTEM
851 # ifdef wxABORT_ON_CONFIG_ERROR
852 # error "wxHTML requires wxFileSystem"
854 # undef wxUSE_FILESYSTEM
855 # define wxUSE_FILESYSTEM 1
858 #endif /* wxUSE_HTML */
862 # ifdef wxABORT_ON_CONFIG_ERROR
863 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
865 # undef wxUSE_STREAMS
866 # define wxUSE_STREAMS 1
869 #endif /* wxUSE_FILESYSTEM */
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
876 # undef wxUSE_PROTOCOL
877 # define wxUSE_PROTOCOL 1
880 #endif /* wxUSE_FS_INET */
882 #if wxUSE_STOPWATCH || wxUSE_DATETIME
884 # ifdef wxABORT_ON_CONFIG_ERROR
885 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
887 # undef wxUSE_LONGLONG
888 # define wxUSE_LONGLONG 1
891 #endif /* wxUSE_STOPWATCH */
893 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
894 # ifdef wxABORT_ON_CONFIG_ERROR
895 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
897 # undef wxUSE_TEXTFILE
898 # define wxUSE_TEXTFILE 1
900 #endif /* wxUSE_MIMETYPE */
902 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
903 # ifdef wxABORT_ON_CONFIG_ERROR
904 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
906 # undef wxUSE_TEXTBUFFER
907 # define wxUSE_TEXTBUFFER 1
909 #endif /* wxUSE_TEXTFILE */
911 #if wxUSE_TEXTFILE && !wxUSE_FILE
912 # ifdef wxABORT_ON_CONFIG_ERROR
913 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
916 # define wxUSE_FILE 1
918 #endif /* wxUSE_TEXTFILE */
920 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
924 # undef wxUSE_UNICODE
925 # define wxUSE_UNICODE 1
927 #endif /* wxUSE_UNICODE_MSLU */
929 /* ODBC and Unicode are now compatible */
931 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
932 # ifdef wxABORT_ON_CONFIG_ERROR
933 /* (ODBC classes aren't Unicode-compatible yet) */
934 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
937 # define wxUSE_ODBC 0
939 #endif /* wxUSE_ODBC */
941 #if wxUSE_XML && !wxUSE_WCHAR_T
942 # ifdef wxABORT_ON_CONFIG_ERROR
943 # error "wxUSE_XML requires wxUSE_WCHAR_T"
948 #endif /* wxUSE_UNICODE_MSLU */
950 #if !wxUSE_DYNLIB_CLASS
951 # if wxUSE_DYNAMIC_LOADER
952 # ifdef wxABORT_ON_CONFIG_ERROR
953 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
955 # define wxUSE_DYNLIB_CLASS 1
958 #endif /* wxUSE_DYNLIB_CLASS */
962 # ifdef wxABORT_ON_CONFIG_ERROR
963 # error "wxZip requires wxZlib"
966 # define wxUSE_ZLIB 1
969 # if !wxUSE_ARCHIVE_STREAMS
970 # ifdef wxABORT_ON_CONFIG_ERROR
971 # error "wxZip requires wxArchive"
973 # undef wxUSE_ARCHIVE_STREAMS
974 # define wxUSE_ARCHIVE_STREAMS 1
977 #endif /* wxUSE_ZIPSTREAM */
979 /* the rest of the tests is for the GUI settings only */
982 #if wxUSE_BUTTON || \
983 wxUSE_CALENDARCTRL || \
988 wxUSE_CHECKLISTBOX || \
1005 wxUSE_STATUSBAR || \
1009 # if !wxUSE_CONTROLS
1010 # ifdef wxABORT_ON_CONFIG_ERROR
1011 # error "wxUSE_CONTROLS unset but some controls used"
1013 # undef wxUSE_CONTROLS
1014 # define wxUSE_CONTROLS 1
1017 #endif /* controls */
1021 # ifdef wxABORT_ON_CONFIG_ERROR
1022 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1024 # undef wxUSE_BUTTON
1025 # define wxUSE_BUTTON 1
1028 #endif /* wxUSE_BMPBUTTON */
1030 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1031 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1032 # ifdef wxABORT_ON_CONFIG_ERROR
1033 # error "wxUSE_BOOKCTRL must be set."
1035 # undef wxUSE_BOOKCTRL
1039 # ifndef wxUSE_BOOKCTRL
1040 # define wxUSE_BOOKCTRL 1
1042 #endif /* wxUSE_NOTEBOOK */
1045 # if !wxUSE_LISTCTRL
1046 # ifdef wxABORT_ON_CONFIG_ERROR
1047 # error "wxListbook requires wxListCtrl"
1049 # undef wxUSE_LISTCTRL
1050 # define wxUSE_LISTCTRL 1
1053 #endif /* wxUSE_LISTBOOK */
1055 #if wxUSE_CHOICEBOOK
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxChoicebook requires wxChoice"
1060 # undef wxUSE_CHOICE
1061 # define wxUSE_CHOICE 1
1064 #endif /* wxUSE_CHOICEBOOK */
1066 /* don't attempt to use native status bar on the platforms not having it */
1067 #ifndef wxUSE_NATIVE_STATUSBAR
1068 # define wxUSE_NATIVE_STATUSBAR 0
1069 #elif wxUSE_NATIVE_STATUSBAR
1070 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1071 defined(__WXMAC__) || \
1072 defined(__WXPALMOS__) )
1073 # undef wxUSE_NATIVE_STATUSBAR
1074 # define wxUSE_NATIVE_STATUSBAR 0
1078 /* wxUniv-specific dependencies */
1079 #if defined(__WXUNIVERSAL__)
1080 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1084 # undef wxUSE_POPUPWIN
1085 # define wxUSE_POPUPWIN 1
1091 # ifdef wxABORT_ON_CONFIG_ERROR
1092 # error "wxComboBox requires wxListBox in wxUniversal"
1094 # undef wxUSE_LISTBOX
1095 # define wxUSE_LISTBOX 1
1098 # endif /* wxUSE_COMBOBOX */
1101 # if !wxUSE_CHECKBOX
1102 # ifdef wxABORT_ON_CONFIG_ERROR
1103 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1105 # undef wxUSE_CHECKBOX
1106 # define wxUSE_CHECKBOX 1
1109 # endif /* wxUSE_RADIOBTN */
1113 # ifdef wxABORT_ON_CONFIG_ERROR
1114 # error "wxTextCtrl requires wxCaret in wxUniversal"
1117 # define wxUSE_CARET 1
1119 # endif /* wxUSE_CARET */
1121 # if !wxUSE_SCROLLBAR
1122 # ifdef wxABORT_ON_CONFIG_ERROR
1123 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1125 # undef wxUSE_SCROLLBAR
1126 # define wxUSE_SCROLLBAR 1
1128 # endif /* wxUSE_SCROLLBAR */
1129 # endif /* wxUSE_TEXTCTRL */
1130 #endif /* __WXUNIVERSAL__ */
1132 /* wxGTK-specific dependencies */
1134 # ifndef __WXUNIVERSAL__
1135 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1136 # ifdef wxABORT_ON_CONFIG_ERROR
1137 # error "MDI requires wxUSE_MENUS in wxGTK"
1140 # define wxUSE_MENUS 1
1143 # endif /* !__WXUNIVERSAL__ */
1147 # ifdef wxABORT_ON_CONFIG_ERROR
1148 # error "wxJoystick requires threads in wxGTK"
1150 # undef wxUSE_JOYSTICK
1151 # define wxUSE_JOYSTICK 0
1155 #endif /* wxGTK && !wxUniv */
1157 /* wxMSW-specific dependencies */
1159 # ifndef wxUSE_UNICODE_MSLU
1160 # ifdef wxABORT_ON_CONFIG_ERROR
1161 # error "wxUSE_UNICODE_MSLU must be defined."
1163 # define wxUSE_UNICODE_MSLU 0
1165 # endif /* wxUSE_UNICODE_MSLU */
1166 # ifndef wxUSE_UXTHEME
1167 # ifdef wxABORT_ON_CONFIG_ERROR
1168 # error "wxUSE_UXTHEME must be defined."
1170 # define wxUSE_UXTHEME 0
1172 # endif /* wxUSE_UXTHEME */
1173 # ifndef wxUSE_UXTHEME_AUTO
1174 # ifdef wxABORT_ON_CONFIG_ERROR
1175 # error "wxUSE_UXTHEME_AUTO must be defined."
1177 # define wxUSE_UXTHEME_AUTO 0
1179 # endif /* wxUSE_UXTHEME_AUTO */
1180 # ifndef wxUSE_MS_HTML_HELP
1181 # ifdef wxABORT_ON_CONFIG_ERROR
1182 # error "wxUSE_MS_HTML_HELP must be defined."
1184 # define wxUSE_MS_HTML_HELP 0
1186 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1187 # ifndef wxUSE_DIALUP_MANAGER
1188 # ifdef wxABORT_ON_CONFIG_ERROR
1189 # error "wxUSE_DIALUP_MANAGER must be defined."
1191 # define wxUSE_DIALUP_MANAGER 0
1193 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1195 # if !wxUSE_DYNAMIC_LOADER
1196 # if wxUSE_MS_HTML_HELP
1197 # ifdef wxABORT_ON_CONFIG_ERROR
1198 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1200 # define wxUSE_DYNAMIC_LOADER 1
1203 # if wxUSE_DIALUP_MANAGER
1204 # ifdef wxABORT_ON_CONFIG_ERROR
1205 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1207 # define wxUSE_DYNAMIC_LOADER 1
1210 # endif /* wxUSE_DYNAMIC_LOADER */
1214 /* wxMAC-specific dependencies */
1218 # ifdef wxABORT_ON_CONFIG_ERROR
1219 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1221 # define wxUSE_UNICODE 0
1226 /* wxMotif-specific dependencies */
1227 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1228 # undef wxUSE_TAB_DIALOG
1229 # define wxUSE_TAB_DIALOG 1
1232 /* wxMGL-specific dependencies */
1235 # error "wxMGL requires wxUSE_PALETTE=1"
1239 /* Hopefully we can emulate these dialogs in due course */
1240 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1241 # ifdef wxUSE_COLOURDLG
1242 # undef wxUSE_COLOURDLG
1243 # define wxUSE_COLOURDLG 0
1245 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1248 /* generic controls dependencies */
1249 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1250 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1251 /* all common controls are needed by these dialogs */
1252 # if !defined(wxUSE_CHOICE) || \
1253 !defined(wxUSE_TEXTCTRL) || \
1254 !defined(wxUSE_BUTTON) || \
1255 !defined(wxUSE_CHECKBOX) || \
1256 !defined(wxUSE_STATTEXT)
1257 # ifdef wxABORT_ON_CONFIG_ERROR
1258 # error "These common controls are needed by common dialogs"
1260 # undef wxUSE_CHOICE
1261 # define wxUSE_CHOICE 1
1262 # undef wxUSE_TEXTCTRL
1263 # define wxUSE_TEXTCTRL 1
1264 # undef wxUSE_BUTTON
1265 # define wxUSE_BUTTON 1
1266 # undef wxUSE_CHECKBOX
1267 # define wxUSE_CHECKBOX 1
1268 # undef wxUSE_STATTEXT
1269 # define wxUSE_STATTEXT 1
1273 #endif /* !wxMSW || wxUniv */
1275 /* common dependencies */
1276 #if wxUSE_CALENDARCTRL
1277 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1278 # ifdef wxABORT_ON_CONFIG_ERROR
1279 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1281 # undef wxUSE_SPINBTN
1282 # undef wxUSE_COMBOBOX
1283 # define wxUSE_SPINBTN 1
1284 # define wxUSE_COMBOBOX 1
1288 # if !wxUSE_DATETIME
1289 # ifdef wxABORT_ON_CONFIG_ERROR
1290 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1292 # undef wxUSE_DATETIME
1293 # define wxUSE_DATETIME 1
1296 #endif /* wxUSE_CALENDARCTRL */
1298 #if wxUSE_DATEPICKCTRL
1299 # if !wxUSE_DATETIME
1300 # ifdef wxABORT_ON_CONFIG_ERROR
1301 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1303 # undef wxUSE_DATETIME
1304 # define wxUSE_DATETIME 1
1307 #endif /* wxUSE_DATEPICKCTRL */
1309 #if wxUSE_CHECKLISTBOX
1311 # ifdef wxABORT_ON_CONFIG_ERROR
1312 # error "wxCheckListBox requires wxListBox"
1314 # undef wxUSE_LISTBOX
1315 # define wxUSE_LISTBOX 1
1318 #endif /* wxUSE_CHECKLISTBOX */
1322 # ifdef wxABORT_ON_CONFIG_ERROR
1323 # error "Choice dialogs requires wxListBox"
1325 # undef wxUSE_LISTBOX
1326 # define wxUSE_LISTBOX 1
1329 #endif /* wxUSE_CHOICEDLG */
1332 # if !wxUSE_BMPBUTTON
1333 # ifdef wxABORT_ON_CONFIG_ERROR
1334 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1336 # undef wxUSE_BMPBUTTON
1337 # define wxUSE_BMPBUTTON 1
1341 # if !wxUSE_CHOICEDLG
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1345 # undef wxUSE_CHOICEDLG
1346 # define wxUSE_CHOICEDLG 1
1349 #endif /* wxUSE_HELP */
1351 #if wxUSE_WXHTML_HELP
1352 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "Built in help controller can't be compiled"
1357 # define wxUSE_HELP 1
1359 # define wxUSE_HTML 1
1360 # undef wxUSE_COMBOBOX
1361 # define wxUSE_COMBOBOX 1
1362 # undef wxUSE_NOTEBOOK
1363 # define wxUSE_NOTEBOOK 1
1364 # undef wxUSE_SPINCTRL
1365 # define wxUSE_SPINCTRL 1
1368 #endif /* wxUSE_WXHTML_HELP */
1372 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1373 user explicitly wants this and disable all other features that require
1376 # if wxUSE_DRAGIMAGE
1377 # ifdef wxABORT_ON_CONFIG_ERROR
1378 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1380 # undef wxUSE_DRAGIMAGE
1381 # define wxUSE_DRAGIMAGE 0
1386 # ifdef wxABORT_ON_CONFIG_ERROR
1387 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1389 # undef wxUSE_LIBPNG
1390 # define wxUSE_LIBPNG 0
1395 # ifdef wxABORT_ON_CONFIG_ERROR
1396 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1398 # undef wxUSE_LIBJPEG
1399 # define wxUSE_LIBJPEG 0
1404 # ifdef wxABORT_ON_CONFIG_ERROR
1405 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1407 # undef wxUSE_LIBTIFF
1408 # define wxUSE_LIBTIFF 0
1413 # ifdef wxABORT_ON_CONFIG_ERROR
1414 # error "wxUSE_GIF requires wxUSE_IMAGE"
1417 # define wxUSE_GIF 0
1422 # ifdef wxABORT_ON_CONFIG_ERROR
1423 # error "wxUSE_PNM requires wxUSE_IMAGE"
1426 # define wxUSE_PNM 0
1431 # ifdef wxABORT_ON_CONFIG_ERROR
1432 # error "wxUSE_PCX requires wxUSE_IMAGE"
1435 # define wxUSE_PCX 0
1440 # ifdef wxABORT_ON_CONFIG_ERROR
1441 # error "wxUSE_IFF requires wxUSE_IMAGE"
1444 # define wxUSE_IFF 0
1449 # ifdef wxABORT_ON_CONFIG_ERROR
1450 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1452 # undef wxUSE_TOOLBAR
1453 # define wxUSE_TOOLBAR 0
1458 # ifdef wxABORT_ON_CONFIG_ERROR
1459 # error "wxUSE_XPM requires wxUSE_IMAGE"
1462 # define wxUSE_XPM 0
1466 #endif /* !wxUSE_IMAGE */
1468 #if wxUSE_DOC_VIEW_ARCHITECTURE
1470 # ifdef wxABORT_ON_CONFIG_ERROR
1471 # error "DocView requires wxUSE_MENUS"
1474 # define wxUSE_MENUS 1
1478 # if !wxUSE_CHOICEDLG
1479 # ifdef wxABORT_ON_CONFIG_ERROR
1480 # error "DocView requires wxUSE_CHOICEDLG"
1482 # undef wxUSE_CHOICEDLG
1483 # define wxUSE_CHOICEDLG 1
1487 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1488 # ifdef wxABORT_ON_CONFIG_ERROR
1489 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1491 # undef wxUSE_STREAMS
1492 # define wxUSE_STREAMS 1
1495 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1497 #if wxUSE_PRINTING_ARCHITECTURE
1498 # if !wxUSE_COMBOBOX
1499 # ifdef wxABORT_ON_CONFIG_ERROR
1500 # error "Print dialog requires wxUSE_COMBOBOX"
1502 # undef wxUSE_COMBOBOX
1503 # define wxUSE_COMBOBOX 1
1506 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1508 #if wxUSE_MDI_ARCHITECTURE
1510 # ifdef wxABORT_ON_CONFIG_ERROR
1511 # error "MDI requires wxUSE_MDI"
1514 # define wxUSE_MDI 1
1518 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1519 # ifdef wxABORT_ON_CONFIG_ERROR
1520 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1522 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1523 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1526 #endif /* wxUSE_MDI_ARCHITECTURE */
1529 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1530 # ifdef wxABORT_ON_CONFIG_ERROR
1531 # error "wxFileDialog must be compiled as well"
1533 # undef wxUSE_FILEDLG
1534 # define wxUSE_FILEDLG 1
1537 #endif /* wxUSE_FILEDLG */
1539 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1540 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1541 # ifdef wxABORT_ON_CONFIG_ERROR
1542 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1545 # undef wxUSE_BUTTON
1546 # define wxUSE_GAUGE 1
1547 # define wxUSE_BUTTON 1
1550 #endif /* !wxUSE_GAUGE */
1553 # if wxUSE_FONTDLG || \
1555 wxUSE_CHOICEDLG || \
1556 wxUSE_NUMBERDLG || \
1559 wxUSE_STARTUP_TIPS || \
1561 # ifdef wxABORT_ON_CONFIG_ERROR
1562 # error "Common and generic dialogs require wxUSE_BUTTON"
1564 # undef wxUSE_BUTTON
1565 # define wxUSE_BUTTON 1
1568 #endif /* !wxUSE_BUTTON */
1571 # if wxUSE_TOOLBAR_NATIVE
1572 # ifdef wxABORT_ON_CONFIG_ERROR
1573 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1575 # undef wxUSE_TOOLBAR_NATIVE
1576 # define wxUSE_TOOLBAR_NATIVE 0
1580 # if wxUSE_TOOLBAR_SIMPLE
1581 # ifdef wxABORT_ON_CONFIG_ERROR
1582 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1584 # undef wxUSE_TOOLBAR_SIMPLE
1585 # define wxUSE_TOOLBAR_SIMPLE 0
1591 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1592 # ifdef wxABORT_ON_CONFIG_ERROR
1593 # error "wxImageList must be compiled as well"
1595 # undef wxUSE_IMAGLIST
1596 # define wxUSE_IMAGLIST 1
1599 #endif /* !wxUSE_IMAGLIST */
1602 # ifdef wxABORT_ON_CONFIG_ERROR
1603 /* FIXME: should compile without it, of course, but doesn't */
1604 # error "wxMessageBox is always needed"
1606 # undef wxUSE_MSGDLG
1607 # define wxUSE_MSGDLG 1
1612 # if !wxUSE_RADIOBTN
1613 # ifdef wxABORT_ON_CONFIG_ERROR
1614 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1616 # undef wxUSE_RADIOBTN
1617 # define wxUSE_RADIOBTN 1
1620 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1621 # ifdef wxABORT_ON_CONFIG_ERROR
1622 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1624 # undef wxUSE_STATBOX
1625 # define wxUSE_STATBOX 1
1628 #endif /* wxUSE_RADIOBOX */
1631 # if !wxUSE_TEXTCTRL
1632 # ifdef wxABORT_ON_CONFIG_ERROR
1633 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1635 # undef wxUSE_TEXTCTRL
1636 # define wxUSE_TEXTCTRL 1
1639 #endif /* wxUSE_LOGWINDOW */
1641 #if wxUSE_LOG_DIALOG
1642 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1643 # ifdef wxABORT_ON_CONFIG_ERROR
1644 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1646 # undef wxUSE_LISTCTRL
1647 # define wxUSE_LISTCTRL 1
1648 # undef wxUSE_BUTTON
1649 # define wxUSE_BUTTON 1
1652 #endif /* wxUSE_LOG_DIALOG */
1654 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1655 # ifdef wxABORT_ON_CONFIG_ERROR
1656 # error "wxClipboard requires wxDataObject"
1658 # undef wxUSE_DATAOBJ
1659 # define wxUSE_DATAOBJ 1
1661 #endif /* wxUSE_CLIPBOARD */
1663 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1664 # ifdef wxABORT_ON_CONFIG_ERROR
1665 # error "wxr resources require PrologIO"
1667 # undef wxUSE_PROLOGIO
1668 # define wxUSE_PROLOGIO 1
1670 #endif /* wxUSE_WX_RESOURCES */
1672 #if wxUSE_XRC && !wxUSE_XML
1673 # ifdef wxABORT_ON_CONFIG_ERROR
1674 # error "wxUSE_XRC requires wxUSE_XML"
1677 # define wxUSE_XRC 0
1679 #endif /* wxUSE_XRC */
1681 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1682 # ifdef wxABORT_ON_CONFIG_ERROR
1683 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1685 # undef wxUSE_SOCKETS
1686 # define wxUSE_SOCKETS 0
1688 #endif /* wxUSE_SOCKETS */
1690 #endif /* wxUSE_GUI */