]>
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 */
59 /* we also must disable exceptions if compiler doesn't support them */
60 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
61 # undef wxUSE_EXCEPTIONS
62 # define wxUSE_EXCEPTIONS 0
63 #endif /* VC++ without exceptions support */
67 tests for non GUI features
70 #ifndef wxUSE_DYNLIB_CLASS
71 # ifdef wxABORT_ON_CONFIG_ERROR
72 # error "wxUSE_DYNLIB_CLASS must be defined."
74 # define wxUSE_DYNLIB_CLASS 0
76 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
78 #ifndef wxUSE_EXCEPTIONS
79 # ifdef wxABORT_ON_CONFIG_ERROR
80 # error "wxUSE_EXCEPTIONS must be defined."
82 # define wxUSE_EXCEPTIONS 0
84 #endif /* !defined(wxUSE_EXCEPTIONS) */
86 #ifndef wxUSE_FILESYSTEM
87 # ifdef wxABORT_ON_CONFIG_ERROR
88 # error "wxUSE_FILESYSTEM must be defined."
90 # define wxUSE_FILESYSTEM 0
92 #endif /* !defined(wxUSE_FILESYSTEM) */
94 /* don't give an error about this one yet, it's not fully implemented */
95 #ifndef wxUSE_FSVOLUME
96 # define wxUSE_FSVOLUME 0
97 #endif /* !defined(wxUSE_FSVOLUME) */
99 #ifndef wxUSE_DYNAMIC_LOADER
100 # ifdef wxABORT_ON_CONFIG_ERROR
101 # error "wxUSE_DYNAMIC_LOADER must be defined."
103 # define wxUSE_DYNAMIC_LOADER 0
105 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
108 # ifdef wxABORT_ON_CONFIG_ERROR
109 # error "wxUSE_LOG must be defined."
113 #endif /* !defined(wxUSE_LOG) */
115 #ifndef wxUSE_LONGLONG
116 # ifdef wxABORT_ON_CONFIG_ERROR
117 # error "wxUSE_LONGLONG must be defined."
119 # define wxUSE_LONGLONG 0
121 #endif /* !defined(wxUSE_LONGLONG) */
123 #ifndef wxUSE_MIMETYPE
124 # ifdef wxABORT_ON_CONFIG_ERROR
125 # error "wxUSE_MIMETYPE must be defined."
127 # define wxUSE_MIMETYPE 0
129 #endif /* !defined(wxUSE_MIMETYPE) */
131 #ifndef wxUSE_PROTOCOL
132 # ifdef wxABORT_ON_CONFIG_ERROR
133 # error "wxUSE_PROTOCOL must be defined."
135 # define wxUSE_PROTOCOL 0
137 #endif /* !defined(wxUSE_PROTOCOL) */
139 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
141 # undef wxUSE_PROTOCOL_HTTP
142 # undef wxUSE_PROTOCOL_FTP
143 # undef wxUSE_PROTOCOL_FILE
144 # define wxUSE_PROTOCOL_HTTP 0
145 # define wxUSE_PROTOCOL_FTP 0
146 # define wxUSE_PROTOCOL_FILE 0
147 #endif /* wxUSE_PROTOCOL */
149 #ifndef wxUSE_PROTOCOL_HTTP
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_PROTOCOL_HTTP must be defined."
153 # define wxUSE_PROTOCOL_HTTP 0
155 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
157 #ifndef wxUSE_PROTOCOL_FTP
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_PROTOCOL_FTP must be defined."
161 # define wxUSE_PROTOCOL_FTP 0
163 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
165 #ifndef wxUSE_PROTOCOL_FILE
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_PROTOCOL_FILE must be defined."
169 # define wxUSE_PROTOCOL_FILE 0
171 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
174 # ifdef wxABORT_ON_CONFIG_ERROR
175 # error "wxUSE_REGEX must be defined."
177 # define wxUSE_REGEX 0
179 #endif /* !defined(wxUSE_REGEX) */
181 #ifndef wxUSE_STDPATHS
182 # ifdef wxABORT_ON_CONFIG_ERROR
183 # error "wxUSE_STDPATHS must be defined."
185 # define wxUSE_STDPATHS 1
187 #endif /* !defined(wxUSE_STDPATHS) */
190 # ifdef wxABORT_ON_CONFIG_ERROR
191 # error "wxUSE_XML must be defined."
195 #endif /* !defined(wxUSE_XML) */
197 #ifndef wxUSE_SOCKETS
198 # ifdef wxABORT_ON_CONFIG_ERROR
199 # error "wxUSE_SOCKETS must be defined."
201 # define wxUSE_SOCKETS 0
203 #endif /* !defined(wxUSE_SOCKETS) */
205 #ifndef wxUSE_STREAMS
206 # ifdef wxABORT_ON_CONFIG_ERROR
207 # error "wxUSE_STREAMS must be defined."
209 # define wxUSE_STREAMS 0
211 #endif /* !defined(wxUSE_STREAMS) */
213 #ifndef wxUSE_STOPWATCH
214 # ifdef wxABORT_ON_CONFIG_ERROR
215 # error "wxUSE_STOPWATCH must be defined."
217 # define wxUSE_STOPWATCH 0
219 #endif /* !defined(wxUSE_STOPWATCH) */
221 #ifndef wxUSE_TEXTBUFFER
222 # ifdef wxABORT_ON_CONFIG_ERROR
223 # error "wxUSE_TEXTBUFFER must be defined."
225 # define wxUSE_TEXTBUFFER 0
227 #endif /* !defined(wxUSE_TEXTBUFFER) */
229 #ifndef wxUSE_TEXTFILE
230 # ifdef wxABORT_ON_CONFIG_ERROR
231 # error "wxUSE_TEXTFILE must be defined."
233 # define wxUSE_TEXTFILE 0
235 #endif /* !defined(wxUSE_TEXTFILE) */
237 #ifndef wxUSE_UNICODE
238 # ifdef wxABORT_ON_CONFIG_ERROR
239 # error "wxUSE_UNICODE must be defined."
241 # define wxUSE_UNICODE 0
243 #endif /* !defined(wxUSE_UNICODE) */
246 # ifdef wxABORT_ON_CONFIG_ERROR
247 # error "wxUSE_URL must be defined."
251 #endif /* !defined(wxUSE_URL) */
254 all these tests are for GUI only
259 all of the settings tested below must be defined or we'd get an error from
260 preprocessor about invalid integer expression
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_ACCEL must be defined."
267 # define wxUSE_ACCEL 0
269 #endif /* !defined(wxUSE_ACCEL) */
271 #ifndef wxUSE_BMPBUTTON
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_BMPBUTTON must be defined."
275 # define wxUSE_BMPBUTTON 0
277 #endif /* !defined(wxUSE_BMPBUTTON) */
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_BUTTON must be defined."
283 # define wxUSE_BUTTON 0
285 #endif /* !defined(wxUSE_BUTTON) */
287 #ifndef wxUSE_CALENDARCTRL
288 # ifdef wxABORT_ON_CONFIG_ERROR
289 # error "wxUSE_CALENDARCTRL must be defined."
291 # define wxUSE_CALENDARCTRL 0
293 #endif /* !defined(wxUSE_CALENDARCTRL) */
296 # ifdef wxABORT_ON_CONFIG_ERROR
297 # error "wxUSE_CARET must be defined."
299 # define wxUSE_CARET 0
301 #endif /* !defined(wxUSE_CARET) */
303 #ifndef wxUSE_CHECKBOX
304 # ifdef wxABORT_ON_CONFIG_ERROR
305 # error "wxUSE_CHECKBOX must be defined."
307 # define wxUSE_CHECKBOX 0
309 #endif /* !defined(wxUSE_CHECKBOX) */
311 #ifndef wxUSE_CHECKLISTBOX
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_CHECKLISTBOX must be defined."
315 # define wxUSE_CHECKLISTBOX 0
317 #endif /* !defined(wxUSE_CHECKLISTBOX) */
320 # ifdef wxABORT_ON_CONFIG_ERROR
321 # error "wxUSE_CHOICE must be defined."
323 # define wxUSE_CHOICE 0
325 #endif /* !defined(wxUSE_CHOICE) */
327 #ifndef wxUSE_CHOICEBOOK
328 # ifdef wxABORT_ON_CONFIG_ERROR
329 # error "wxUSE_CHOICEBOOK must be defined."
331 # define wxUSE_CHOICEBOOK 0
333 #endif /* !defined(wxUSE_CHOICEBOOK) */
335 #ifndef wxUSE_CHOICEDLG
336 # ifdef wxABORT_ON_CONFIG_ERROR
337 # error "wxUSE_CHOICEDLG must be defined."
339 # define wxUSE_CHOICEDLG 0
341 #endif /* !defined(wxUSE_CHOICEDLG) */
343 #ifndef wxUSE_CLIPBOARD
344 # ifdef wxABORT_ON_CONFIG_ERROR
345 # error "wxUSE_CLIPBOARD must be defined."
347 # define wxUSE_CLIPBOARD 0
349 #endif /* !defined(wxUSE_CLIPBOARD) */
351 #ifndef wxUSE_COLOURDLG
352 # ifdef wxABORT_ON_CONFIG_ERROR
353 # error "wxUSE_COLOURDLG must be defined."
355 # define wxUSE_COLOURDLG 0
357 #endif /* !defined(wxUSE_COLOURDLG) */
359 #ifndef wxUSE_COMBOBOX
360 # ifdef wxABORT_ON_CONFIG_ERROR
361 # error "wxUSE_COMBOBOX must be defined."
363 # define wxUSE_COMBOBOX 0
365 #endif /* !defined(wxUSE_COMBOBOX) */
367 #ifndef wxUSE_DATAOBJ
368 # ifdef wxABORT_ON_CONFIG_ERROR
369 # error "wxUSE_DATAOBJ must be defined."
371 # define wxUSE_DATAOBJ 0
373 #endif /* !defined(wxUSE_DATAOBJ) */
375 #ifndef wxUSE_DATEPICKCTRL
376 # ifdef wxABORT_ON_CONFIG_ERROR
377 # error "wxUSE_DATEPICKCTRL must be defined."
379 # define wxUSE_DATEPICKCTRL 0
381 #endif /* !defined(wxUSE_DATEPICKCTRL) */
383 #ifndef wxUSE_DISPLAY
384 # ifdef wxABORT_ON_CONFIG_ERROR
385 # error "wxUSE_DISPLAY must be defined."
387 # define wxUSE_DISPLAY 0
389 #endif /* !defined(wxUSE_DISPLAY) */
391 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
392 # ifdef wxABORT_ON_CONFIG_ERROR
393 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
395 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
397 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
399 #ifndef wxUSE_FILEDLG
400 # ifdef wxABORT_ON_CONFIG_ERROR
401 # error "wxUSE_FILEDLG must be defined."
403 # define wxUSE_FILEDLG 0
405 #endif /* !defined(wxUSE_FILEDLG) */
407 #ifndef wxUSE_FONTDLG
408 # ifdef wxABORT_ON_CONFIG_ERROR
409 # error "wxUSE_FONTDLG must be defined."
411 # define wxUSE_FONTDLG 0
413 #endif /* !defined(wxUSE_FONTDLG) */
415 #ifndef wxUSE_FONTMAP
416 # ifdef wxABORT_ON_CONFIG_ERROR
417 # error "wxUSE_FONTMAP must be defined."
419 # define wxUSE_FONTMAP 0
421 #endif /* !defined(wxUSE_FONTMAP) */
424 # ifdef wxABORT_ON_CONFIG_ERROR
425 # error "wxUSE_GAUGE must be defined."
427 # define wxUSE_GAUGE 0
429 #endif /* !defined(wxUSE_GAUGE) */
432 # ifdef wxABORT_ON_CONFIG_ERROR
433 # error "wxUSE_GRID must be defined."
435 # define wxUSE_GRID 0
437 #endif /* !defined(wxUSE_GRID) */
440 # ifdef wxABORT_ON_CONFIG_ERROR
441 # error "wxUSE_HELP must be defined."
443 # define wxUSE_HELP 0
445 #endif /* !defined(wxUSE_HELP) */
448 # ifdef wxABORT_ON_CONFIG_ERROR
449 # error "wxUSE_HTML must be defined."
451 # define wxUSE_HTML 0
453 #endif /* !defined(wxUSE_HTML) */
456 # ifdef wxABORT_ON_CONFIG_ERROR
457 # error "wxUSE_XRC must be defined."
461 #endif /* !defined(wxUSE_XRC) */
463 #ifndef wxUSE_LIBMSPACK
465 /* set to 0 on platforms that don't have libmspack */
466 # define wxUSE_LIBMSPACK 0
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_LIBMSPACK must be defined."
471 # define wxUSE_LIBMSPACK 0
474 #endif /* !defined(wxUSE_LIBMSPACK) */
476 #ifndef wxUSE_ICO_CUR
477 # ifdef wxABORT_ON_CONFIG_ERROR
478 # error "wxUSE_ICO_CUR must be defined."
480 # define wxUSE_ICO_CUR 0
482 #endif /* !defined(wxUSE_ICO_CUR) */
485 # ifdef wxABORT_ON_CONFIG_ERROR
486 # error "wxUSE_IFF must be defined."
490 #endif /* !defined(wxUSE_IFF) */
492 #ifndef wxUSE_IMAGLIST
493 # ifdef wxABORT_ON_CONFIG_ERROR
494 # error "wxUSE_IMAGLIST must be defined."
496 # define wxUSE_IMAGLIST 0
498 #endif /* !defined(wxUSE_IMAGLIST) */
500 #ifndef wxUSE_JOYSTICK
501 # ifdef wxABORT_ON_CONFIG_ERROR
502 # error "wxUSE_JOYSTICK must be defined."
504 # define wxUSE_JOYSTICK 0
506 #endif /* !defined(wxUSE_JOYSTICK) */
508 #ifndef wxUSE_LISTBOOK
509 # ifdef wxABORT_ON_CONFIG_ERROR
510 # error "wxUSE_LISTBOOK must be defined."
512 # define wxUSE_LISTBOOK 0
514 #endif /* !defined(wxUSE_LISTBOOK) */
516 #ifndef wxUSE_LISTBOX
517 # ifdef wxABORT_ON_CONFIG_ERROR
518 # error "wxUSE_LISTBOX must be defined."
520 # define wxUSE_LISTBOX 0
522 #endif /* !defined(wxUSE_LISTBOX) */
524 #ifndef wxUSE_LISTCTRL
525 # ifdef wxABORT_ON_CONFIG_ERROR
526 # error "wxUSE_LISTCTRL must be defined."
528 # define wxUSE_LISTCTRL 0
530 #endif /* !defined(wxUSE_LISTCTRL) */
533 # ifdef wxABORT_ON_CONFIG_ERROR
534 # error "wxUSE_LOGGUI must be defined."
536 # define wxUSE_LOGGUI 0
538 #endif /* !defined(wxUSE_LOGGUI) */
540 #ifndef wxUSE_LOGWINDOW
541 # ifdef wxABORT_ON_CONFIG_ERROR
542 # error "wxUSE_LOGWINDOW must be defined."
544 # define wxUSE_LOGWINDOW 0
546 #endif /* !defined(wxUSE_LOGWINDOW) */
548 #ifndef wxUSE_LOG_DIALOG
549 # ifdef wxABORT_ON_CONFIG_ERROR
550 # error "wxUSE_LOG_DIALOG must be defined."
552 # define wxUSE_LOG_DIALOG 0
554 #endif /* !defined(wxUSE_LOG_DIALOG) */
557 # ifdef wxABORT_ON_CONFIG_ERROR
558 # error "wxUSE_MDI must be defined."
562 #endif /* !defined(wxUSE_MDI) */
564 #ifndef wxUSE_MDI_ARCHITECTURE
565 # ifdef wxABORT_ON_CONFIG_ERROR
566 # error "wxUSE_MDI_ARCHITECTURE must be defined."
568 # define wxUSE_MDI_ARCHITECTURE 0
570 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
573 # ifdef wxABORT_ON_CONFIG_ERROR
574 # error "wxUSE_MENUS must be defined."
576 # define wxUSE_MENUS 0
578 #endif /* !defined(wxUSE_MENUS) */
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_MSGDLG must be defined."
584 # define wxUSE_MSGDLG 0
586 #endif /* !defined(wxUSE_MSGDLG) */
588 #ifndef wxUSE_NOTEBOOK
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_NOTEBOOK must be defined."
592 # define wxUSE_NOTEBOOK 0
594 #endif /* !defined(wxUSE_NOTEBOOK) */
596 #ifndef wxUSE_PALETTE
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_PALETTE must be defined."
600 # define wxUSE_PALETTE 0
602 #endif /* !defined(wxUSE_PALETTE) */
604 #ifndef wxUSE_POPUPWIN
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_POPUPWIN must be defined."
608 # define wxUSE_POPUPWIN 0
610 #endif /* !defined(wxUSE_POPUPWIN) */
612 #ifndef wxUSE_PRINTING_ARCHITECTURE
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
616 # define wxUSE_PRINTING_ARCHITECTURE 0
618 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
620 #ifndef wxUSE_RADIOBOX
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_RADIOBOX must be defined."
624 # define wxUSE_RADIOBOX 0
626 #endif /* !defined(wxUSE_RADIOBOX) */
628 #ifndef wxUSE_RADIOBTN
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_RADIOBTN must be defined."
632 # define wxUSE_RADIOBTN 0
634 #endif /* !defined(wxUSE_RADIOBTN) */
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_SASH must be defined."
640 # define wxUSE_SASH 0
642 #endif /* !defined(wxUSE_SASH) */
644 #ifndef wxUSE_SCROLLBAR
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_SCROLLBAR must be defined."
648 # define wxUSE_SCROLLBAR 0
650 #endif /* !defined(wxUSE_SCROLLBAR) */
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_SLIDER must be defined."
656 # define wxUSE_SLIDER 0
658 #endif /* !defined(wxUSE_SLIDER) */
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_SOUND must be defined."
664 # define wxUSE_SOUND 0
666 #endif /* !defined(wxUSE_SOUND) */
668 #ifndef wxUSE_SPINBTN
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_SPINBTN must be defined."
672 # define wxUSE_SPINBTN 0
674 #endif /* !defined(wxUSE_SPINBTN) */
676 #ifndef wxUSE_SPINCTRL
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_SPINCTRL must be defined."
680 # define wxUSE_SPINCTRL 0
682 #endif /* !defined(wxUSE_SPINCTRL) */
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_SPLASH must be defined."
688 # define wxUSE_SPLASH 0
690 #endif /* !defined(wxUSE_SPLASH) */
692 #ifndef wxUSE_SPLITTER
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_SPLITTER must be defined."
696 # define wxUSE_SPLITTER 0
698 #endif /* !defined(wxUSE_SPLITTER) */
700 #ifndef wxUSE_STATBMP
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_STATBMP must be defined."
704 # define wxUSE_STATBMP 0
706 #endif /* !defined(wxUSE_STATBMP) */
708 #ifndef wxUSE_STATBOX
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_STATBOX must be defined."
712 # define wxUSE_STATBOX 0
714 #endif /* !defined(wxUSE_STATBOX) */
716 #ifndef wxUSE_STATLINE
717 # ifdef wxABORT_ON_CONFIG_ERROR
718 # error "wxUSE_STATLINE must be defined."
720 # define wxUSE_STATLINE 0
722 #endif /* !defined(wxUSE_STATLINE) */
724 #ifndef wxUSE_STATTEXT
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_STATTEXT must be defined."
728 # define wxUSE_STATTEXT 0
730 #endif /* !defined(wxUSE_STATTEXT) */
732 #ifndef wxUSE_STATUSBAR
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_STATUSBAR must be defined."
736 # define wxUSE_STATUSBAR 0
738 #endif /* !defined(wxUSE_STATUSBAR) */
740 #ifndef wxUSE_TAB_DIALOG
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_TAB_DIALOG must be defined."
744 # define wxUSE_TAB_DIALOG 0
746 #endif /* !defined(wxUSE_TAB_DIALOG) */
748 #ifndef wxUSE_TEXTCTRL
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_TEXTCTRL must be defined."
752 # define wxUSE_TEXTCTRL 0
754 #endif /* !defined(wxUSE_TEXTCTRL) */
756 #ifndef wxUSE_TIPWINDOW
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_TIPWINDOW must be defined."
760 # define wxUSE_TIPWINDOW 0
762 #endif /* !defined(wxUSE_TIPWINDOW) */
764 #ifndef wxUSE_TOOLBAR
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_TOOLBAR must be defined."
768 # define wxUSE_TOOLBAR 0
770 #endif /* !defined(wxUSE_TOOLBAR) */
772 #ifndef wxUSE_TOOLTIPS
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_TOOLTIPS must be defined."
776 # define wxUSE_TOOLTIPS 0
778 #endif /* !defined(wxUSE_TOOLTIPS) */
780 #ifndef wxUSE_TREECTRL
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_TREECTRL must be defined."
784 # define wxUSE_TREECTRL 0
786 #endif /* !defined(wxUSE_TREECTRL) */
788 #ifndef wxUSE_VALIDATORS
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_VALIDATORS must be defined."
792 # define wxUSE_VALIDATORS 0
794 #endif /* !defined(wxUSE_VALIDATORS) */
796 #ifndef wxUSE_WXHTML_HELP
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_WXHTML_HELP must be defined."
800 # define wxUSE_WXHTML_HELP 0
802 #endif /* !defined(wxUSE_WXHTML_HELP) */
804 #endif /* wxUSE_GUI */
807 check consistency of the settings
810 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
812 # ifdef wxABORT_ON_CONFIG_ERROR
813 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
815 # undef wxUSE_PROTOCOL
816 # define wxUSE_PROTOCOL 1
819 #endif /* wxUSE_PROTOCOL_XXX */
823 # ifdef wxABORT_ON_CONFIG_ERROR
824 # error "wxUSE_URL requires wxUSE_PROTOCOL"
826 # undef wxUSE_PROTOCOL
827 # define wxUSE_PROTOCOL 1
830 #endif /* wxUSE_URL */
834 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
835 # ifdef wxABORT_ON_CONFIG_ERROR
836 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
838 # undef wxUSE_SOCKETS
839 # define wxUSE_SOCKETS 1
845 # ifdef wxABORT_ON_CONFIG_ERROR
846 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
848 # undef wxUSE_STREAMS
849 # define wxUSE_STREAMS 1
852 #endif /* wxUSE_PROTOCOL */
854 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
856 # if !wxUSE_FILESYSTEM
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxHTML requires wxFileSystem"
860 # undef wxUSE_FILESYSTEM
861 # define wxUSE_FILESYSTEM 1
864 #endif /* wxUSE_HTML */
868 # ifdef wxABORT_ON_CONFIG_ERROR
869 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
871 # undef wxUSE_STREAMS
872 # define wxUSE_STREAMS 1
875 #endif /* wxUSE_FILESYSTEM */
879 # ifdef wxABORT_ON_CONFIG_ERROR
880 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
882 # undef wxUSE_PROTOCOL
883 # define wxUSE_PROTOCOL 1
886 #endif /* wxUSE_FS_INET */
888 #if wxUSE_STOPWATCH || wxUSE_DATETIME
890 # ifdef wxABORT_ON_CONFIG_ERROR
891 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
893 # undef wxUSE_LONGLONG
894 # define wxUSE_LONGLONG 1
897 #endif /* wxUSE_STOPWATCH */
899 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
900 # ifdef wxABORT_ON_CONFIG_ERROR
901 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
903 # undef wxUSE_TEXTFILE
904 # define wxUSE_TEXTFILE 1
906 #endif /* wxUSE_MIMETYPE */
908 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
909 # ifdef wxABORT_ON_CONFIG_ERROR
910 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
912 # undef wxUSE_TEXTBUFFER
913 # define wxUSE_TEXTBUFFER 1
915 #endif /* wxUSE_TEXTFILE */
917 #if wxUSE_TEXTFILE && !wxUSE_FILE
918 # ifdef wxABORT_ON_CONFIG_ERROR
919 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
922 # define wxUSE_FILE 1
924 #endif /* wxUSE_TEXTFILE */
926 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
927 # ifdef wxABORT_ON_CONFIG_ERROR
928 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
930 # undef wxUSE_UNICODE
931 # define wxUSE_UNICODE 1
933 #endif /* wxUSE_UNICODE_MSLU */
935 /* ODBC and Unicode are now compatible */
937 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
938 # ifdef wxABORT_ON_CONFIG_ERROR
939 /* (ODBC classes aren't Unicode-compatible yet) */
940 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
943 # define wxUSE_ODBC 0
945 #endif /* wxUSE_ODBC */
947 #if wxUSE_XML && !wxUSE_WCHAR_T
948 # ifdef wxABORT_ON_CONFIG_ERROR
949 # error "wxUSE_XML requires wxUSE_WCHAR_T"
954 #endif /* wxUSE_UNICODE_MSLU */
956 #if !wxUSE_DYNLIB_CLASS
957 # if wxUSE_DYNAMIC_LOADER
958 # ifdef wxABORT_ON_CONFIG_ERROR
959 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
961 # define wxUSE_DYNLIB_CLASS 1
964 #endif /* wxUSE_DYNLIB_CLASS */
968 # ifdef wxABORT_ON_CONFIG_ERROR
969 # error "wxZip requires wxZlib"
972 # define wxUSE_ZLIB 1
975 # if !wxUSE_ARCHIVE_STREAMS
976 # ifdef wxABORT_ON_CONFIG_ERROR
977 # error "wxZip requires wxArchive"
979 # undef wxUSE_ARCHIVE_STREAMS
980 # define wxUSE_ARCHIVE_STREAMS 1
983 #endif /* wxUSE_ZIPSTREAM */
985 /* the rest of the tests is for the GUI settings only */
988 #if wxUSE_BUTTON || \
989 wxUSE_CALENDARCTRL || \
994 wxUSE_CHECKLISTBOX || \
1003 wxUSE_SCROLLBAR || \
1011 wxUSE_STATUSBAR || \
1015 # if !wxUSE_CONTROLS
1016 # ifdef wxABORT_ON_CONFIG_ERROR
1017 # error "wxUSE_CONTROLS unset but some controls used"
1019 # undef wxUSE_CONTROLS
1020 # define wxUSE_CONTROLS 1
1023 #endif /* controls */
1027 # ifdef wxABORT_ON_CONFIG_ERROR
1028 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1030 # undef wxUSE_BUTTON
1031 # define wxUSE_BUTTON 1
1034 #endif /* wxUSE_BMPBUTTON */
1036 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1037 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1038 # ifdef wxABORT_ON_CONFIG_ERROR
1039 # error "wxUSE_BOOKCTRL must be set."
1041 # undef wxUSE_BOOKCTRL
1045 # ifndef wxUSE_BOOKCTRL
1046 # define wxUSE_BOOKCTRL 1
1048 #endif /* wxUSE_NOTEBOOK */
1051 # if !wxUSE_LISTCTRL
1052 # ifdef wxABORT_ON_CONFIG_ERROR
1053 # error "wxListbook requires wxListCtrl"
1055 # undef wxUSE_LISTCTRL
1056 # define wxUSE_LISTCTRL 1
1059 #endif /* wxUSE_LISTBOOK */
1061 #if wxUSE_CHOICEBOOK
1063 # ifdef wxABORT_ON_CONFIG_ERROR
1064 # error "wxChoicebook requires wxChoice"
1066 # undef wxUSE_CHOICE
1067 # define wxUSE_CHOICE 1
1070 #endif /* wxUSE_CHOICEBOOK */
1072 /* don't attempt to use native status bar on the platforms not having it */
1073 #ifndef wxUSE_NATIVE_STATUSBAR
1074 # define wxUSE_NATIVE_STATUSBAR 0
1075 #elif wxUSE_NATIVE_STATUSBAR
1076 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1077 defined(__WXMAC__) || \
1078 defined(__WXPALMOS__) )
1079 # undef wxUSE_NATIVE_STATUSBAR
1080 # define wxUSE_NATIVE_STATUSBAR 0
1084 /* wxUniv-specific dependencies */
1085 #if defined(__WXUNIVERSAL__)
1086 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1087 # ifdef wxABORT_ON_CONFIG_ERROR
1088 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1090 # undef wxUSE_POPUPWIN
1091 # define wxUSE_POPUPWIN 1
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxComboBox requires wxListBox in wxUniversal"
1100 # undef wxUSE_LISTBOX
1101 # define wxUSE_LISTBOX 1
1104 # endif /* wxUSE_COMBOBOX */
1107 # if !wxUSE_CHECKBOX
1108 # ifdef wxABORT_ON_CONFIG_ERROR
1109 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1111 # undef wxUSE_CHECKBOX
1112 # define wxUSE_CHECKBOX 1
1115 # endif /* wxUSE_RADIOBTN */
1119 # ifdef wxABORT_ON_CONFIG_ERROR
1120 # error "wxTextCtrl requires wxCaret in wxUniversal"
1123 # define wxUSE_CARET 1
1125 # endif /* wxUSE_CARET */
1127 # if !wxUSE_SCROLLBAR
1128 # ifdef wxABORT_ON_CONFIG_ERROR
1129 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1131 # undef wxUSE_SCROLLBAR
1132 # define wxUSE_SCROLLBAR 1
1134 # endif /* wxUSE_SCROLLBAR */
1135 # endif /* wxUSE_TEXTCTRL */
1136 #endif /* __WXUNIVERSAL__ */
1138 /* wxGTK-specific dependencies */
1140 # ifndef __WXUNIVERSAL__
1141 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1142 # ifdef wxABORT_ON_CONFIG_ERROR
1143 # error "MDI requires wxUSE_MENUS in wxGTK"
1146 # define wxUSE_MENUS 1
1149 # endif /* !__WXUNIVERSAL__ */
1153 # ifdef wxABORT_ON_CONFIG_ERROR
1154 # error "wxJoystick requires threads in wxGTK"
1156 # undef wxUSE_JOYSTICK
1157 # define wxUSE_JOYSTICK 0
1161 #endif /* wxGTK && !wxUniv */
1163 /* wxMSW-specific dependencies */
1165 # ifndef wxUSE_UNICODE_MSLU
1166 # ifdef wxABORT_ON_CONFIG_ERROR
1167 # error "wxUSE_UNICODE_MSLU must be defined."
1169 # define wxUSE_UNICODE_MSLU 0
1171 # endif /* wxUSE_UNICODE_MSLU */
1172 # ifndef wxUSE_UXTHEME
1173 # ifdef wxABORT_ON_CONFIG_ERROR
1174 # error "wxUSE_UXTHEME must be defined."
1176 # define wxUSE_UXTHEME 0
1178 # endif /* wxUSE_UXTHEME */
1179 # ifndef wxUSE_UXTHEME_AUTO
1180 # ifdef wxABORT_ON_CONFIG_ERROR
1181 # error "wxUSE_UXTHEME_AUTO must be defined."
1183 # define wxUSE_UXTHEME_AUTO 0
1185 # endif /* wxUSE_UXTHEME_AUTO */
1186 # ifndef wxUSE_MS_HTML_HELP
1187 # ifdef wxABORT_ON_CONFIG_ERROR
1188 # error "wxUSE_MS_HTML_HELP must be defined."
1190 # define wxUSE_MS_HTML_HELP 0
1192 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1193 # ifndef wxUSE_DIALUP_MANAGER
1194 # ifdef wxABORT_ON_CONFIG_ERROR
1195 # error "wxUSE_DIALUP_MANAGER must be defined."
1197 # define wxUSE_DIALUP_MANAGER 0
1199 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1201 # if !wxUSE_DYNAMIC_LOADER
1202 # if wxUSE_MS_HTML_HELP
1203 # ifdef wxABORT_ON_CONFIG_ERROR
1204 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1206 # define wxUSE_DYNAMIC_LOADER 1
1209 # if wxUSE_DIALUP_MANAGER
1210 # ifdef wxABORT_ON_CONFIG_ERROR
1211 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1213 # define wxUSE_DYNAMIC_LOADER 1
1216 # endif /* wxUSE_DYNAMIC_LOADER */
1220 /* wxMAC-specific dependencies */
1224 # ifdef wxABORT_ON_CONFIG_ERROR
1225 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1227 # define wxUSE_UNICODE 0
1232 /* wxMotif-specific dependencies */
1233 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1234 # undef wxUSE_TAB_DIALOG
1235 # define wxUSE_TAB_DIALOG 1
1238 /* wxMGL-specific dependencies */
1241 # error "wxMGL requires wxUSE_PALETTE=1"
1245 /* Hopefully we can emulate these dialogs in due course */
1246 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1247 # ifdef wxUSE_COLOURDLG
1248 # undef wxUSE_COLOURDLG
1249 # define wxUSE_COLOURDLG 0
1251 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1254 /* generic controls dependencies */
1255 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1256 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1257 /* all common controls are needed by these dialogs */
1258 # if !defined(wxUSE_CHOICE) || \
1259 !defined(wxUSE_TEXTCTRL) || \
1260 !defined(wxUSE_BUTTON) || \
1261 !defined(wxUSE_CHECKBOX) || \
1262 !defined(wxUSE_STATTEXT)
1263 # ifdef wxABORT_ON_CONFIG_ERROR
1264 # error "These common controls are needed by common dialogs"
1266 # undef wxUSE_CHOICE
1267 # define wxUSE_CHOICE 1
1268 # undef wxUSE_TEXTCTRL
1269 # define wxUSE_TEXTCTRL 1
1270 # undef wxUSE_BUTTON
1271 # define wxUSE_BUTTON 1
1272 # undef wxUSE_CHECKBOX
1273 # define wxUSE_CHECKBOX 1
1274 # undef wxUSE_STATTEXT
1275 # define wxUSE_STATTEXT 1
1279 #endif /* !wxMSW || wxUniv */
1281 /* common dependencies */
1282 #if wxUSE_CALENDARCTRL
1283 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1284 # ifdef wxABORT_ON_CONFIG_ERROR
1285 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1287 # undef wxUSE_SPINBTN
1288 # undef wxUSE_COMBOBOX
1289 # define wxUSE_SPINBTN 1
1290 # define wxUSE_COMBOBOX 1
1294 # if !wxUSE_DATETIME
1295 # ifdef wxABORT_ON_CONFIG_ERROR
1296 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1298 # undef wxUSE_DATETIME
1299 # define wxUSE_DATETIME 1
1302 #endif /* wxUSE_CALENDARCTRL */
1304 #if wxUSE_DATEPICKCTRL
1305 # if !wxUSE_DATETIME
1306 # ifdef wxABORT_ON_CONFIG_ERROR
1307 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1309 # undef wxUSE_DATETIME
1310 # define wxUSE_DATETIME 1
1313 #endif /* wxUSE_DATEPICKCTRL */
1315 #if wxUSE_CHECKLISTBOX
1317 # ifdef wxABORT_ON_CONFIG_ERROR
1318 # error "wxCheckListBox requires wxListBox"
1320 # undef wxUSE_LISTBOX
1321 # define wxUSE_LISTBOX 1
1324 #endif /* wxUSE_CHECKLISTBOX */
1328 # ifdef wxABORT_ON_CONFIG_ERROR
1329 # error "Choice dialogs requires wxListBox"
1331 # undef wxUSE_LISTBOX
1332 # define wxUSE_LISTBOX 1
1335 #endif /* wxUSE_CHOICEDLG */
1338 # if !wxUSE_BMPBUTTON
1339 # ifdef wxABORT_ON_CONFIG_ERROR
1340 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1342 # undef wxUSE_BMPBUTTON
1343 # define wxUSE_BMPBUTTON 1
1347 # if !wxUSE_CHOICEDLG
1348 # ifdef wxABORT_ON_CONFIG_ERROR
1349 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1351 # undef wxUSE_CHOICEDLG
1352 # define wxUSE_CHOICEDLG 1
1355 #endif /* wxUSE_HELP */
1357 #if wxUSE_WXHTML_HELP
1358 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1359 # ifdef wxABORT_ON_CONFIG_ERROR
1360 # error "Built in help controller can't be compiled"
1363 # define wxUSE_HELP 1
1365 # define wxUSE_HTML 1
1366 # undef wxUSE_COMBOBOX
1367 # define wxUSE_COMBOBOX 1
1368 # undef wxUSE_NOTEBOOK
1369 # define wxUSE_NOTEBOOK 1
1370 # undef wxUSE_SPINCTRL
1371 # define wxUSE_SPINCTRL 1
1374 #endif /* wxUSE_WXHTML_HELP */
1378 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1379 user explicitly wants this and disable all other features that require
1382 # if wxUSE_DRAGIMAGE
1383 # ifdef wxABORT_ON_CONFIG_ERROR
1384 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1386 # undef wxUSE_DRAGIMAGE
1387 # define wxUSE_DRAGIMAGE 0
1392 # ifdef wxABORT_ON_CONFIG_ERROR
1393 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1395 # undef wxUSE_LIBPNG
1396 # define wxUSE_LIBPNG 0
1401 # ifdef wxABORT_ON_CONFIG_ERROR
1402 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1404 # undef wxUSE_LIBJPEG
1405 # define wxUSE_LIBJPEG 0
1410 # ifdef wxABORT_ON_CONFIG_ERROR
1411 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1413 # undef wxUSE_LIBTIFF
1414 # define wxUSE_LIBTIFF 0
1419 # ifdef wxABORT_ON_CONFIG_ERROR
1420 # error "wxUSE_GIF requires wxUSE_IMAGE"
1423 # define wxUSE_GIF 0
1428 # ifdef wxABORT_ON_CONFIG_ERROR
1429 # error "wxUSE_PNM requires wxUSE_IMAGE"
1432 # define wxUSE_PNM 0
1437 # ifdef wxABORT_ON_CONFIG_ERROR
1438 # error "wxUSE_PCX requires wxUSE_IMAGE"
1441 # define wxUSE_PCX 0
1446 # ifdef wxABORT_ON_CONFIG_ERROR
1447 # error "wxUSE_IFF requires wxUSE_IMAGE"
1450 # define wxUSE_IFF 0
1455 # ifdef wxABORT_ON_CONFIG_ERROR
1456 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1458 # undef wxUSE_TOOLBAR
1459 # define wxUSE_TOOLBAR 0
1464 # ifdef wxABORT_ON_CONFIG_ERROR
1465 # error "wxUSE_XPM requires wxUSE_IMAGE"
1468 # define wxUSE_XPM 0
1472 #endif /* !wxUSE_IMAGE */
1474 #if wxUSE_DOC_VIEW_ARCHITECTURE
1476 # ifdef wxABORT_ON_CONFIG_ERROR
1477 # error "DocView requires wxUSE_MENUS"
1480 # define wxUSE_MENUS 1
1484 # if !wxUSE_CHOICEDLG
1485 # ifdef wxABORT_ON_CONFIG_ERROR
1486 # error "DocView requires wxUSE_CHOICEDLG"
1488 # undef wxUSE_CHOICEDLG
1489 # define wxUSE_CHOICEDLG 1
1493 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1494 # ifdef wxABORT_ON_CONFIG_ERROR
1495 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1497 # undef wxUSE_STREAMS
1498 # define wxUSE_STREAMS 1
1501 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1503 #if wxUSE_PRINTING_ARCHITECTURE
1504 # if !wxUSE_COMBOBOX
1505 # ifdef wxABORT_ON_CONFIG_ERROR
1506 # error "Print dialog requires wxUSE_COMBOBOX"
1508 # undef wxUSE_COMBOBOX
1509 # define wxUSE_COMBOBOX 1
1512 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1514 #if wxUSE_MDI_ARCHITECTURE
1516 # ifdef wxABORT_ON_CONFIG_ERROR
1517 # error "MDI requires wxUSE_MDI"
1520 # define wxUSE_MDI 1
1524 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1525 # ifdef wxABORT_ON_CONFIG_ERROR
1526 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1528 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1529 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1532 #endif /* wxUSE_MDI_ARCHITECTURE */
1535 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1536 # ifdef wxABORT_ON_CONFIG_ERROR
1537 # error "wxFileDialog must be compiled as well"
1539 # undef wxUSE_FILEDLG
1540 # define wxUSE_FILEDLG 1
1543 #endif /* wxUSE_FILEDLG */
1545 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1546 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1547 # ifdef wxABORT_ON_CONFIG_ERROR
1548 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1551 # undef wxUSE_BUTTON
1552 # define wxUSE_GAUGE 1
1553 # define wxUSE_BUTTON 1
1556 #endif /* !wxUSE_GAUGE */
1559 # if wxUSE_FONTDLG || \
1561 wxUSE_CHOICEDLG || \
1562 wxUSE_NUMBERDLG || \
1565 wxUSE_STARTUP_TIPS || \
1567 # ifdef wxABORT_ON_CONFIG_ERROR
1568 # error "Common and generic dialogs require wxUSE_BUTTON"
1570 # undef wxUSE_BUTTON
1571 # define wxUSE_BUTTON 1
1574 #endif /* !wxUSE_BUTTON */
1577 # if wxUSE_TOOLBAR_NATIVE
1578 # ifdef wxABORT_ON_CONFIG_ERROR
1579 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1581 # undef wxUSE_TOOLBAR_NATIVE
1582 # define wxUSE_TOOLBAR_NATIVE 0
1586 # if wxUSE_TOOLBAR_SIMPLE
1587 # ifdef wxABORT_ON_CONFIG_ERROR
1588 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1590 # undef wxUSE_TOOLBAR_SIMPLE
1591 # define wxUSE_TOOLBAR_SIMPLE 0
1597 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1598 # ifdef wxABORT_ON_CONFIG_ERROR
1599 # error "wxImageList must be compiled as well"
1601 # undef wxUSE_IMAGLIST
1602 # define wxUSE_IMAGLIST 1
1605 #endif /* !wxUSE_IMAGLIST */
1608 # ifdef wxABORT_ON_CONFIG_ERROR
1609 /* FIXME: should compile without it, of course, but doesn't */
1610 # error "wxMessageBox is always needed"
1612 # undef wxUSE_MSGDLG
1613 # define wxUSE_MSGDLG 1
1618 # if !wxUSE_RADIOBTN
1619 # ifdef wxABORT_ON_CONFIG_ERROR
1620 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1622 # undef wxUSE_RADIOBTN
1623 # define wxUSE_RADIOBTN 1
1626 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1627 # ifdef wxABORT_ON_CONFIG_ERROR
1628 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1630 # undef wxUSE_STATBOX
1631 # define wxUSE_STATBOX 1
1634 #endif /* wxUSE_RADIOBOX */
1637 # if !wxUSE_TEXTCTRL
1638 # ifdef wxABORT_ON_CONFIG_ERROR
1639 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1641 # undef wxUSE_TEXTCTRL
1642 # define wxUSE_TEXTCTRL 1
1645 #endif /* wxUSE_LOGWINDOW */
1647 #if wxUSE_LOG_DIALOG
1648 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1649 # ifdef wxABORT_ON_CONFIG_ERROR
1650 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1652 # undef wxUSE_LISTCTRL
1653 # define wxUSE_LISTCTRL 1
1654 # undef wxUSE_BUTTON
1655 # define wxUSE_BUTTON 1
1658 #endif /* wxUSE_LOG_DIALOG */
1660 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1661 # ifdef wxABORT_ON_CONFIG_ERROR
1662 # error "wxClipboard requires wxDataObject"
1664 # undef wxUSE_DATAOBJ
1665 # define wxUSE_DATAOBJ 1
1667 #endif /* wxUSE_CLIPBOARD */
1669 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1670 # ifdef wxABORT_ON_CONFIG_ERROR
1671 # error "wxr resources require PrologIO"
1673 # undef wxUSE_PROLOGIO
1674 # define wxUSE_PROLOGIO 1
1676 #endif /* wxUSE_WX_RESOURCES */
1678 #if wxUSE_XRC && !wxUSE_XML
1679 # ifdef wxABORT_ON_CONFIG_ERROR
1680 # error "wxUSE_XRC requires wxUSE_XML"
1683 # define wxUSE_XRC 0
1685 #endif /* wxUSE_XRC */
1687 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1688 # ifdef wxABORT_ON_CONFIG_ERROR
1689 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1691 # undef wxUSE_SOCKETS
1692 # define wxUSE_SOCKETS 0
1694 #endif /* wxUSE_SOCKETS */
1696 #endif /* wxUSE_GUI */