]>
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 Platform-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"
26 #elif defined(__OS2__)
27 # include "wx/os2/chkconf.h"
28 #elif defined(__WXMGL__)
29 # include "wx/mgl/chkconf.h"
30 #elif defined(__WXDFB__)
31 # include "wx/dfb/chkconf.h"
32 #elif defined(__WXMOTIF__)
33 # include "wx/motif/chkconf.h"
34 #elif defined(__WXX11__)
35 # include "wx/x11/chkconf.h"
38 #ifdef __WXUNIVERSAL__
39 # include "wx/univ/chkconf.h"
43 this global setting determines what should we do if the setting FOO
44 requires BAR and BAR is not set: we can either silently unset FOO as well
45 (do this if you're trying to build the smallest possible library) or give an
46 error and abort (default as leads to least surprizing behaviour)
48 #define wxABORT_ON_CONFIG_ERROR
54 /* GUI build by default */
55 #if !defined(wxUSE_GUI)
57 #endif /* !defined(wxUSE_GUI) */
60 If we're compiling without support for threads/exceptions we have to
61 disable the corresponding features.
65 # define wxUSE_THREADS 0
66 #endif /* wxNO_THREADS */
68 #ifdef wxNO_EXCEPTIONS
69 # undef wxUSE_EXCEPTIONS
70 # define wxUSE_EXCEPTIONS 0
71 #endif /* wxNO_EXCEPTIONS */
73 /* we also must disable exceptions if compiler doesn't support them */
74 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* VC++ without exceptions support */
81 tests for non GUI features
83 please keep the options in alphabetical order!
86 #ifndef wxUSE_BACKINGFILE
87 # ifdef wxABORT_ON_CONFIG_ERROR
88 # error "wxUSE_BACKINGFILE must be defined."
90 # define wxUSE_BACKINGFILE 0
92 #endif /* !defined(wxUSE_BACKINGFILE) */
94 #ifndef wxUSE_CRASHREPORT
95 /* this one is special: as currently it is Windows-only, don't force it
96 to be defined on other platforms */
97 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
98 # error "wxUSE_CRASHREPORT must be defined."
100 # define wxUSE_CRASHREPORT 0
102 #endif /* !defined(wxUSE_CRASHREPORT) */
104 #ifndef wxUSE_DYNLIB_CLASS
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_DYNLIB_CLASS must be defined."
108 # define wxUSE_DYNLIB_CLASS 0
110 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
112 #ifndef wxUSE_EXCEPTIONS
113 # ifdef wxABORT_ON_CONFIG_ERROR
114 # error "wxUSE_EXCEPTIONS must be defined."
116 # define wxUSE_EXCEPTIONS 0
118 #endif /* !defined(wxUSE_EXCEPTIONS) */
120 #ifndef wxUSE_FILESYSTEM
121 # ifdef wxABORT_ON_CONFIG_ERROR
122 # error "wxUSE_FILESYSTEM must be defined."
124 # define wxUSE_FILESYSTEM 0
126 #endif /* !defined(wxUSE_FILESYSTEM) */
128 #ifndef wxUSE_FS_ARCHIVE
129 # ifdef wxABORT_ON_CONFIG_ERROR
130 # error "wxUSE_FS_ARCHIVE must be defined."
132 # define wxUSE_FS_ARCHIVE 0
134 #endif /* !defined(wxUSE_FS_ARCHIVE) */
136 /* don't give an error about this one yet, it's not fully implemented */
137 #ifndef wxUSE_FSVOLUME
138 # define wxUSE_FSVOLUME 0
139 #endif /* !defined(wxUSE_FSVOLUME) */
141 #ifndef wxUSE_DYNAMIC_LOADER
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_DYNAMIC_LOADER must be defined."
145 # define wxUSE_DYNAMIC_LOADER 0
147 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_LOG must be defined."
155 #endif /* !defined(wxUSE_LOG) */
157 #ifndef wxUSE_LONGLONG
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_LONGLONG must be defined."
161 # define wxUSE_LONGLONG 0
163 #endif /* !defined(wxUSE_LONGLONG) */
165 #ifndef wxUSE_MIMETYPE
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_MIMETYPE must be defined."
169 # define wxUSE_MIMETYPE 0
171 #endif /* !defined(wxUSE_MIMETYPE) */
173 #ifndef wxUSE_ON_FATAL_EXCEPTION
174 # ifdef wxABORT_ON_CONFIG_ERROR
175 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
177 # define wxUSE_ON_FATAL_EXCEPTION 0
179 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
181 #ifndef wxUSE_PRINTF_POS_PARAMS
182 # ifdef wxABORT_ON_CONFIG_ERROR
183 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
185 # define wxUSE_PRINTF_POS_PARAMS 0
187 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
189 #ifndef wxUSE_PROTOCOL
190 # ifdef wxABORT_ON_CONFIG_ERROR
191 # error "wxUSE_PROTOCOL must be defined."
193 # define wxUSE_PROTOCOL 0
195 #endif /* !defined(wxUSE_PROTOCOL) */
197 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
199 # undef wxUSE_PROTOCOL_HTTP
200 # undef wxUSE_PROTOCOL_FTP
201 # undef wxUSE_PROTOCOL_FILE
202 # define wxUSE_PROTOCOL_HTTP 0
203 # define wxUSE_PROTOCOL_FTP 0
204 # define wxUSE_PROTOCOL_FILE 0
205 #endif /* wxUSE_PROTOCOL */
207 #ifndef wxUSE_PROTOCOL_HTTP
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_PROTOCOL_HTTP must be defined."
211 # define wxUSE_PROTOCOL_HTTP 0
213 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
215 #ifndef wxUSE_PROTOCOL_FTP
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_PROTOCOL_FTP must be defined."
219 # define wxUSE_PROTOCOL_FTP 0
221 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
223 #ifndef wxUSE_PROTOCOL_FILE
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_PROTOCOL_FILE must be defined."
227 # define wxUSE_PROTOCOL_FILE 0
229 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_REGEX must be defined."
235 # define wxUSE_REGEX 0
237 #endif /* !defined(wxUSE_REGEX) */
239 #ifndef wxUSE_STDPATHS
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_STDPATHS must be defined."
243 # define wxUSE_STDPATHS 1
245 #endif /* !defined(wxUSE_STDPATHS) */
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_XML must be defined."
253 #endif /* !defined(wxUSE_XML) */
255 #ifndef wxUSE_SOCKETS
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_SOCKETS must be defined."
259 # define wxUSE_SOCKETS 0
261 #endif /* !defined(wxUSE_SOCKETS) */
263 #ifndef wxUSE_STREAMS
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_STREAMS must be defined."
267 # define wxUSE_STREAMS 0
269 #endif /* !defined(wxUSE_STREAMS) */
271 #ifndef wxUSE_STOPWATCH
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_STOPWATCH must be defined."
275 # define wxUSE_STOPWATCH 0
277 #endif /* !defined(wxUSE_STOPWATCH) */
279 #ifndef wxUSE_TEXTBUFFER
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_TEXTBUFFER must be defined."
283 # define wxUSE_TEXTBUFFER 0
285 #endif /* !defined(wxUSE_TEXTBUFFER) */
287 #ifndef wxUSE_TEXTFILE
288 # ifdef wxABORT_ON_CONFIG_ERROR
289 # error "wxUSE_TEXTFILE must be defined."
291 # define wxUSE_TEXTFILE 0
293 #endif /* !defined(wxUSE_TEXTFILE) */
295 #ifndef wxUSE_UNICODE
296 # ifdef wxABORT_ON_CONFIG_ERROR
297 # error "wxUSE_UNICODE must be defined."
299 # define wxUSE_UNICODE 0
301 #endif /* !defined(wxUSE_UNICODE) */
304 # ifdef wxABORT_ON_CONFIG_ERROR
305 # error "wxUSE_URL must be defined."
309 #endif /* !defined(wxUSE_URL) */
311 #ifndef wxUSE_VARIANT
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_VARIANT must be defined."
315 # define wxUSE_VARIANT 0
317 #endif /* wxUSE_VARIANT */
320 all these tests are for GUI only
322 please keep the options in alphabetical order!
327 all of the settings tested below must be defined or we'd get an error from
328 preprocessor about invalid integer expression
331 #ifndef wxUSE_ABOUTDLG
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_ABOUTDLG must be defined."
335 # define wxUSE_ABOUTDLG 0
337 #endif /* !defined(wxUSE_ABOUTDLG) */
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_ACCEL must be defined."
343 # define wxUSE_ACCEL 0
345 #endif /* !defined(wxUSE_ACCEL) */
347 #ifndef wxUSE_ANIMATIONCTRL
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_ANIMATIONCTRL must be defined."
351 # define wxUSE_ANIMATIONCTRL 0
353 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
355 #ifndef wxUSE_BITMAPCOMBOBOX
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_BITMAPCOMBOBOX must be defined."
359 # define wxUSE_BITMAPCOMBOBOX 0
361 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
363 #ifndef wxUSE_BMPBUTTON
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_BMPBUTTON must be defined."
367 # define wxUSE_BMPBUTTON 0
369 #endif /* !defined(wxUSE_BMPBUTTON) */
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_BUTTON must be defined."
375 # define wxUSE_BUTTON 0
377 #endif /* !defined(wxUSE_BUTTON) */
379 #ifndef wxUSE_CALENDARCTRL
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_CALENDARCTRL must be defined."
383 # define wxUSE_CALENDARCTRL 0
385 #endif /* !defined(wxUSE_CALENDARCTRL) */
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_CARET must be defined."
391 # define wxUSE_CARET 0
393 #endif /* !defined(wxUSE_CARET) */
395 #ifndef wxUSE_CHECKBOX
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_CHECKBOX must be defined."
399 # define wxUSE_CHECKBOX 0
401 #endif /* !defined(wxUSE_CHECKBOX) */
403 #ifndef wxUSE_CHECKLISTBOX
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_CHECKLISTBOX must be defined."
407 # define wxUSE_CHECKLISTBOX 0
409 #endif /* !defined(wxUSE_CHECKLISTBOX) */
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_CHOICE must be defined."
415 # define wxUSE_CHOICE 0
417 #endif /* !defined(wxUSE_CHOICE) */
419 #ifndef wxUSE_CHOICEBOOK
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_CHOICEBOOK must be defined."
423 # define wxUSE_CHOICEBOOK 0
425 #endif /* !defined(wxUSE_CHOICEBOOK) */
427 #ifndef wxUSE_CHOICEDLG
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_CHOICEDLG must be defined."
431 # define wxUSE_CHOICEDLG 0
433 #endif /* !defined(wxUSE_CHOICEDLG) */
435 #ifndef wxUSE_CLIPBOARD
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_CLIPBOARD must be defined."
439 # define wxUSE_CLIPBOARD 0
441 #endif /* !defined(wxUSE_CLIPBOARD) */
443 #ifndef wxUSE_COLOURDLG
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_COLOURDLG must be defined."
447 # define wxUSE_COLOURDLG 0
449 #endif /* !defined(wxUSE_COLOURDLG) */
451 #ifndef wxUSE_COLOURPICKERCTRL
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_COLOURPICKERCTRL must be defined."
455 # define wxUSE_COLOURPICKERCTRL 0
457 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
459 #ifndef wxUSE_COMBOBOX
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_COMBOBOX must be defined."
463 # define wxUSE_COMBOBOX 0
465 #endif /* !defined(wxUSE_COMBOBOX) */
467 #ifndef wxUSE_COMBOCTRL
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_COMBOCTRL must be defined."
471 # define wxUSE_COMBOCTRL 0
473 #endif /* !defined(wxUSE_COMBOCTRL) */
475 #ifndef wxUSE_DATAOBJ
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_DATAOBJ must be defined."
479 # define wxUSE_DATAOBJ 0
481 #endif /* !defined(wxUSE_DATAOBJ) */
483 #ifndef wxUSE_DATAVIEWCTRL
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_DATAVIEWCTRL must be defined."
487 # define wxUSE_DATAVIEWCTRL 0
489 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
491 #ifndef wxUSE_DATEPICKCTRL
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_DATEPICKCTRL must be defined."
495 # define wxUSE_DATEPICKCTRL 0
497 #endif /* !defined(wxUSE_DATEPICKCTRL) */
499 #ifndef wxUSE_DIRPICKERCTRL
500 # ifdef wxABORT_ON_CONFIG_ERROR
501 # error "wxUSE_DIRPICKERCTRL must be defined."
503 # define wxUSE_DIRPICKERCTRL 0
505 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
507 #ifndef wxUSE_DISPLAY
508 # ifdef wxABORT_ON_CONFIG_ERROR
509 # error "wxUSE_DISPLAY must be defined."
511 # define wxUSE_DISPLAY 0
513 #endif /* !defined(wxUSE_DISPLAY) */
515 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
516 # ifdef wxABORT_ON_CONFIG_ERROR
517 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
519 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
521 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
523 #ifndef wxUSE_FILEDLG
524 # ifdef wxABORT_ON_CONFIG_ERROR
525 # error "wxUSE_FILEDLG must be defined."
527 # define wxUSE_FILEDLG 0
529 #endif /* !defined(wxUSE_FILEDLG) */
531 #ifndef wxUSE_FILEPICKERCTRL
532 # ifdef wxABORT_ON_CONFIG_ERROR
533 # error "wxUSE_FILEPICKERCTRL must be defined."
535 # define wxUSE_FILEPICKERCTRL 0
537 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
539 #ifndef wxUSE_FONTDLG
540 # ifdef wxABORT_ON_CONFIG_ERROR
541 # error "wxUSE_FONTDLG must be defined."
543 # define wxUSE_FONTDLG 0
545 #endif /* !defined(wxUSE_FONTDLG) */
547 #ifndef wxUSE_FONTMAP
548 # ifdef wxABORT_ON_CONFIG_ERROR
549 # error "wxUSE_FONTMAP must be defined."
551 # define wxUSE_FONTMAP 0
553 #endif /* !defined(wxUSE_FONTMAP) */
555 #ifndef wxUSE_FONTPICKERCTRL
556 # ifdef wxABORT_ON_CONFIG_ERROR
557 # error "wxUSE_FONTPICKERCTRL must be defined."
559 # define wxUSE_FONTPICKERCTRL 0
561 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
564 # ifdef wxABORT_ON_CONFIG_ERROR
565 # error "wxUSE_GAUGE must be defined."
567 # define wxUSE_GAUGE 0
569 #endif /* !defined(wxUSE_GAUGE) */
571 #ifndef wxUSE_GRAPHICS_CONTEXT
572 # ifdef wxABORT_ON_CONFIG_ERROR
573 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
575 # define wxUSE_GRAPHICS_CONTEXT 0
577 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_GRID must be defined."
584 # define wxUSE_GRID 0
586 #endif /* !defined(wxUSE_GRID) */
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_HELP must be defined."
592 # define wxUSE_HELP 0
594 #endif /* !defined(wxUSE_HELP) */
596 #ifndef wxUSE_HYPERLINKCTRL
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_HYPERLINKCTRL must be defined."
600 # define wxUSE_HYPERLINKCTRL 0
602 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_HTML must be defined."
608 # define wxUSE_HTML 0
610 #endif /* !defined(wxUSE_HTML) */
612 #ifndef wxUSE_LIBMSPACK
614 /* set to 0 on platforms that don't have libmspack */
615 # define wxUSE_LIBMSPACK 0
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_LIBMSPACK must be defined."
620 # define wxUSE_LIBMSPACK 0
623 #endif /* !defined(wxUSE_LIBMSPACK) */
625 #ifndef wxUSE_ICO_CUR
626 # ifdef wxABORT_ON_CONFIG_ERROR
627 # error "wxUSE_ICO_CUR must be defined."
629 # define wxUSE_ICO_CUR 0
631 #endif /* !defined(wxUSE_ICO_CUR) */
634 # ifdef wxABORT_ON_CONFIG_ERROR
635 # error "wxUSE_IFF must be defined."
639 #endif /* !defined(wxUSE_IFF) */
641 #ifndef wxUSE_IMAGLIST
642 # ifdef wxABORT_ON_CONFIG_ERROR
643 # error "wxUSE_IMAGLIST must be defined."
645 # define wxUSE_IMAGLIST 0
647 #endif /* !defined(wxUSE_IMAGLIST) */
649 #ifndef wxUSE_JOYSTICK
650 # ifdef wxABORT_ON_CONFIG_ERROR
651 # error "wxUSE_JOYSTICK must be defined."
653 # define wxUSE_JOYSTICK 0
655 #endif /* !defined(wxUSE_JOYSTICK) */
657 #ifndef wxUSE_LISTBOOK
658 # ifdef wxABORT_ON_CONFIG_ERROR
659 # error "wxUSE_LISTBOOK must be defined."
661 # define wxUSE_LISTBOOK 0
663 #endif /* !defined(wxUSE_LISTBOOK) */
665 #ifndef wxUSE_LISTBOX
666 # ifdef wxABORT_ON_CONFIG_ERROR
667 # error "wxUSE_LISTBOX must be defined."
669 # define wxUSE_LISTBOX 0
671 #endif /* !defined(wxUSE_LISTBOX) */
673 #ifndef wxUSE_LISTCTRL
674 # ifdef wxABORT_ON_CONFIG_ERROR
675 # error "wxUSE_LISTCTRL must be defined."
677 # define wxUSE_LISTCTRL 0
679 #endif /* !defined(wxUSE_LISTCTRL) */
682 # ifdef wxABORT_ON_CONFIG_ERROR
683 # error "wxUSE_LOGGUI must be defined."
685 # define wxUSE_LOGGUI 0
687 #endif /* !defined(wxUSE_LOGGUI) */
689 #ifndef wxUSE_LOGWINDOW
690 # ifdef wxABORT_ON_CONFIG_ERROR
691 # error "wxUSE_LOGWINDOW must be defined."
693 # define wxUSE_LOGWINDOW 0
695 #endif /* !defined(wxUSE_LOGWINDOW) */
697 #ifndef wxUSE_LOG_DIALOG
698 # ifdef wxABORT_ON_CONFIG_ERROR
699 # error "wxUSE_LOG_DIALOG must be defined."
701 # define wxUSE_LOG_DIALOG 0
703 #endif /* !defined(wxUSE_LOG_DIALOG) */
706 # ifdef wxABORT_ON_CONFIG_ERROR
707 # error "wxUSE_MDI must be defined."
711 #endif /* !defined(wxUSE_MDI) */
713 #ifndef wxUSE_MDI_ARCHITECTURE
714 # ifdef wxABORT_ON_CONFIG_ERROR
715 # error "wxUSE_MDI_ARCHITECTURE must be defined."
717 # define wxUSE_MDI_ARCHITECTURE 0
719 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
722 # ifdef wxABORT_ON_CONFIG_ERROR
723 # error "wxUSE_MENUS must be defined."
725 # define wxUSE_MENUS 0
727 #endif /* !defined(wxUSE_MENUS) */
730 # ifdef wxABORT_ON_CONFIG_ERROR
731 # error "wxUSE_MSGDLG must be defined."
733 # define wxUSE_MSGDLG 0
735 #endif /* !defined(wxUSE_MSGDLG) */
737 #ifndef wxUSE_NOTEBOOK
738 # ifdef wxABORT_ON_CONFIG_ERROR
739 # error "wxUSE_NOTEBOOK must be defined."
741 # define wxUSE_NOTEBOOK 0
743 #endif /* !defined(wxUSE_NOTEBOOK) */
745 #ifndef wxUSE_ODCOMBOBOX
746 # ifdef wxABORT_ON_CONFIG_ERROR
747 # error "wxUSE_ODCOMBOBOX must be defined."
749 # define wxUSE_ODCOMBOBOX 0
751 #endif /* !defined(wxUSE_ODCOMBOBOX) */
753 #ifndef wxUSE_PALETTE
754 # ifdef wxABORT_ON_CONFIG_ERROR
755 # error "wxUSE_PALETTE must be defined."
757 # define wxUSE_PALETTE 0
759 #endif /* !defined(wxUSE_PALETTE) */
761 #ifndef wxUSE_POPUPWIN
762 # ifdef wxABORT_ON_CONFIG_ERROR
763 # error "wxUSE_POPUPWIN must be defined."
765 # define wxUSE_POPUPWIN 0
767 #endif /* !defined(wxUSE_POPUPWIN) */
769 #ifndef wxUSE_PRINTING_ARCHITECTURE
770 # ifdef wxABORT_ON_CONFIG_ERROR
771 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
773 # define wxUSE_PRINTING_ARCHITECTURE 0
775 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
777 #ifndef wxUSE_RADIOBOX
778 # ifdef wxABORT_ON_CONFIG_ERROR
779 # error "wxUSE_RADIOBOX must be defined."
781 # define wxUSE_RADIOBOX 0
783 #endif /* !defined(wxUSE_RADIOBOX) */
785 #ifndef wxUSE_RADIOBTN
786 # ifdef wxABORT_ON_CONFIG_ERROR
787 # error "wxUSE_RADIOBTN must be defined."
789 # define wxUSE_RADIOBTN 0
791 #endif /* !defined(wxUSE_RADIOBTN) */
794 # ifdef wxABORT_ON_CONFIG_ERROR
795 # error "wxUSE_SASH must be defined."
797 # define wxUSE_SASH 0
799 #endif /* !defined(wxUSE_SASH) */
801 #ifndef wxUSE_SCROLLBAR
802 # ifdef wxABORT_ON_CONFIG_ERROR
803 # error "wxUSE_SCROLLBAR must be defined."
805 # define wxUSE_SCROLLBAR 0
807 #endif /* !defined(wxUSE_SCROLLBAR) */
810 # ifdef wxABORT_ON_CONFIG_ERROR
811 # error "wxUSE_SLIDER must be defined."
813 # define wxUSE_SLIDER 0
815 #endif /* !defined(wxUSE_SLIDER) */
818 # ifdef wxABORT_ON_CONFIG_ERROR
819 # error "wxUSE_SOUND must be defined."
821 # define wxUSE_SOUND 0
823 #endif /* !defined(wxUSE_SOUND) */
825 #ifndef wxUSE_SPINBTN
826 # ifdef wxABORT_ON_CONFIG_ERROR
827 # error "wxUSE_SPINBTN must be defined."
829 # define wxUSE_SPINBTN 0
831 #endif /* !defined(wxUSE_SPINBTN) */
833 #ifndef wxUSE_SPINCTRL
834 # ifdef wxABORT_ON_CONFIG_ERROR
835 # error "wxUSE_SPINCTRL must be defined."
837 # define wxUSE_SPINCTRL 0
839 #endif /* !defined(wxUSE_SPINCTRL) */
842 # ifdef wxABORT_ON_CONFIG_ERROR
843 # error "wxUSE_SPLASH must be defined."
845 # define wxUSE_SPLASH 0
847 #endif /* !defined(wxUSE_SPLASH) */
849 #ifndef wxUSE_SPLITTER
850 # ifdef wxABORT_ON_CONFIG_ERROR
851 # error "wxUSE_SPLITTER must be defined."
853 # define wxUSE_SPLITTER 0
855 #endif /* !defined(wxUSE_SPLITTER) */
857 #ifndef wxUSE_STATBMP
858 # ifdef wxABORT_ON_CONFIG_ERROR
859 # error "wxUSE_STATBMP must be defined."
861 # define wxUSE_STATBMP 0
863 #endif /* !defined(wxUSE_STATBMP) */
865 #ifndef wxUSE_STATBOX
866 # ifdef wxABORT_ON_CONFIG_ERROR
867 # error "wxUSE_STATBOX must be defined."
869 # define wxUSE_STATBOX 0
871 #endif /* !defined(wxUSE_STATBOX) */
873 #ifndef wxUSE_STATLINE
874 # ifdef wxABORT_ON_CONFIG_ERROR
875 # error "wxUSE_STATLINE must be defined."
877 # define wxUSE_STATLINE 0
879 #endif /* !defined(wxUSE_STATLINE) */
881 #ifndef wxUSE_STATTEXT
882 # ifdef wxABORT_ON_CONFIG_ERROR
883 # error "wxUSE_STATTEXT must be defined."
885 # define wxUSE_STATTEXT 0
887 #endif /* !defined(wxUSE_STATTEXT) */
889 #ifndef wxUSE_STATUSBAR
890 # ifdef wxABORT_ON_CONFIG_ERROR
891 # error "wxUSE_STATUSBAR must be defined."
893 # define wxUSE_STATUSBAR 0
895 #endif /* !defined(wxUSE_STATUSBAR) */
897 #ifndef wxUSE_TAB_DIALOG
898 # ifdef wxABORT_ON_CONFIG_ERROR
899 # error "wxUSE_TAB_DIALOG must be defined."
901 # define wxUSE_TAB_DIALOG 0
903 #endif /* !defined(wxUSE_TAB_DIALOG) */
905 #ifndef wxUSE_TEXTCTRL
906 # ifdef wxABORT_ON_CONFIG_ERROR
907 # error "wxUSE_TEXTCTRL must be defined."
909 # define wxUSE_TEXTCTRL 0
911 #endif /* !defined(wxUSE_TEXTCTRL) */
913 #ifndef wxUSE_TIPWINDOW
914 # ifdef wxABORT_ON_CONFIG_ERROR
915 # error "wxUSE_TIPWINDOW must be defined."
917 # define wxUSE_TIPWINDOW 0
919 #endif /* !defined(wxUSE_TIPWINDOW) */
921 #ifndef wxUSE_TOOLBAR
922 # ifdef wxABORT_ON_CONFIG_ERROR
923 # error "wxUSE_TOOLBAR must be defined."
925 # define wxUSE_TOOLBAR 0
927 #endif /* !defined(wxUSE_TOOLBAR) */
929 #ifndef wxUSE_TOOLTIPS
930 # ifdef wxABORT_ON_CONFIG_ERROR
931 # error "wxUSE_TOOLTIPS must be defined."
933 # define wxUSE_TOOLTIPS 0
935 #endif /* !defined(wxUSE_TOOLTIPS) */
937 #ifndef wxUSE_TREECTRL
938 # ifdef wxABORT_ON_CONFIG_ERROR
939 # error "wxUSE_TREECTRL must be defined."
941 # define wxUSE_TREECTRL 0
943 #endif /* !defined(wxUSE_TREECTRL) */
945 #ifndef wxUSE_VALIDATORS
946 # ifdef wxABORT_ON_CONFIG_ERROR
947 # error "wxUSE_VALIDATORS must be defined."
949 # define wxUSE_VALIDATORS 0
951 #endif /* !defined(wxUSE_VALIDATORS) */
953 #ifndef wxUSE_WXHTML_HELP
954 # ifdef wxABORT_ON_CONFIG_ERROR
955 # error "wxUSE_WXHTML_HELP must be defined."
957 # define wxUSE_WXHTML_HELP 0
959 #endif /* !defined(wxUSE_WXHTML_HELP) */
962 # ifdef wxABORT_ON_CONFIG_ERROR
963 # error "wxUSE_XRC must be defined."
967 #endif /* !defined(wxUSE_XRC) */
969 #endif /* wxUSE_GUI */
972 check consistency of the settings
975 #if WXWIN_COMPATIBILITY_2_4
976 # if !WXWIN_COMPATIBILITY_2_6
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "2.4.X compatibility requires 2.6.X compatibility"
980 # undef WXWIN_COMPATIBILITY_2_6
981 # define WXWIN_COMPATIBILITY_2_6 1
984 #endif /* WXWIN_COMPATIBILITY_2_4 */
986 #if wxUSE_ARCHIVE_STREAMS
988 # ifdef wxABORT_ON_CONFIG_ERROR
989 # error "wxArchive requires wxUSE_DATETIME"
991 # undef wxUSE_ARCHIVE_STREAMS
992 # define wxUSE_ARCHIVE_STREAMS 0
995 #endif /* wxUSE_ARCHIVE_STREAMS */
997 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
998 # ifdef wxABORT_ON_CONFIG_ERROR
999 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
1001 # undef wxUSE_CRASHREPORT
1002 # define wxUSE_CRASHREPORT 0
1004 #endif /* wxUSE_CRASHREPORT */
1006 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1007 # if !wxUSE_PROTOCOL
1008 # ifdef wxABORT_ON_CONFIG_ERROR
1009 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1011 # undef wxUSE_PROTOCOL
1012 # define wxUSE_PROTOCOL 1
1015 #endif /* wxUSE_PROTOCOL_XXX */
1018 # if !wxUSE_PROTOCOL
1019 # ifdef wxABORT_ON_CONFIG_ERROR
1020 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1022 # undef wxUSE_PROTOCOL
1023 # define wxUSE_PROTOCOL 1
1026 #endif /* wxUSE_URL */
1030 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1031 # ifdef wxABORT_ON_CONFIG_ERROR
1032 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1034 # undef wxUSE_SOCKETS
1035 # define wxUSE_SOCKETS 1
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1044 # undef wxUSE_STREAMS
1045 # define wxUSE_STREAMS 1
1048 #endif /* wxUSE_PROTOCOL */
1050 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1052 # if !wxUSE_FILESYSTEM
1053 # ifdef wxABORT_ON_CONFIG_ERROR
1054 # error "wxHTML requires wxFileSystem"
1056 # undef wxUSE_FILESYSTEM
1057 # define wxUSE_FILESYSTEM 1
1060 #endif /* wxUSE_HTML */
1062 #if wxUSE_FILESYSTEM
1064 # ifdef wxABORT_ON_CONFIG_ERROR
1065 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1067 # undef wxUSE_STREAMS
1068 # define wxUSE_STREAMS 1
1071 # if !wxUSE_FILE && !wxUSE_FFILE
1072 # ifdef wxABORT_ON_CONFIG_ERROR
1073 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1075 # undef wxUSE_FILESYSTEM
1076 # define wxUSE_FILESYSTEM 0
1079 #endif /* wxUSE_FILESYSTEM */
1082 # if !wxUSE_PROTOCOL
1083 # ifdef wxABORT_ON_CONFIG_ERROR
1084 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1086 # undef wxUSE_PROTOCOL
1087 # define wxUSE_PROTOCOL 1
1090 #endif /* wxUSE_FS_INET */
1092 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1093 # if !wxUSE_LONGLONG
1094 # ifdef wxABORT_ON_CONFIG_ERROR
1095 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1097 # undef wxUSE_LONGLONG
1098 # define wxUSE_LONGLONG 1
1101 #endif /* wxUSE_STOPWATCH */
1103 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1104 # ifdef wxABORT_ON_CONFIG_ERROR
1105 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1107 # undef wxUSE_TEXTFILE
1108 # define wxUSE_TEXTFILE 1
1110 #endif /* wxUSE_MIMETYPE */
1113 # if !wxUSE_DATETIME
1114 # ifdef wxABORT_ON_CONFIG_ERROR
1115 # error "wxODBC requires wxUSE_DATETIME"
1118 # define wxUSE_ODBC 0
1121 #endif /* wxUSE_ODBC */
1123 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1124 # ifdef wxABORT_ON_CONFIG_ERROR
1125 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1127 # undef wxUSE_TEXTBUFFER
1128 # define wxUSE_TEXTBUFFER 1
1130 #endif /* wxUSE_TEXTFILE */
1132 #if wxUSE_TEXTFILE && !wxUSE_FILE
1133 # ifdef wxABORT_ON_CONFIG_ERROR
1134 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1137 # define wxUSE_FILE 1
1139 #endif /* wxUSE_TEXTFILE */
1141 #if wxUSE_XML && !wxUSE_WCHAR_T
1142 # ifdef wxABORT_ON_CONFIG_ERROR
1143 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1146 # define wxUSE_XML 0
1148 #endif /* wxUSE_XML */
1150 #if !wxUSE_DYNLIB_CLASS
1151 # if wxUSE_DYNAMIC_LOADER
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1155 # define wxUSE_DYNLIB_CLASS 1
1158 #endif /* wxUSE_DYNLIB_CLASS */
1162 # ifdef wxABORT_ON_CONFIG_ERROR
1163 # error "wxZip requires wxZlib"
1166 # define wxUSE_ZLIB 1
1169 # if !wxUSE_ARCHIVE_STREAMS
1170 # ifdef wxABORT_ON_CONFIG_ERROR
1171 # error "wxZip requires wxArchive"
1173 # undef wxUSE_ARCHIVE_STREAMS
1174 # define wxUSE_ARCHIVE_STREAMS 1
1177 #endif /* wxUSE_ZIPSTREAM */
1179 #if wxUSE_FS_ARCHIVE
1180 # if !wxUSE_ARCHIVE_STREAMS
1181 # ifdef wxABORT_ON_CONFIG_ERROR
1182 # error "wxArchiveFSHandler requires wxArchive and wxBackingFile"
1184 # undef wxUSE_ARCHIVE_STREAMS
1185 # define wxUSE_ARCHIVE_STREAMS 1
1186 # undef wxUSE_BACKINGFILE
1187 # define wxUSE_BACKINGFILE 1
1190 #endif /* wxUSE_FS_ARCHIVE */
1192 #if wxUSE_BACKINGFILE
1194 # ifdef wxABORT_ON_CONFIG_ERROR
1195 # error "wxBackingFile requires wxStream"
1197 # undef wxUSE_STREAMS
1198 # define wxUSE_STREAMS 1
1201 # if !wxUSE_FILE && !wxUSE_FFILE
1202 # ifdef wxABORT_ON_CONFIG_ERROR
1203 # error "wxBackingFile requires wxFile or wxFFile"
1206 # define wxUSE_FFILE 1
1209 #endif /* wxUSE_BACKINGFILE */
1212 # if !wxUSE_ARCHIVE_STREAMS
1213 # ifdef wxABORT_ON_CONFIG_ERROR
1214 # error "wxTar requires wxArchive"
1216 # undef wxUSE_ARCHIVE_STREAMS
1217 # define wxUSE_ARCHIVE_STREAMS 1
1220 #endif /* wxUSE_TARSTREAM */
1222 /* the rest of the tests is for the GUI settings only */
1225 #if wxUSE_BUTTON || \
1226 wxUSE_CALENDARCTRL || \
1229 wxUSE_BMPBUTTON || \
1231 wxUSE_CHECKLISTBOX || \
1240 wxUSE_SCROLLBAR || \
1248 wxUSE_STATUSBAR || \
1252 # if !wxUSE_CONTROLS
1253 # ifdef wxABORT_ON_CONFIG_ERROR
1254 # error "wxUSE_CONTROLS unset but some controls used"
1256 # undef wxUSE_CONTROLS
1257 # define wxUSE_CONTROLS 1
1260 #endif /* controls */
1264 # ifdef wxABORT_ON_CONFIG_ERROR
1265 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1267 # undef wxUSE_BUTTON
1268 # define wxUSE_BUTTON 1
1271 #endif /* wxUSE_BMPBUTTON */
1274 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1277 #ifdef wxUSE_BOOKCTRL
1278 # ifdef wxABORT_ON_CONFIG_ERROR
1279 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1281 # undef wxUSE_BOOKCTRL
1285 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1287 wxUSE_CHOICEBOOK || \
1291 # if !wxUSE_LISTCTRL
1292 # ifdef wxABORT_ON_CONFIG_ERROR
1293 # error "wxListbook requires wxListCtrl"
1295 # undef wxUSE_LISTCTRL
1296 # define wxUSE_LISTCTRL 1
1299 #endif /* wxUSE_LISTBOOK */
1301 #if wxUSE_CHOICEBOOK
1303 # ifdef wxABORT_ON_CONFIG_ERROR
1304 # error "wxChoicebook requires wxChoice"
1306 # undef wxUSE_CHOICE
1307 # define wxUSE_CHOICE 1
1310 #endif /* wxUSE_CHOICEBOOK */
1312 #if !wxUSE_ODCOMBOBOX
1313 # if wxUSE_BITMAPCOMBOBOX
1314 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1316 # undef wxUSE_BITMAPCOMBOBOX
1317 # define wxUSE_BITMAPCOMBOBOX 0
1319 #endif /* !wxUSE_ODCOMBOBOX */
1321 /* don't attempt to use native status bar on the platforms not having it */
1322 #ifndef wxUSE_NATIVE_STATUSBAR
1323 # define wxUSE_NATIVE_STATUSBAR 0
1324 #elif wxUSE_NATIVE_STATUSBAR
1325 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1326 defined(__WXMAC__) || \
1327 defined(__WXPALMOS__) )
1328 # undef wxUSE_NATIVE_STATUSBAR
1329 # define wxUSE_NATIVE_STATUSBAR 0
1333 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1334 # ifdef wxABORT_ON_CONFIG_ERROR
1335 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1337 # undef wxUSE_GRAPHICS_CONTEXT
1338 # define wxUSE_GRAPHICS_CONTEXT 0
1340 #endif /* wxUSE_GRAPHICS_CONTEXT */
1343 /* wxGTK-specific dependencies */
1345 # ifndef __WXUNIVERSAL__
1346 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1347 # ifdef wxABORT_ON_CONFIG_ERROR
1348 # error "MDI requires wxUSE_MENUS in wxGTK"
1351 # define wxUSE_MENUS 1
1354 # endif /* !__WXUNIVERSAL__ */
1358 # ifdef wxABORT_ON_CONFIG_ERROR
1359 # error "wxJoystick requires threads in wxGTK"
1361 # undef wxUSE_JOYSTICK
1362 # define wxUSE_JOYSTICK 0
1366 #endif /* wxGTK && !wxUniv */
1368 /* Hopefully we can emulate these dialogs in due course */
1369 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1370 # ifdef wxUSE_COLOURDLG
1371 # undef wxUSE_COLOURDLG
1372 # define wxUSE_COLOURDLG 0
1374 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1377 /* generic controls dependencies */
1378 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1379 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1380 /* all common controls are needed by these dialogs */
1381 # if !defined(wxUSE_CHOICE) || \
1382 !defined(wxUSE_TEXTCTRL) || \
1383 !defined(wxUSE_BUTTON) || \
1384 !defined(wxUSE_CHECKBOX) || \
1385 !defined(wxUSE_STATTEXT)
1386 # ifdef wxABORT_ON_CONFIG_ERROR
1387 # error "These common controls are needed by common dialogs"
1389 # undef wxUSE_CHOICE
1390 # define wxUSE_CHOICE 1
1391 # undef wxUSE_TEXTCTRL
1392 # define wxUSE_TEXTCTRL 1
1393 # undef wxUSE_BUTTON
1394 # define wxUSE_BUTTON 1
1395 # undef wxUSE_CHECKBOX
1396 # define wxUSE_CHECKBOX 1
1397 # undef wxUSE_STATTEXT
1398 # define wxUSE_STATTEXT 1
1402 #endif /* !wxMSW || wxUniv */
1404 /* common dependencies */
1405 #if wxUSE_CALENDARCTRL
1406 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1407 # ifdef wxABORT_ON_CONFIG_ERROR
1408 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1410 # undef wxUSE_SPINBTN
1411 # undef wxUSE_COMBOBOX
1412 # define wxUSE_SPINBTN 1
1413 # define wxUSE_COMBOBOX 1
1417 # if !wxUSE_DATETIME
1418 # ifdef wxABORT_ON_CONFIG_ERROR
1419 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1421 # undef wxUSE_DATETIME
1422 # define wxUSE_DATETIME 1
1425 #endif /* wxUSE_CALENDARCTRL */
1427 #if wxUSE_DATEPICKCTRL
1428 # if !wxUSE_DATETIME
1429 # ifdef wxABORT_ON_CONFIG_ERROR
1430 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1432 # undef wxUSE_DATETIME
1433 # define wxUSE_DATETIME 1
1436 #endif /* wxUSE_DATEPICKCTRL */
1438 #if wxUSE_CHECKLISTBOX
1440 # ifdef wxABORT_ON_CONFIG_ERROR
1441 # error "wxCheckListBox requires wxListBox"
1443 # undef wxUSE_LISTBOX
1444 # define wxUSE_LISTBOX 1
1447 #endif /* wxUSE_CHECKLISTBOX */
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "Choice dialogs requires wxListBox"
1454 # undef wxUSE_LISTBOX
1455 # define wxUSE_LISTBOX 1
1458 #endif /* wxUSE_CHOICEDLG */
1461 # if !wxUSE_BMPBUTTON
1462 # ifdef wxABORT_ON_CONFIG_ERROR
1463 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1465 # undef wxUSE_BMPBUTTON
1466 # define wxUSE_BMPBUTTON 1
1470 # if !wxUSE_CHOICEDLG
1471 # ifdef wxABORT_ON_CONFIG_ERROR
1472 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1474 # undef wxUSE_CHOICEDLG
1475 # define wxUSE_CHOICEDLG 1
1478 #endif /* wxUSE_HELP */
1480 #if wxUSE_WXHTML_HELP
1481 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1482 # ifdef wxABORT_ON_CONFIG_ERROR
1483 # error "Built in help controller can't be compiled"
1486 # define wxUSE_HELP 1
1488 # define wxUSE_HTML 1
1489 # undef wxUSE_COMBOBOX
1490 # define wxUSE_COMBOBOX 1
1491 # undef wxUSE_NOTEBOOK
1492 # define wxUSE_NOTEBOOK 1
1493 # undef wxUSE_SPINCTRL
1494 # define wxUSE_SPINCTRL 1
1497 #endif /* wxUSE_WXHTML_HELP */
1501 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1502 user explicitly wants this and disable all other features that require
1505 # if wxUSE_DRAGIMAGE
1506 # ifdef wxABORT_ON_CONFIG_ERROR
1507 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1509 # undef wxUSE_DRAGIMAGE
1510 # define wxUSE_DRAGIMAGE 0
1515 # ifdef wxABORT_ON_CONFIG_ERROR
1516 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1518 # undef wxUSE_LIBPNG
1519 # define wxUSE_LIBPNG 0
1524 # ifdef wxABORT_ON_CONFIG_ERROR
1525 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1527 # undef wxUSE_LIBJPEG
1528 # define wxUSE_LIBJPEG 0
1533 # ifdef wxABORT_ON_CONFIG_ERROR
1534 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1536 # undef wxUSE_LIBTIFF
1537 # define wxUSE_LIBTIFF 0
1542 # ifdef wxABORT_ON_CONFIG_ERROR
1543 # error "wxUSE_GIF requires wxUSE_IMAGE"
1546 # define wxUSE_GIF 0
1551 # ifdef wxABORT_ON_CONFIG_ERROR
1552 # error "wxUSE_PNM requires wxUSE_IMAGE"
1555 # define wxUSE_PNM 0
1560 # ifdef wxABORT_ON_CONFIG_ERROR
1561 # error "wxUSE_PCX requires wxUSE_IMAGE"
1564 # define wxUSE_PCX 0
1569 # ifdef wxABORT_ON_CONFIG_ERROR
1570 # error "wxUSE_IFF requires wxUSE_IMAGE"
1573 # define wxUSE_IFF 0
1578 # ifdef wxABORT_ON_CONFIG_ERROR
1579 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1581 # undef wxUSE_TOOLBAR
1582 # define wxUSE_TOOLBAR 0
1587 # ifdef wxABORT_ON_CONFIG_ERROR
1588 # error "wxUSE_XPM requires wxUSE_IMAGE"
1591 # define wxUSE_XPM 0
1595 #endif /* !wxUSE_IMAGE */
1597 #if wxUSE_DOC_VIEW_ARCHITECTURE
1599 # ifdef wxABORT_ON_CONFIG_ERROR
1600 # error "DocView requires wxUSE_MENUS"
1603 # define wxUSE_MENUS 1
1607 # if !wxUSE_CHOICEDLG
1608 # ifdef wxABORT_ON_CONFIG_ERROR
1609 # error "DocView requires wxUSE_CHOICEDLG"
1611 # undef wxUSE_CHOICEDLG
1612 # define wxUSE_CHOICEDLG 1
1616 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1617 # ifdef wxABORT_ON_CONFIG_ERROR
1618 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1620 # undef wxUSE_STREAMS
1621 # define wxUSE_STREAMS 1
1624 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1626 #if wxUSE_PRINTING_ARCHITECTURE
1627 # if !wxUSE_COMBOBOX
1628 # ifdef wxABORT_ON_CONFIG_ERROR
1629 # error "Print dialog requires wxUSE_COMBOBOX"
1631 # undef wxUSE_COMBOBOX
1632 # define wxUSE_COMBOBOX 1
1635 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1637 #if wxUSE_MDI_ARCHITECTURE
1639 # ifdef wxABORT_ON_CONFIG_ERROR
1640 # error "MDI requires wxUSE_MDI"
1643 # define wxUSE_MDI 1
1647 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1648 # ifdef wxABORT_ON_CONFIG_ERROR
1649 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1651 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1652 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1655 #endif /* wxUSE_MDI_ARCHITECTURE */
1658 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1659 # ifdef wxABORT_ON_CONFIG_ERROR
1660 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1662 # undef wxUSE_FILEDLG
1663 # define wxUSE_FILEDLG 1
1666 #endif /* wxUSE_FILEDLG */
1668 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1669 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1670 # ifdef wxABORT_ON_CONFIG_ERROR
1671 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1674 # undef wxUSE_BUTTON
1675 # define wxUSE_GAUGE 1
1676 # define wxUSE_BUTTON 1
1679 #endif /* !wxUSE_GAUGE */
1682 # if wxUSE_FONTDLG || \
1684 wxUSE_CHOICEDLG || \
1685 wxUSE_NUMBERDLG || \
1688 wxUSE_STARTUP_TIPS || \
1690 # ifdef wxABORT_ON_CONFIG_ERROR
1691 # error "Common and generic dialogs require wxUSE_BUTTON"
1693 # undef wxUSE_BUTTON
1694 # define wxUSE_BUTTON 1
1697 #endif /* !wxUSE_BUTTON */
1700 # if wxUSE_TOOLBAR_NATIVE
1701 # ifdef wxABORT_ON_CONFIG_ERROR
1702 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1704 # undef wxUSE_TOOLBAR_NATIVE
1705 # define wxUSE_TOOLBAR_NATIVE 0
1711 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1712 # ifdef wxABORT_ON_CONFIG_ERROR
1713 # error "wxImageList must be compiled as well"
1715 # undef wxUSE_IMAGLIST
1716 # define wxUSE_IMAGLIST 1
1719 #endif /* !wxUSE_IMAGLIST */
1722 # ifdef wxABORT_ON_CONFIG_ERROR
1723 /* FIXME: should compile without it, of course, but doesn't */
1724 # error "wxMessageBox is always needed"
1726 # undef wxUSE_MSGDLG
1727 # define wxUSE_MSGDLG 1
1732 # if !wxUSE_RADIOBTN
1733 # ifdef wxABORT_ON_CONFIG_ERROR
1734 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1736 # undef wxUSE_RADIOBTN
1737 # define wxUSE_RADIOBTN 1
1740 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1741 # ifdef wxABORT_ON_CONFIG_ERROR
1742 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1744 # undef wxUSE_STATBOX
1745 # define wxUSE_STATBOX 1
1748 #endif /* wxUSE_RADIOBOX */
1751 # if !wxUSE_TEXTCTRL
1752 # ifdef wxABORT_ON_CONFIG_ERROR
1753 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1755 # undef wxUSE_TEXTCTRL
1756 # define wxUSE_TEXTCTRL 1
1759 #endif /* wxUSE_LOGWINDOW */
1761 #if wxUSE_LOG_DIALOG
1762 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1763 # ifdef wxABORT_ON_CONFIG_ERROR
1764 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1766 # undef wxUSE_LISTCTRL
1767 # define wxUSE_LISTCTRL 1
1768 # undef wxUSE_BUTTON
1769 # define wxUSE_BUTTON 1
1772 #endif /* wxUSE_LOG_DIALOG */
1774 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1775 # ifdef wxABORT_ON_CONFIG_ERROR
1776 # error "wxClipboard requires wxDataObject"
1778 # undef wxUSE_DATAOBJ
1779 # define wxUSE_DATAOBJ 1
1781 #endif /* wxUSE_CLIPBOARD */
1783 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1784 # ifdef wxABORT_ON_CONFIG_ERROR
1785 # error "wxr resources require PrologIO"
1787 # undef wxUSE_PROLOGIO
1788 # define wxUSE_PROLOGIO 1
1790 #endif /* wxUSE_WX_RESOURCES */
1792 #if wxUSE_XRC && !wxUSE_XML
1793 # ifdef wxABORT_ON_CONFIG_ERROR
1794 # error "wxUSE_XRC requires wxUSE_XML"
1797 # define wxUSE_XRC 0
1799 #endif /* wxUSE_XRC */
1801 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1802 # ifdef wxABORT_ON_CONFIG_ERROR
1803 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1805 # undef wxUSE_SOCKETS
1806 # define wxUSE_SOCKETS 0
1808 #endif /* wxUSE_SOCKETS */
1811 # if wxUSE_DATAVIEWCTRL
1812 # ifdef wxABORT_ON_CONFIG_ERROR
1813 # error "wxDataViewCtrl requires wxVariant"
1815 # undef wxUSE_DATAVIEWCTRL
1816 # define wxUSE_DATAVIEWCTRL 0
1821 # ifdef wxABORT_ON_CONFIG_ERROR
1822 # error "wxUSE_ODBC requires wxVariant"
1825 # define wxUSE_ODBC 0
1828 #endif /* wxUSE_VARIANT */
1830 #endif /* wxUSE_GUI */