]>
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 This file has the following sections:
18 1. checks that all wxUSE_XXX symbols we use are defined
19 a) first the non-GUI ones
20 b) then the GUI-only ones
21 2. platform-specific checks done in the platform headers
22 3. generic consistency checks
23 a) first the non-GUI ones
24 b) then the GUI-only ones
28 this global setting determines what should we do if the setting FOO
29 requires BAR and BAR is not set: we can either silently unset FOO as well
30 (do this if you're trying to build the smallest possible library) or give an
31 error and abort (default as leads to least surprizing behaviour)
33 #define wxABORT_ON_CONFIG_ERROR
39 /* GUI build by default */
40 #if !defined(wxUSE_GUI)
42 #endif /* !defined(wxUSE_GUI) */
45 If we're compiling without support for threads/exceptions we have to
46 disable the corresponding features.
50 # define wxUSE_THREADS 0
51 #endif /* wxNO_THREADS */
53 #ifdef wxNO_EXCEPTIONS
54 # undef wxUSE_EXCEPTIONS
55 # define wxUSE_EXCEPTIONS 0
56 #endif /* wxNO_EXCEPTIONS */
58 /* we also must disable exceptions if compiler doesn't support them */
59 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
60 # undef wxUSE_EXCEPTIONS
61 # define wxUSE_EXCEPTIONS 0
62 #endif /* VC++ without exceptions support */
66 Section 1a: tests for non GUI features.
68 please keep the options in alphabetical order!
72 # ifdef wxABORT_ON_CONFIG_ERROR
73 # error "wxUSE_ANY must be defined."
77 #endif /* wxUSE_ANY */
79 #ifndef wxUSE_CONSOLE_EVENTLOOP
80 # ifdef wxABORT_ON_CONFIG_ERROR
81 # error "wxUSE_CONSOLE_EVENTLOOP must be defined."
83 # define wxUSE_CONSOLE_EVENTLOOP 0
85 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
87 #ifndef wxUSE_DYNLIB_CLASS
88 # ifdef wxABORT_ON_CONFIG_ERROR
89 # error "wxUSE_DYNLIB_CLASS must be defined."
91 # define wxUSE_DYNLIB_CLASS 0
93 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
95 #ifndef wxUSE_EXCEPTIONS
96 # ifdef wxABORT_ON_CONFIG_ERROR
97 # error "wxUSE_EXCEPTIONS must be defined."
99 # define wxUSE_EXCEPTIONS 0
101 #endif /* !defined(wxUSE_EXCEPTIONS) */
103 #ifndef wxUSE_FILESYSTEM
104 # ifdef wxABORT_ON_CONFIG_ERROR
105 # error "wxUSE_FILESYSTEM must be defined."
107 # define wxUSE_FILESYSTEM 0
109 #endif /* !defined(wxUSE_FILESYSTEM) */
111 #ifndef wxUSE_FS_ARCHIVE
112 # ifdef wxABORT_ON_CONFIG_ERROR
113 # error "wxUSE_FS_ARCHIVE must be defined."
115 # define wxUSE_FS_ARCHIVE 0
117 #endif /* !defined(wxUSE_FS_ARCHIVE) */
119 #ifndef wxUSE_FSVOLUME
120 # ifdef wxABORT_ON_CONFIG_ERROR
121 # error "wxUSE_FSVOLUME must be defined."
123 # define wxUSE_FSVOLUME 0
125 #endif /* !defined(wxUSE_FSVOLUME) */
127 #ifndef wxUSE_DYNAMIC_LOADER
128 # ifdef wxABORT_ON_CONFIG_ERROR
129 # error "wxUSE_DYNAMIC_LOADER must be defined."
131 # define wxUSE_DYNAMIC_LOADER 0
133 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
136 # ifdef wxABORT_ON_CONFIG_ERROR
137 # error "wxUSE_INTL must be defined."
139 # define wxUSE_INTL 0
141 #endif /* !defined(wxUSE_INTL) */
144 # ifdef wxABORT_ON_CONFIG_ERROR
145 # error "wxUSE_IPV6 must be defined."
147 # define wxUSE_IPV6 0
149 #endif /* !defined(wxUSE_IPV6) */
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_LOG must be defined."
157 #endif /* !defined(wxUSE_LOG) */
159 #ifndef wxUSE_LONGLONG
160 # ifdef wxABORT_ON_CONFIG_ERROR
161 # error "wxUSE_LONGLONG must be defined."
163 # define wxUSE_LONGLONG 0
165 #endif /* !defined(wxUSE_LONGLONG) */
167 #ifndef wxUSE_MIMETYPE
168 # ifdef wxABORT_ON_CONFIG_ERROR
169 # error "wxUSE_MIMETYPE must be defined."
171 # define wxUSE_MIMETYPE 0
173 #endif /* !defined(wxUSE_MIMETYPE) */
175 #ifndef wxUSE_ON_FATAL_EXCEPTION
176 # ifdef wxABORT_ON_CONFIG_ERROR
177 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
179 # define wxUSE_ON_FATAL_EXCEPTION 0
181 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
183 #ifndef wxUSE_PRINTF_POS_PARAMS
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
187 # define wxUSE_PRINTF_POS_PARAMS 0
189 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
191 #ifndef wxUSE_PROTOCOL
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_PROTOCOL must be defined."
195 # define wxUSE_PROTOCOL 0
197 #endif /* !defined(wxUSE_PROTOCOL) */
199 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
201 # undef wxUSE_PROTOCOL_HTTP
202 # undef wxUSE_PROTOCOL_FTP
203 # undef wxUSE_PROTOCOL_FILE
204 # define wxUSE_PROTOCOL_HTTP 0
205 # define wxUSE_PROTOCOL_FTP 0
206 # define wxUSE_PROTOCOL_FILE 0
207 #endif /* wxUSE_PROTOCOL */
209 #ifndef wxUSE_PROTOCOL_HTTP
210 # ifdef wxABORT_ON_CONFIG_ERROR
211 # error "wxUSE_PROTOCOL_HTTP must be defined."
213 # define wxUSE_PROTOCOL_HTTP 0
215 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
217 #ifndef wxUSE_PROTOCOL_FTP
218 # ifdef wxABORT_ON_CONFIG_ERROR
219 # error "wxUSE_PROTOCOL_FTP must be defined."
221 # define wxUSE_PROTOCOL_FTP 0
223 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
225 #ifndef wxUSE_PROTOCOL_FILE
226 # ifdef wxABORT_ON_CONFIG_ERROR
227 # error "wxUSE_PROTOCOL_FILE must be defined."
229 # define wxUSE_PROTOCOL_FILE 0
231 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
234 # ifdef wxABORT_ON_CONFIG_ERROR
235 # error "wxUSE_REGEX must be defined."
237 # define wxUSE_REGEX 0
239 #endif /* !defined(wxUSE_REGEX) */
241 #ifndef wxUSE_STDPATHS
242 # ifdef wxABORT_ON_CONFIG_ERROR
243 # error "wxUSE_STDPATHS must be defined."
245 # define wxUSE_STDPATHS 1
247 #endif /* !defined(wxUSE_STDPATHS) */
250 # ifdef wxABORT_ON_CONFIG_ERROR
251 # error "wxUSE_XML must be defined."
255 #endif /* !defined(wxUSE_XML) */
257 #ifndef wxUSE_SOCKETS
258 # ifdef wxABORT_ON_CONFIG_ERROR
259 # error "wxUSE_SOCKETS must be defined."
261 # define wxUSE_SOCKETS 0
263 #endif /* !defined(wxUSE_SOCKETS) */
265 #ifndef wxUSE_STREAMS
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_STREAMS must be defined."
269 # define wxUSE_STREAMS 0
271 #endif /* !defined(wxUSE_STREAMS) */
273 #ifndef wxUSE_STOPWATCH
274 # ifdef wxABORT_ON_CONFIG_ERROR
275 # error "wxUSE_STOPWATCH must be defined."
277 # define wxUSE_STOPWATCH 0
279 #endif /* !defined(wxUSE_STOPWATCH) */
281 #ifndef wxUSE_TEXTBUFFER
282 # ifdef wxABORT_ON_CONFIG_ERROR
283 # error "wxUSE_TEXTBUFFER must be defined."
285 # define wxUSE_TEXTBUFFER 0
287 #endif /* !defined(wxUSE_TEXTBUFFER) */
289 #ifndef wxUSE_TEXTFILE
290 # ifdef wxABORT_ON_CONFIG_ERROR
291 # error "wxUSE_TEXTFILE must be defined."
293 # define wxUSE_TEXTFILE 0
295 #endif /* !defined(wxUSE_TEXTFILE) */
297 #ifndef wxUSE_UNICODE
298 # ifdef wxABORT_ON_CONFIG_ERROR
299 # error "wxUSE_UNICODE must be defined."
301 # define wxUSE_UNICODE 0
303 #endif /* !defined(wxUSE_UNICODE) */
306 # ifdef wxABORT_ON_CONFIG_ERROR
307 # error "wxUSE_URL must be defined."
311 #endif /* !defined(wxUSE_URL) */
313 #ifndef wxUSE_VARIANT
314 # ifdef wxABORT_ON_CONFIG_ERROR
315 # error "wxUSE_VARIANT must be defined."
317 # define wxUSE_VARIANT 0
319 #endif /* wxUSE_VARIANT */
321 #ifndef wxUSE_XLOCALE
322 # ifdef wxABORT_ON_CONFIG_ERROR
323 # error "wxUSE_XLOCALE must be defined."
325 # define wxUSE_XLOCALE 0
327 #endif /* !defined(wxUSE_XLOCALE) */
330 Section 1b: all these tests are for GUI only.
332 please keep the options in alphabetical order!
337 all of the settings tested below must be defined or we'd get an error from
338 preprocessor about invalid integer expression
341 #ifndef wxUSE_ABOUTDLG
342 # ifdef wxABORT_ON_CONFIG_ERROR
343 # error "wxUSE_ABOUTDLG must be defined."
345 # define wxUSE_ABOUTDLG 0
347 #endif /* !defined(wxUSE_ABOUTDLG) */
350 # ifdef wxABORT_ON_CONFIG_ERROR
351 # error "wxUSE_ACCEL must be defined."
353 # define wxUSE_ACCEL 0
355 #endif /* !defined(wxUSE_ACCEL) */
357 #ifndef wxUSE_ACCESSIBILITY
358 # ifdef wxABORT_ON_CONFIG_ERROR
359 # error "wxUSE_ACCESSIBILITY must be defined."
361 # define wxUSE_ACCESSIBILITY 0
363 #endif /* !defined(wxUSE_ACCESSIBILITY) */
365 #ifndef wxUSE_ANIMATIONCTRL
366 # ifdef wxABORT_ON_CONFIG_ERROR
367 # error "wxUSE_ANIMATIONCTRL must be defined."
369 # define wxUSE_ANIMATIONCTRL 0
371 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
373 #ifndef wxUSE_AUTOID_MANAGEMENT
374 # ifdef wxABORT_ON_CONFIG_ERROR
375 # error "wxUSE_AUTOID_MANAGEMENT must be defined."
377 # define wxUSE_AUTOID_MANAGEMENT 0
379 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
381 #ifndef wxUSE_BITMAPCOMBOBOX
382 # ifdef wxABORT_ON_CONFIG_ERROR
383 # error "wxUSE_BITMAPCOMBOBOX must be defined."
385 # define wxUSE_BITMAPCOMBOBOX 0
387 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
389 #ifndef wxUSE_BMPBUTTON
390 # ifdef wxABORT_ON_CONFIG_ERROR
391 # error "wxUSE_BMPBUTTON must be defined."
393 # define wxUSE_BMPBUTTON 0
395 #endif /* !defined(wxUSE_BMPBUTTON) */
398 # ifdef wxABORT_ON_CONFIG_ERROR
399 # error "wxUSE_BUTTON must be defined."
401 # define wxUSE_BUTTON 0
403 #endif /* !defined(wxUSE_BUTTON) */
405 #ifndef wxUSE_CALENDARCTRL
406 # ifdef wxABORT_ON_CONFIG_ERROR
407 # error "wxUSE_CALENDARCTRL must be defined."
409 # define wxUSE_CALENDARCTRL 0
411 #endif /* !defined(wxUSE_CALENDARCTRL) */
414 # ifdef wxABORT_ON_CONFIG_ERROR
415 # error "wxUSE_CARET must be defined."
417 # define wxUSE_CARET 0
419 #endif /* !defined(wxUSE_CARET) */
421 #ifndef wxUSE_CHECKBOX
422 # ifdef wxABORT_ON_CONFIG_ERROR
423 # error "wxUSE_CHECKBOX must be defined."
425 # define wxUSE_CHECKBOX 0
427 #endif /* !defined(wxUSE_CHECKBOX) */
429 #ifndef wxUSE_CHECKLISTBOX
430 # ifdef wxABORT_ON_CONFIG_ERROR
431 # error "wxUSE_CHECKLISTBOX must be defined."
433 # define wxUSE_CHECKLISTBOX 0
435 #endif /* !defined(wxUSE_CHECKLISTBOX) */
438 # ifdef wxABORT_ON_CONFIG_ERROR
439 # error "wxUSE_CHOICE must be defined."
441 # define wxUSE_CHOICE 0
443 #endif /* !defined(wxUSE_CHOICE) */
445 #ifndef wxUSE_CHOICEBOOK
446 # ifdef wxABORT_ON_CONFIG_ERROR
447 # error "wxUSE_CHOICEBOOK must be defined."
449 # define wxUSE_CHOICEBOOK 0
451 #endif /* !defined(wxUSE_CHOICEBOOK) */
453 #ifndef wxUSE_CHOICEDLG
454 # ifdef wxABORT_ON_CONFIG_ERROR
455 # error "wxUSE_CHOICEDLG must be defined."
457 # define wxUSE_CHOICEDLG 0
459 #endif /* !defined(wxUSE_CHOICEDLG) */
461 #ifndef wxUSE_CLIPBOARD
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_CLIPBOARD must be defined."
465 # define wxUSE_CLIPBOARD 0
467 #endif /* !defined(wxUSE_CLIPBOARD) */
469 #ifndef wxUSE_COLLPANE
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_COLLPANE must be defined."
473 # define wxUSE_COLLPANE 0
475 #endif /* !defined(wxUSE_COLLPANE) */
477 #ifndef wxUSE_COLOURDLG
478 # ifdef wxABORT_ON_CONFIG_ERROR
479 # error "wxUSE_COLOURDLG must be defined."
481 # define wxUSE_COLOURDLG 0
483 #endif /* !defined(wxUSE_COLOURDLG) */
485 #ifndef wxUSE_COLOURPICKERCTRL
486 # ifdef wxABORT_ON_CONFIG_ERROR
487 # error "wxUSE_COLOURPICKERCTRL must be defined."
489 # define wxUSE_COLOURPICKERCTRL 0
491 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
493 #ifndef wxUSE_COMBOBOX
494 # ifdef wxABORT_ON_CONFIG_ERROR
495 # error "wxUSE_COMBOBOX must be defined."
497 # define wxUSE_COMBOBOX 0
499 #endif /* !defined(wxUSE_COMBOBOX) */
501 #ifndef wxUSE_COMBOCTRL
502 # ifdef wxABORT_ON_CONFIG_ERROR
503 # error "wxUSE_COMBOCTRL must be defined."
505 # define wxUSE_COMBOCTRL 0
507 #endif /* !defined(wxUSE_COMBOCTRL) */
509 #ifndef wxUSE_DATAOBJ
510 # ifdef wxABORT_ON_CONFIG_ERROR
511 # error "wxUSE_DATAOBJ must be defined."
513 # define wxUSE_DATAOBJ 0
515 #endif /* !defined(wxUSE_DATAOBJ) */
517 #ifndef wxUSE_DATAVIEWCTRL
518 # ifdef wxABORT_ON_CONFIG_ERROR
519 # error "wxUSE_DATAVIEWCTRL must be defined."
521 # define wxUSE_DATAVIEWCTRL 0
523 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
525 #ifndef wxUSE_DATEPICKCTRL
526 # ifdef wxABORT_ON_CONFIG_ERROR
527 # error "wxUSE_DATEPICKCTRL must be defined."
529 # define wxUSE_DATEPICKCTRL 0
531 #endif /* !defined(wxUSE_DATEPICKCTRL) */
533 #ifndef wxUSE_DIRPICKERCTRL
534 # ifdef wxABORT_ON_CONFIG_ERROR
535 # error "wxUSE_DIRPICKERCTRL must be defined."
537 # define wxUSE_DIRPICKERCTRL 0
539 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
541 #ifndef wxUSE_DISPLAY
542 # ifdef wxABORT_ON_CONFIG_ERROR
543 # error "wxUSE_DISPLAY must be defined."
545 # define wxUSE_DISPLAY 0
547 #endif /* !defined(wxUSE_DISPLAY) */
549 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
550 # ifdef wxABORT_ON_CONFIG_ERROR
551 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
553 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
555 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
557 #ifndef wxUSE_FILECTRL
558 # ifdef wxABORT_ON_CONFIG_ERROR
559 # error "wxUSE_FILECTRL must be defined."
561 # define wxUSE_FILECTRL 0
563 #endif /* !defined(wxUSE_FILECTRL) */
565 #ifndef wxUSE_FILEDLG
566 # ifdef wxABORT_ON_CONFIG_ERROR
567 # error "wxUSE_FILEDLG must be defined."
569 # define wxUSE_FILEDLG 0
571 #endif /* !defined(wxUSE_FILEDLG) */
573 #ifndef wxUSE_FILEPICKERCTRL
574 # ifdef wxABORT_ON_CONFIG_ERROR
575 # error "wxUSE_FILEPICKERCTRL must be defined."
577 # define wxUSE_FILEPICKERCTRL 0
579 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
581 #ifndef wxUSE_FONTDLG
582 # ifdef wxABORT_ON_CONFIG_ERROR
583 # error "wxUSE_FONTDLG must be defined."
585 # define wxUSE_FONTDLG 0
587 #endif /* !defined(wxUSE_FONTDLG) */
589 #ifndef wxUSE_FONTMAP
590 # ifdef wxABORT_ON_CONFIG_ERROR
591 # error "wxUSE_FONTMAP must be defined."
593 # define wxUSE_FONTMAP 0
595 #endif /* !defined(wxUSE_FONTMAP) */
597 #ifndef wxUSE_FONTPICKERCTRL
598 # ifdef wxABORT_ON_CONFIG_ERROR
599 # error "wxUSE_FONTPICKERCTRL must be defined."
601 # define wxUSE_FONTPICKERCTRL 0
603 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
606 # ifdef wxABORT_ON_CONFIG_ERROR
607 # error "wxUSE_GAUGE must be defined."
609 # define wxUSE_GAUGE 0
611 #endif /* !defined(wxUSE_GAUGE) */
613 #ifndef wxUSE_GRAPHICS_CONTEXT
614 # ifdef wxABORT_ON_CONFIG_ERROR
615 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
617 # define wxUSE_GRAPHICS_CONTEXT 0
619 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_GRID must be defined."
626 # define wxUSE_GRID 0
628 #endif /* !defined(wxUSE_GRID) */
630 #ifndef wxUSE_HEADERCTRL
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_HEADERCTRL must be defined."
634 # define wxUSE_HEADERCTRL 0
636 #endif /* !defined(wxUSE_HEADERCTRL) */
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_HELP must be defined."
642 # define wxUSE_HELP 0
644 #endif /* !defined(wxUSE_HELP) */
646 #ifndef wxUSE_HYPERLINKCTRL
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_HYPERLINKCTRL must be defined."
650 # define wxUSE_HYPERLINKCTRL 0
652 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_HTML must be defined."
658 # define wxUSE_HTML 0
660 #endif /* !defined(wxUSE_HTML) */
662 #ifndef wxUSE_LIBMSPACK
663 # if !defined(__UNIX__) || defined(__WXPALMOS__)
664 /* set to 0 on platforms that don't have libmspack */
665 # define wxUSE_LIBMSPACK 0
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_LIBMSPACK must be defined."
670 # define wxUSE_LIBMSPACK 0
673 #endif /* !defined(wxUSE_LIBMSPACK) */
675 #ifndef wxUSE_ICO_CUR
676 # ifdef wxABORT_ON_CONFIG_ERROR
677 # error "wxUSE_ICO_CUR must be defined."
679 # define wxUSE_ICO_CUR 0
681 #endif /* !defined(wxUSE_ICO_CUR) */
684 # ifdef wxABORT_ON_CONFIG_ERROR
685 # error "wxUSE_IFF must be defined."
689 #endif /* !defined(wxUSE_IFF) */
691 #ifndef wxUSE_IMAGLIST
692 # ifdef wxABORT_ON_CONFIG_ERROR
693 # error "wxUSE_IMAGLIST must be defined."
695 # define wxUSE_IMAGLIST 0
697 #endif /* !defined(wxUSE_IMAGLIST) */
699 #ifndef wxUSE_JOYSTICK
700 # ifdef wxABORT_ON_CONFIG_ERROR
701 # error "wxUSE_JOYSTICK must be defined."
703 # define wxUSE_JOYSTICK 0
705 #endif /* !defined(wxUSE_JOYSTICK) */
707 #ifndef wxUSE_LISTBOOK
708 # ifdef wxABORT_ON_CONFIG_ERROR
709 # error "wxUSE_LISTBOOK must be defined."
711 # define wxUSE_LISTBOOK 0
713 #endif /* !defined(wxUSE_LISTBOOK) */
715 #ifndef wxUSE_LISTBOX
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_LISTBOX must be defined."
719 # define wxUSE_LISTBOX 0
721 #endif /* !defined(wxUSE_LISTBOX) */
723 #ifndef wxUSE_LISTCTRL
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_LISTCTRL must be defined."
727 # define wxUSE_LISTCTRL 0
729 #endif /* !defined(wxUSE_LISTCTRL) */
732 # ifdef wxABORT_ON_CONFIG_ERROR
733 # error "wxUSE_LOGGUI must be defined."
735 # define wxUSE_LOGGUI 0
737 #endif /* !defined(wxUSE_LOGGUI) */
739 #ifndef wxUSE_LOGWINDOW
740 # ifdef wxABORT_ON_CONFIG_ERROR
741 # error "wxUSE_LOGWINDOW must be defined."
743 # define wxUSE_LOGWINDOW 0
745 #endif /* !defined(wxUSE_LOGWINDOW) */
747 #ifndef wxUSE_LOG_DIALOG
748 # ifdef wxABORT_ON_CONFIG_ERROR
749 # error "wxUSE_LOG_DIALOG must be defined."
751 # define wxUSE_LOG_DIALOG 0
753 #endif /* !defined(wxUSE_LOG_DIALOG) */
756 # ifdef wxABORT_ON_CONFIG_ERROR
757 # error "wxUSE_MDI must be defined."
761 #endif /* !defined(wxUSE_MDI) */
763 #ifndef wxUSE_MDI_ARCHITECTURE
764 # ifdef wxABORT_ON_CONFIG_ERROR
765 # error "wxUSE_MDI_ARCHITECTURE must be defined."
767 # define wxUSE_MDI_ARCHITECTURE 0
769 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
772 # ifdef wxABORT_ON_CONFIG_ERROR
773 # error "wxUSE_MENUS must be defined."
775 # define wxUSE_MENUS 0
777 #endif /* !defined(wxUSE_MENUS) */
780 # ifdef wxABORT_ON_CONFIG_ERROR
781 # error "wxUSE_MSGDLG must be defined."
783 # define wxUSE_MSGDLG 0
785 #endif /* !defined(wxUSE_MSGDLG) */
787 #ifndef wxUSE_NOTEBOOK
788 # ifdef wxABORT_ON_CONFIG_ERROR
789 # error "wxUSE_NOTEBOOK must be defined."
791 # define wxUSE_NOTEBOOK 0
793 #endif /* !defined(wxUSE_NOTEBOOK) */
795 #ifndef wxUSE_NOTIFICATION_MESSAGE
796 # ifdef wxABORT_ON_CONFIG_ERROR
797 # error "wxUSE_NOTIFICATION_MESSAGE must be defined."
799 # define wxUSE_NOTIFICATION_MESSAGE 0
801 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
803 #ifndef wxUSE_ODCOMBOBOX
804 # ifdef wxABORT_ON_CONFIG_ERROR
805 # error "wxUSE_ODCOMBOBOX must be defined."
807 # define wxUSE_ODCOMBOBOX 0
809 #endif /* !defined(wxUSE_ODCOMBOBOX) */
811 #ifndef wxUSE_PALETTE
812 # ifdef wxABORT_ON_CONFIG_ERROR
813 # error "wxUSE_PALETTE must be defined."
815 # define wxUSE_PALETTE 0
817 #endif /* !defined(wxUSE_PALETTE) */
819 #ifndef wxUSE_POPUPWIN
820 # ifdef wxABORT_ON_CONFIG_ERROR
821 # error "wxUSE_POPUPWIN must be defined."
823 # define wxUSE_POPUPWIN 0
825 #endif /* !defined(wxUSE_POPUPWIN) */
827 #ifndef wxUSE_PRINTING_ARCHITECTURE
828 # ifdef wxABORT_ON_CONFIG_ERROR
829 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
831 # define wxUSE_PRINTING_ARCHITECTURE 0
833 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
835 #ifndef wxUSE_RADIOBOX
836 # ifdef wxABORT_ON_CONFIG_ERROR
837 # error "wxUSE_RADIOBOX must be defined."
839 # define wxUSE_RADIOBOX 0
841 #endif /* !defined(wxUSE_RADIOBOX) */
843 #ifndef wxUSE_RADIOBTN
844 # ifdef wxABORT_ON_CONFIG_ERROR
845 # error "wxUSE_RADIOBTN must be defined."
847 # define wxUSE_RADIOBTN 0
849 #endif /* !defined(wxUSE_RADIOBTN) */
851 #ifndef wxUSE_REARRANGECTRL
852 # ifdef wxABORT_ON_CONFIG_ERROR
853 # error "wxUSE_REARRANGECTRL must be defined."
855 # define wxUSE_REARRANGECTRL 0
857 #endif /* !defined(wxUSE_REARRANGECTRL) */
860 # ifdef wxABORT_ON_CONFIG_ERROR
861 # error "wxUSE_RIBBON must be defined."
863 # define wxUSE_RIBBON 0
865 #endif /* !defined(wxUSE_RIBBON) */
868 # ifdef wxABORT_ON_CONFIG_ERROR
869 # error "wxUSE_SASH must be defined."
871 # define wxUSE_SASH 0
873 #endif /* !defined(wxUSE_SASH) */
875 #ifndef wxUSE_SCROLLBAR
876 # ifdef wxABORT_ON_CONFIG_ERROR
877 # error "wxUSE_SCROLLBAR must be defined."
879 # define wxUSE_SCROLLBAR 0
881 #endif /* !defined(wxUSE_SCROLLBAR) */
884 # ifdef wxABORT_ON_CONFIG_ERROR
885 # error "wxUSE_SLIDER must be defined."
887 # define wxUSE_SLIDER 0
889 #endif /* !defined(wxUSE_SLIDER) */
892 # ifdef wxABORT_ON_CONFIG_ERROR
893 # error "wxUSE_SOUND must be defined."
895 # define wxUSE_SOUND 0
897 #endif /* !defined(wxUSE_SOUND) */
899 #ifndef wxUSE_SPINBTN
900 # ifdef wxABORT_ON_CONFIG_ERROR
901 # error "wxUSE_SPINBTN must be defined."
903 # define wxUSE_SPINBTN 0
905 #endif /* !defined(wxUSE_SPINBTN) */
907 #ifndef wxUSE_SPINCTRL
908 # ifdef wxABORT_ON_CONFIG_ERROR
909 # error "wxUSE_SPINCTRL must be defined."
911 # define wxUSE_SPINCTRL 0
913 #endif /* !defined(wxUSE_SPINCTRL) */
916 # ifdef wxABORT_ON_CONFIG_ERROR
917 # error "wxUSE_SPLASH must be defined."
919 # define wxUSE_SPLASH 0
921 #endif /* !defined(wxUSE_SPLASH) */
923 #ifndef wxUSE_SPLITTER
924 # ifdef wxABORT_ON_CONFIG_ERROR
925 # error "wxUSE_SPLITTER must be defined."
927 # define wxUSE_SPLITTER 0
929 #endif /* !defined(wxUSE_SPLITTER) */
931 #ifndef wxUSE_STATBMP
932 # ifdef wxABORT_ON_CONFIG_ERROR
933 # error "wxUSE_STATBMP must be defined."
935 # define wxUSE_STATBMP 0
937 #endif /* !defined(wxUSE_STATBMP) */
939 #ifndef wxUSE_STATBOX
940 # ifdef wxABORT_ON_CONFIG_ERROR
941 # error "wxUSE_STATBOX must be defined."
943 # define wxUSE_STATBOX 0
945 #endif /* !defined(wxUSE_STATBOX) */
947 #ifndef wxUSE_STATLINE
948 # ifdef wxABORT_ON_CONFIG_ERROR
949 # error "wxUSE_STATLINE must be defined."
951 # define wxUSE_STATLINE 0
953 #endif /* !defined(wxUSE_STATLINE) */
955 #ifndef wxUSE_STATTEXT
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxUSE_STATTEXT must be defined."
959 # define wxUSE_STATTEXT 0
961 #endif /* !defined(wxUSE_STATTEXT) */
963 #ifndef wxUSE_STATUSBAR
964 # ifdef wxABORT_ON_CONFIG_ERROR
965 # error "wxUSE_STATUSBAR must be defined."
967 # define wxUSE_STATUSBAR 0
969 #endif /* !defined(wxUSE_STATUSBAR) */
971 #ifndef wxUSE_TASKBARICON
972 # ifdef wxABORT_ON_CONFIG_ERROR
973 # error "wxUSE_TASKBARICON must be defined."
975 # define wxUSE_TASKBARICON 0
977 #endif /* !defined(wxUSE_TASKBARICON) */
979 #ifndef wxUSE_TEXTCTRL
980 # ifdef wxABORT_ON_CONFIG_ERROR
981 # error "wxUSE_TEXTCTRL must be defined."
983 # define wxUSE_TEXTCTRL 0
985 #endif /* !defined(wxUSE_TEXTCTRL) */
987 #ifndef wxUSE_TIPWINDOW
988 # ifdef wxABORT_ON_CONFIG_ERROR
989 # error "wxUSE_TIPWINDOW must be defined."
991 # define wxUSE_TIPWINDOW 0
993 #endif /* !defined(wxUSE_TIPWINDOW) */
995 #ifndef wxUSE_TOOLBAR
996 # ifdef wxABORT_ON_CONFIG_ERROR
997 # error "wxUSE_TOOLBAR must be defined."
999 # define wxUSE_TOOLBAR 0
1001 #endif /* !defined(wxUSE_TOOLBAR) */
1003 #ifndef wxUSE_TOOLTIPS
1004 # ifdef wxABORT_ON_CONFIG_ERROR
1005 # error "wxUSE_TOOLTIPS must be defined."
1007 # define wxUSE_TOOLTIPS 0
1009 #endif /* !defined(wxUSE_TOOLTIPS) */
1011 #ifndef wxUSE_TREECTRL
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxUSE_TREECTRL must be defined."
1015 # define wxUSE_TREECTRL 0
1017 #endif /* !defined(wxUSE_TREECTRL) */
1019 #ifndef wxUSE_VALIDATORS
1020 # ifdef wxABORT_ON_CONFIG_ERROR
1021 # error "wxUSE_VALIDATORS must be defined."
1023 # define wxUSE_VALIDATORS 0
1025 #endif /* !defined(wxUSE_VALIDATORS) */
1027 #ifndef wxUSE_WXHTML_HELP
1028 # ifdef wxABORT_ON_CONFIG_ERROR
1029 # error "wxUSE_WXHTML_HELP must be defined."
1031 # define wxUSE_WXHTML_HELP 0
1033 #endif /* !defined(wxUSE_WXHTML_HELP) */
1036 # ifdef wxABORT_ON_CONFIG_ERROR
1037 # error "wxUSE_XRC must be defined."
1039 # define wxUSE_XRC 0
1041 #endif /* !defined(wxUSE_XRC) */
1043 #endif /* wxUSE_GUI */
1046 Section 2: platform-specific checks.
1048 This must be done after checking that everything is defined as the platform
1049 checks use wxUSE_XXX symbols in #if tests.
1052 #if defined(__WXPALMOS__)
1053 # include "wx/palmos/chkconf.h"
1054 #elif defined(__WXWINCE__)
1055 # include "wx/msw/wince/chkconf.h"
1056 #elif defined(__WXMSW__)
1057 # include "wx/msw/chkconf.h"
1058 #elif defined(__WXGTK__)
1059 # include "wx/gtk/chkconf.h"
1060 #elif defined(__WXCOCOA__)
1061 # include "wx/cocoa/chkconf.h"
1062 #elif defined(__WXMAC__)
1063 # include "wx/osx/chkconf.h"
1064 #elif defined(__OS2__)
1065 # include "wx/os2/chkconf.h"
1066 #elif defined(__WXMGL__)
1067 # include "wx/mgl/chkconf.h"
1068 #elif defined(__WXDFB__)
1069 # include "wx/dfb/chkconf.h"
1070 #elif defined(__WXMOTIF__)
1071 # include "wx/motif/chkconf.h"
1072 #elif defined(__WXX11__)
1073 # include "wx/x11/chkconf.h"
1077 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1078 there if we're building wxMSW.
1080 #if defined(__UNIX__) && !defined(__WXMSW__)
1081 # include "wx/unix/chkconf.h"
1084 #ifdef __WXUNIVERSAL__
1085 # include "wx/univ/chkconf.h"
1089 Section 3a: check consistency of the non-GUI settings.
1092 #if WXWIN_COMPATIBILITY_2_6
1093 # if !WXWIN_COMPATIBILITY_2_8
1094 # ifdef wxABORT_ON_CONFIG_ERROR
1095 # error "2.6.X compatibility requires 2.8.X compatibility"
1097 # undef WXWIN_COMPATIBILITY_2_8
1098 # define WXWIN_COMPATIBILITY_2_8 1
1101 #endif /* WXWIN_COMPATIBILITY_2_6 */
1103 #if wxUSE_ARCHIVE_STREAMS
1104 # if !wxUSE_DATETIME
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxArchive requires wxUSE_DATETIME"
1108 # undef wxUSE_ARCHIVE_STREAMS
1109 # define wxUSE_ARCHIVE_STREAMS 0
1112 #endif /* wxUSE_ARCHIVE_STREAMS */
1114 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1115 # if !wxUSE_PROTOCOL
1116 # ifdef wxABORT_ON_CONFIG_ERROR
1117 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1119 # undef wxUSE_PROTOCOL
1120 # define wxUSE_PROTOCOL 1
1123 #endif /* wxUSE_PROTOCOL_XXX */
1126 # if !wxUSE_PROTOCOL
1127 # ifdef wxABORT_ON_CONFIG_ERROR
1128 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1130 # undef wxUSE_PROTOCOL
1131 # define wxUSE_PROTOCOL 1
1134 #endif /* wxUSE_URL */
1138 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1139 # ifdef wxABORT_ON_CONFIG_ERROR
1140 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1142 # undef wxUSE_SOCKETS
1143 # define wxUSE_SOCKETS 1
1149 # ifdef wxABORT_ON_CONFIG_ERROR
1150 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1152 # undef wxUSE_STREAMS
1153 # define wxUSE_STREAMS 1
1156 #endif /* wxUSE_PROTOCOL */
1158 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1160 # if !wxUSE_FILESYSTEM
1161 # ifdef wxABORT_ON_CONFIG_ERROR
1162 # error "wxHTML requires wxFileSystem"
1164 # undef wxUSE_FILESYSTEM
1165 # define wxUSE_FILESYSTEM 1
1168 #endif /* wxUSE_HTML */
1170 #if wxUSE_FS_ARCHIVE
1171 # if !wxUSE_FILESYSTEM
1172 # ifdef wxABORT_ON_CONFIG_ERROR
1173 # error "wxArchiveFSHandler requires wxFileSystem"
1175 # undef wxUSE_FILESYSTEM
1176 # define wxUSE_FILESYSTEM 1
1179 # if !wxUSE_ARCHIVE_STREAMS
1180 # ifdef wxABORT_ON_CONFIG_ERROR
1181 # error "wxArchiveFSHandler requires wxArchive"
1183 # undef wxUSE_ARCHIVE_STREAMS
1184 # define wxUSE_ARCHIVE_STREAMS 1
1187 #endif /* wxUSE_FS_ARCHIVE */
1189 #if wxUSE_FILESYSTEM
1191 # ifdef wxABORT_ON_CONFIG_ERROR
1192 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1194 # undef wxUSE_STREAMS
1195 # define wxUSE_STREAMS 1
1198 # if !wxUSE_FILE && !wxUSE_FFILE
1199 # ifdef wxABORT_ON_CONFIG_ERROR
1200 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1203 # define wxUSE_FILE 1
1205 # define wxUSE_FFILE 1
1208 #endif /* wxUSE_FILESYSTEM */
1211 # if !wxUSE_PROTOCOL
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1215 # undef wxUSE_PROTOCOL
1216 # define wxUSE_PROTOCOL 1
1219 #endif /* wxUSE_FS_INET */
1221 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1222 # if !wxUSE_LONGLONG
1223 # ifdef wxABORT_ON_CONFIG_ERROR
1224 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1226 # undef wxUSE_LONGLONG
1227 # define wxUSE_LONGLONG 1
1230 #endif /* wxUSE_STOPWATCH */
1232 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1233 # ifdef wxABORT_ON_CONFIG_ERROR
1234 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1236 # undef wxUSE_TEXTFILE
1237 # define wxUSE_TEXTFILE 1
1239 #endif /* wxUSE_MIMETYPE */
1241 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1242 # ifdef wxABORT_ON_CONFIG_ERROR
1243 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1245 # undef wxUSE_TEXTBUFFER
1246 # define wxUSE_TEXTBUFFER 1
1248 #endif /* wxUSE_TEXTFILE */
1250 #if wxUSE_TEXTFILE && !wxUSE_FILE
1251 # ifdef wxABORT_ON_CONFIG_ERROR
1252 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1255 # define wxUSE_FILE 1
1257 #endif /* wxUSE_TEXTFILE */
1259 #if wxUSE_XML && !wxUSE_WCHAR_T
1260 # ifdef wxABORT_ON_CONFIG_ERROR
1261 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1264 # define wxUSE_XML 0
1266 #endif /* wxUSE_XML */
1268 #if !wxUSE_DYNLIB_CLASS
1269 # if wxUSE_DYNAMIC_LOADER
1270 # ifdef wxABORT_ON_CONFIG_ERROR
1271 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1273 # define wxUSE_DYNLIB_CLASS 1
1276 #endif /* wxUSE_DYNLIB_CLASS */
1280 # ifdef wxABORT_ON_CONFIG_ERROR
1281 # error "wxZip requires wxZlib"
1284 # define wxUSE_ZLIB 1
1287 # if !wxUSE_ARCHIVE_STREAMS
1288 # ifdef wxABORT_ON_CONFIG_ERROR
1289 # error "wxZip requires wxArchive"
1291 # undef wxUSE_ARCHIVE_STREAMS
1292 # define wxUSE_ARCHIVE_STREAMS 1
1295 #endif /* wxUSE_ZIPSTREAM */
1298 # if !wxUSE_ARCHIVE_STREAMS
1299 # ifdef wxABORT_ON_CONFIG_ERROR
1300 # error "wxTar requires wxArchive"
1302 # undef wxUSE_ARCHIVE_STREAMS
1303 # define wxUSE_ARCHIVE_STREAMS 1
1306 #endif /* wxUSE_TARSTREAM */
1309 Section 3b: the tests for the GUI settings only.
1313 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1314 # ifdef wxABORT_ON_CONFIG_ERROR
1315 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1317 # undef wxUSE_ACCESSIBILITY
1318 # define wxUSE_ACCESSIBILITY 0
1320 #endif /* wxUSE_ACCESSIBILITY */
1322 #if wxUSE_BUTTON || \
1323 wxUSE_CALENDARCTRL || \
1326 wxUSE_BMPBUTTON || \
1328 wxUSE_CHECKLISTBOX || \
1332 wxUSE_HEADERCTRL || \
1338 wxUSE_REARRANGECTRL || \
1339 wxUSE_SCROLLBAR || \
1347 wxUSE_STATUSBAR || \
1351 # if !wxUSE_CONTROLS
1352 # ifdef wxABORT_ON_CONFIG_ERROR
1353 # error "wxUSE_CONTROLS unset but some controls used"
1355 # undef wxUSE_CONTROLS
1356 # define wxUSE_CONTROLS 1
1359 #endif /* controls */
1363 # ifdef wxABORT_ON_CONFIG_ERROR
1364 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1366 # undef wxUSE_BUTTON
1367 # define wxUSE_BUTTON 1
1370 #endif /* wxUSE_BMPBUTTON */
1373 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1376 #ifdef wxUSE_BOOKCTRL
1377 # ifdef wxABORT_ON_CONFIG_ERROR
1378 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1380 # undef wxUSE_BOOKCTRL
1384 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1386 wxUSE_CHOICEBOOK || \
1391 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1392 # ifdef wxABORT_ON_CONFIG_ERROR
1393 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1395 # undef wxUSE_COLLPANE
1396 # define wxUSE_COLLPANE 0
1399 #endif /* wxUSE_COLLPANE */
1402 # if !wxUSE_LISTCTRL
1403 # ifdef wxABORT_ON_CONFIG_ERROR
1404 # error "wxListbook requires wxListCtrl"
1406 # undef wxUSE_LISTCTRL
1407 # define wxUSE_LISTCTRL 1
1410 #endif /* wxUSE_LISTBOOK */
1412 #if wxUSE_CHOICEBOOK
1414 # ifdef wxABORT_ON_CONFIG_ERROR
1415 # error "wxChoicebook requires wxChoice"
1417 # undef wxUSE_CHOICE
1418 # define wxUSE_CHOICE 1
1421 #endif /* wxUSE_CHOICEBOOK */
1425 # ifdef wxABORT_ON_CONFIG_ERROR
1426 # error "wxToolbook requires wxToolBar"
1428 # undef wxUSE_TOOLBAR
1429 # define wxUSE_TOOLBAR 1
1432 #endif /* wxUSE_TOOLBOOK */
1434 #if !wxUSE_ODCOMBOBOX
1435 # if wxUSE_BITMAPCOMBOBOX
1436 # ifdef wxABORT_ON_CONFIG_ERROR
1437 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1439 # undef wxUSE_BITMAPCOMBOBOX
1440 # define wxUSE_BITMAPCOMBOBOX 0
1443 #endif /* !wxUSE_ODCOMBOBOX */
1445 #if !wxUSE_HEADERCTRL
1446 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1447 # ifdef wxABORT_ON_CONFIG_ERROR
1448 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1450 # undef wxUSE_HEADERCTRL
1451 # define wxUSE_HEADERCTRL 1
1454 #endif /* !wxUSE_HEADERCTRL */
1456 #if wxUSE_REARRANGECTRL
1457 # if !wxUSE_CHECKLISTBOX
1458 # ifdef wxABORT_ON_CONFIG_ERROR
1459 # error "wxRearrangeCtrl requires wxCheckListBox"
1461 # undef wxUSE_REARRANGECTRL
1462 # define wxUSE_REARRANGECTRL 0
1465 #endif /* wxUSE_REARRANGECTRL */
1467 /* don't attempt to use native status bar on the platforms not having it */
1468 #ifndef wxUSE_NATIVE_STATUSBAR
1469 # define wxUSE_NATIVE_STATUSBAR 0
1470 #elif wxUSE_NATIVE_STATUSBAR
1471 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1472 defined(__WXMAC__) || \
1473 defined(__WXPALMOS__) )
1474 # undef wxUSE_NATIVE_STATUSBAR
1475 # define wxUSE_NATIVE_STATUSBAR 0
1479 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1480 # ifdef wxABORT_ON_CONFIG_ERROR
1481 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1483 # undef wxUSE_GRAPHICS_CONTEXT
1484 # define wxUSE_GRAPHICS_CONTEXT 0
1486 #endif /* wxUSE_GRAPHICS_CONTEXT */
1489 /* generic controls dependencies */
1490 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1491 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1492 /* all common controls are needed by these dialogs */
1493 # if !defined(wxUSE_CHOICE) || \
1494 !defined(wxUSE_TEXTCTRL) || \
1495 !defined(wxUSE_BUTTON) || \
1496 !defined(wxUSE_CHECKBOX) || \
1497 !defined(wxUSE_STATTEXT)
1498 # ifdef wxABORT_ON_CONFIG_ERROR
1499 # error "These common controls are needed by common dialogs"
1501 # undef wxUSE_CHOICE
1502 # define wxUSE_CHOICE 1
1503 # undef wxUSE_TEXTCTRL
1504 # define wxUSE_TEXTCTRL 1
1505 # undef wxUSE_BUTTON
1506 # define wxUSE_BUTTON 1
1507 # undef wxUSE_CHECKBOX
1508 # define wxUSE_CHECKBOX 1
1509 # undef wxUSE_STATTEXT
1510 # define wxUSE_STATTEXT 1
1514 #endif /* !wxMSW || wxUniv */
1516 /* generic file dialog depends on (generic) file control */
1517 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1518 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1519 # ifdef wxABORT_ON_CONFIG_ERROR
1520 # error "Generic wxFileDialog requires wxFileCtrl"
1522 # undef wxUSE_FILECTRL
1523 # define wxUSE_FILECTRL 1
1525 #endif /* wxUSE_FILEDLG */
1527 /* common dependencies */
1528 #if wxUSE_CALENDARCTRL
1529 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1530 # ifdef wxABORT_ON_CONFIG_ERROR
1531 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1533 # undef wxUSE_SPINBTN
1534 # undef wxUSE_COMBOBOX
1535 # define wxUSE_SPINBTN 1
1536 # define wxUSE_COMBOBOX 1
1540 # if !wxUSE_DATETIME
1541 # ifdef wxABORT_ON_CONFIG_ERROR
1542 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1544 # undef wxUSE_DATETIME
1545 # define wxUSE_DATETIME 1
1548 #endif /* wxUSE_CALENDARCTRL */
1550 #if wxUSE_DATEPICKCTRL
1551 # if !wxUSE_DATETIME
1552 # ifdef wxABORT_ON_CONFIG_ERROR
1553 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1555 # undef wxUSE_DATETIME
1556 # define wxUSE_DATETIME 1
1559 #endif /* wxUSE_DATEPICKCTRL */
1561 #if wxUSE_CHECKLISTBOX
1563 # ifdef wxABORT_ON_CONFIG_ERROR
1564 # error "wxCheckListBox requires wxListBox"
1566 # undef wxUSE_LISTBOX
1567 # define wxUSE_LISTBOX 1
1570 #endif /* wxUSE_CHECKLISTBOX */
1574 # ifdef wxABORT_ON_CONFIG_ERROR
1575 # error "Choice dialogs requires wxListBox"
1577 # undef wxUSE_LISTBOX
1578 # define wxUSE_LISTBOX 1
1581 #endif /* wxUSE_CHOICEDLG */
1584 # if !wxUSE_BMPBUTTON
1585 # ifdef wxABORT_ON_CONFIG_ERROR
1586 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1588 # undef wxUSE_BMPBUTTON
1589 # define wxUSE_BMPBUTTON 1
1593 # if !wxUSE_CHOICEDLG
1594 # ifdef wxABORT_ON_CONFIG_ERROR
1595 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1597 # undef wxUSE_CHOICEDLG
1598 # define wxUSE_CHOICEDLG 1
1601 #endif /* wxUSE_HELP */
1603 #if wxUSE_MS_HTML_HELP
1605 this doesn't make sense for platforms other than MSW but we still
1606 define it in wx/setup_inc.h so don't complain if it happens to be
1607 defined under another platform but just silently fix it.
1610 # undef wxUSE_MS_HTML_HELP
1611 # define wxUSE_MS_HTML_HELP 0
1613 #endif /* wxUSE_MS_HTML_HELP */
1615 #if wxUSE_WXHTML_HELP
1616 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1617 # ifdef wxABORT_ON_CONFIG_ERROR
1618 # error "Built in help controller can't be compiled"
1621 # define wxUSE_HELP 1
1623 # define wxUSE_HTML 1
1624 # undef wxUSE_COMBOBOX
1625 # define wxUSE_COMBOBOX 1
1626 # undef wxUSE_NOTEBOOK
1627 # define wxUSE_NOTEBOOK 1
1628 # undef wxUSE_SPINCTRL
1629 # define wxUSE_SPINCTRL 1
1632 #endif /* wxUSE_WXHTML_HELP */
1636 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1637 user explicitly wants this and disable all other features that require
1640 # if wxUSE_DRAGIMAGE
1641 # ifdef wxABORT_ON_CONFIG_ERROR
1642 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1644 # undef wxUSE_DRAGIMAGE
1645 # define wxUSE_DRAGIMAGE 0
1650 # ifdef wxABORT_ON_CONFIG_ERROR
1651 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1653 # undef wxUSE_LIBPNG
1654 # define wxUSE_LIBPNG 0
1659 # ifdef wxABORT_ON_CONFIG_ERROR
1660 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1662 # undef wxUSE_LIBJPEG
1663 # define wxUSE_LIBJPEG 0
1668 # ifdef wxABORT_ON_CONFIG_ERROR
1669 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1671 # undef wxUSE_LIBTIFF
1672 # define wxUSE_LIBTIFF 0
1677 # ifdef wxABORT_ON_CONFIG_ERROR
1678 # error "wxUSE_GIF requires wxUSE_IMAGE"
1681 # define wxUSE_GIF 0
1686 # ifdef wxABORT_ON_CONFIG_ERROR
1687 # error "wxUSE_PNM requires wxUSE_IMAGE"
1690 # define wxUSE_PNM 0
1695 # ifdef wxABORT_ON_CONFIG_ERROR
1696 # error "wxUSE_PCX requires wxUSE_IMAGE"
1699 # define wxUSE_PCX 0
1704 # ifdef wxABORT_ON_CONFIG_ERROR
1705 # error "wxUSE_IFF requires wxUSE_IMAGE"
1708 # define wxUSE_IFF 0
1713 # ifdef wxABORT_ON_CONFIG_ERROR
1714 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1716 # undef wxUSE_TOOLBAR
1717 # define wxUSE_TOOLBAR 0
1722 # ifdef wxABORT_ON_CONFIG_ERROR
1723 # error "wxUSE_XPM requires wxUSE_IMAGE"
1726 # define wxUSE_XPM 0
1730 #endif /* !wxUSE_IMAGE */
1732 #if wxUSE_DOC_VIEW_ARCHITECTURE
1734 # ifdef wxABORT_ON_CONFIG_ERROR
1735 # error "DocView requires wxUSE_MENUS"
1738 # define wxUSE_MENUS 1
1742 # if !wxUSE_CHOICEDLG
1743 # ifdef wxABORT_ON_CONFIG_ERROR
1744 # error "DocView requires wxUSE_CHOICEDLG"
1746 # undef wxUSE_CHOICEDLG
1747 # define wxUSE_CHOICEDLG 1
1751 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1752 # ifdef wxABORT_ON_CONFIG_ERROR
1753 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1755 # undef wxUSE_STREAMS
1756 # define wxUSE_STREAMS 1
1759 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1761 #if wxUSE_PRINTING_ARCHITECTURE
1762 # if !wxUSE_COMBOBOX
1763 # ifdef wxABORT_ON_CONFIG_ERROR
1764 # error "Print dialog requires wxUSE_COMBOBOX"
1766 # undef wxUSE_COMBOBOX
1767 # define wxUSE_COMBOBOX 1
1770 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1772 #if wxUSE_MDI_ARCHITECTURE
1774 # ifdef wxABORT_ON_CONFIG_ERROR
1775 # error "MDI requires wxUSE_MDI"
1778 # define wxUSE_MDI 1
1782 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1783 # ifdef wxABORT_ON_CONFIG_ERROR
1784 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1786 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1787 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1790 #endif /* wxUSE_MDI_ARCHITECTURE */
1793 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1794 # ifdef wxABORT_ON_CONFIG_ERROR
1795 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1797 # undef wxUSE_FILEDLG
1798 # define wxUSE_FILEDLG 1
1801 #endif /* wxUSE_FILEDLG */
1803 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1804 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1805 # ifdef wxABORT_ON_CONFIG_ERROR
1806 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1809 # undef wxUSE_BUTTON
1810 # define wxUSE_GAUGE 1
1811 # define wxUSE_BUTTON 1
1814 #endif /* !wxUSE_GAUGE */
1817 # if wxUSE_FONTDLG || \
1819 wxUSE_CHOICEDLG || \
1820 wxUSE_NUMBERDLG || \
1823 wxUSE_STARTUP_TIPS || \
1825 # ifdef wxABORT_ON_CONFIG_ERROR
1826 # error "Common and generic dialogs require wxUSE_BUTTON"
1828 # undef wxUSE_BUTTON
1829 # define wxUSE_BUTTON 1
1832 #endif /* !wxUSE_BUTTON */
1835 # if wxUSE_TOOLBAR_NATIVE
1836 # ifdef wxABORT_ON_CONFIG_ERROR
1837 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1839 # undef wxUSE_TOOLBAR_NATIVE
1840 # define wxUSE_TOOLBAR_NATIVE 0
1846 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1847 # ifdef wxABORT_ON_CONFIG_ERROR
1848 # error "wxImageList must be compiled as well"
1850 # undef wxUSE_IMAGLIST
1851 # define wxUSE_IMAGLIST 1
1854 #endif /* !wxUSE_IMAGLIST */
1857 # if !wxUSE_RADIOBTN
1858 # ifdef wxABORT_ON_CONFIG_ERROR
1859 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1861 # undef wxUSE_RADIOBTN
1862 # define wxUSE_RADIOBTN 1
1865 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1866 # ifdef wxABORT_ON_CONFIG_ERROR
1867 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1869 # undef wxUSE_STATBOX
1870 # define wxUSE_STATBOX 1
1873 #endif /* wxUSE_RADIOBOX */
1876 # if !wxUSE_TEXTCTRL
1877 # ifdef wxABORT_ON_CONFIG_ERROR
1878 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1880 # undef wxUSE_TEXTCTRL
1881 # define wxUSE_TEXTCTRL 1
1884 #endif /* wxUSE_LOGWINDOW */
1886 #if wxUSE_LOG_DIALOG
1887 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1888 # ifdef wxABORT_ON_CONFIG_ERROR
1889 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1891 # undef wxUSE_LISTCTRL
1892 # define wxUSE_LISTCTRL 1
1893 # undef wxUSE_BUTTON
1894 # define wxUSE_BUTTON 1
1897 #endif /* wxUSE_LOG_DIALOG */
1899 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1900 # ifdef wxABORT_ON_CONFIG_ERROR
1901 # error "wxClipboard requires wxDataObject"
1903 # undef wxUSE_DATAOBJ
1904 # define wxUSE_DATAOBJ 1
1906 #endif /* wxUSE_CLIPBOARD */
1908 #if wxUSE_XRC && !wxUSE_XML
1909 # ifdef wxABORT_ON_CONFIG_ERROR
1910 # error "wxUSE_XRC requires wxUSE_XML"
1913 # define wxUSE_XRC 0
1915 #endif /* wxUSE_XRC */
1917 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1918 # ifdef wxABORT_ON_CONFIG_ERROR
1919 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1921 # undef wxUSE_SOCKETS
1922 # define wxUSE_SOCKETS 0
1924 #endif /* wxUSE_SOCKETS */
1926 #if wxUSE_SVG && !wxUSE_STREAMS
1927 # ifdef wxABORT_ON_CONFIG_ERROR
1928 # error "wxUSE_SVG requires wxUSE_STREAMS"
1931 # define wxUSE_SVG 0
1933 #endif /* wxUSE_SVG */
1935 #if wxUSE_SVG && !wxUSE_IMAGE
1936 # ifdef wxABORT_ON_CONFIG_ERROR
1937 # error "wxUSE_SVG requires wxUSE_IMAGE"
1940 # define wxUSE_SVG 0
1942 #endif /* wxUSE_SVG */
1944 #if wxUSE_SVG && !wxUSE_LIBPNG
1945 # ifdef wxABORT_ON_CONFIG_ERROR
1946 # error "wxUSE_SVG requires wxUSE_LIBPNG"
1949 # define wxUSE_SVG 0
1951 #endif /* wxUSE_SVG */
1954 # if wxUSE_DATAVIEWCTRL
1955 # ifdef wxABORT_ON_CONFIG_ERROR
1956 # error "wxDataViewCtrl requires wxVariant"
1958 # undef wxUSE_DATAVIEWCTRL
1959 # define wxUSE_DATAVIEWCTRL 0
1962 #endif /* wxUSE_VARIANT */
1964 #endif /* wxUSE_GUI */
1966 #endif /* _WX_CHKCONF_H_ */