]>
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!
71 #ifndef wxUSE_CONSOLE_EVENTLOOP
72 # ifdef wxABORT_ON_CONFIG_ERROR
73 # error "wxUSE_CONSOLE_EVENTLOOP must be defined."
75 # define wxUSE_CONSOLE_EVENTLOOP 0
77 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
79 #ifndef wxUSE_DYNLIB_CLASS
80 # ifdef wxABORT_ON_CONFIG_ERROR
81 # error "wxUSE_DYNLIB_CLASS must be defined."
83 # define wxUSE_DYNLIB_CLASS 0
85 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
87 #ifndef wxUSE_EXCEPTIONS
88 # ifdef wxABORT_ON_CONFIG_ERROR
89 # error "wxUSE_EXCEPTIONS must be defined."
91 # define wxUSE_EXCEPTIONS 0
93 #endif /* !defined(wxUSE_EXCEPTIONS) */
95 #ifndef wxUSE_FILESYSTEM
96 # ifdef wxABORT_ON_CONFIG_ERROR
97 # error "wxUSE_FILESYSTEM must be defined."
99 # define wxUSE_FILESYSTEM 0
101 #endif /* !defined(wxUSE_FILESYSTEM) */
103 #ifndef wxUSE_FS_ARCHIVE
104 # ifdef wxABORT_ON_CONFIG_ERROR
105 # error "wxUSE_FS_ARCHIVE must be defined."
107 # define wxUSE_FS_ARCHIVE 0
109 #endif /* !defined(wxUSE_FS_ARCHIVE) */
111 #ifndef wxUSE_FSVOLUME
112 # ifdef wxABORT_ON_CONFIG_ERROR
113 # error "wxUSE_FSVOLUME must be defined."
115 # define wxUSE_FSVOLUME 0
117 #endif /* !defined(wxUSE_FSVOLUME) */
119 #ifndef wxUSE_DYNAMIC_LOADER
120 # ifdef wxABORT_ON_CONFIG_ERROR
121 # error "wxUSE_DYNAMIC_LOADER must be defined."
123 # define wxUSE_DYNAMIC_LOADER 0
125 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
128 # ifdef wxABORT_ON_CONFIG_ERROR
129 # error "wxUSE_INTL must be defined."
131 # define wxUSE_INTL 0
133 #endif /* !defined(wxUSE_INTL) */
136 # ifdef wxABORT_ON_CONFIG_ERROR
137 # error "wxUSE_IPV6 must be defined."
139 # define wxUSE_IPV6 0
141 #endif /* !defined(wxUSE_IPV6) */
144 # ifdef wxABORT_ON_CONFIG_ERROR
145 # error "wxUSE_LOG must be defined."
149 #endif /* !defined(wxUSE_LOG) */
151 #ifndef wxUSE_LONGLONG
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_LONGLONG must be defined."
155 # define wxUSE_LONGLONG 0
157 #endif /* !defined(wxUSE_LONGLONG) */
159 #ifndef wxUSE_MIMETYPE
160 # ifdef wxABORT_ON_CONFIG_ERROR
161 # error "wxUSE_MIMETYPE must be defined."
163 # define wxUSE_MIMETYPE 0
165 #endif /* !defined(wxUSE_MIMETYPE) */
167 #ifndef wxUSE_ON_FATAL_EXCEPTION
168 # ifdef wxABORT_ON_CONFIG_ERROR
169 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
171 # define wxUSE_ON_FATAL_EXCEPTION 0
173 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
175 #ifndef wxUSE_PRINTF_POS_PARAMS
176 # ifdef wxABORT_ON_CONFIG_ERROR
177 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
179 # define wxUSE_PRINTF_POS_PARAMS 0
181 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
183 #ifndef wxUSE_PROTOCOL
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_PROTOCOL must be defined."
187 # define wxUSE_PROTOCOL 0
189 #endif /* !defined(wxUSE_PROTOCOL) */
191 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
193 # undef wxUSE_PROTOCOL_HTTP
194 # undef wxUSE_PROTOCOL_FTP
195 # undef wxUSE_PROTOCOL_FILE
196 # define wxUSE_PROTOCOL_HTTP 0
197 # define wxUSE_PROTOCOL_FTP 0
198 # define wxUSE_PROTOCOL_FILE 0
199 #endif /* wxUSE_PROTOCOL */
201 #ifndef wxUSE_PROTOCOL_HTTP
202 # ifdef wxABORT_ON_CONFIG_ERROR
203 # error "wxUSE_PROTOCOL_HTTP must be defined."
205 # define wxUSE_PROTOCOL_HTTP 0
207 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
209 #ifndef wxUSE_PROTOCOL_FTP
210 # ifdef wxABORT_ON_CONFIG_ERROR
211 # error "wxUSE_PROTOCOL_FTP must be defined."
213 # define wxUSE_PROTOCOL_FTP 0
215 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
217 #ifndef wxUSE_PROTOCOL_FILE
218 # ifdef wxABORT_ON_CONFIG_ERROR
219 # error "wxUSE_PROTOCOL_FILE must be defined."
221 # define wxUSE_PROTOCOL_FILE 0
223 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
226 # ifdef wxABORT_ON_CONFIG_ERROR
227 # error "wxUSE_REGEX must be defined."
229 # define wxUSE_REGEX 0
231 #endif /* !defined(wxUSE_REGEX) */
233 #ifndef wxUSE_STDPATHS
234 # ifdef wxABORT_ON_CONFIG_ERROR
235 # error "wxUSE_STDPATHS must be defined."
237 # define wxUSE_STDPATHS 1
239 #endif /* !defined(wxUSE_STDPATHS) */
242 # ifdef wxABORT_ON_CONFIG_ERROR
243 # error "wxUSE_XML must be defined."
247 #endif /* !defined(wxUSE_XML) */
249 #ifndef wxUSE_SOCKETS
250 # ifdef wxABORT_ON_CONFIG_ERROR
251 # error "wxUSE_SOCKETS must be defined."
253 # define wxUSE_SOCKETS 0
255 #endif /* !defined(wxUSE_SOCKETS) */
257 #ifndef wxUSE_STREAMS
258 # ifdef wxABORT_ON_CONFIG_ERROR
259 # error "wxUSE_STREAMS must be defined."
261 # define wxUSE_STREAMS 0
263 #endif /* !defined(wxUSE_STREAMS) */
265 #ifndef wxUSE_STOPWATCH
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_STOPWATCH must be defined."
269 # define wxUSE_STOPWATCH 0
271 #endif /* !defined(wxUSE_STOPWATCH) */
273 #ifndef wxUSE_TEXTBUFFER
274 # ifdef wxABORT_ON_CONFIG_ERROR
275 # error "wxUSE_TEXTBUFFER must be defined."
277 # define wxUSE_TEXTBUFFER 0
279 #endif /* !defined(wxUSE_TEXTBUFFER) */
281 #ifndef wxUSE_TEXTFILE
282 # ifdef wxABORT_ON_CONFIG_ERROR
283 # error "wxUSE_TEXTFILE must be defined."
285 # define wxUSE_TEXTFILE 0
287 #endif /* !defined(wxUSE_TEXTFILE) */
289 #ifndef wxUSE_UNICODE
290 # ifdef wxABORT_ON_CONFIG_ERROR
291 # error "wxUSE_UNICODE must be defined."
293 # define wxUSE_UNICODE 0
295 #endif /* !defined(wxUSE_UNICODE) */
298 # ifdef wxABORT_ON_CONFIG_ERROR
299 # error "wxUSE_URL must be defined."
303 #endif /* !defined(wxUSE_URL) */
305 #ifndef wxUSE_VARIANT
306 # ifdef wxABORT_ON_CONFIG_ERROR
307 # error "wxUSE_VARIANT must be defined."
309 # define wxUSE_VARIANT 0
311 #endif /* wxUSE_VARIANT */
313 #ifndef wxUSE_XLOCALE
314 # ifdef wxABORT_ON_CONFIG_ERROR
315 # error "wxUSE_XLOCALE must be defined."
317 # define wxUSE_XLOCALE 0
319 #endif /* !defined(wxUSE_XLOCALE) */
322 Section 1b: all these tests are for GUI only.
324 please keep the options in alphabetical order!
329 all of the settings tested below must be defined or we'd get an error from
330 preprocessor about invalid integer expression
333 #ifndef wxUSE_ABOUTDLG
334 # ifdef wxABORT_ON_CONFIG_ERROR
335 # error "wxUSE_ABOUTDLG must be defined."
337 # define wxUSE_ABOUTDLG 0
339 #endif /* !defined(wxUSE_ABOUTDLG) */
342 # ifdef wxABORT_ON_CONFIG_ERROR
343 # error "wxUSE_ACCEL must be defined."
345 # define wxUSE_ACCEL 0
347 #endif /* !defined(wxUSE_ACCEL) */
349 #ifndef wxUSE_ACCESSIBILITY
350 # ifdef wxABORT_ON_CONFIG_ERROR
351 # error "wxUSE_ACCESSIBILITY must be defined."
353 # define wxUSE_ACCESSIBILITY 0
355 #endif /* !defined(wxUSE_ACCESSIBILITY) */
357 #ifndef wxUSE_ANIMATIONCTRL
358 # ifdef wxABORT_ON_CONFIG_ERROR
359 # error "wxUSE_ANIMATIONCTRL must be defined."
361 # define wxUSE_ANIMATIONCTRL 0
363 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
365 #ifndef wxUSE_AUTOID_MANAGEMENT
366 # ifdef wxABORT_ON_CONFIG_ERROR
367 # error "wxUSE_AUTOID_MANAGEMENT must be defined."
369 # define wxUSE_AUTOID_MANAGEMENT 0
371 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
373 #ifndef wxUSE_BITMAPCOMBOBOX
374 # ifdef wxABORT_ON_CONFIG_ERROR
375 # error "wxUSE_BITMAPCOMBOBOX must be defined."
377 # define wxUSE_BITMAPCOMBOBOX 0
379 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
381 #ifndef wxUSE_BMPBUTTON
382 # ifdef wxABORT_ON_CONFIG_ERROR
383 # error "wxUSE_BMPBUTTON must be defined."
385 # define wxUSE_BMPBUTTON 0
387 #endif /* !defined(wxUSE_BMPBUTTON) */
390 # ifdef wxABORT_ON_CONFIG_ERROR
391 # error "wxUSE_BUTTON must be defined."
393 # define wxUSE_BUTTON 0
395 #endif /* !defined(wxUSE_BUTTON) */
397 #ifndef wxUSE_CALENDARCTRL
398 # ifdef wxABORT_ON_CONFIG_ERROR
399 # error "wxUSE_CALENDARCTRL must be defined."
401 # define wxUSE_CALENDARCTRL 0
403 #endif /* !defined(wxUSE_CALENDARCTRL) */
406 # ifdef wxABORT_ON_CONFIG_ERROR
407 # error "wxUSE_CARET must be defined."
409 # define wxUSE_CARET 0
411 #endif /* !defined(wxUSE_CARET) */
413 #ifndef wxUSE_CHECKBOX
414 # ifdef wxABORT_ON_CONFIG_ERROR
415 # error "wxUSE_CHECKBOX must be defined."
417 # define wxUSE_CHECKBOX 0
419 #endif /* !defined(wxUSE_CHECKBOX) */
421 #ifndef wxUSE_CHECKLISTBOX
422 # ifdef wxABORT_ON_CONFIG_ERROR
423 # error "wxUSE_CHECKLISTBOX must be defined."
425 # define wxUSE_CHECKLISTBOX 0
427 #endif /* !defined(wxUSE_CHECKLISTBOX) */
430 # ifdef wxABORT_ON_CONFIG_ERROR
431 # error "wxUSE_CHOICE must be defined."
433 # define wxUSE_CHOICE 0
435 #endif /* !defined(wxUSE_CHOICE) */
437 #ifndef wxUSE_CHOICEBOOK
438 # ifdef wxABORT_ON_CONFIG_ERROR
439 # error "wxUSE_CHOICEBOOK must be defined."
441 # define wxUSE_CHOICEBOOK 0
443 #endif /* !defined(wxUSE_CHOICEBOOK) */
445 #ifndef wxUSE_CHOICEDLG
446 # ifdef wxABORT_ON_CONFIG_ERROR
447 # error "wxUSE_CHOICEDLG must be defined."
449 # define wxUSE_CHOICEDLG 0
451 #endif /* !defined(wxUSE_CHOICEDLG) */
453 #ifndef wxUSE_CLIPBOARD
454 # ifdef wxABORT_ON_CONFIG_ERROR
455 # error "wxUSE_CLIPBOARD must be defined."
457 # define wxUSE_CLIPBOARD 0
459 #endif /* !defined(wxUSE_CLIPBOARD) */
461 #ifndef wxUSE_COLLPANE
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_COLLPANE must be defined."
465 # define wxUSE_COLLPANE 0
467 #endif /* !defined(wxUSE_COLLPANE) */
469 #ifndef wxUSE_COLOURDLG
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_COLOURDLG must be defined."
473 # define wxUSE_COLOURDLG 0
475 #endif /* !defined(wxUSE_COLOURDLG) */
477 #ifndef wxUSE_COLOURPICKERCTRL
478 # ifdef wxABORT_ON_CONFIG_ERROR
479 # error "wxUSE_COLOURPICKERCTRL must be defined."
481 # define wxUSE_COLOURPICKERCTRL 0
483 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
485 #ifndef wxUSE_COMBOBOX
486 # ifdef wxABORT_ON_CONFIG_ERROR
487 # error "wxUSE_COMBOBOX must be defined."
489 # define wxUSE_COMBOBOX 0
491 #endif /* !defined(wxUSE_COMBOBOX) */
493 #ifndef wxUSE_COMBOCTRL
494 # ifdef wxABORT_ON_CONFIG_ERROR
495 # error "wxUSE_COMBOCTRL must be defined."
497 # define wxUSE_COMBOCTRL 0
499 #endif /* !defined(wxUSE_COMBOCTRL) */
501 #ifndef wxUSE_DATAOBJ
502 # ifdef wxABORT_ON_CONFIG_ERROR
503 # error "wxUSE_DATAOBJ must be defined."
505 # define wxUSE_DATAOBJ 0
507 #endif /* !defined(wxUSE_DATAOBJ) */
509 #ifndef wxUSE_DATAVIEWCTRL
510 # ifdef wxABORT_ON_CONFIG_ERROR
511 # error "wxUSE_DATAVIEWCTRL must be defined."
513 # define wxUSE_DATAVIEWCTRL 0
515 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
517 #ifndef wxUSE_DATEPICKCTRL
518 # ifdef wxABORT_ON_CONFIG_ERROR
519 # error "wxUSE_DATEPICKCTRL must be defined."
521 # define wxUSE_DATEPICKCTRL 0
523 #endif /* !defined(wxUSE_DATEPICKCTRL) */
525 #ifndef wxUSE_DIRPICKERCTRL
526 # ifdef wxABORT_ON_CONFIG_ERROR
527 # error "wxUSE_DIRPICKERCTRL must be defined."
529 # define wxUSE_DIRPICKERCTRL 0
531 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
533 #ifndef wxUSE_DISPLAY
534 # ifdef wxABORT_ON_CONFIG_ERROR
535 # error "wxUSE_DISPLAY must be defined."
537 # define wxUSE_DISPLAY 0
539 #endif /* !defined(wxUSE_DISPLAY) */
541 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
542 # ifdef wxABORT_ON_CONFIG_ERROR
543 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
545 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
547 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
549 #ifndef wxUSE_FILECTRL
550 # ifdef wxABORT_ON_CONFIG_ERROR
551 # error "wxUSE_FILECTRL must be defined."
553 # define wxUSE_FILECTRL 0
555 #endif /* !defined(wxUSE_FILECTRL) */
557 #ifndef wxUSE_FILEDLG
558 # ifdef wxABORT_ON_CONFIG_ERROR
559 # error "wxUSE_FILEDLG must be defined."
561 # define wxUSE_FILEDLG 0
563 #endif /* !defined(wxUSE_FILEDLG) */
565 #ifndef wxUSE_FILEPICKERCTRL
566 # ifdef wxABORT_ON_CONFIG_ERROR
567 # error "wxUSE_FILEPICKERCTRL must be defined."
569 # define wxUSE_FILEPICKERCTRL 0
571 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
573 #ifndef wxUSE_FONTDLG
574 # ifdef wxABORT_ON_CONFIG_ERROR
575 # error "wxUSE_FONTDLG must be defined."
577 # define wxUSE_FONTDLG 0
579 #endif /* !defined(wxUSE_FONTDLG) */
581 #ifndef wxUSE_FONTMAP
582 # ifdef wxABORT_ON_CONFIG_ERROR
583 # error "wxUSE_FONTMAP must be defined."
585 # define wxUSE_FONTMAP 0
587 #endif /* !defined(wxUSE_FONTMAP) */
589 #ifndef wxUSE_FONTPICKERCTRL
590 # ifdef wxABORT_ON_CONFIG_ERROR
591 # error "wxUSE_FONTPICKERCTRL must be defined."
593 # define wxUSE_FONTPICKERCTRL 0
595 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
598 # ifdef wxABORT_ON_CONFIG_ERROR
599 # error "wxUSE_GAUGE must be defined."
601 # define wxUSE_GAUGE 0
603 #endif /* !defined(wxUSE_GAUGE) */
605 #ifndef wxUSE_GRAPHICS_CONTEXT
606 # ifdef wxABORT_ON_CONFIG_ERROR
607 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
609 # define wxUSE_GRAPHICS_CONTEXT 0
611 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_GRID must be defined."
618 # define wxUSE_GRID 0
620 #endif /* !defined(wxUSE_GRID) */
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_HELP must be defined."
626 # define wxUSE_HELP 0
628 #endif /* !defined(wxUSE_HELP) */
630 #ifndef wxUSE_HYPERLINKCTRL
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_HYPERLINKCTRL must be defined."
634 # define wxUSE_HYPERLINKCTRL 0
636 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_HTML must be defined."
642 # define wxUSE_HTML 0
644 #endif /* !defined(wxUSE_HTML) */
646 #ifndef wxUSE_LIBMSPACK
647 # if !defined(__UNIX__) || defined(__WXPALMOS__)
648 /* set to 0 on platforms that don't have libmspack */
649 # define wxUSE_LIBMSPACK 0
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_LIBMSPACK must be defined."
654 # define wxUSE_LIBMSPACK 0
657 #endif /* !defined(wxUSE_LIBMSPACK) */
659 #ifndef wxUSE_ICO_CUR
660 # ifdef wxABORT_ON_CONFIG_ERROR
661 # error "wxUSE_ICO_CUR must be defined."
663 # define wxUSE_ICO_CUR 0
665 #endif /* !defined(wxUSE_ICO_CUR) */
668 # ifdef wxABORT_ON_CONFIG_ERROR
669 # error "wxUSE_IFF must be defined."
673 #endif /* !defined(wxUSE_IFF) */
675 #ifndef wxUSE_IMAGLIST
676 # ifdef wxABORT_ON_CONFIG_ERROR
677 # error "wxUSE_IMAGLIST must be defined."
679 # define wxUSE_IMAGLIST 0
681 #endif /* !defined(wxUSE_IMAGLIST) */
683 #ifndef wxUSE_JOYSTICK
684 # ifdef wxABORT_ON_CONFIG_ERROR
685 # error "wxUSE_JOYSTICK must be defined."
687 # define wxUSE_JOYSTICK 0
689 #endif /* !defined(wxUSE_JOYSTICK) */
691 #ifndef wxUSE_LISTBOOK
692 # ifdef wxABORT_ON_CONFIG_ERROR
693 # error "wxUSE_LISTBOOK must be defined."
695 # define wxUSE_LISTBOOK 0
697 #endif /* !defined(wxUSE_LISTBOOK) */
699 #ifndef wxUSE_LISTBOX
700 # ifdef wxABORT_ON_CONFIG_ERROR
701 # error "wxUSE_LISTBOX must be defined."
703 # define wxUSE_LISTBOX 0
705 #endif /* !defined(wxUSE_LISTBOX) */
707 #ifndef wxUSE_LISTCTRL
708 # ifdef wxABORT_ON_CONFIG_ERROR
709 # error "wxUSE_LISTCTRL must be defined."
711 # define wxUSE_LISTCTRL 0
713 #endif /* !defined(wxUSE_LISTCTRL) */
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_LOGGUI must be defined."
719 # define wxUSE_LOGGUI 0
721 #endif /* !defined(wxUSE_LOGGUI) */
723 #ifndef wxUSE_LOGWINDOW
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_LOGWINDOW must be defined."
727 # define wxUSE_LOGWINDOW 0
729 #endif /* !defined(wxUSE_LOGWINDOW) */
731 #ifndef wxUSE_LOG_DIALOG
732 # ifdef wxABORT_ON_CONFIG_ERROR
733 # error "wxUSE_LOG_DIALOG must be defined."
735 # define wxUSE_LOG_DIALOG 0
737 #endif /* !defined(wxUSE_LOG_DIALOG) */
740 # ifdef wxABORT_ON_CONFIG_ERROR
741 # error "wxUSE_MDI must be defined."
745 #endif /* !defined(wxUSE_MDI) */
747 #ifndef wxUSE_MDI_ARCHITECTURE
748 # ifdef wxABORT_ON_CONFIG_ERROR
749 # error "wxUSE_MDI_ARCHITECTURE must be defined."
751 # define wxUSE_MDI_ARCHITECTURE 0
753 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
756 # ifdef wxABORT_ON_CONFIG_ERROR
757 # error "wxUSE_MENUS must be defined."
759 # define wxUSE_MENUS 0
761 #endif /* !defined(wxUSE_MENUS) */
764 # ifdef wxABORT_ON_CONFIG_ERROR
765 # error "wxUSE_MSGDLG must be defined."
767 # define wxUSE_MSGDLG 0
769 #endif /* !defined(wxUSE_MSGDLG) */
771 #ifndef wxUSE_NOTEBOOK
772 # ifdef wxABORT_ON_CONFIG_ERROR
773 # error "wxUSE_NOTEBOOK must be defined."
775 # define wxUSE_NOTEBOOK 0
777 #endif /* !defined(wxUSE_NOTEBOOK) */
779 #ifndef wxUSE_NOTIFICATION_MESSAGE
780 # ifdef wxABORT_ON_CONFIG_ERROR
781 # error "wxUSE_NOTIFICATION_MESSAGE must be defined."
783 # define wxUSE_NOTIFICATION_MESSAGE 0
785 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
787 #ifndef wxUSE_ODCOMBOBOX
788 # ifdef wxABORT_ON_CONFIG_ERROR
789 # error "wxUSE_ODCOMBOBOX must be defined."
791 # define wxUSE_ODCOMBOBOX 0
793 #endif /* !defined(wxUSE_ODCOMBOBOX) */
795 #ifndef wxUSE_PALETTE
796 # ifdef wxABORT_ON_CONFIG_ERROR
797 # error "wxUSE_PALETTE must be defined."
799 # define wxUSE_PALETTE 0
801 #endif /* !defined(wxUSE_PALETTE) */
803 #ifndef wxUSE_POPUPWIN
804 # ifdef wxABORT_ON_CONFIG_ERROR
805 # error "wxUSE_POPUPWIN must be defined."
807 # define wxUSE_POPUPWIN 0
809 #endif /* !defined(wxUSE_POPUPWIN) */
811 #ifndef wxUSE_PRINTING_ARCHITECTURE
812 # ifdef wxABORT_ON_CONFIG_ERROR
813 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
815 # define wxUSE_PRINTING_ARCHITECTURE 0
817 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
819 #ifndef wxUSE_RADIOBOX
820 # ifdef wxABORT_ON_CONFIG_ERROR
821 # error "wxUSE_RADIOBOX must be defined."
823 # define wxUSE_RADIOBOX 0
825 #endif /* !defined(wxUSE_RADIOBOX) */
827 #ifndef wxUSE_RADIOBTN
828 # ifdef wxABORT_ON_CONFIG_ERROR
829 # error "wxUSE_RADIOBTN must be defined."
831 # define wxUSE_RADIOBTN 0
833 #endif /* !defined(wxUSE_RADIOBTN) */
836 # ifdef wxABORT_ON_CONFIG_ERROR
837 # error "wxUSE_SASH must be defined."
839 # define wxUSE_SASH 0
841 #endif /* !defined(wxUSE_SASH) */
843 #ifndef wxUSE_SCROLLBAR
844 # ifdef wxABORT_ON_CONFIG_ERROR
845 # error "wxUSE_SCROLLBAR must be defined."
847 # define wxUSE_SCROLLBAR 0
849 #endif /* !defined(wxUSE_SCROLLBAR) */
852 # ifdef wxABORT_ON_CONFIG_ERROR
853 # error "wxUSE_SLIDER must be defined."
855 # define wxUSE_SLIDER 0
857 #endif /* !defined(wxUSE_SLIDER) */
860 # ifdef wxABORT_ON_CONFIG_ERROR
861 # error "wxUSE_SOUND must be defined."
863 # define wxUSE_SOUND 0
865 #endif /* !defined(wxUSE_SOUND) */
867 #ifndef wxUSE_SPINBTN
868 # ifdef wxABORT_ON_CONFIG_ERROR
869 # error "wxUSE_SPINBTN must be defined."
871 # define wxUSE_SPINBTN 0
873 #endif /* !defined(wxUSE_SPINBTN) */
875 #ifndef wxUSE_SPINCTRL
876 # ifdef wxABORT_ON_CONFIG_ERROR
877 # error "wxUSE_SPINCTRL must be defined."
879 # define wxUSE_SPINCTRL 0
881 #endif /* !defined(wxUSE_SPINCTRL) */
884 # ifdef wxABORT_ON_CONFIG_ERROR
885 # error "wxUSE_SPLASH must be defined."
887 # define wxUSE_SPLASH 0
889 #endif /* !defined(wxUSE_SPLASH) */
891 #ifndef wxUSE_SPLITTER
892 # ifdef wxABORT_ON_CONFIG_ERROR
893 # error "wxUSE_SPLITTER must be defined."
895 # define wxUSE_SPLITTER 0
897 #endif /* !defined(wxUSE_SPLITTER) */
899 #ifndef wxUSE_STATBMP
900 # ifdef wxABORT_ON_CONFIG_ERROR
901 # error "wxUSE_STATBMP must be defined."
903 # define wxUSE_STATBMP 0
905 #endif /* !defined(wxUSE_STATBMP) */
907 #ifndef wxUSE_STATBOX
908 # ifdef wxABORT_ON_CONFIG_ERROR
909 # error "wxUSE_STATBOX must be defined."
911 # define wxUSE_STATBOX 0
913 #endif /* !defined(wxUSE_STATBOX) */
915 #ifndef wxUSE_STATLINE
916 # ifdef wxABORT_ON_CONFIG_ERROR
917 # error "wxUSE_STATLINE must be defined."
919 # define wxUSE_STATLINE 0
921 #endif /* !defined(wxUSE_STATLINE) */
923 #ifndef wxUSE_STATTEXT
924 # ifdef wxABORT_ON_CONFIG_ERROR
925 # error "wxUSE_STATTEXT must be defined."
927 # define wxUSE_STATTEXT 0
929 #endif /* !defined(wxUSE_STATTEXT) */
931 #ifndef wxUSE_STATUSBAR
932 # ifdef wxABORT_ON_CONFIG_ERROR
933 # error "wxUSE_STATUSBAR must be defined."
935 # define wxUSE_STATUSBAR 0
937 #endif /* !defined(wxUSE_STATUSBAR) */
939 #ifndef wxUSE_TAB_DIALOG
940 # ifdef wxABORT_ON_CONFIG_ERROR
941 # error "wxUSE_TAB_DIALOG must be defined."
943 # define wxUSE_TAB_DIALOG 0
945 #endif /* !defined(wxUSE_TAB_DIALOG) */
947 #ifndef wxUSE_TASKBARICON
948 # ifdef wxABORT_ON_CONFIG_ERROR
949 # error "wxUSE_TASKBARICON must be defined."
951 # define wxUSE_TASKBARICON 0
953 #endif /* !defined(wxUSE_TASKBARICON) */
955 #ifndef wxUSE_TEXTCTRL
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxUSE_TEXTCTRL must be defined."
959 # define wxUSE_TEXTCTRL 0
961 #endif /* !defined(wxUSE_TEXTCTRL) */
963 #ifndef wxUSE_TIPWINDOW
964 # ifdef wxABORT_ON_CONFIG_ERROR
965 # error "wxUSE_TIPWINDOW must be defined."
967 # define wxUSE_TIPWINDOW 0
969 #endif /* !defined(wxUSE_TIPWINDOW) */
971 #ifndef wxUSE_TOOLBAR
972 # ifdef wxABORT_ON_CONFIG_ERROR
973 # error "wxUSE_TOOLBAR must be defined."
975 # define wxUSE_TOOLBAR 0
977 #endif /* !defined(wxUSE_TOOLBAR) */
979 #ifndef wxUSE_TOOLTIPS
980 # ifdef wxABORT_ON_CONFIG_ERROR
981 # error "wxUSE_TOOLTIPS must be defined."
983 # define wxUSE_TOOLTIPS 0
985 #endif /* !defined(wxUSE_TOOLTIPS) */
987 #ifndef wxUSE_TREECTRL
988 # ifdef wxABORT_ON_CONFIG_ERROR
989 # error "wxUSE_TREECTRL must be defined."
991 # define wxUSE_TREECTRL 0
993 #endif /* !defined(wxUSE_TREECTRL) */
995 #ifndef wxUSE_VALIDATORS
996 # ifdef wxABORT_ON_CONFIG_ERROR
997 # error "wxUSE_VALIDATORS must be defined."
999 # define wxUSE_VALIDATORS 0
1001 #endif /* !defined(wxUSE_VALIDATORS) */
1003 #ifndef wxUSE_WXHTML_HELP
1004 # ifdef wxABORT_ON_CONFIG_ERROR
1005 # error "wxUSE_WXHTML_HELP must be defined."
1007 # define wxUSE_WXHTML_HELP 0
1009 #endif /* !defined(wxUSE_WXHTML_HELP) */
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxUSE_XRC must be defined."
1015 # define wxUSE_XRC 0
1017 #endif /* !defined(wxUSE_XRC) */
1019 #endif /* wxUSE_GUI */
1022 Section 2: platform-specific checks.
1024 This must be done after checking that everything is defined as the platform
1025 checks use wxUSE_XXX symbols in #if tests.
1028 #if defined(__WXPALMOS__)
1029 # include "wx/palmos/chkconf.h"
1030 #elif defined(__WXWINCE__)
1031 # include "wx/msw/wince/chkconf.h"
1032 #elif defined(__WXMSW__)
1033 # include "wx/msw/chkconf.h"
1034 #elif defined(__WXGTK__)
1035 # include "wx/gtk/chkconf.h"
1036 #elif defined(__WXCOCOA__)
1037 # include "wx/cocoa/chkconf.h"
1038 #elif defined(__WXMAC__)
1039 # include "wx/osx/chkconf.h"
1040 #elif defined(__OS2__)
1041 # include "wx/os2/chkconf.h"
1042 #elif defined(__WXMGL__)
1043 # include "wx/mgl/chkconf.h"
1044 #elif defined(__WXDFB__)
1045 # include "wx/dfb/chkconf.h"
1046 #elif defined(__WXMOTIF__)
1047 # include "wx/motif/chkconf.h"
1048 #elif defined(__WXX11__)
1049 # include "wx/x11/chkconf.h"
1053 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1054 there if we're building wxMSW.
1056 #if defined(__UNIX__) && !defined(__WXMSW__)
1057 # include "wx/unix/chkconf.h"
1060 #ifdef __WXUNIVERSAL__
1061 # include "wx/univ/chkconf.h"
1065 Section 3a: check consistency of the non-GUI settings.
1068 #if WXWIN_COMPATIBILITY_2_6
1069 # if !WXWIN_COMPATIBILITY_2_8
1070 # ifdef wxABORT_ON_CONFIG_ERROR
1071 # error "2.6.X compatibility requires 2.8.X compatibility"
1073 # undef WXWIN_COMPATIBILITY_2_8
1074 # define WXWIN_COMPATIBILITY_2_8 1
1077 #endif /* WXWIN_COMPATIBILITY_2_6 */
1079 #if wxUSE_ARCHIVE_STREAMS
1080 # if !wxUSE_DATETIME
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxArchive requires wxUSE_DATETIME"
1084 # undef wxUSE_ARCHIVE_STREAMS
1085 # define wxUSE_ARCHIVE_STREAMS 0
1088 #endif /* wxUSE_ARCHIVE_STREAMS */
1090 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1091 # if !wxUSE_PROTOCOL
1092 # ifdef wxABORT_ON_CONFIG_ERROR
1093 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1095 # undef wxUSE_PROTOCOL
1096 # define wxUSE_PROTOCOL 1
1099 #endif /* wxUSE_PROTOCOL_XXX */
1102 # if !wxUSE_PROTOCOL
1103 # ifdef wxABORT_ON_CONFIG_ERROR
1104 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1106 # undef wxUSE_PROTOCOL
1107 # define wxUSE_PROTOCOL 1
1110 #endif /* wxUSE_URL */
1114 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1115 # ifdef wxABORT_ON_CONFIG_ERROR
1116 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1118 # undef wxUSE_SOCKETS
1119 # define wxUSE_SOCKETS 1
1125 # ifdef wxABORT_ON_CONFIG_ERROR
1126 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1128 # undef wxUSE_STREAMS
1129 # define wxUSE_STREAMS 1
1132 #endif /* wxUSE_PROTOCOL */
1134 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1136 # if !wxUSE_FILESYSTEM
1137 # ifdef wxABORT_ON_CONFIG_ERROR
1138 # error "wxHTML requires wxFileSystem"
1140 # undef wxUSE_FILESYSTEM
1141 # define wxUSE_FILESYSTEM 1
1144 #endif /* wxUSE_HTML */
1146 #if wxUSE_FS_ARCHIVE
1147 # if !wxUSE_FILESYSTEM
1148 # ifdef wxABORT_ON_CONFIG_ERROR
1149 # error "wxArchiveFSHandler requires wxFileSystem"
1151 # undef wxUSE_FILESYSTEM
1152 # define wxUSE_FILESYSTEM 1
1155 # if !wxUSE_ARCHIVE_STREAMS
1156 # ifdef wxABORT_ON_CONFIG_ERROR
1157 # error "wxArchiveFSHandler requires wxArchive"
1159 # undef wxUSE_ARCHIVE_STREAMS
1160 # define wxUSE_ARCHIVE_STREAMS 1
1163 #endif /* wxUSE_FS_ARCHIVE */
1165 #if wxUSE_FILESYSTEM
1167 # ifdef wxABORT_ON_CONFIG_ERROR
1168 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1170 # undef wxUSE_STREAMS
1171 # define wxUSE_STREAMS 1
1174 # if !wxUSE_FILE && !wxUSE_FFILE
1175 # ifdef wxABORT_ON_CONFIG_ERROR
1176 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1179 # define wxUSE_FILE 1
1181 # define wxUSE_FFILE 1
1184 #endif /* wxUSE_FILESYSTEM */
1187 # if !wxUSE_PROTOCOL
1188 # ifdef wxABORT_ON_CONFIG_ERROR
1189 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1191 # undef wxUSE_PROTOCOL
1192 # define wxUSE_PROTOCOL 1
1195 #endif /* wxUSE_FS_INET */
1197 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1198 # if !wxUSE_LONGLONG
1199 # ifdef wxABORT_ON_CONFIG_ERROR
1200 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1202 # undef wxUSE_LONGLONG
1203 # define wxUSE_LONGLONG 1
1206 #endif /* wxUSE_STOPWATCH */
1208 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1209 # ifdef wxABORT_ON_CONFIG_ERROR
1210 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1212 # undef wxUSE_TEXTFILE
1213 # define wxUSE_TEXTFILE 1
1215 #endif /* wxUSE_MIMETYPE */
1217 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1218 # ifdef wxABORT_ON_CONFIG_ERROR
1219 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1221 # undef wxUSE_TEXTBUFFER
1222 # define wxUSE_TEXTBUFFER 1
1224 #endif /* wxUSE_TEXTFILE */
1226 #if wxUSE_TEXTFILE && !wxUSE_FILE
1227 # ifdef wxABORT_ON_CONFIG_ERROR
1228 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1231 # define wxUSE_FILE 1
1233 #endif /* wxUSE_TEXTFILE */
1235 #if wxUSE_XML && !wxUSE_WCHAR_T
1236 # ifdef wxABORT_ON_CONFIG_ERROR
1237 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1240 # define wxUSE_XML 0
1242 #endif /* wxUSE_XML */
1244 #if !wxUSE_DYNLIB_CLASS
1245 # if wxUSE_DYNAMIC_LOADER
1246 # ifdef wxABORT_ON_CONFIG_ERROR
1247 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1249 # define wxUSE_DYNLIB_CLASS 1
1252 #endif /* wxUSE_DYNLIB_CLASS */
1256 # ifdef wxABORT_ON_CONFIG_ERROR
1257 # error "wxZip requires wxZlib"
1260 # define wxUSE_ZLIB 1
1263 # if !wxUSE_ARCHIVE_STREAMS
1264 # ifdef wxABORT_ON_CONFIG_ERROR
1265 # error "wxZip requires wxArchive"
1267 # undef wxUSE_ARCHIVE_STREAMS
1268 # define wxUSE_ARCHIVE_STREAMS 1
1271 #endif /* wxUSE_ZIPSTREAM */
1274 # if !wxUSE_ARCHIVE_STREAMS
1275 # ifdef wxABORT_ON_CONFIG_ERROR
1276 # error "wxTar requires wxArchive"
1278 # undef wxUSE_ARCHIVE_STREAMS
1279 # define wxUSE_ARCHIVE_STREAMS 1
1282 #endif /* wxUSE_TARSTREAM */
1285 Section 3b: the tests for the GUI settings only.
1289 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1290 # ifdef wxABORT_ON_CONFIG_ERROR
1291 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1293 # undef wxUSE_ACCESSIBILITY
1294 # define wxUSE_ACCESSIBILITY 0
1296 #endif /* wxUSE_ACCESSIBILITY */
1298 #if wxUSE_BUTTON || \
1299 wxUSE_CALENDARCTRL || \
1302 wxUSE_BMPBUTTON || \
1304 wxUSE_CHECKLISTBOX || \
1313 wxUSE_SCROLLBAR || \
1321 wxUSE_STATUSBAR || \
1325 # if !wxUSE_CONTROLS
1326 # ifdef wxABORT_ON_CONFIG_ERROR
1327 # error "wxUSE_CONTROLS unset but some controls used"
1329 # undef wxUSE_CONTROLS
1330 # define wxUSE_CONTROLS 1
1333 #endif /* controls */
1337 # ifdef wxABORT_ON_CONFIG_ERROR
1338 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1340 # undef wxUSE_BUTTON
1341 # define wxUSE_BUTTON 1
1344 #endif /* wxUSE_BMPBUTTON */
1347 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1350 #ifdef wxUSE_BOOKCTRL
1351 # ifdef wxABORT_ON_CONFIG_ERROR
1352 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1354 # undef wxUSE_BOOKCTRL
1358 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1360 wxUSE_CHOICEBOOK || \
1365 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1366 # ifdef wxABORT_ON_CONFIG_ERROR
1367 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1369 # undef wxUSE_COLLPANE
1370 # define wxUSE_COLLPANE 0
1373 #endif /* wxUSE_COLLPANE */
1376 # if !wxUSE_LISTCTRL
1377 # ifdef wxABORT_ON_CONFIG_ERROR
1378 # error "wxListbook requires wxListCtrl"
1380 # undef wxUSE_LISTCTRL
1381 # define wxUSE_LISTCTRL 1
1384 #endif /* wxUSE_LISTBOOK */
1386 #if wxUSE_CHOICEBOOK
1388 # ifdef wxABORT_ON_CONFIG_ERROR
1389 # error "wxChoicebook requires wxChoice"
1391 # undef wxUSE_CHOICE
1392 # define wxUSE_CHOICE 1
1395 #endif /* wxUSE_CHOICEBOOK */
1399 # ifdef wxABORT_ON_CONFIG_ERROR
1400 # error "wxToolbook requires wxToolBar"
1402 # undef wxUSE_TOOLBAR
1403 # define wxUSE_TOOLBAR 1
1406 #endif /* wxUSE_TOOLBOOK */
1408 #if !wxUSE_ODCOMBOBOX
1409 # if wxUSE_BITMAPCOMBOBOX
1410 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1412 # undef wxUSE_BITMAPCOMBOBOX
1413 # define wxUSE_BITMAPCOMBOBOX 0
1415 #endif /* !wxUSE_ODCOMBOBOX */
1417 /* don't attempt to use native status bar on the platforms not having it */
1418 #ifndef wxUSE_NATIVE_STATUSBAR
1419 # define wxUSE_NATIVE_STATUSBAR 0
1420 #elif wxUSE_NATIVE_STATUSBAR
1421 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1422 defined(__WXMAC__) || \
1423 defined(__WXPALMOS__) )
1424 # undef wxUSE_NATIVE_STATUSBAR
1425 # define wxUSE_NATIVE_STATUSBAR 0
1429 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1430 # ifdef wxABORT_ON_CONFIG_ERROR
1431 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1433 # undef wxUSE_GRAPHICS_CONTEXT
1434 # define wxUSE_GRAPHICS_CONTEXT 0
1436 #endif /* wxUSE_GRAPHICS_CONTEXT */
1439 /* generic controls dependencies */
1440 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1441 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1442 /* all common controls are needed by these dialogs */
1443 # if !defined(wxUSE_CHOICE) || \
1444 !defined(wxUSE_TEXTCTRL) || \
1445 !defined(wxUSE_BUTTON) || \
1446 !defined(wxUSE_CHECKBOX) || \
1447 !defined(wxUSE_STATTEXT)
1448 # ifdef wxABORT_ON_CONFIG_ERROR
1449 # error "These common controls are needed by common dialogs"
1451 # undef wxUSE_CHOICE
1452 # define wxUSE_CHOICE 1
1453 # undef wxUSE_TEXTCTRL
1454 # define wxUSE_TEXTCTRL 1
1455 # undef wxUSE_BUTTON
1456 # define wxUSE_BUTTON 1
1457 # undef wxUSE_CHECKBOX
1458 # define wxUSE_CHECKBOX 1
1459 # undef wxUSE_STATTEXT
1460 # define wxUSE_STATTEXT 1
1464 #endif /* !wxMSW || wxUniv */
1466 /* generic file dialog depends on (generic) file control */
1467 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1468 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "Generic wxFileDialog requires wxFileCtrl"
1472 # undef wxUSE_FILECTRL
1473 # define wxUSE_FILECTRL 1
1475 #endif /* wxUSE_FILEDLG */
1477 /* common dependencies */
1478 #if wxUSE_CALENDARCTRL
1479 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1480 # ifdef wxABORT_ON_CONFIG_ERROR
1481 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1483 # undef wxUSE_SPINBTN
1484 # undef wxUSE_COMBOBOX
1485 # define wxUSE_SPINBTN 1
1486 # define wxUSE_COMBOBOX 1
1490 # if !wxUSE_DATETIME
1491 # ifdef wxABORT_ON_CONFIG_ERROR
1492 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1494 # undef wxUSE_DATETIME
1495 # define wxUSE_DATETIME 1
1498 #endif /* wxUSE_CALENDARCTRL */
1500 #if wxUSE_DATEPICKCTRL
1501 # if !wxUSE_DATETIME
1502 # ifdef wxABORT_ON_CONFIG_ERROR
1503 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1505 # undef wxUSE_DATETIME
1506 # define wxUSE_DATETIME 1
1509 #endif /* wxUSE_DATEPICKCTRL */
1511 #if wxUSE_CHECKLISTBOX
1513 # ifdef wxABORT_ON_CONFIG_ERROR
1514 # error "wxCheckListBox requires wxListBox"
1516 # undef wxUSE_LISTBOX
1517 # define wxUSE_LISTBOX 1
1520 #endif /* wxUSE_CHECKLISTBOX */
1524 # ifdef wxABORT_ON_CONFIG_ERROR
1525 # error "Choice dialogs requires wxListBox"
1527 # undef wxUSE_LISTBOX
1528 # define wxUSE_LISTBOX 1
1531 #endif /* wxUSE_CHOICEDLG */
1534 # if !wxUSE_BMPBUTTON
1535 # ifdef wxABORT_ON_CONFIG_ERROR
1536 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1538 # undef wxUSE_BMPBUTTON
1539 # define wxUSE_BMPBUTTON 1
1543 # if !wxUSE_CHOICEDLG
1544 # ifdef wxABORT_ON_CONFIG_ERROR
1545 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1547 # undef wxUSE_CHOICEDLG
1548 # define wxUSE_CHOICEDLG 1
1551 #endif /* wxUSE_HELP */
1553 #if wxUSE_MS_HTML_HELP
1555 this doesn't make sense for platforms other than MSW but we still
1556 define it in wx/setup_inc.h so don't complain if it happens to be
1557 defined under another platform but just silently fix it.
1560 # undef wxUSE_MS_HTML_HELP
1561 # define wxUSE_MS_HTML_HELP 0
1563 #endif /* wxUSE_MS_HTML_HELP */
1565 #if wxUSE_WXHTML_HELP
1566 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1567 # ifdef wxABORT_ON_CONFIG_ERROR
1568 # error "Built in help controller can't be compiled"
1571 # define wxUSE_HELP 1
1573 # define wxUSE_HTML 1
1574 # undef wxUSE_COMBOBOX
1575 # define wxUSE_COMBOBOX 1
1576 # undef wxUSE_NOTEBOOK
1577 # define wxUSE_NOTEBOOK 1
1578 # undef wxUSE_SPINCTRL
1579 # define wxUSE_SPINCTRL 1
1582 #endif /* wxUSE_WXHTML_HELP */
1586 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1587 user explicitly wants this and disable all other features that require
1590 # if wxUSE_DRAGIMAGE
1591 # ifdef wxABORT_ON_CONFIG_ERROR
1592 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1594 # undef wxUSE_DRAGIMAGE
1595 # define wxUSE_DRAGIMAGE 0
1600 # ifdef wxABORT_ON_CONFIG_ERROR
1601 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1603 # undef wxUSE_LIBPNG
1604 # define wxUSE_LIBPNG 0
1609 # ifdef wxABORT_ON_CONFIG_ERROR
1610 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1612 # undef wxUSE_LIBJPEG
1613 # define wxUSE_LIBJPEG 0
1618 # ifdef wxABORT_ON_CONFIG_ERROR
1619 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1621 # undef wxUSE_LIBTIFF
1622 # define wxUSE_LIBTIFF 0
1627 # ifdef wxABORT_ON_CONFIG_ERROR
1628 # error "wxUSE_GIF requires wxUSE_IMAGE"
1631 # define wxUSE_GIF 0
1636 # ifdef wxABORT_ON_CONFIG_ERROR
1637 # error "wxUSE_PNM requires wxUSE_IMAGE"
1640 # define wxUSE_PNM 0
1645 # ifdef wxABORT_ON_CONFIG_ERROR
1646 # error "wxUSE_PCX requires wxUSE_IMAGE"
1649 # define wxUSE_PCX 0
1654 # ifdef wxABORT_ON_CONFIG_ERROR
1655 # error "wxUSE_IFF requires wxUSE_IMAGE"
1658 # define wxUSE_IFF 0
1663 # ifdef wxABORT_ON_CONFIG_ERROR
1664 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1666 # undef wxUSE_TOOLBAR
1667 # define wxUSE_TOOLBAR 0
1672 # ifdef wxABORT_ON_CONFIG_ERROR
1673 # error "wxUSE_XPM requires wxUSE_IMAGE"
1676 # define wxUSE_XPM 0
1680 #endif /* !wxUSE_IMAGE */
1682 #if wxUSE_DOC_VIEW_ARCHITECTURE
1684 # ifdef wxABORT_ON_CONFIG_ERROR
1685 # error "DocView requires wxUSE_MENUS"
1688 # define wxUSE_MENUS 1
1692 # if !wxUSE_CHOICEDLG
1693 # ifdef wxABORT_ON_CONFIG_ERROR
1694 # error "DocView requires wxUSE_CHOICEDLG"
1696 # undef wxUSE_CHOICEDLG
1697 # define wxUSE_CHOICEDLG 1
1701 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1702 # ifdef wxABORT_ON_CONFIG_ERROR
1703 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1705 # undef wxUSE_STREAMS
1706 # define wxUSE_STREAMS 1
1709 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1711 #if wxUSE_PRINTING_ARCHITECTURE
1712 # if !wxUSE_COMBOBOX
1713 # ifdef wxABORT_ON_CONFIG_ERROR
1714 # error "Print dialog requires wxUSE_COMBOBOX"
1716 # undef wxUSE_COMBOBOX
1717 # define wxUSE_COMBOBOX 1
1720 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1722 #if wxUSE_MDI_ARCHITECTURE
1724 # ifdef wxABORT_ON_CONFIG_ERROR
1725 # error "MDI requires wxUSE_MDI"
1728 # define wxUSE_MDI 1
1732 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1733 # ifdef wxABORT_ON_CONFIG_ERROR
1734 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1736 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1737 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1740 #endif /* wxUSE_MDI_ARCHITECTURE */
1743 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1744 # ifdef wxABORT_ON_CONFIG_ERROR
1745 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1747 # undef wxUSE_FILEDLG
1748 # define wxUSE_FILEDLG 1
1751 #endif /* wxUSE_FILEDLG */
1753 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1754 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1755 # ifdef wxABORT_ON_CONFIG_ERROR
1756 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1759 # undef wxUSE_BUTTON
1760 # define wxUSE_GAUGE 1
1761 # define wxUSE_BUTTON 1
1764 #endif /* !wxUSE_GAUGE */
1767 # if wxUSE_FONTDLG || \
1769 wxUSE_CHOICEDLG || \
1770 wxUSE_NUMBERDLG || \
1773 wxUSE_STARTUP_TIPS || \
1775 # ifdef wxABORT_ON_CONFIG_ERROR
1776 # error "Common and generic dialogs require wxUSE_BUTTON"
1778 # undef wxUSE_BUTTON
1779 # define wxUSE_BUTTON 1
1782 #endif /* !wxUSE_BUTTON */
1785 # if wxUSE_TOOLBAR_NATIVE
1786 # ifdef wxABORT_ON_CONFIG_ERROR
1787 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1789 # undef wxUSE_TOOLBAR_NATIVE
1790 # define wxUSE_TOOLBAR_NATIVE 0
1796 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1797 # ifdef wxABORT_ON_CONFIG_ERROR
1798 # error "wxImageList must be compiled as well"
1800 # undef wxUSE_IMAGLIST
1801 # define wxUSE_IMAGLIST 1
1804 #endif /* !wxUSE_IMAGLIST */
1807 # if !wxUSE_RADIOBTN
1808 # ifdef wxABORT_ON_CONFIG_ERROR
1809 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1811 # undef wxUSE_RADIOBTN
1812 # define wxUSE_RADIOBTN 1
1815 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1816 # ifdef wxABORT_ON_CONFIG_ERROR
1817 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1819 # undef wxUSE_STATBOX
1820 # define wxUSE_STATBOX 1
1823 #endif /* wxUSE_RADIOBOX */
1826 # if !wxUSE_TEXTCTRL
1827 # ifdef wxABORT_ON_CONFIG_ERROR
1828 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1830 # undef wxUSE_TEXTCTRL
1831 # define wxUSE_TEXTCTRL 1
1834 #endif /* wxUSE_LOGWINDOW */
1836 #if wxUSE_LOG_DIALOG
1837 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1838 # ifdef wxABORT_ON_CONFIG_ERROR
1839 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1841 # undef wxUSE_LISTCTRL
1842 # define wxUSE_LISTCTRL 1
1843 # undef wxUSE_BUTTON
1844 # define wxUSE_BUTTON 1
1847 #endif /* wxUSE_LOG_DIALOG */
1849 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1850 # ifdef wxABORT_ON_CONFIG_ERROR
1851 # error "wxClipboard requires wxDataObject"
1853 # undef wxUSE_DATAOBJ
1854 # define wxUSE_DATAOBJ 1
1856 #endif /* wxUSE_CLIPBOARD */
1858 #if wxUSE_XRC && !wxUSE_XML
1859 # ifdef wxABORT_ON_CONFIG_ERROR
1860 # error "wxUSE_XRC requires wxUSE_XML"
1863 # define wxUSE_XRC 0
1865 #endif /* wxUSE_XRC */
1867 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1868 # ifdef wxABORT_ON_CONFIG_ERROR
1869 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1871 # undef wxUSE_SOCKETS
1872 # define wxUSE_SOCKETS 0
1874 #endif /* wxUSE_SOCKETS */
1876 #if wxUSE_SVG && !wxUSE_STREAMS
1877 # ifdef wxABORT_ON_CONFIG_ERROR
1878 # error "wxUSE_SVG requires wxUSE_STREAMS"
1881 # define wxUSE_SVG 0
1883 #endif /* wxUSE_SVG */
1885 #if wxUSE_SVG && !wxUSE_IMAGE
1886 # ifdef wxABORT_ON_CONFIG_ERROR
1887 # error "wxUSE_SVG requires wxUSE_IMAGE"
1890 # define wxUSE_SVG 0
1892 #endif /* wxUSE_SVG */
1894 #if wxUSE_SVG && !wxUSE_LIBPNG
1895 # ifdef wxABORT_ON_CONFIG_ERROR
1896 # error "wxUSE_SVG requires wxUSE_LIBPNG"
1899 # define wxUSE_SVG 0
1901 #endif /* wxUSE_SVG */
1904 # if wxUSE_DATAVIEWCTRL
1905 # ifdef wxABORT_ON_CONFIG_ERROR
1906 # error "wxDataViewCtrl requires wxVariant"
1908 # undef wxUSE_DATAVIEWCTRL
1909 # define wxUSE_DATAVIEWCTRL 0
1912 #endif /* wxUSE_VARIANT */
1914 #endif /* wxUSE_GUI */
1916 #endif /* _WX_CHKCONF_H_ */