]> git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
don't include statbox.h from the header, move wxStaticBoxSizer dtor to .cpp file...
[wxWidgets.git] / include / wx / chkconf.h
1 /*
2 * Name: wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
5 * Modified by:
6 * Created: 09.08.00
7 * RCS-ID: $Id$
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
10 */
11
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
14 /*
15 Platform-specific checking.
16 */
17
18 #if defined(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXWINCE__)
21 # include "wx/msw/wince/chkconf.h"
22 #elif defined(__WXMSW__)
23 # include "wx/msw/chkconf.h"
24 #elif defined(__WXMAC__)
25 # include "wx/mac/chkconf.h"
26 #elif defined(__OS2__)
27 # include "wx/os2/chkconf.h"
28 #elif defined(__WXMGL__)
29 # include "wx/mgl/chkconf.h"
30 #elif defined(__WXMOTIF__)
31 # include "wx/motif/chkconf.h"
32 #endif
33
34 /*
35 this global setting determines what should we do if the setting FOO
36 requires BAR and BAR is not set: we can either silently unset FOO as well
37 (do this if you're trying to build the smallest possible library) or give an
38 error and abort (default as leads to least surprizing behaviour)
39 */
40 #define wxABORT_ON_CONFIG_ERROR
41
42 /*
43 global features
44 */
45
46 /* GUI build by default */
47 #if !defined(wxUSE_GUI)
48 # define wxUSE_GUI 1
49 #endif /* !defined(wxUSE_GUI) */
50
51 /*
52 If we're compiling without support for threads/exceptions we have to
53 disable the corresponding features.
54 */
55 #ifdef wxNO_THREADS
56 # undef wxUSE_THREADS
57 # define wxUSE_THREADS 0
58 #endif /* wxNO_THREADS */
59
60 #ifdef wxNO_EXCEPTIONS
61 # undef wxUSE_EXCEPTIONS
62 # define wxUSE_EXCEPTIONS 0
63 #endif /* wxNO_EXCEPTIONS */
64
65 /* we also must disable exceptions if compiler doesn't support them */
66 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
67 # undef wxUSE_EXCEPTIONS
68 # define wxUSE_EXCEPTIONS 0
69 #endif /* VC++ without exceptions support */
70
71
72 /*
73 tests for non GUI features
74
75 please keep the options in alphabetical order!
76 */
77
78 #ifndef wxUSE_CRASHREPORT
79 /* this one is special: as currently it is Windows-only, don't force it
80 to be defined on other platforms */
81 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
82 # error "wxUSE_CRASHREPORT must be defined."
83 # else
84 # define wxUSE_CRASHREPORT 0
85 # endif
86 #endif /* !defined(wxUSE_CRASHREPORT) */
87
88 #ifndef wxUSE_DYNLIB_CLASS
89 # ifdef wxABORT_ON_CONFIG_ERROR
90 # error "wxUSE_DYNLIB_CLASS must be defined."
91 # else
92 # define wxUSE_DYNLIB_CLASS 0
93 # endif
94 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
95
96 #ifndef wxUSE_EXCEPTIONS
97 # ifdef wxABORT_ON_CONFIG_ERROR
98 # error "wxUSE_EXCEPTIONS must be defined."
99 # else
100 # define wxUSE_EXCEPTIONS 0
101 # endif
102 #endif /* !defined(wxUSE_EXCEPTIONS) */
103
104 #ifndef wxUSE_FILESYSTEM
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_FILESYSTEM must be defined."
107 # else
108 # define wxUSE_FILESYSTEM 0
109 # endif
110 #endif /* !defined(wxUSE_FILESYSTEM) */
111
112 /* don't give an error about this one yet, it's not fully implemented */
113 #ifndef wxUSE_FSVOLUME
114 # define wxUSE_FSVOLUME 0
115 #endif /* !defined(wxUSE_FSVOLUME) */
116
117 #ifndef wxUSE_DYNAMIC_LOADER
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "wxUSE_DYNAMIC_LOADER must be defined."
120 # else
121 # define wxUSE_DYNAMIC_LOADER 0
122 # endif
123 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
124
125 #ifndef wxUSE_LOG
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_LOG must be defined."
128 # else
129 # define wxUSE_LOG 0
130 # endif
131 #endif /* !defined(wxUSE_LOG) */
132
133 #ifndef wxUSE_LONGLONG
134 # ifdef wxABORT_ON_CONFIG_ERROR
135 # error "wxUSE_LONGLONG must be defined."
136 # else
137 # define wxUSE_LONGLONG 0
138 # endif
139 #endif /* !defined(wxUSE_LONGLONG) */
140
141 #ifndef wxUSE_MIMETYPE
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_MIMETYPE must be defined."
144 # else
145 # define wxUSE_MIMETYPE 0
146 # endif
147 #endif /* !defined(wxUSE_MIMETYPE) */
148
149 #ifndef wxUSE_ON_FATAL_EXCEPTION
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
152 # else
153 # define wxUSE_ON_FATAL_EXCEPTION 0
154 # endif
155 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
156
157 #ifndef wxUSE_PRINTF_POS_PARAMS
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
160 # else
161 # define wxUSE_PRINTF_POS_PARAMS 0
162 # endif
163 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
164
165 #ifndef wxUSE_PROTOCOL
166 # ifdef wxABORT_ON_CONFIG_ERROR
167 # error "wxUSE_PROTOCOL must be defined."
168 # else
169 # define wxUSE_PROTOCOL 0
170 # endif
171 #endif /* !defined(wxUSE_PROTOCOL) */
172
173 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
174 #if !wxUSE_PROTOCOL
175 # undef wxUSE_PROTOCOL_HTTP
176 # undef wxUSE_PROTOCOL_FTP
177 # undef wxUSE_PROTOCOL_FILE
178 # define wxUSE_PROTOCOL_HTTP 0
179 # define wxUSE_PROTOCOL_FTP 0
180 # define wxUSE_PROTOCOL_FILE 0
181 #endif /* wxUSE_PROTOCOL */
182
183 #ifndef wxUSE_PROTOCOL_HTTP
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_PROTOCOL_HTTP must be defined."
186 # else
187 # define wxUSE_PROTOCOL_HTTP 0
188 # endif
189 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
190
191 #ifndef wxUSE_PROTOCOL_FTP
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_PROTOCOL_FTP must be defined."
194 # else
195 # define wxUSE_PROTOCOL_FTP 0
196 # endif
197 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
198
199 #ifndef wxUSE_PROTOCOL_FILE
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_PROTOCOL_FILE must be defined."
202 # else
203 # define wxUSE_PROTOCOL_FILE 0
204 # endif
205 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
206
207 #ifndef wxUSE_REGEX
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_REGEX must be defined."
210 # else
211 # define wxUSE_REGEX 0
212 # endif
213 #endif /* !defined(wxUSE_REGEX) */
214
215 #ifndef wxUSE_STDPATHS
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_STDPATHS must be defined."
218 # else
219 # define wxUSE_STDPATHS 1
220 # endif
221 #endif /* !defined(wxUSE_STDPATHS) */
222
223 #ifndef wxUSE_XML
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_XML must be defined."
226 # else
227 # define wxUSE_XML 0
228 # endif
229 #endif /* !defined(wxUSE_XML) */
230
231 #ifndef wxUSE_SOCKETS
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_SOCKETS must be defined."
234 # else
235 # define wxUSE_SOCKETS 0
236 # endif
237 #endif /* !defined(wxUSE_SOCKETS) */
238
239 #ifndef wxUSE_STREAMS
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_STREAMS must be defined."
242 # else
243 # define wxUSE_STREAMS 0
244 # endif
245 #endif /* !defined(wxUSE_STREAMS) */
246
247 #ifndef wxUSE_STOPWATCH
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_STOPWATCH must be defined."
250 # else
251 # define wxUSE_STOPWATCH 0
252 # endif
253 #endif /* !defined(wxUSE_STOPWATCH) */
254
255 #ifndef wxUSE_TEXTBUFFER
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_TEXTBUFFER must be defined."
258 # else
259 # define wxUSE_TEXTBUFFER 0
260 # endif
261 #endif /* !defined(wxUSE_TEXTBUFFER) */
262
263 #ifndef wxUSE_TEXTFILE
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_TEXTFILE must be defined."
266 # else
267 # define wxUSE_TEXTFILE 0
268 # endif
269 #endif /* !defined(wxUSE_TEXTFILE) */
270
271 #ifndef wxUSE_UNICODE
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_UNICODE must be defined."
274 # else
275 # define wxUSE_UNICODE 0
276 # endif
277 #endif /* !defined(wxUSE_UNICODE) */
278
279 #ifndef wxUSE_URL
280 # ifdef wxABORT_ON_CONFIG_ERROR
281 # error "wxUSE_URL must be defined."
282 # else
283 # define wxUSE_URL 0
284 # endif
285 #endif /* !defined(wxUSE_URL) */
286
287 /*
288 all these tests are for GUI only
289
290 please keep the options in alphabetical order!
291 */
292 #if wxUSE_GUI
293
294 /*
295 all of the settings tested below must be defined or we'd get an error from
296 preprocessor about invalid integer expression
297 */
298
299 #ifndef wxUSE_ACCEL
300 # ifdef wxABORT_ON_CONFIG_ERROR
301 # error "wxUSE_ACCEL must be defined."
302 # else
303 # define wxUSE_ACCEL 0
304 # endif
305 #endif /* !defined(wxUSE_ACCEL) */
306
307 #ifndef wxUSE_BMPBUTTON
308 # ifdef wxABORT_ON_CONFIG_ERROR
309 # error "wxUSE_BMPBUTTON must be defined."
310 # else
311 # define wxUSE_BMPBUTTON 0
312 # endif
313 #endif /* !defined(wxUSE_BMPBUTTON) */
314
315 #ifndef wxUSE_BUTTON
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_BUTTON must be defined."
318 # else
319 # define wxUSE_BUTTON 0
320 # endif
321 #endif /* !defined(wxUSE_BUTTON) */
322
323 #ifndef wxUSE_CALENDARCTRL
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_CALENDARCTRL must be defined."
326 # else
327 # define wxUSE_CALENDARCTRL 0
328 # endif
329 #endif /* !defined(wxUSE_CALENDARCTRL) */
330
331 #ifndef wxUSE_CARET
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_CARET must be defined."
334 # else
335 # define wxUSE_CARET 0
336 # endif
337 #endif /* !defined(wxUSE_CARET) */
338
339 #ifndef wxUSE_CHECKBOX
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_CHECKBOX must be defined."
342 # else
343 # define wxUSE_CHECKBOX 0
344 # endif
345 #endif /* !defined(wxUSE_CHECKBOX) */
346
347 #ifndef wxUSE_CHECKLISTBOX
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_CHECKLISTBOX must be defined."
350 # else
351 # define wxUSE_CHECKLISTBOX 0
352 # endif
353 #endif /* !defined(wxUSE_CHECKLISTBOX) */
354
355 #ifndef wxUSE_CHOICE
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_CHOICE must be defined."
358 # else
359 # define wxUSE_CHOICE 0
360 # endif
361 #endif /* !defined(wxUSE_CHOICE) */
362
363 #ifndef wxUSE_CHOICEBOOK
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_CHOICEBOOK must be defined."
366 # else
367 # define wxUSE_CHOICEBOOK 0
368 # endif
369 #endif /* !defined(wxUSE_CHOICEBOOK) */
370
371 #ifndef wxUSE_CHOICEDLG
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_CHOICEDLG must be defined."
374 # else
375 # define wxUSE_CHOICEDLG 0
376 # endif
377 #endif /* !defined(wxUSE_CHOICEDLG) */
378
379 #ifndef wxUSE_CLIPBOARD
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_CLIPBOARD must be defined."
382 # else
383 # define wxUSE_CLIPBOARD 0
384 # endif
385 #endif /* !defined(wxUSE_CLIPBOARD) */
386
387 #ifndef wxUSE_COLOURDLG
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_COLOURDLG must be defined."
390 # else
391 # define wxUSE_COLOURDLG 0
392 # endif
393 #endif /* !defined(wxUSE_COLOURDLG) */
394
395 #ifndef wxUSE_COMBOBOX
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_COMBOBOX must be defined."
398 # else
399 # define wxUSE_COMBOBOX 0
400 # endif
401 #endif /* !defined(wxUSE_COMBOBOX) */
402
403 #ifndef wxUSE_COMBOCTRL
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_COMBOCTRL must be defined."
406 # else
407 # define wxUSE_COMBOCTRL 0
408 # endif
409 #endif /* !defined(wxUSE_COMBOCTRL) */
410
411 #ifndef wxUSE_DATAOBJ
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_DATAOBJ must be defined."
414 # else
415 # define wxUSE_DATAOBJ 0
416 # endif
417 #endif /* !defined(wxUSE_DATAOBJ) */
418
419 #ifndef wxUSE_DATAVIEWCTRL
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_DATAVIEWCTRL must be defined."
422 # else
423 # define wxUSE_DATAVIEWCTRL 0
424 # endif
425 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
426
427 #ifndef wxUSE_DATEPICKCTRL
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_DATEPICKCTRL must be defined."
430 # else
431 # define wxUSE_DATEPICKCTRL 0
432 # endif
433 #endif /* !defined(wxUSE_DATEPICKCTRL) */
434
435 #ifndef wxUSE_DISPLAY
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_DISPLAY must be defined."
438 # else
439 # define wxUSE_DISPLAY 0
440 # endif
441 #endif /* !defined(wxUSE_DISPLAY) */
442
443 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
446 # else
447 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
448 # endif
449 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
450
451 #ifndef wxUSE_FILEDLG
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_FILEDLG must be defined."
454 # else
455 # define wxUSE_FILEDLG 0
456 # endif
457 #endif /* !defined(wxUSE_FILEDLG) */
458
459 #ifndef wxUSE_FONTDLG
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_FONTDLG must be defined."
462 # else
463 # define wxUSE_FONTDLG 0
464 # endif
465 #endif /* !defined(wxUSE_FONTDLG) */
466
467 #ifndef wxUSE_FONTMAP
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_FONTMAP must be defined."
470 # else
471 # define wxUSE_FONTMAP 0
472 # endif
473 #endif /* !defined(wxUSE_FONTMAP) */
474
475 #ifndef wxUSE_GAUGE
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_GAUGE must be defined."
478 # else
479 # define wxUSE_GAUGE 0
480 # endif
481 #endif /* !defined(wxUSE_GAUGE) */
482
483 #ifndef wxUSE_GRID
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_GRID must be defined."
486 # else
487 # define wxUSE_GRID 0
488 # endif
489 #endif /* !defined(wxUSE_GRID) */
490
491 #ifndef wxUSE_HELP
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_HELP must be defined."
494 # else
495 # define wxUSE_HELP 0
496 # endif
497 #endif /* !defined(wxUSE_HELP) */
498
499 #ifndef wxUSE_HYPERLINKCTRL
500 # ifdef wxABORT_ON_CONFIG_ERROR
501 # error "wxUSE_HYPERLINKCTRL must be defined."
502 # else
503 # define wxUSE_HYPERLINKCTRL 0
504 # endif
505 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
506
507 #ifndef wxUSE_HTML
508 # ifdef wxABORT_ON_CONFIG_ERROR
509 # error "wxUSE_HTML must be defined."
510 # else
511 # define wxUSE_HTML 0
512 # endif
513 #endif /* !defined(wxUSE_HTML) */
514
515 #ifndef wxUSE_LIBMSPACK
516 # ifndef __UNIX__
517 /* set to 0 on platforms that don't have libmspack */
518 # define wxUSE_LIBMSPACK 0
519 # else
520 # ifdef wxABORT_ON_CONFIG_ERROR
521 # error "wxUSE_LIBMSPACK must be defined."
522 # else
523 # define wxUSE_LIBMSPACK 0
524 # endif
525 # endif
526 #endif /* !defined(wxUSE_LIBMSPACK) */
527
528 #ifndef wxUSE_ICO_CUR
529 # ifdef wxABORT_ON_CONFIG_ERROR
530 # error "wxUSE_ICO_CUR must be defined."
531 # else
532 # define wxUSE_ICO_CUR 0
533 # endif
534 #endif /* !defined(wxUSE_ICO_CUR) */
535
536 #ifndef wxUSE_IFF
537 # ifdef wxABORT_ON_CONFIG_ERROR
538 # error "wxUSE_IFF must be defined."
539 # else
540 # define wxUSE_IFF 0
541 # endif
542 #endif /* !defined(wxUSE_IFF) */
543
544 #ifndef wxUSE_IMAGLIST
545 # ifdef wxABORT_ON_CONFIG_ERROR
546 # error "wxUSE_IMAGLIST must be defined."
547 # else
548 # define wxUSE_IMAGLIST 0
549 # endif
550 #endif /* !defined(wxUSE_IMAGLIST) */
551
552 #ifndef wxUSE_JOYSTICK
553 # ifdef wxABORT_ON_CONFIG_ERROR
554 # error "wxUSE_JOYSTICK must be defined."
555 # else
556 # define wxUSE_JOYSTICK 0
557 # endif
558 #endif /* !defined(wxUSE_JOYSTICK) */
559
560 #ifndef wxUSE_LISTBOOK
561 # ifdef wxABORT_ON_CONFIG_ERROR
562 # error "wxUSE_LISTBOOK must be defined."
563 # else
564 # define wxUSE_LISTBOOK 0
565 # endif
566 #endif /* !defined(wxUSE_LISTBOOK) */
567
568 #ifndef wxUSE_LISTBOX
569 # ifdef wxABORT_ON_CONFIG_ERROR
570 # error "wxUSE_LISTBOX must be defined."
571 # else
572 # define wxUSE_LISTBOX 0
573 # endif
574 #endif /* !defined(wxUSE_LISTBOX) */
575
576 #ifndef wxUSE_LISTCTRL
577 # ifdef wxABORT_ON_CONFIG_ERROR
578 # error "wxUSE_LISTCTRL must be defined."
579 # else
580 # define wxUSE_LISTCTRL 0
581 # endif
582 #endif /* !defined(wxUSE_LISTCTRL) */
583
584 #ifndef wxUSE_LOGGUI
585 # ifdef wxABORT_ON_CONFIG_ERROR
586 # error "wxUSE_LOGGUI must be defined."
587 # else
588 # define wxUSE_LOGGUI 0
589 # endif
590 #endif /* !defined(wxUSE_LOGGUI) */
591
592 #ifndef wxUSE_LOGWINDOW
593 # ifdef wxABORT_ON_CONFIG_ERROR
594 # error "wxUSE_LOGWINDOW must be defined."
595 # else
596 # define wxUSE_LOGWINDOW 0
597 # endif
598 #endif /* !defined(wxUSE_LOGWINDOW) */
599
600 #ifndef wxUSE_LOG_DIALOG
601 # ifdef wxABORT_ON_CONFIG_ERROR
602 # error "wxUSE_LOG_DIALOG must be defined."
603 # else
604 # define wxUSE_LOG_DIALOG 0
605 # endif
606 #endif /* !defined(wxUSE_LOG_DIALOG) */
607
608 #ifndef wxUSE_MDI
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "wxUSE_MDI must be defined."
611 # else
612 # define wxUSE_MDI 0
613 # endif
614 #endif /* !defined(wxUSE_MDI) */
615
616 #ifndef wxUSE_MDI_ARCHITECTURE
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_MDI_ARCHITECTURE must be defined."
619 # else
620 # define wxUSE_MDI_ARCHITECTURE 0
621 # endif
622 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
623
624 #ifndef wxUSE_MENUS
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_MENUS must be defined."
627 # else
628 # define wxUSE_MENUS 0
629 # endif
630 #endif /* !defined(wxUSE_MENUS) */
631
632 #ifndef wxUSE_MSGDLG
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_MSGDLG must be defined."
635 # else
636 # define wxUSE_MSGDLG 0
637 # endif
638 #endif /* !defined(wxUSE_MSGDLG) */
639
640 #ifndef wxUSE_NOTEBOOK
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_NOTEBOOK must be defined."
643 # else
644 # define wxUSE_NOTEBOOK 0
645 # endif
646 #endif /* !defined(wxUSE_NOTEBOOK) */
647
648 #ifndef wxUSE_ODCOMBOBOX
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_ODCOMBOBOX must be defined."
651 # else
652 # define wxUSE_ODCOMBOBOX 0
653 # endif
654 #endif /* !defined(wxUSE_ODCOMBOBOX) */
655
656 #ifndef wxUSE_PALETTE
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_PALETTE must be defined."
659 # else
660 # define wxUSE_PALETTE 0
661 # endif
662 #endif /* !defined(wxUSE_PALETTE) */
663
664 #ifndef wxUSE_POPUPWIN
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_POPUPWIN must be defined."
667 # else
668 # define wxUSE_POPUPWIN 0
669 # endif
670 #endif /* !defined(wxUSE_POPUPWIN) */
671
672 #ifndef wxUSE_PRINTING_ARCHITECTURE
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
675 # else
676 # define wxUSE_PRINTING_ARCHITECTURE 0
677 # endif
678 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
679
680 #ifndef wxUSE_RADIOBOX
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_RADIOBOX must be defined."
683 # else
684 # define wxUSE_RADIOBOX 0
685 # endif
686 #endif /* !defined(wxUSE_RADIOBOX) */
687
688 #ifndef wxUSE_RADIOBTN
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_RADIOBTN must be defined."
691 # else
692 # define wxUSE_RADIOBTN 0
693 # endif
694 #endif /* !defined(wxUSE_RADIOBTN) */
695
696 #ifndef wxUSE_SASH
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_SASH must be defined."
699 # else
700 # define wxUSE_SASH 0
701 # endif
702 #endif /* !defined(wxUSE_SASH) */
703
704 #ifndef wxUSE_SCROLLBAR
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_SCROLLBAR must be defined."
707 # else
708 # define wxUSE_SCROLLBAR 0
709 # endif
710 #endif /* !defined(wxUSE_SCROLLBAR) */
711
712 #ifndef wxUSE_SLIDER
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_SLIDER must be defined."
715 # else
716 # define wxUSE_SLIDER 0
717 # endif
718 #endif /* !defined(wxUSE_SLIDER) */
719
720 #ifndef wxUSE_SOUND
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_SOUND must be defined."
723 # else
724 # define wxUSE_SOUND 0
725 # endif
726 #endif /* !defined(wxUSE_SOUND) */
727
728 #ifndef wxUSE_SPINBTN
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_SPINBTN must be defined."
731 # else
732 # define wxUSE_SPINBTN 0
733 # endif
734 #endif /* !defined(wxUSE_SPINBTN) */
735
736 #ifndef wxUSE_SPINCTRL
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_SPINCTRL must be defined."
739 # else
740 # define wxUSE_SPINCTRL 0
741 # endif
742 #endif /* !defined(wxUSE_SPINCTRL) */
743
744 #ifndef wxUSE_SPLASH
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_SPLASH must be defined."
747 # else
748 # define wxUSE_SPLASH 0
749 # endif
750 #endif /* !defined(wxUSE_SPLASH) */
751
752 #ifndef wxUSE_SPLITTER
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_SPLITTER must be defined."
755 # else
756 # define wxUSE_SPLITTER 0
757 # endif
758 #endif /* !defined(wxUSE_SPLITTER) */
759
760 #ifndef wxUSE_STATBMP
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_STATBMP must be defined."
763 # else
764 # define wxUSE_STATBMP 0
765 # endif
766 #endif /* !defined(wxUSE_STATBMP) */
767
768 #ifndef wxUSE_STATBOX
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_STATBOX must be defined."
771 # else
772 # define wxUSE_STATBOX 0
773 # endif
774 #endif /* !defined(wxUSE_STATBOX) */
775
776 #ifndef wxUSE_STATLINE
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_STATLINE must be defined."
779 # else
780 # define wxUSE_STATLINE 0
781 # endif
782 #endif /* !defined(wxUSE_STATLINE) */
783
784 #ifndef wxUSE_STATTEXT
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_STATTEXT must be defined."
787 # else
788 # define wxUSE_STATTEXT 0
789 # endif
790 #endif /* !defined(wxUSE_STATTEXT) */
791
792 #ifndef wxUSE_STATUSBAR
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_STATUSBAR must be defined."
795 # else
796 # define wxUSE_STATUSBAR 0
797 # endif
798 #endif /* !defined(wxUSE_STATUSBAR) */
799
800 #ifndef wxUSE_TAB_DIALOG
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_TAB_DIALOG must be defined."
803 # else
804 # define wxUSE_TAB_DIALOG 0
805 # endif
806 #endif /* !defined(wxUSE_TAB_DIALOG) */
807
808 #ifndef wxUSE_TEXTCTRL
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_TEXTCTRL must be defined."
811 # else
812 # define wxUSE_TEXTCTRL 0
813 # endif
814 #endif /* !defined(wxUSE_TEXTCTRL) */
815
816 #ifndef wxUSE_TIPWINDOW
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_TIPWINDOW must be defined."
819 # else
820 # define wxUSE_TIPWINDOW 0
821 # endif
822 #endif /* !defined(wxUSE_TIPWINDOW) */
823
824 #ifndef wxUSE_TOOLBAR
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_TOOLBAR must be defined."
827 # else
828 # define wxUSE_TOOLBAR 0
829 # endif
830 #endif /* !defined(wxUSE_TOOLBAR) */
831
832 #ifndef wxUSE_TOOLTIPS
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_TOOLTIPS must be defined."
835 # else
836 # define wxUSE_TOOLTIPS 0
837 # endif
838 #endif /* !defined(wxUSE_TOOLTIPS) */
839
840 #ifndef wxUSE_TREECTRL
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_TREECTRL must be defined."
843 # else
844 # define wxUSE_TREECTRL 0
845 # endif
846 #endif /* !defined(wxUSE_TREECTRL) */
847
848 #ifndef wxUSE_VALIDATORS
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_VALIDATORS must be defined."
851 # else
852 # define wxUSE_VALIDATORS 0
853 # endif
854 #endif /* !defined(wxUSE_VALIDATORS) */
855
856 #ifndef wxUSE_WXHTML_HELP
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_WXHTML_HELP must be defined."
859 # else
860 # define wxUSE_WXHTML_HELP 0
861 # endif
862 #endif /* !defined(wxUSE_WXHTML_HELP) */
863
864 #ifndef wxUSE_XRC
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_XRC must be defined."
867 # else
868 # define wxUSE_XRC 0
869 # endif
870 #endif /* !defined(wxUSE_XRC) */
871
872 #endif /* wxUSE_GUI */
873
874 /*
875 check consistency of the settings
876 */
877
878 #if WXWIN_COMPATIBILITY_2_4
879 # if !WXWIN_COMPATIBILITY_2_6
880 # ifdef wxABORT_ON_CONFIG_ERROR
881 # error "2.4.X compatibility requires 2.6.X compatibility"
882 # else
883 # undef WXWIN_COMPATIBILITY_2_6
884 # define WXWIN_COMPATIBILITY_2_6 1
885 # endif
886 # endif
887 #endif /* WXWIN_COMPATIBILITY_2_4 */
888
889 #if wxUSE_ARCHIVE_STREAMS
890 # if !wxUSE_DATETIME
891 # ifdef wxABORT_ON_CONFIG_ERROR
892 # error "wxArchive requires wxUSE_DATETIME"
893 # else
894 # undef wxUSE_ARCHIVE_STREAMS
895 # define wxUSE_ARCHIVE_STREAMS 0
896 # endif
897 # endif
898 #endif /* wxUSE_ARCHIVE_STREAMS */
899
900 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
903 # else
904 # undef wxUSE_CRASHREPORT
905 # define wxUSE_CRASHREPORT 0
906 # endif
907 #endif /* wxUSE_CRASHREPORT */
908
909 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
910 # if !wxUSE_PROTOCOL
911 # ifdef wxABORT_ON_CONFIG_ERROR
912 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
913 # else
914 # undef wxUSE_PROTOCOL
915 # define wxUSE_PROTOCOL 1
916 # endif
917 # endif
918 #endif /* wxUSE_PROTOCOL_XXX */
919
920 #if wxUSE_URL
921 # if !wxUSE_PROTOCOL
922 # ifdef wxABORT_ON_CONFIG_ERROR
923 # error "wxUSE_URL requires wxUSE_PROTOCOL"
924 # else
925 # undef wxUSE_PROTOCOL
926 # define wxUSE_PROTOCOL 1
927 # endif
928 # endif
929 #endif /* wxUSE_URL */
930
931 #if wxUSE_PROTOCOL
932 # if !wxUSE_SOCKETS
933 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
934 # ifdef wxABORT_ON_CONFIG_ERROR
935 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
936 # else
937 # undef wxUSE_SOCKETS
938 # define wxUSE_SOCKETS 1
939 # endif
940 # endif
941 # endif
942
943 # if !wxUSE_STREAMS
944 # ifdef wxABORT_ON_CONFIG_ERROR
945 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
946 # else
947 # undef wxUSE_STREAMS
948 # define wxUSE_STREAMS 1
949 # endif
950 # endif
951 #endif /* wxUSE_PROTOCOL */
952
953 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
954 #if wxUSE_HTML
955 # if !wxUSE_FILESYSTEM
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxHTML requires wxFileSystem"
958 # else
959 # undef wxUSE_FILESYSTEM
960 # define wxUSE_FILESYSTEM 1
961 # endif
962 # endif
963 #endif /* wxUSE_HTML */
964
965 #if wxUSE_FILESYSTEM
966 # if !wxUSE_STREAMS
967 # ifdef wxABORT_ON_CONFIG_ERROR
968 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
969 # else
970 # undef wxUSE_STREAMS
971 # define wxUSE_STREAMS 1
972 # endif
973 # endif
974 #endif /* wxUSE_FILESYSTEM */
975
976 #if wxUSE_FS_INET
977 # if !wxUSE_PROTOCOL
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
980 # else
981 # undef wxUSE_PROTOCOL
982 # define wxUSE_PROTOCOL 1
983 # endif
984 # endif
985 #endif /* wxUSE_FS_INET */
986
987 #if wxUSE_STOPWATCH || wxUSE_DATETIME
988 # if !wxUSE_LONGLONG
989 # ifdef wxABORT_ON_CONFIG_ERROR
990 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
991 # else
992 # undef wxUSE_LONGLONG
993 # define wxUSE_LONGLONG 1
994 # endif
995 # endif
996 #endif /* wxUSE_STOPWATCH */
997
998 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
999 # ifdef wxABORT_ON_CONFIG_ERROR
1000 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1001 # else
1002 # undef wxUSE_TEXTFILE
1003 # define wxUSE_TEXTFILE 1
1004 # endif
1005 #endif /* wxUSE_MIMETYPE */
1006
1007 #if wxUSE_ODBC
1008 # if !wxUSE_DATETIME
1009 # ifdef wxABORT_ON_CONFIG_ERROR
1010 # error "wxODBC requires wxUSE_DATETIME"
1011 # else
1012 # undef wxUSE_ODBC
1013 # define wxUSE_ODBC 0
1014 # endif
1015 # endif
1016 #endif /* wxUSE_ODBC */
1017
1018 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1019 # ifdef wxABORT_ON_CONFIG_ERROR
1020 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1021 # else
1022 # undef wxUSE_TEXTBUFFER
1023 # define wxUSE_TEXTBUFFER 1
1024 # endif
1025 #endif /* wxUSE_TEXTFILE */
1026
1027 #if wxUSE_TEXTFILE && !wxUSE_FILE
1028 # ifdef wxABORT_ON_CONFIG_ERROR
1029 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1030 # else
1031 # undef wxUSE_FILE
1032 # define wxUSE_FILE 1
1033 # endif
1034 #endif /* wxUSE_TEXTFILE */
1035
1036 #if wxUSE_XML && !wxUSE_WCHAR_T
1037 # ifdef wxABORT_ON_CONFIG_ERROR
1038 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1039 # else
1040 # undef wxUSE_XML
1041 # define wxUSE_XML 0
1042 # endif
1043 #endif /* wxUSE_XML */
1044
1045 #if !wxUSE_DYNLIB_CLASS
1046 # if wxUSE_DYNAMIC_LOADER
1047 # ifdef wxABORT_ON_CONFIG_ERROR
1048 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1049 # else
1050 # define wxUSE_DYNLIB_CLASS 1
1051 # endif
1052 # endif
1053 #endif /* wxUSE_DYNLIB_CLASS */
1054
1055 #if wxUSE_ZIPSTREAM
1056 # if !wxUSE_ZLIB
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxZip requires wxZlib"
1059 # else
1060 # undef wxUSE_ZLIB
1061 # define wxUSE_ZLIB 1
1062 # endif
1063 # endif
1064 # if !wxUSE_ARCHIVE_STREAMS
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxZip requires wxArchive"
1067 # else
1068 # undef wxUSE_ARCHIVE_STREAMS
1069 # define wxUSE_ARCHIVE_STREAMS 1
1070 # endif
1071 # endif
1072 #endif /* wxUSE_ZIPSTREAM */
1073
1074 /* the rest of the tests is for the GUI settings only */
1075 #if wxUSE_GUI
1076
1077 #if wxUSE_BUTTON || \
1078 wxUSE_CALENDARCTRL || \
1079 wxUSE_CARET || \
1080 wxUSE_COMBOBOX || \
1081 wxUSE_BMPBUTTON || \
1082 wxUSE_CHECKBOX || \
1083 wxUSE_CHECKLISTBOX || \
1084 wxUSE_CHOICE || \
1085 wxUSE_GAUGE || \
1086 wxUSE_GRID || \
1087 wxUSE_LISTBOX || \
1088 wxUSE_LISTCTRL || \
1089 wxUSE_NOTEBOOK || \
1090 wxUSE_RADIOBOX || \
1091 wxUSE_RADIOBTN || \
1092 wxUSE_SCROLLBAR || \
1093 wxUSE_SLIDER || \
1094 wxUSE_SPINBTN || \
1095 wxUSE_SPINCTRL || \
1096 wxUSE_STATBMP || \
1097 wxUSE_STATBOX || \
1098 wxUSE_STATLINE || \
1099 wxUSE_STATTEXT || \
1100 wxUSE_STATUSBAR || \
1101 wxUSE_TEXTCTRL || \
1102 wxUSE_TOOLBAR || \
1103 wxUSE_TREECTRL
1104 # if !wxUSE_CONTROLS
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_CONTROLS unset but some controls used"
1107 # else
1108 # undef wxUSE_CONTROLS
1109 # define wxUSE_CONTROLS 1
1110 # endif
1111 # endif
1112 #endif /* controls */
1113
1114 #if wxUSE_BMPBUTTON
1115 # if !wxUSE_BUTTON
1116 # ifdef wxABORT_ON_CONFIG_ERROR
1117 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1118 # else
1119 # undef wxUSE_BUTTON
1120 # define wxUSE_BUTTON 1
1121 # endif
1122 # endif
1123 #endif /* wxUSE_BMPBUTTON */
1124
1125 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1126 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1127 # ifdef wxABORT_ON_CONFIG_ERROR
1128 # error "wxUSE_BOOKCTRL must be set."
1129 # else
1130 # undef wxUSE_BOOKCTRL
1131 # endif
1132 # endif
1133
1134 # ifndef wxUSE_BOOKCTRL
1135 # define wxUSE_BOOKCTRL 1
1136 # endif
1137 #endif /* wxUSE_NOTEBOOK */
1138
1139 #if wxUSE_LISTBOOK
1140 # if !wxUSE_LISTCTRL
1141 # ifdef wxABORT_ON_CONFIG_ERROR
1142 # error "wxListbook requires wxListCtrl"
1143 # else
1144 # undef wxUSE_LISTCTRL
1145 # define wxUSE_LISTCTRL 1
1146 # endif
1147 # endif
1148 #endif /* wxUSE_LISTBOOK */
1149
1150 #if wxUSE_CHOICEBOOK
1151 # if !wxUSE_CHOICE
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "wxChoicebook requires wxChoice"
1154 # else
1155 # undef wxUSE_CHOICE
1156 # define wxUSE_CHOICE 1
1157 # endif
1158 # endif
1159 #endif /* wxUSE_CHOICEBOOK */
1160
1161 /* don't attempt to use native status bar on the platforms not having it */
1162 #ifndef wxUSE_NATIVE_STATUSBAR
1163 # define wxUSE_NATIVE_STATUSBAR 0
1164 #elif wxUSE_NATIVE_STATUSBAR
1165 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1166 defined(__WXMAC__) || \
1167 defined(__WXPALMOS__) )
1168 # undef wxUSE_NATIVE_STATUSBAR
1169 # define wxUSE_NATIVE_STATUSBAR 0
1170 # endif
1171 #endif
1172
1173 /* wxUniv-specific dependencies */
1174 #if defined(__WXUNIVERSAL__)
1175 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1176 # ifdef wxABORT_ON_CONFIG_ERROR
1177 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1178 # else
1179 # undef wxUSE_POPUPWIN
1180 # define wxUSE_POPUPWIN 1
1181 # endif
1182 # endif
1183
1184 # if wxUSE_COMBOBOX
1185 # if !wxUSE_LISTBOX
1186 # ifdef wxABORT_ON_CONFIG_ERROR
1187 # error "wxComboBox requires wxListBox in wxUniversal"
1188 # else
1189 # undef wxUSE_LISTBOX
1190 # define wxUSE_LISTBOX 1
1191 # endif
1192 # endif
1193 # endif /* wxUSE_COMBOBOX */
1194
1195 # if wxUSE_RADIOBTN
1196 # if !wxUSE_CHECKBOX
1197 # ifdef wxABORT_ON_CONFIG_ERROR
1198 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1199 # else
1200 # undef wxUSE_CHECKBOX
1201 # define wxUSE_CHECKBOX 1
1202 # endif
1203 # endif
1204 # endif /* wxUSE_RADIOBTN */
1205
1206 # if wxUSE_TEXTCTRL
1207 # if !wxUSE_CARET
1208 # ifdef wxABORT_ON_CONFIG_ERROR
1209 # error "wxTextCtrl requires wxCaret in wxUniversal"
1210 # else
1211 # undef wxUSE_CARET
1212 # define wxUSE_CARET 1
1213 # endif
1214 # endif /* wxUSE_CARET */
1215
1216 # if !wxUSE_SCROLLBAR
1217 # ifdef wxABORT_ON_CONFIG_ERROR
1218 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1219 # else
1220 # undef wxUSE_SCROLLBAR
1221 # define wxUSE_SCROLLBAR 1
1222 # endif
1223 # endif /* wxUSE_SCROLLBAR */
1224 # endif /* wxUSE_TEXTCTRL */
1225 #endif /* __WXUNIVERSAL__ */
1226
1227 /* wxGTK-specific dependencies */
1228 #ifdef __WXGTK__
1229 # ifndef __WXUNIVERSAL__
1230 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1231 # ifdef wxABORT_ON_CONFIG_ERROR
1232 # error "MDI requires wxUSE_MENUS in wxGTK"
1233 # else
1234 # undef wxUSE_MENUS
1235 # define wxUSE_MENUS 1
1236 # endif
1237 # endif
1238 # endif /* !__WXUNIVERSAL__ */
1239
1240 # if wxUSE_JOYSTICK
1241 # if !wxUSE_THREADS
1242 # ifdef wxABORT_ON_CONFIG_ERROR
1243 # error "wxJoystick requires threads in wxGTK"
1244 # else
1245 # undef wxUSE_JOYSTICK
1246 # define wxUSE_JOYSTICK 0
1247 # endif
1248 # endif
1249 # endif
1250 #endif /* wxGTK && !wxUniv */
1251
1252 /* wxMGL-specific dependencies */
1253 #ifdef __WXMGL__
1254 # if !wxUSE_PALETTE
1255 # error "wxMGL requires wxUSE_PALETTE=1"
1256 # endif
1257 #endif /* wxMGL */
1258
1259 /* Hopefully we can emulate these dialogs in due course */
1260 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1261 # ifdef wxUSE_COLOURDLG
1262 # undef wxUSE_COLOURDLG
1263 # define wxUSE_COLOURDLG 0
1264 # endif
1265 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1266
1267
1268 /* generic controls dependencies */
1269 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1270 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1271 /* all common controls are needed by these dialogs */
1272 # if !defined(wxUSE_CHOICE) || \
1273 !defined(wxUSE_TEXTCTRL) || \
1274 !defined(wxUSE_BUTTON) || \
1275 !defined(wxUSE_CHECKBOX) || \
1276 !defined(wxUSE_STATTEXT)
1277 # ifdef wxABORT_ON_CONFIG_ERROR
1278 # error "These common controls are needed by common dialogs"
1279 # else
1280 # undef wxUSE_CHOICE
1281 # define wxUSE_CHOICE 1
1282 # undef wxUSE_TEXTCTRL
1283 # define wxUSE_TEXTCTRL 1
1284 # undef wxUSE_BUTTON
1285 # define wxUSE_BUTTON 1
1286 # undef wxUSE_CHECKBOX
1287 # define wxUSE_CHECKBOX 1
1288 # undef wxUSE_STATTEXT
1289 # define wxUSE_STATTEXT 1
1290 # endif
1291 # endif
1292 # endif
1293 #endif /* !wxMSW || wxUniv */
1294
1295 /* common dependencies */
1296 #if wxUSE_CALENDARCTRL
1297 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1298 # ifdef wxABORT_ON_CONFIG_ERROR
1299 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1300 # else
1301 # undef wxUSE_SPINBTN
1302 # undef wxUSE_COMBOBOX
1303 # define wxUSE_SPINBTN 1
1304 # define wxUSE_COMBOBOX 1
1305 # endif
1306 # endif
1307
1308 # if !wxUSE_DATETIME
1309 # ifdef wxABORT_ON_CONFIG_ERROR
1310 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1311 # else
1312 # undef wxUSE_DATETIME
1313 # define wxUSE_DATETIME 1
1314 # endif
1315 # endif
1316 #endif /* wxUSE_CALENDARCTRL */
1317
1318 #if wxUSE_DATEPICKCTRL
1319 # if !wxUSE_DATETIME
1320 # ifdef wxABORT_ON_CONFIG_ERROR
1321 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1322 # else
1323 # undef wxUSE_DATETIME
1324 # define wxUSE_DATETIME 1
1325 # endif
1326 # endif
1327 #endif /* wxUSE_DATEPICKCTRL */
1328
1329 #if wxUSE_CHECKLISTBOX
1330 # if !wxUSE_LISTBOX
1331 # ifdef wxABORT_ON_CONFIG_ERROR
1332 # error "wxCheckListBox requires wxListBox"
1333 # else
1334 # undef wxUSE_LISTBOX
1335 # define wxUSE_LISTBOX 1
1336 # endif
1337 # endif
1338 #endif /* wxUSE_CHECKLISTBOX */
1339
1340 #if wxUSE_CHOICEDLG
1341 # if !wxUSE_LISTBOX
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "Choice dialogs requires wxListBox"
1344 # else
1345 # undef wxUSE_LISTBOX
1346 # define wxUSE_LISTBOX 1
1347 # endif
1348 # endif
1349 #endif /* wxUSE_CHOICEDLG */
1350
1351 #if wxUSE_HELP
1352 # if !wxUSE_BMPBUTTON
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1355 # else
1356 # undef wxUSE_BMPBUTTON
1357 # define wxUSE_BMPBUTTON 1
1358 # endif
1359 # endif
1360
1361 # if !wxUSE_CHOICEDLG
1362 # ifdef wxABORT_ON_CONFIG_ERROR
1363 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1364 # else
1365 # undef wxUSE_CHOICEDLG
1366 # define wxUSE_CHOICEDLG 1
1367 # endif
1368 # endif
1369 #endif /* wxUSE_HELP */
1370
1371 #if wxUSE_WXHTML_HELP
1372 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1373 # ifdef wxABORT_ON_CONFIG_ERROR
1374 # error "Built in help controller can't be compiled"
1375 # else
1376 # undef wxUSE_HELP
1377 # define wxUSE_HELP 1
1378 # undef wxUSE_HTML
1379 # define wxUSE_HTML 1
1380 # undef wxUSE_COMBOBOX
1381 # define wxUSE_COMBOBOX 1
1382 # undef wxUSE_NOTEBOOK
1383 # define wxUSE_NOTEBOOK 1
1384 # undef wxUSE_SPINCTRL
1385 # define wxUSE_SPINCTRL 1
1386 # endif
1387 # endif
1388 #endif /* wxUSE_WXHTML_HELP */
1389
1390 #if !wxUSE_IMAGE
1391 /*
1392 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1393 user explicitly wants this and disable all other features that require
1394 wxUSE_IMAGE.
1395 */
1396 # if wxUSE_DRAGIMAGE
1397 # ifdef wxABORT_ON_CONFIG_ERROR
1398 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1399 # else
1400 # undef wxUSE_DRAGIMAGE
1401 # define wxUSE_DRAGIMAGE 0
1402 # endif
1403 # endif
1404
1405 # if wxUSE_LIBPNG
1406 # ifdef wxABORT_ON_CONFIG_ERROR
1407 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1408 # else
1409 # undef wxUSE_LIBPNG
1410 # define wxUSE_LIBPNG 0
1411 # endif
1412 # endif
1413
1414 # if wxUSE_LIBJPEG
1415 # ifdef wxABORT_ON_CONFIG_ERROR
1416 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1417 # else
1418 # undef wxUSE_LIBJPEG
1419 # define wxUSE_LIBJPEG 0
1420 # endif
1421 # endif
1422
1423 # if wxUSE_LIBTIFF
1424 # ifdef wxABORT_ON_CONFIG_ERROR
1425 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1426 # else
1427 # undef wxUSE_LIBTIFF
1428 # define wxUSE_LIBTIFF 0
1429 # endif
1430 # endif
1431
1432 # if wxUSE_GIF
1433 # ifdef wxABORT_ON_CONFIG_ERROR
1434 # error "wxUSE_GIF requires wxUSE_IMAGE"
1435 # else
1436 # undef wxUSE_GIF
1437 # define wxUSE_GIF 0
1438 # endif
1439 # endif
1440
1441 # if wxUSE_PNM
1442 # ifdef wxABORT_ON_CONFIG_ERROR
1443 # error "wxUSE_PNM requires wxUSE_IMAGE"
1444 # else
1445 # undef wxUSE_PNM
1446 # define wxUSE_PNM 0
1447 # endif
1448 # endif
1449
1450 # if wxUSE_PCX
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "wxUSE_PCX requires wxUSE_IMAGE"
1453 # else
1454 # undef wxUSE_PCX
1455 # define wxUSE_PCX 0
1456 # endif
1457 # endif
1458
1459 # if wxUSE_IFF
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "wxUSE_IFF requires wxUSE_IMAGE"
1462 # else
1463 # undef wxUSE_IFF
1464 # define wxUSE_IFF 0
1465 # endif
1466 # endif
1467
1468 # if wxUSE_TOOLBAR
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1471 # else
1472 # undef wxUSE_TOOLBAR
1473 # define wxUSE_TOOLBAR 0
1474 # endif
1475 # endif
1476
1477 # if wxUSE_XPM
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxUSE_XPM requires wxUSE_IMAGE"
1480 # else
1481 # undef wxUSE_XPM
1482 # define wxUSE_XPM 0
1483 # endif
1484 # endif
1485
1486 #endif /* !wxUSE_IMAGE */
1487
1488 #if wxUSE_DOC_VIEW_ARCHITECTURE
1489 # if !wxUSE_MENUS
1490 # ifdef wxABORT_ON_CONFIG_ERROR
1491 # error "DocView requires wxUSE_MENUS"
1492 # else
1493 # undef wxUSE_MENUS
1494 # define wxUSE_MENUS 1
1495 # endif
1496 # endif
1497
1498 # if !wxUSE_CHOICEDLG
1499 # ifdef wxABORT_ON_CONFIG_ERROR
1500 # error "DocView requires wxUSE_CHOICEDLG"
1501 # else
1502 # undef wxUSE_CHOICEDLG
1503 # define wxUSE_CHOICEDLG 1
1504 # endif
1505 # endif
1506
1507 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1508 # ifdef wxABORT_ON_CONFIG_ERROR
1509 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1510 # else
1511 # undef wxUSE_STREAMS
1512 # define wxUSE_STREAMS 1
1513 # endif
1514 # endif
1515 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1516
1517 #if wxUSE_PRINTING_ARCHITECTURE
1518 # if !wxUSE_COMBOBOX
1519 # ifdef wxABORT_ON_CONFIG_ERROR
1520 # error "Print dialog requires wxUSE_COMBOBOX"
1521 # else
1522 # undef wxUSE_COMBOBOX
1523 # define wxUSE_COMBOBOX 1
1524 # endif
1525 # endif
1526 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1527
1528 #if wxUSE_MDI_ARCHITECTURE
1529 # if !wxUSE_MDI
1530 # ifdef wxABORT_ON_CONFIG_ERROR
1531 # error "MDI requires wxUSE_MDI"
1532 # else
1533 # undef wxUSE_MDI
1534 # define wxUSE_MDI 1
1535 # endif
1536 # endif
1537
1538 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1539 # ifdef wxABORT_ON_CONFIG_ERROR
1540 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1541 # else
1542 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1543 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1544 # endif
1545 # endif
1546 #endif /* wxUSE_MDI_ARCHITECTURE */
1547
1548 #if !wxUSE_FILEDLG
1549 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1550 # ifdef wxABORT_ON_CONFIG_ERROR
1551 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1552 # else
1553 # undef wxUSE_FILEDLG
1554 # define wxUSE_FILEDLG 1
1555 # endif
1556 # endif
1557 #endif /* wxUSE_FILEDLG */
1558
1559 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1560 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1561 # ifdef wxABORT_ON_CONFIG_ERROR
1562 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1563 # else
1564 # undef wxUSE_GAUGE
1565 # undef wxUSE_BUTTON
1566 # define wxUSE_GAUGE 1
1567 # define wxUSE_BUTTON 1
1568 # endif
1569 # endif
1570 #endif /* !wxUSE_GAUGE */
1571
1572 #if !wxUSE_BUTTON
1573 # if wxUSE_FONTDLG || \
1574 wxUSE_FILEDLG || \
1575 wxUSE_CHOICEDLG || \
1576 wxUSE_NUMBERDLG || \
1577 wxUSE_TEXTDLG || \
1578 wxUSE_DIRDLG || \
1579 wxUSE_STARTUP_TIPS || \
1580 wxUSE_WIZARDDLG
1581 # ifdef wxABORT_ON_CONFIG_ERROR
1582 # error "Common and generic dialogs require wxUSE_BUTTON"
1583 # else
1584 # undef wxUSE_BUTTON
1585 # define wxUSE_BUTTON 1
1586 # endif
1587 # endif
1588 #endif /* !wxUSE_BUTTON */
1589
1590 #if !wxUSE_TOOLBAR
1591 # if wxUSE_TOOLBAR_NATIVE
1592 # ifdef wxABORT_ON_CONFIG_ERROR
1593 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1594 # else
1595 # undef wxUSE_TOOLBAR_NATIVE
1596 # define wxUSE_TOOLBAR_NATIVE 0
1597 # endif
1598 # endif
1599
1600 # if wxUSE_TOOLBAR_SIMPLE
1601 # ifdef wxABORT_ON_CONFIG_ERROR
1602 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1603 # else
1604 # undef wxUSE_TOOLBAR_SIMPLE
1605 # define wxUSE_TOOLBAR_SIMPLE 0
1606 # endif
1607 # endif
1608 #endif
1609
1610 #if !wxUSE_IMAGLIST
1611 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1612 # ifdef wxABORT_ON_CONFIG_ERROR
1613 # error "wxImageList must be compiled as well"
1614 # else
1615 # undef wxUSE_IMAGLIST
1616 # define wxUSE_IMAGLIST 1
1617 # endif
1618 # endif
1619 #endif /* !wxUSE_IMAGLIST */
1620
1621 #if !wxUSE_MSGDLG
1622 # ifdef wxABORT_ON_CONFIG_ERROR
1623 /* FIXME: should compile without it, of course, but doesn't */
1624 # error "wxMessageBox is always needed"
1625 # else
1626 # undef wxUSE_MSGDLG
1627 # define wxUSE_MSGDLG 1
1628 # endif
1629 #endif
1630
1631 #if wxUSE_RADIOBOX
1632 # if !wxUSE_RADIOBTN
1633 # ifdef wxABORT_ON_CONFIG_ERROR
1634 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1635 # else
1636 # undef wxUSE_RADIOBTN
1637 # define wxUSE_RADIOBTN 1
1638 # endif
1639 # endif
1640 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1641 # ifdef wxABORT_ON_CONFIG_ERROR
1642 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1643 # else
1644 # undef wxUSE_STATBOX
1645 # define wxUSE_STATBOX 1
1646 # endif
1647 # endif
1648 #endif /* wxUSE_RADIOBOX */
1649
1650 #if wxUSE_LOGWINDOW
1651 # if !wxUSE_TEXTCTRL
1652 # ifdef wxABORT_ON_CONFIG_ERROR
1653 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1654 # else
1655 # undef wxUSE_TEXTCTRL
1656 # define wxUSE_TEXTCTRL 1
1657 # endif
1658 # endif
1659 #endif /* wxUSE_LOGWINDOW */
1660
1661 #if wxUSE_LOG_DIALOG
1662 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1663 # ifdef wxABORT_ON_CONFIG_ERROR
1664 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1665 # else
1666 # undef wxUSE_LISTCTRL
1667 # define wxUSE_LISTCTRL 1
1668 # undef wxUSE_BUTTON
1669 # define wxUSE_BUTTON 1
1670 # endif
1671 # endif
1672 #endif /* wxUSE_LOG_DIALOG */
1673
1674 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1675 # ifdef wxABORT_ON_CONFIG_ERROR
1676 # error "wxClipboard requires wxDataObject"
1677 # else
1678 # undef wxUSE_DATAOBJ
1679 # define wxUSE_DATAOBJ 1
1680 # endif
1681 #endif /* wxUSE_CLIPBOARD */
1682
1683 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1684 # ifdef wxABORT_ON_CONFIG_ERROR
1685 # error "wxr resources require PrologIO"
1686 # else
1687 # undef wxUSE_PROLOGIO
1688 # define wxUSE_PROLOGIO 1
1689 # endif
1690 #endif /* wxUSE_WX_RESOURCES */
1691
1692 #if wxUSE_XRC && !wxUSE_XML
1693 # ifdef wxABORT_ON_CONFIG_ERROR
1694 # error "wxUSE_XRC requires wxUSE_XML"
1695 # else
1696 # undef wxUSE_XRC
1697 # define wxUSE_XRC 0
1698 # endif
1699 #endif /* wxUSE_XRC */
1700
1701 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1702 # ifdef wxABORT_ON_CONFIG_ERROR
1703 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1704 # else
1705 # undef wxUSE_SOCKETS
1706 # define wxUSE_SOCKETS 0
1707 # endif
1708 #endif /* wxUSE_SOCKETS */
1709
1710 #endif /* wxUSE_GUI */