]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13 #ifndef _WX_CHKCONF_H_
14 #define _WX_CHKCONF_H_
17 Platform-specific checking.
20 #if defined(__WXPALMOS__)
21 # include "wx/palmos/chkconf.h"
22 #elif defined(__WXWINCE__)
23 # include "wx/msw/wince/chkconf.h"
24 #elif defined(__WXMSW__)
25 # include "wx/msw/chkconf.h"
26 #elif defined(__WXMAC__)
27 # include "wx/mac/chkconf.h"
28 #elif defined(__OS2__)
29 # include "wx/os2/chkconf.h"
30 #elif defined(__WXMGL__)
31 # include "wx/mgl/chkconf.h"
32 #elif defined(__WXDFB__)
33 # include "wx/dfb/chkconf.h"
34 #elif defined(__WXMOTIF__)
35 # include "wx/motif/chkconf.h"
36 #elif defined(__WXX11__)
37 # include "wx/x11/chkconf.h"
41 # include "wx/unix/chkconf.h"
44 #ifdef __WXUNIVERSAL__
45 # include "wx/univ/chkconf.h"
49 this global setting determines what should we do if the setting FOO
50 requires BAR and BAR is not set: we can either silently unset FOO as well
51 (do this if you're trying to build the smallest possible library) or give an
52 error and abort (default as leads to least surprizing behaviour)
54 #define wxABORT_ON_CONFIG_ERROR
60 /* GUI build by default */
61 #if !defined(wxUSE_GUI)
63 #endif /* !defined(wxUSE_GUI) */
66 If we're compiling without support for threads/exceptions we have to
67 disable the corresponding features.
71 # define wxUSE_THREADS 0
72 #endif /* wxNO_THREADS */
74 #ifdef wxNO_EXCEPTIONS
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* wxNO_EXCEPTIONS */
79 /* we also must disable exceptions if compiler doesn't support them */
80 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
81 # undef wxUSE_EXCEPTIONS
82 # define wxUSE_EXCEPTIONS 0
83 #endif /* VC++ without exceptions support */
87 tests for non GUI features
89 please keep the options in alphabetical order!
92 #ifndef wxUSE_CONSOLE_EVENTLOOP
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_CONSOLE_EVENTLOOP must be defined."
96 # define wxUSE_CONSOLE_EVENTLOOP 0
98 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
100 #ifndef wxUSE_CRASHREPORT
101 /* this one is special: as currently it is Windows-only, don't force it
102 to be defined on other platforms */
103 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
104 # error "wxUSE_CRASHREPORT must be defined."
106 # define wxUSE_CRASHREPORT 0
108 #endif /* !defined(wxUSE_CRASHREPORT) */
110 #ifndef wxUSE_DYNLIB_CLASS
111 # ifdef wxABORT_ON_CONFIG_ERROR
112 # error "wxUSE_DYNLIB_CLASS must be defined."
114 # define wxUSE_DYNLIB_CLASS 0
116 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
118 #ifndef wxUSE_EXCEPTIONS
119 # ifdef wxABORT_ON_CONFIG_ERROR
120 # error "wxUSE_EXCEPTIONS must be defined."
122 # define wxUSE_EXCEPTIONS 0
124 #endif /* !defined(wxUSE_EXCEPTIONS) */
126 #ifndef wxUSE_FILESYSTEM
127 # ifdef wxABORT_ON_CONFIG_ERROR
128 # error "wxUSE_FILESYSTEM must be defined."
130 # define wxUSE_FILESYSTEM 0
132 #endif /* !defined(wxUSE_FILESYSTEM) */
134 #ifndef wxUSE_FS_ARCHIVE
135 # ifdef wxABORT_ON_CONFIG_ERROR
136 # error "wxUSE_FS_ARCHIVE must be defined."
138 # define wxUSE_FS_ARCHIVE 0
140 #endif /* !defined(wxUSE_FS_ARCHIVE) */
142 /* don't give an error about this one yet, it's not fully implemented */
143 #ifndef wxUSE_FSVOLUME
144 # define wxUSE_FSVOLUME 0
145 #endif /* !defined(wxUSE_FSVOLUME) */
147 #ifndef wxUSE_DYNAMIC_LOADER
148 # ifdef wxABORT_ON_CONFIG_ERROR
149 # error "wxUSE_DYNAMIC_LOADER must be defined."
151 # define wxUSE_DYNAMIC_LOADER 0
153 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
156 # ifdef wxABORT_ON_CONFIG_ERROR
157 # error "wxUSE_LOG must be defined."
161 #endif /* !defined(wxUSE_LOG) */
163 #ifndef wxUSE_LONGLONG
164 # ifdef wxABORT_ON_CONFIG_ERROR
165 # error "wxUSE_LONGLONG must be defined."
167 # define wxUSE_LONGLONG 0
169 #endif /* !defined(wxUSE_LONGLONG) */
171 #ifndef wxUSE_MIMETYPE
172 # ifdef wxABORT_ON_CONFIG_ERROR
173 # error "wxUSE_MIMETYPE must be defined."
175 # define wxUSE_MIMETYPE 0
177 #endif /* !defined(wxUSE_MIMETYPE) */
179 #ifndef wxUSE_ON_FATAL_EXCEPTION
180 # ifdef wxABORT_ON_CONFIG_ERROR
181 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
183 # define wxUSE_ON_FATAL_EXCEPTION 0
185 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
187 #ifndef wxUSE_PRINTF_POS_PARAMS
188 # ifdef wxABORT_ON_CONFIG_ERROR
189 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
191 # define wxUSE_PRINTF_POS_PARAMS 0
193 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
195 #ifndef wxUSE_PROTOCOL
196 # ifdef wxABORT_ON_CONFIG_ERROR
197 # error "wxUSE_PROTOCOL must be defined."
199 # define wxUSE_PROTOCOL 0
201 #endif /* !defined(wxUSE_PROTOCOL) */
203 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
205 # undef wxUSE_PROTOCOL_HTTP
206 # undef wxUSE_PROTOCOL_FTP
207 # undef wxUSE_PROTOCOL_FILE
208 # define wxUSE_PROTOCOL_HTTP 0
209 # define wxUSE_PROTOCOL_FTP 0
210 # define wxUSE_PROTOCOL_FILE 0
211 #endif /* wxUSE_PROTOCOL */
213 #ifndef wxUSE_PROTOCOL_HTTP
214 # ifdef wxABORT_ON_CONFIG_ERROR
215 # error "wxUSE_PROTOCOL_HTTP must be defined."
217 # define wxUSE_PROTOCOL_HTTP 0
219 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
221 #ifndef wxUSE_PROTOCOL_FTP
222 # ifdef wxABORT_ON_CONFIG_ERROR
223 # error "wxUSE_PROTOCOL_FTP must be defined."
225 # define wxUSE_PROTOCOL_FTP 0
227 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
229 #ifndef wxUSE_PROTOCOL_FILE
230 # ifdef wxABORT_ON_CONFIG_ERROR
231 # error "wxUSE_PROTOCOL_FILE must be defined."
233 # define wxUSE_PROTOCOL_FILE 0
235 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
238 # ifdef wxABORT_ON_CONFIG_ERROR
239 # error "wxUSE_REGEX must be defined."
241 # define wxUSE_REGEX 0
243 #endif /* !defined(wxUSE_REGEX) */
245 #ifndef wxUSE_STDPATHS
246 # ifdef wxABORT_ON_CONFIG_ERROR
247 # error "wxUSE_STDPATHS must be defined."
249 # define wxUSE_STDPATHS 1
251 #endif /* !defined(wxUSE_STDPATHS) */
254 # ifdef wxABORT_ON_CONFIG_ERROR
255 # error "wxUSE_XML must be defined."
259 #endif /* !defined(wxUSE_XML) */
261 #ifndef wxUSE_SOCKETS
262 # ifdef wxABORT_ON_CONFIG_ERROR
263 # error "wxUSE_SOCKETS must be defined."
265 # define wxUSE_SOCKETS 0
267 #endif /* !defined(wxUSE_SOCKETS) */
269 #ifndef wxUSE_STREAMS
270 # ifdef wxABORT_ON_CONFIG_ERROR
271 # error "wxUSE_STREAMS must be defined."
273 # define wxUSE_STREAMS 0
275 #endif /* !defined(wxUSE_STREAMS) */
277 #ifndef wxUSE_STOPWATCH
278 # ifdef wxABORT_ON_CONFIG_ERROR
279 # error "wxUSE_STOPWATCH must be defined."
281 # define wxUSE_STOPWATCH 0
283 #endif /* !defined(wxUSE_STOPWATCH) */
285 #ifndef wxUSE_TEXTBUFFER
286 # ifdef wxABORT_ON_CONFIG_ERROR
287 # error "wxUSE_TEXTBUFFER must be defined."
289 # define wxUSE_TEXTBUFFER 0
291 #endif /* !defined(wxUSE_TEXTBUFFER) */
293 #ifndef wxUSE_TEXTFILE
294 # ifdef wxABORT_ON_CONFIG_ERROR
295 # error "wxUSE_TEXTFILE must be defined."
297 # define wxUSE_TEXTFILE 0
299 #endif /* !defined(wxUSE_TEXTFILE) */
301 #ifndef wxUSE_UNICODE
302 # ifdef wxABORT_ON_CONFIG_ERROR
303 # error "wxUSE_UNICODE must be defined."
305 # define wxUSE_UNICODE 0
307 #endif /* !defined(wxUSE_UNICODE) */
310 # ifdef wxABORT_ON_CONFIG_ERROR
311 # error "wxUSE_URL must be defined."
315 #endif /* !defined(wxUSE_URL) */
317 #ifndef wxUSE_VARIANT
318 # ifdef wxABORT_ON_CONFIG_ERROR
319 # error "wxUSE_VARIANT must be defined."
321 # define wxUSE_VARIANT 0
323 #endif /* wxUSE_VARIANT */
326 all these tests are for GUI only
328 please keep the options in alphabetical order!
333 all of the settings tested below must be defined or we'd get an error from
334 preprocessor about invalid integer expression
337 #ifndef wxUSE_ABOUTDLG
338 # ifdef wxABORT_ON_CONFIG_ERROR
339 # error "wxUSE_ABOUTDLG must be defined."
341 # define wxUSE_ABOUTDLG 0
343 #endif /* !defined(wxUSE_ABOUTDLG) */
346 # ifdef wxABORT_ON_CONFIG_ERROR
347 # error "wxUSE_ACCEL must be defined."
349 # define wxUSE_ACCEL 0
351 #endif /* !defined(wxUSE_ACCEL) */
353 #ifndef wxUSE_ANIMATIONCTRL
354 # ifdef wxABORT_ON_CONFIG_ERROR
355 # error "wxUSE_ANIMATIONCTRL must be defined."
357 # define wxUSE_ANIMATIONCTRL 0
359 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
361 #ifndef wxUSE_BITMAPCOMBOBOX
362 # ifdef wxABORT_ON_CONFIG_ERROR
363 # error "wxUSE_BITMAPCOMBOBOX must be defined."
365 # define wxUSE_BITMAPCOMBOBOX 0
367 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
369 #ifndef wxUSE_BMPBUTTON
370 # ifdef wxABORT_ON_CONFIG_ERROR
371 # error "wxUSE_BMPBUTTON must be defined."
373 # define wxUSE_BMPBUTTON 0
375 #endif /* !defined(wxUSE_BMPBUTTON) */
378 # ifdef wxABORT_ON_CONFIG_ERROR
379 # error "wxUSE_BUTTON must be defined."
381 # define wxUSE_BUTTON 0
383 #endif /* !defined(wxUSE_BUTTON) */
385 #ifndef wxUSE_CALENDARCTRL
386 # ifdef wxABORT_ON_CONFIG_ERROR
387 # error "wxUSE_CALENDARCTRL must be defined."
389 # define wxUSE_CALENDARCTRL 0
391 #endif /* !defined(wxUSE_CALENDARCTRL) */
394 # ifdef wxABORT_ON_CONFIG_ERROR
395 # error "wxUSE_CARET must be defined."
397 # define wxUSE_CARET 0
399 #endif /* !defined(wxUSE_CARET) */
401 #ifndef wxUSE_CHECKBOX
402 # ifdef wxABORT_ON_CONFIG_ERROR
403 # error "wxUSE_CHECKBOX must be defined."
405 # define wxUSE_CHECKBOX 0
407 #endif /* !defined(wxUSE_CHECKBOX) */
409 #ifndef wxUSE_CHECKLISTBOX
410 # ifdef wxABORT_ON_CONFIG_ERROR
411 # error "wxUSE_CHECKLISTBOX must be defined."
413 # define wxUSE_CHECKLISTBOX 0
415 #endif /* !defined(wxUSE_CHECKLISTBOX) */
418 # ifdef wxABORT_ON_CONFIG_ERROR
419 # error "wxUSE_CHOICE must be defined."
421 # define wxUSE_CHOICE 0
423 #endif /* !defined(wxUSE_CHOICE) */
425 #ifndef wxUSE_CHOICEBOOK
426 # ifdef wxABORT_ON_CONFIG_ERROR
427 # error "wxUSE_CHOICEBOOK must be defined."
429 # define wxUSE_CHOICEBOOK 0
431 #endif /* !defined(wxUSE_CHOICEBOOK) */
433 #ifndef wxUSE_CHOICEDLG
434 # ifdef wxABORT_ON_CONFIG_ERROR
435 # error "wxUSE_CHOICEDLG must be defined."
437 # define wxUSE_CHOICEDLG 0
439 #endif /* !defined(wxUSE_CHOICEDLG) */
441 #ifndef wxUSE_CLIPBOARD
442 # ifdef wxABORT_ON_CONFIG_ERROR
443 # error "wxUSE_CLIPBOARD must be defined."
445 # define wxUSE_CLIPBOARD 0
447 #endif /* !defined(wxUSE_CLIPBOARD) */
449 #ifndef wxUSE_COLLPANE
450 # ifdef wxABORT_ON_CONFIG_ERROR
451 # error "wxUSE_COLLPANE must be defined."
453 # define wxUSE_COLLPANE 0
455 #endif /* !defined(wxUSE_COLLPANE) */
457 #ifndef wxUSE_COLOURDLG
458 # ifdef wxABORT_ON_CONFIG_ERROR
459 # error "wxUSE_COLOURDLG must be defined."
461 # define wxUSE_COLOURDLG 0
463 #endif /* !defined(wxUSE_COLOURDLG) */
465 #ifndef wxUSE_COLOURPICKERCTRL
466 # ifdef wxABORT_ON_CONFIG_ERROR
467 # error "wxUSE_COLOURPICKERCTRL must be defined."
469 # define wxUSE_COLOURPICKERCTRL 0
471 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
473 #ifndef wxUSE_COMBOBOX
474 # ifdef wxABORT_ON_CONFIG_ERROR
475 # error "wxUSE_COMBOBOX must be defined."
477 # define wxUSE_COMBOBOX 0
479 #endif /* !defined(wxUSE_COMBOBOX) */
481 #ifndef wxUSE_COMBOCTRL
482 # ifdef wxABORT_ON_CONFIG_ERROR
483 # error "wxUSE_COMBOCTRL must be defined."
485 # define wxUSE_COMBOCTRL 0
487 #endif /* !defined(wxUSE_COMBOCTRL) */
489 #ifndef wxUSE_DATAOBJ
490 # ifdef wxABORT_ON_CONFIG_ERROR
491 # error "wxUSE_DATAOBJ must be defined."
493 # define wxUSE_DATAOBJ 0
495 #endif /* !defined(wxUSE_DATAOBJ) */
497 #ifndef wxUSE_DATAVIEWCTRL
498 # ifdef wxABORT_ON_CONFIG_ERROR
499 # error "wxUSE_DATAVIEWCTRL must be defined."
501 # define wxUSE_DATAVIEWCTRL 0
503 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
505 #ifndef wxUSE_DATEPICKCTRL
506 # ifdef wxABORT_ON_CONFIG_ERROR
507 # error "wxUSE_DATEPICKCTRL must be defined."
509 # define wxUSE_DATEPICKCTRL 0
511 #endif /* !defined(wxUSE_DATEPICKCTRL) */
513 #ifndef wxUSE_DIRPICKERCTRL
514 # ifdef wxABORT_ON_CONFIG_ERROR
515 # error "wxUSE_DIRPICKERCTRL must be defined."
517 # define wxUSE_DIRPICKERCTRL 0
519 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
521 #ifndef wxUSE_DISPLAY
522 # ifdef wxABORT_ON_CONFIG_ERROR
523 # error "wxUSE_DISPLAY must be defined."
525 # define wxUSE_DISPLAY 0
527 #endif /* !defined(wxUSE_DISPLAY) */
529 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
530 # ifdef wxABORT_ON_CONFIG_ERROR
531 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
533 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
535 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
537 #ifndef wxUSE_FILEDLG
538 # ifdef wxABORT_ON_CONFIG_ERROR
539 # error "wxUSE_FILEDLG must be defined."
541 # define wxUSE_FILEDLG 0
543 #endif /* !defined(wxUSE_FILEDLG) */
545 #ifndef wxUSE_FILEPICKERCTRL
546 # ifdef wxABORT_ON_CONFIG_ERROR
547 # error "wxUSE_FILEPICKERCTRL must be defined."
549 # define wxUSE_FILEPICKERCTRL 0
551 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
553 #ifndef wxUSE_FONTDLG
554 # ifdef wxABORT_ON_CONFIG_ERROR
555 # error "wxUSE_FONTDLG must be defined."
557 # define wxUSE_FONTDLG 0
559 #endif /* !defined(wxUSE_FONTDLG) */
561 #ifndef wxUSE_FONTMAP
562 # ifdef wxABORT_ON_CONFIG_ERROR
563 # error "wxUSE_FONTMAP must be defined."
565 # define wxUSE_FONTMAP 0
567 #endif /* !defined(wxUSE_FONTMAP) */
569 #ifndef wxUSE_FONTPICKERCTRL
570 # ifdef wxABORT_ON_CONFIG_ERROR
571 # error "wxUSE_FONTPICKERCTRL must be defined."
573 # define wxUSE_FONTPICKERCTRL 0
575 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
578 # ifdef wxABORT_ON_CONFIG_ERROR
579 # error "wxUSE_GAUGE must be defined."
581 # define wxUSE_GAUGE 0
583 #endif /* !defined(wxUSE_GAUGE) */
585 #ifndef wxUSE_GRAPHICS_CONTEXT
586 # ifdef wxABORT_ON_CONFIG_ERROR
587 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
589 # define wxUSE_GRAPHICS_CONTEXT 0
591 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_GRID must be defined."
598 # define wxUSE_GRID 0
600 #endif /* !defined(wxUSE_GRID) */
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_HELP must be defined."
606 # define wxUSE_HELP 0
608 #endif /* !defined(wxUSE_HELP) */
610 #ifndef wxUSE_HYPERLINKCTRL
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_HYPERLINKCTRL must be defined."
614 # define wxUSE_HYPERLINKCTRL 0
616 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_HTML must be defined."
622 # define wxUSE_HTML 0
624 #endif /* !defined(wxUSE_HTML) */
626 #ifndef wxUSE_LIBMSPACK
628 /* set to 0 on platforms that don't have libmspack */
629 # define wxUSE_LIBMSPACK 0
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_LIBMSPACK must be defined."
634 # define wxUSE_LIBMSPACK 0
637 #endif /* !defined(wxUSE_LIBMSPACK) */
639 #ifndef wxUSE_ICO_CUR
640 # ifdef wxABORT_ON_CONFIG_ERROR
641 # error "wxUSE_ICO_CUR must be defined."
643 # define wxUSE_ICO_CUR 0
645 #endif /* !defined(wxUSE_ICO_CUR) */
648 # ifdef wxABORT_ON_CONFIG_ERROR
649 # error "wxUSE_IFF must be defined."
653 #endif /* !defined(wxUSE_IFF) */
655 #ifndef wxUSE_IMAGLIST
656 # ifdef wxABORT_ON_CONFIG_ERROR
657 # error "wxUSE_IMAGLIST must be defined."
659 # define wxUSE_IMAGLIST 0
661 #endif /* !defined(wxUSE_IMAGLIST) */
663 #ifndef wxUSE_JOYSTICK
664 # ifdef wxABORT_ON_CONFIG_ERROR
665 # error "wxUSE_JOYSTICK must be defined."
667 # define wxUSE_JOYSTICK 0
669 #endif /* !defined(wxUSE_JOYSTICK) */
671 #ifndef wxUSE_LISTBOOK
672 # ifdef wxABORT_ON_CONFIG_ERROR
673 # error "wxUSE_LISTBOOK must be defined."
675 # define wxUSE_LISTBOOK 0
677 #endif /* !defined(wxUSE_LISTBOOK) */
679 #ifndef wxUSE_LISTBOX
680 # ifdef wxABORT_ON_CONFIG_ERROR
681 # error "wxUSE_LISTBOX must be defined."
683 # define wxUSE_LISTBOX 0
685 #endif /* !defined(wxUSE_LISTBOX) */
687 #ifndef wxUSE_LISTCTRL
688 # ifdef wxABORT_ON_CONFIG_ERROR
689 # error "wxUSE_LISTCTRL must be defined."
691 # define wxUSE_LISTCTRL 0
693 #endif /* !defined(wxUSE_LISTCTRL) */
696 # ifdef wxABORT_ON_CONFIG_ERROR
697 # error "wxUSE_LOGGUI must be defined."
699 # define wxUSE_LOGGUI 0
701 #endif /* !defined(wxUSE_LOGGUI) */
703 #ifndef wxUSE_LOGWINDOW
704 # ifdef wxABORT_ON_CONFIG_ERROR
705 # error "wxUSE_LOGWINDOW must be defined."
707 # define wxUSE_LOGWINDOW 0
709 #endif /* !defined(wxUSE_LOGWINDOW) */
711 #ifndef wxUSE_LOG_DIALOG
712 # ifdef wxABORT_ON_CONFIG_ERROR
713 # error "wxUSE_LOG_DIALOG must be defined."
715 # define wxUSE_LOG_DIALOG 0
717 #endif /* !defined(wxUSE_LOG_DIALOG) */
720 # ifdef wxABORT_ON_CONFIG_ERROR
721 # error "wxUSE_MDI must be defined."
725 #endif /* !defined(wxUSE_MDI) */
727 #ifndef wxUSE_MDI_ARCHITECTURE
728 # ifdef wxABORT_ON_CONFIG_ERROR
729 # error "wxUSE_MDI_ARCHITECTURE must be defined."
731 # define wxUSE_MDI_ARCHITECTURE 0
733 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
736 # ifdef wxABORT_ON_CONFIG_ERROR
737 # error "wxUSE_MENUS must be defined."
739 # define wxUSE_MENUS 0
741 #endif /* !defined(wxUSE_MENUS) */
744 # ifdef wxABORT_ON_CONFIG_ERROR
745 # error "wxUSE_MSGDLG must be defined."
747 # define wxUSE_MSGDLG 0
749 #endif /* !defined(wxUSE_MSGDLG) */
751 #ifndef wxUSE_NOTEBOOK
752 # ifdef wxABORT_ON_CONFIG_ERROR
753 # error "wxUSE_NOTEBOOK must be defined."
755 # define wxUSE_NOTEBOOK 0
757 #endif /* !defined(wxUSE_NOTEBOOK) */
759 #ifndef wxUSE_ODCOMBOBOX
760 # ifdef wxABORT_ON_CONFIG_ERROR
761 # error "wxUSE_ODCOMBOBOX must be defined."
763 # define wxUSE_ODCOMBOBOX 0
765 #endif /* !defined(wxUSE_ODCOMBOBOX) */
767 #ifndef wxUSE_PALETTE
768 # ifdef wxABORT_ON_CONFIG_ERROR
769 # error "wxUSE_PALETTE must be defined."
771 # define wxUSE_PALETTE 0
773 #endif /* !defined(wxUSE_PALETTE) */
775 #ifndef wxUSE_POPUPWIN
776 # ifdef wxABORT_ON_CONFIG_ERROR
777 # error "wxUSE_POPUPWIN must be defined."
779 # define wxUSE_POPUPWIN 0
781 #endif /* !defined(wxUSE_POPUPWIN) */
783 #ifndef wxUSE_PRINTING_ARCHITECTURE
784 # ifdef wxABORT_ON_CONFIG_ERROR
785 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
787 # define wxUSE_PRINTING_ARCHITECTURE 0
789 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
791 #ifndef wxUSE_RADIOBOX
792 # ifdef wxABORT_ON_CONFIG_ERROR
793 # error "wxUSE_RADIOBOX must be defined."
795 # define wxUSE_RADIOBOX 0
797 #endif /* !defined(wxUSE_RADIOBOX) */
799 #ifndef wxUSE_RADIOBTN
800 # ifdef wxABORT_ON_CONFIG_ERROR
801 # error "wxUSE_RADIOBTN must be defined."
803 # define wxUSE_RADIOBTN 0
805 #endif /* !defined(wxUSE_RADIOBTN) */
808 # ifdef wxABORT_ON_CONFIG_ERROR
809 # error "wxUSE_SASH must be defined."
811 # define wxUSE_SASH 0
813 #endif /* !defined(wxUSE_SASH) */
815 #ifndef wxUSE_SCROLLBAR
816 # ifdef wxABORT_ON_CONFIG_ERROR
817 # error "wxUSE_SCROLLBAR must be defined."
819 # define wxUSE_SCROLLBAR 0
821 #endif /* !defined(wxUSE_SCROLLBAR) */
824 # ifdef wxABORT_ON_CONFIG_ERROR
825 # error "wxUSE_SLIDER must be defined."
827 # define wxUSE_SLIDER 0
829 #endif /* !defined(wxUSE_SLIDER) */
832 # ifdef wxABORT_ON_CONFIG_ERROR
833 # error "wxUSE_SOUND must be defined."
835 # define wxUSE_SOUND 0
837 #endif /* !defined(wxUSE_SOUND) */
839 #ifndef wxUSE_SPINBTN
840 # ifdef wxABORT_ON_CONFIG_ERROR
841 # error "wxUSE_SPINBTN must be defined."
843 # define wxUSE_SPINBTN 0
845 #endif /* !defined(wxUSE_SPINBTN) */
847 #ifndef wxUSE_SPINCTRL
848 # ifdef wxABORT_ON_CONFIG_ERROR
849 # error "wxUSE_SPINCTRL must be defined."
851 # define wxUSE_SPINCTRL 0
853 #endif /* !defined(wxUSE_SPINCTRL) */
856 # ifdef wxABORT_ON_CONFIG_ERROR
857 # error "wxUSE_SPLASH must be defined."
859 # define wxUSE_SPLASH 0
861 #endif /* !defined(wxUSE_SPLASH) */
863 #ifndef wxUSE_SPLITTER
864 # ifdef wxABORT_ON_CONFIG_ERROR
865 # error "wxUSE_SPLITTER must be defined."
867 # define wxUSE_SPLITTER 0
869 #endif /* !defined(wxUSE_SPLITTER) */
871 #ifndef wxUSE_STATBMP
872 # ifdef wxABORT_ON_CONFIG_ERROR
873 # error "wxUSE_STATBMP must be defined."
875 # define wxUSE_STATBMP 0
877 #endif /* !defined(wxUSE_STATBMP) */
879 #ifndef wxUSE_STATBOX
880 # ifdef wxABORT_ON_CONFIG_ERROR
881 # error "wxUSE_STATBOX must be defined."
883 # define wxUSE_STATBOX 0
885 #endif /* !defined(wxUSE_STATBOX) */
887 #ifndef wxUSE_STATLINE
888 # ifdef wxABORT_ON_CONFIG_ERROR
889 # error "wxUSE_STATLINE must be defined."
891 # define wxUSE_STATLINE 0
893 #endif /* !defined(wxUSE_STATLINE) */
895 #ifndef wxUSE_STATTEXT
896 # ifdef wxABORT_ON_CONFIG_ERROR
897 # error "wxUSE_STATTEXT must be defined."
899 # define wxUSE_STATTEXT 0
901 #endif /* !defined(wxUSE_STATTEXT) */
903 #ifndef wxUSE_STATUSBAR
904 # ifdef wxABORT_ON_CONFIG_ERROR
905 # error "wxUSE_STATUSBAR must be defined."
907 # define wxUSE_STATUSBAR 0
909 #endif /* !defined(wxUSE_STATUSBAR) */
911 #ifndef wxUSE_TAB_DIALOG
912 # ifdef wxABORT_ON_CONFIG_ERROR
913 # error "wxUSE_TAB_DIALOG must be defined."
915 # define wxUSE_TAB_DIALOG 0
917 #endif /* !defined(wxUSE_TAB_DIALOG) */
919 #ifndef wxUSE_TEXTCTRL
920 # ifdef wxABORT_ON_CONFIG_ERROR
921 # error "wxUSE_TEXTCTRL must be defined."
923 # define wxUSE_TEXTCTRL 0
925 #endif /* !defined(wxUSE_TEXTCTRL) */
927 #ifndef wxUSE_TIPWINDOW
928 # ifdef wxABORT_ON_CONFIG_ERROR
929 # error "wxUSE_TIPWINDOW must be defined."
931 # define wxUSE_TIPWINDOW 0
933 #endif /* !defined(wxUSE_TIPWINDOW) */
935 #ifndef wxUSE_TOOLBAR
936 # ifdef wxABORT_ON_CONFIG_ERROR
937 # error "wxUSE_TOOLBAR must be defined."
939 # define wxUSE_TOOLBAR 0
941 #endif /* !defined(wxUSE_TOOLBAR) */
943 #ifndef wxUSE_TOOLTIPS
944 # ifdef wxABORT_ON_CONFIG_ERROR
945 # error "wxUSE_TOOLTIPS must be defined."
947 # define wxUSE_TOOLTIPS 0
949 #endif /* !defined(wxUSE_TOOLTIPS) */
951 #ifndef wxUSE_TREECTRL
952 # ifdef wxABORT_ON_CONFIG_ERROR
953 # error "wxUSE_TREECTRL must be defined."
955 # define wxUSE_TREECTRL 0
957 #endif /* !defined(wxUSE_TREECTRL) */
959 #ifndef wxUSE_VALIDATORS
960 # ifdef wxABORT_ON_CONFIG_ERROR
961 # error "wxUSE_VALIDATORS must be defined."
963 # define wxUSE_VALIDATORS 0
965 #endif /* !defined(wxUSE_VALIDATORS) */
967 #ifndef wxUSE_WXHTML_HELP
968 # ifdef wxABORT_ON_CONFIG_ERROR
969 # error "wxUSE_WXHTML_HELP must be defined."
971 # define wxUSE_WXHTML_HELP 0
973 #endif /* !defined(wxUSE_WXHTML_HELP) */
976 # ifdef wxABORT_ON_CONFIG_ERROR
977 # error "wxUSE_XRC must be defined."
981 #endif /* !defined(wxUSE_XRC) */
983 #endif /* wxUSE_GUI */
986 check consistency of the settings
989 #if WXWIN_COMPATIBILITY_2_6
990 # if !WXWIN_COMPATIBILITY_2_8
991 # ifdef wxABORT_ON_CONFIG_ERROR
992 # error "2.6.X compatibility requires 2.8.X compatibility"
994 # undef WXWIN_COMPATIBILITY_2_8
995 # define WXWIN_COMPATIBILITY_2_8 1
998 #endif /* WXWIN_COMPATIBILITY_2_6 */
1000 #if wxUSE_ARCHIVE_STREAMS
1001 # if !wxUSE_DATETIME
1002 # ifdef wxABORT_ON_CONFIG_ERROR
1003 # error "wxArchive requires wxUSE_DATETIME"
1005 # undef wxUSE_ARCHIVE_STREAMS
1006 # define wxUSE_ARCHIVE_STREAMS 0
1009 #endif /* wxUSE_ARCHIVE_STREAMS */
1011 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
1015 # undef wxUSE_CRASHREPORT
1016 # define wxUSE_CRASHREPORT 0
1018 #endif /* wxUSE_CRASHREPORT */
1020 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1021 # if !wxUSE_PROTOCOL
1022 # ifdef wxABORT_ON_CONFIG_ERROR
1023 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1025 # undef wxUSE_PROTOCOL
1026 # define wxUSE_PROTOCOL 1
1029 #endif /* wxUSE_PROTOCOL_XXX */
1032 # if !wxUSE_PROTOCOL
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1036 # undef wxUSE_PROTOCOL
1037 # define wxUSE_PROTOCOL 1
1040 #endif /* wxUSE_URL */
1044 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1045 # ifdef wxABORT_ON_CONFIG_ERROR
1046 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1048 # undef wxUSE_SOCKETS
1049 # define wxUSE_SOCKETS 1
1055 # ifdef wxABORT_ON_CONFIG_ERROR
1056 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1058 # undef wxUSE_STREAMS
1059 # define wxUSE_STREAMS 1
1062 #endif /* wxUSE_PROTOCOL */
1064 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1066 # if !wxUSE_FILESYSTEM
1067 # ifdef wxABORT_ON_CONFIG_ERROR
1068 # error "wxHTML requires wxFileSystem"
1070 # undef wxUSE_FILESYSTEM
1071 # define wxUSE_FILESYSTEM 1
1074 #endif /* wxUSE_HTML */
1076 #if wxUSE_FS_ARCHIVE
1077 # if !wxUSE_FILESYSTEM
1078 # ifdef wxABORT_ON_CONFIG_ERROR
1079 # error "wxArchiveFSHandler requires wxFileSystem"
1081 # undef wxUSE_FILESYSTEM
1082 # define wxUSE_FILESYSTEM 1
1085 # if !wxUSE_ARCHIVE_STREAMS
1086 # ifdef wxABORT_ON_CONFIG_ERROR
1087 # error "wxArchiveFSHandler requires wxArchive"
1089 # undef wxUSE_ARCHIVE_STREAMS
1090 # define wxUSE_ARCHIVE_STREAMS 1
1093 #endif /* wxUSE_FS_ARCHIVE */
1095 #if wxUSE_FILESYSTEM
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1100 # undef wxUSE_STREAMS
1101 # define wxUSE_STREAMS 1
1104 # if !wxUSE_FILE && !wxUSE_FFILE
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1109 # define wxUSE_FILE 1
1111 # define wxUSE_FFILE 1
1114 #endif /* wxUSE_FILESYSTEM */
1117 # if !wxUSE_PROTOCOL
1118 # ifdef wxABORT_ON_CONFIG_ERROR
1119 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1121 # undef wxUSE_PROTOCOL
1122 # define wxUSE_PROTOCOL 1
1125 #endif /* wxUSE_FS_INET */
1127 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1128 # if !wxUSE_LONGLONG
1129 # ifdef wxABORT_ON_CONFIG_ERROR
1130 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1132 # undef wxUSE_LONGLONG
1133 # define wxUSE_LONGLONG 1
1136 #endif /* wxUSE_STOPWATCH */
1138 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1139 # ifdef wxABORT_ON_CONFIG_ERROR
1140 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1142 # undef wxUSE_TEXTFILE
1143 # define wxUSE_TEXTFILE 1
1145 #endif /* wxUSE_MIMETYPE */
1148 # if !wxUSE_DATETIME
1149 # ifdef wxABORT_ON_CONFIG_ERROR
1150 # error "wxODBC requires wxUSE_DATETIME"
1153 # define wxUSE_ODBC 0
1156 #endif /* wxUSE_ODBC */
1158 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1159 # ifdef wxABORT_ON_CONFIG_ERROR
1160 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1162 # undef wxUSE_TEXTBUFFER
1163 # define wxUSE_TEXTBUFFER 1
1165 #endif /* wxUSE_TEXTFILE */
1167 #if wxUSE_TEXTFILE && !wxUSE_FILE
1168 # ifdef wxABORT_ON_CONFIG_ERROR
1169 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1172 # define wxUSE_FILE 1
1174 #endif /* wxUSE_TEXTFILE */
1176 #if wxUSE_XML && !wxUSE_WCHAR_T
1177 # ifdef wxABORT_ON_CONFIG_ERROR
1178 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1181 # define wxUSE_XML 0
1183 #endif /* wxUSE_XML */
1185 #if !wxUSE_DYNLIB_CLASS
1186 # if wxUSE_DYNAMIC_LOADER
1187 # ifdef wxABORT_ON_CONFIG_ERROR
1188 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1190 # define wxUSE_DYNLIB_CLASS 1
1193 #endif /* wxUSE_DYNLIB_CLASS */
1197 # ifdef wxABORT_ON_CONFIG_ERROR
1198 # error "wxZip requires wxZlib"
1201 # define wxUSE_ZLIB 1
1204 # if !wxUSE_ARCHIVE_STREAMS
1205 # ifdef wxABORT_ON_CONFIG_ERROR
1206 # error "wxZip requires wxArchive"
1208 # undef wxUSE_ARCHIVE_STREAMS
1209 # define wxUSE_ARCHIVE_STREAMS 1
1212 #endif /* wxUSE_ZIPSTREAM */
1215 # if !wxUSE_ARCHIVE_STREAMS
1216 # ifdef wxABORT_ON_CONFIG_ERROR
1217 # error "wxTar requires wxArchive"
1219 # undef wxUSE_ARCHIVE_STREAMS
1220 # define wxUSE_ARCHIVE_STREAMS 1
1223 #endif /* wxUSE_TARSTREAM */
1225 /* the rest of the tests is for the GUI settings only */
1228 #if wxUSE_BUTTON || \
1229 wxUSE_CALENDARCTRL || \
1232 wxUSE_BMPBUTTON || \
1234 wxUSE_CHECKLISTBOX || \
1243 wxUSE_SCROLLBAR || \
1251 wxUSE_STATUSBAR || \
1255 # if !wxUSE_CONTROLS
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxUSE_CONTROLS unset but some controls used"
1259 # undef wxUSE_CONTROLS
1260 # define wxUSE_CONTROLS 1
1263 #endif /* controls */
1267 # ifdef wxABORT_ON_CONFIG_ERROR
1268 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1270 # undef wxUSE_BUTTON
1271 # define wxUSE_BUTTON 1
1274 #endif /* wxUSE_BMPBUTTON */
1277 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1280 #ifdef wxUSE_BOOKCTRL
1281 # ifdef wxABORT_ON_CONFIG_ERROR
1282 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1284 # undef wxUSE_BOOKCTRL
1288 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1290 wxUSE_CHOICEBOOK || \
1295 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1296 # ifdef wxABORT_ON_CONFIG_ERROR
1297 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1299 # undef wxUSE_COLLPANE
1300 # define wxUSE_COLLPANE 0
1303 #endif /* wxUSE_COLLPANE */
1306 # if !wxUSE_LISTCTRL
1307 # ifdef wxABORT_ON_CONFIG_ERROR
1308 # error "wxListbook requires wxListCtrl"
1310 # undef wxUSE_LISTCTRL
1311 # define wxUSE_LISTCTRL 1
1314 #endif /* wxUSE_LISTBOOK */
1316 #if wxUSE_CHOICEBOOK
1318 # ifdef wxABORT_ON_CONFIG_ERROR
1319 # error "wxChoicebook requires wxChoice"
1321 # undef wxUSE_CHOICE
1322 # define wxUSE_CHOICE 1
1325 #endif /* wxUSE_CHOICEBOOK */
1329 # ifdef wxABORT_ON_CONFIG_ERROR
1330 # error "wxToolbook requires wxToolBar"
1332 # undef wxUSE_TOOLBAR
1333 # define wxUSE_TOOLBAR 1
1336 #endif /* wxUSE_TOOLBOOK */
1338 #if !wxUSE_ODCOMBOBOX
1339 # if wxUSE_BITMAPCOMBOBOX
1340 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1342 # undef wxUSE_BITMAPCOMBOBOX
1343 # define wxUSE_BITMAPCOMBOBOX 0
1345 #endif /* !wxUSE_ODCOMBOBOX */
1347 /* don't attempt to use native status bar on the platforms not having it */
1348 #ifndef wxUSE_NATIVE_STATUSBAR
1349 # define wxUSE_NATIVE_STATUSBAR 0
1350 #elif wxUSE_NATIVE_STATUSBAR
1351 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1352 defined(__WXMAC__) || \
1353 defined(__WXPALMOS__) )
1354 # undef wxUSE_NATIVE_STATUSBAR
1355 # define wxUSE_NATIVE_STATUSBAR 0
1359 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1360 # ifdef wxABORT_ON_CONFIG_ERROR
1361 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1363 # undef wxUSE_GRAPHICS_CONTEXT
1364 # define wxUSE_GRAPHICS_CONTEXT 0
1366 #endif /* wxUSE_GRAPHICS_CONTEXT */
1369 /* wxGTK-specific dependencies */
1371 # ifndef __WXUNIVERSAL__
1372 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1373 # ifdef wxABORT_ON_CONFIG_ERROR
1374 # error "MDI requires wxUSE_MENUS in wxGTK"
1377 # define wxUSE_MENUS 1
1380 # endif /* !__WXUNIVERSAL__ */
1384 # ifdef wxABORT_ON_CONFIG_ERROR
1385 # error "wxJoystick requires threads in wxGTK"
1387 # undef wxUSE_JOYSTICK
1388 # define wxUSE_JOYSTICK 0
1392 #endif /* wxGTK && !wxUniv */
1394 /* Hopefully we can emulate these dialogs in due course */
1395 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1396 # ifdef wxUSE_COLOURDLG
1397 # undef wxUSE_COLOURDLG
1398 # define wxUSE_COLOURDLG 0
1400 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1403 /* generic controls dependencies */
1404 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1405 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1406 /* all common controls are needed by these dialogs */
1407 # if !defined(wxUSE_CHOICE) || \
1408 !defined(wxUSE_TEXTCTRL) || \
1409 !defined(wxUSE_BUTTON) || \
1410 !defined(wxUSE_CHECKBOX) || \
1411 !defined(wxUSE_STATTEXT)
1412 # ifdef wxABORT_ON_CONFIG_ERROR
1413 # error "These common controls are needed by common dialogs"
1415 # undef wxUSE_CHOICE
1416 # define wxUSE_CHOICE 1
1417 # undef wxUSE_TEXTCTRL
1418 # define wxUSE_TEXTCTRL 1
1419 # undef wxUSE_BUTTON
1420 # define wxUSE_BUTTON 1
1421 # undef wxUSE_CHECKBOX
1422 # define wxUSE_CHECKBOX 1
1423 # undef wxUSE_STATTEXT
1424 # define wxUSE_STATTEXT 1
1428 #endif /* !wxMSW || wxUniv */
1430 /* common dependencies */
1431 #if wxUSE_CALENDARCTRL
1432 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1433 # ifdef wxABORT_ON_CONFIG_ERROR
1434 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1436 # undef wxUSE_SPINBTN
1437 # undef wxUSE_COMBOBOX
1438 # define wxUSE_SPINBTN 1
1439 # define wxUSE_COMBOBOX 1
1443 # if !wxUSE_DATETIME
1444 # ifdef wxABORT_ON_CONFIG_ERROR
1445 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1447 # undef wxUSE_DATETIME
1448 # define wxUSE_DATETIME 1
1451 #endif /* wxUSE_CALENDARCTRL */
1453 #if wxUSE_DATEPICKCTRL
1454 # if !wxUSE_DATETIME
1455 # ifdef wxABORT_ON_CONFIG_ERROR
1456 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1458 # undef wxUSE_DATETIME
1459 # define wxUSE_DATETIME 1
1462 #endif /* wxUSE_DATEPICKCTRL */
1464 #if wxUSE_CHECKLISTBOX
1466 # ifdef wxABORT_ON_CONFIG_ERROR
1467 # error "wxCheckListBox requires wxListBox"
1469 # undef wxUSE_LISTBOX
1470 # define wxUSE_LISTBOX 1
1473 #endif /* wxUSE_CHECKLISTBOX */
1477 # ifdef wxABORT_ON_CONFIG_ERROR
1478 # error "Choice dialogs requires wxListBox"
1480 # undef wxUSE_LISTBOX
1481 # define wxUSE_LISTBOX 1
1484 #endif /* wxUSE_CHOICEDLG */
1487 # if !wxUSE_BMPBUTTON
1488 # ifdef wxABORT_ON_CONFIG_ERROR
1489 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1491 # undef wxUSE_BMPBUTTON
1492 # define wxUSE_BMPBUTTON 1
1496 # if !wxUSE_CHOICEDLG
1497 # ifdef wxABORT_ON_CONFIG_ERROR
1498 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1500 # undef wxUSE_CHOICEDLG
1501 # define wxUSE_CHOICEDLG 1
1504 #endif /* wxUSE_HELP */
1506 #if wxUSE_MS_HTML_HELP
1508 this doesn't make sense for platforms other than MSW but we still
1509 define it in wx/setup_inc.h so don't complain if it happens to be
1510 defined under another platform but just silently fix it.
1513 # undef wxUSE_MS_HTML_HELP
1514 # define wxUSE_MS_HTML_HELP 0
1516 #endif /* wxUSE_MS_HTML_HELP */
1518 #if wxUSE_WXHTML_HELP
1519 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1520 # ifdef wxABORT_ON_CONFIG_ERROR
1521 # error "Built in help controller can't be compiled"
1524 # define wxUSE_HELP 1
1526 # define wxUSE_HTML 1
1527 # undef wxUSE_COMBOBOX
1528 # define wxUSE_COMBOBOX 1
1529 # undef wxUSE_NOTEBOOK
1530 # define wxUSE_NOTEBOOK 1
1531 # undef wxUSE_SPINCTRL
1532 # define wxUSE_SPINCTRL 1
1535 #endif /* wxUSE_WXHTML_HELP */
1539 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1540 user explicitly wants this and disable all other features that require
1543 # if wxUSE_DRAGIMAGE
1544 # ifdef wxABORT_ON_CONFIG_ERROR
1545 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1547 # undef wxUSE_DRAGIMAGE
1548 # define wxUSE_DRAGIMAGE 0
1553 # ifdef wxABORT_ON_CONFIG_ERROR
1554 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1556 # undef wxUSE_LIBPNG
1557 # define wxUSE_LIBPNG 0
1562 # ifdef wxABORT_ON_CONFIG_ERROR
1563 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1565 # undef wxUSE_LIBJPEG
1566 # define wxUSE_LIBJPEG 0
1571 # ifdef wxABORT_ON_CONFIG_ERROR
1572 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1574 # undef wxUSE_LIBTIFF
1575 # define wxUSE_LIBTIFF 0
1580 # ifdef wxABORT_ON_CONFIG_ERROR
1581 # error "wxUSE_GIF requires wxUSE_IMAGE"
1584 # define wxUSE_GIF 0
1589 # ifdef wxABORT_ON_CONFIG_ERROR
1590 # error "wxUSE_PNM requires wxUSE_IMAGE"
1593 # define wxUSE_PNM 0
1598 # ifdef wxABORT_ON_CONFIG_ERROR
1599 # error "wxUSE_PCX requires wxUSE_IMAGE"
1602 # define wxUSE_PCX 0
1607 # ifdef wxABORT_ON_CONFIG_ERROR
1608 # error "wxUSE_IFF requires wxUSE_IMAGE"
1611 # define wxUSE_IFF 0
1616 # ifdef wxABORT_ON_CONFIG_ERROR
1617 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1619 # undef wxUSE_TOOLBAR
1620 # define wxUSE_TOOLBAR 0
1625 # ifdef wxABORT_ON_CONFIG_ERROR
1626 # error "wxUSE_XPM requires wxUSE_IMAGE"
1629 # define wxUSE_XPM 0
1633 #endif /* !wxUSE_IMAGE */
1635 #if wxUSE_DOC_VIEW_ARCHITECTURE
1637 # ifdef wxABORT_ON_CONFIG_ERROR
1638 # error "DocView requires wxUSE_MENUS"
1641 # define wxUSE_MENUS 1
1645 # if !wxUSE_CHOICEDLG
1646 # ifdef wxABORT_ON_CONFIG_ERROR
1647 # error "DocView requires wxUSE_CHOICEDLG"
1649 # undef wxUSE_CHOICEDLG
1650 # define wxUSE_CHOICEDLG 1
1654 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1655 # ifdef wxABORT_ON_CONFIG_ERROR
1656 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1658 # undef wxUSE_STREAMS
1659 # define wxUSE_STREAMS 1
1662 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1664 #if wxUSE_PRINTING_ARCHITECTURE
1665 # if !wxUSE_COMBOBOX
1666 # ifdef wxABORT_ON_CONFIG_ERROR
1667 # error "Print dialog requires wxUSE_COMBOBOX"
1669 # undef wxUSE_COMBOBOX
1670 # define wxUSE_COMBOBOX 1
1673 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1675 #if wxUSE_MDI_ARCHITECTURE
1677 # ifdef wxABORT_ON_CONFIG_ERROR
1678 # error "MDI requires wxUSE_MDI"
1681 # define wxUSE_MDI 1
1685 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1686 # ifdef wxABORT_ON_CONFIG_ERROR
1687 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1689 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1690 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1693 #endif /* wxUSE_MDI_ARCHITECTURE */
1696 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1697 # ifdef wxABORT_ON_CONFIG_ERROR
1698 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1700 # undef wxUSE_FILEDLG
1701 # define wxUSE_FILEDLG 1
1704 #endif /* wxUSE_FILEDLG */
1706 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1707 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1708 # ifdef wxABORT_ON_CONFIG_ERROR
1709 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1712 # undef wxUSE_BUTTON
1713 # define wxUSE_GAUGE 1
1714 # define wxUSE_BUTTON 1
1717 #endif /* !wxUSE_GAUGE */
1720 # if wxUSE_FONTDLG || \
1722 wxUSE_CHOICEDLG || \
1723 wxUSE_NUMBERDLG || \
1726 wxUSE_STARTUP_TIPS || \
1728 # ifdef wxABORT_ON_CONFIG_ERROR
1729 # error "Common and generic dialogs require wxUSE_BUTTON"
1731 # undef wxUSE_BUTTON
1732 # define wxUSE_BUTTON 1
1735 #endif /* !wxUSE_BUTTON */
1738 # if wxUSE_TOOLBAR_NATIVE
1739 # ifdef wxABORT_ON_CONFIG_ERROR
1740 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1742 # undef wxUSE_TOOLBAR_NATIVE
1743 # define wxUSE_TOOLBAR_NATIVE 0
1749 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1750 # ifdef wxABORT_ON_CONFIG_ERROR
1751 # error "wxImageList must be compiled as well"
1753 # undef wxUSE_IMAGLIST
1754 # define wxUSE_IMAGLIST 1
1757 #endif /* !wxUSE_IMAGLIST */
1760 # if !wxUSE_RADIOBTN
1761 # ifdef wxABORT_ON_CONFIG_ERROR
1762 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1764 # undef wxUSE_RADIOBTN
1765 # define wxUSE_RADIOBTN 1
1768 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1769 # ifdef wxABORT_ON_CONFIG_ERROR
1770 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1772 # undef wxUSE_STATBOX
1773 # define wxUSE_STATBOX 1
1776 #endif /* wxUSE_RADIOBOX */
1779 # if !wxUSE_TEXTCTRL
1780 # ifdef wxABORT_ON_CONFIG_ERROR
1781 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1783 # undef wxUSE_TEXTCTRL
1784 # define wxUSE_TEXTCTRL 1
1787 #endif /* wxUSE_LOGWINDOW */
1789 #if wxUSE_LOG_DIALOG
1790 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1791 # ifdef wxABORT_ON_CONFIG_ERROR
1792 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1794 # undef wxUSE_LISTCTRL
1795 # define wxUSE_LISTCTRL 1
1796 # undef wxUSE_BUTTON
1797 # define wxUSE_BUTTON 1
1800 #endif /* wxUSE_LOG_DIALOG */
1802 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1803 # ifdef wxABORT_ON_CONFIG_ERROR
1804 # error "wxClipboard requires wxDataObject"
1806 # undef wxUSE_DATAOBJ
1807 # define wxUSE_DATAOBJ 1
1809 #endif /* wxUSE_CLIPBOARD */
1811 #if wxUSE_XRC && !wxUSE_XML
1812 # ifdef wxABORT_ON_CONFIG_ERROR
1813 # error "wxUSE_XRC requires wxUSE_XML"
1816 # define wxUSE_XRC 0
1818 #endif /* wxUSE_XRC */
1820 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1821 # ifdef wxABORT_ON_CONFIG_ERROR
1822 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1824 # undef wxUSE_SOCKETS
1825 # define wxUSE_SOCKETS 0
1827 #endif /* wxUSE_SOCKETS */
1829 #if wxUSE_SVG && !wxUSE_STREAMS
1830 # ifdef wxABORT_ON_CONFIG_ERROR
1831 # error "wxUSE_SVG requires wxUSE_STREAMS"
1834 # define wxUSE_SVG 0
1836 #endif /* wxUSE_SVG */
1839 # if wxUSE_DATAVIEWCTRL
1840 # ifdef wxABORT_ON_CONFIG_ERROR
1841 # error "wxDataViewCtrl requires wxVariant"
1843 # undef wxUSE_DATAVIEWCTRL
1844 # define wxUSE_DATAVIEWCTRL 0
1849 # ifdef wxABORT_ON_CONFIG_ERROR
1850 # error "wxUSE_ODBC requires wxVariant"
1853 # define wxUSE_ODBC 0
1856 #endif /* wxUSE_VARIANT */
1858 #endif /* wxUSE_GUI */
1860 #endif /* _WX_CHKCONF_H_ */