Add new wxCommandLinkButton class.
[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 #ifndef _WX_CHKCONF_H_
14 #define _WX_CHKCONF_H_
15
16 /*
17 **************************************************
18 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
19 **************************************************
20
21 If you get an error saying "wxUSE_FOO must be defined", it means that you
22 are not using the correct up-to-date version of setup.h. This happens most
23 often when using svn or daily snapshots and a new symbol was added to
24 setup0.h and you haven't updated your local setup.h to to reflect it. If
25 this is the case, you need to propagate the changes from setup0.h to your
26 setup.h and, if using makefiles under MSW, also remove setup.h under the
27 build directory (lib/$(COMPILER)_{lib,dll}/msw[u][d][dll]/wx) so that it
28 the new setup.h is copied there.
29
30 If you get an error of the form "wxFoo requires wxBar", then the settings
31 in your setup.h are inconsistent. You have the choice between correcting
32 them manually or commenting out #define wxABORT_ON_CONFIG_ERROR below to
33 try to correct the problems automatically (not really recommended but
34 might work).
35 */
36
37 /*
38 This file has the following sections:
39 1. checks that all wxUSE_XXX symbols we use are defined
40 a) first the non-GUI ones
41 b) then the GUI-only ones
42 2. platform-specific checks done in the platform headers
43 3. generic consistency checks
44 a) first the non-GUI ones
45 b) then the GUI-only ones
46 */
47
48 /*
49 this global setting determines what should we do if the setting FOO
50 requires BAR and BAR is not set: we can either silently unset FOO as well
51 (do this if you're trying to build the smallest possible library) or give an
52 error and abort (default as leads to least surprising behaviour)
53 */
54 #define wxABORT_ON_CONFIG_ERROR
55
56 /*
57 global features
58 */
59
60 /* GUI build by default */
61 #if !defined(wxUSE_GUI)
62 # define wxUSE_GUI 1
63 #endif /* !defined(wxUSE_GUI) */
64
65 /*
66 If we're compiling without support for threads/exceptions we have to
67 disable the corresponding features.
68 */
69 #ifdef wxNO_THREADS
70 # undef wxUSE_THREADS
71 # define wxUSE_THREADS 0
72 #endif /* wxNO_THREADS */
73
74 #ifdef wxNO_EXCEPTIONS
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* wxNO_EXCEPTIONS */
78
79 /* we also must disable exceptions if compiler doesn't support them */
80 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
81 # undef wxUSE_EXCEPTIONS
82 # define wxUSE_EXCEPTIONS 0
83 #endif /* VC++ without exceptions support */
84
85
86 /*
87 Section 1a: tests for non GUI features.
88
89 please keep the options in alphabetical order!
90 */
91
92 #ifndef wxUSE_ANY
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_ANY must be defined, please read comment near the top of this file."
95 # else
96 # define wxUSE_ANY 0
97 # endif
98 #endif /* wxUSE_ANY */
99
100 #ifndef wxUSE_CONSOLE_EVENTLOOP
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
103 # else
104 # define wxUSE_CONSOLE_EVENTLOOP 0
105 # endif
106 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
107
108 #ifndef wxUSE_DYNLIB_CLASS
109 # ifdef wxABORT_ON_CONFIG_ERROR
110 # error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
111 # else
112 # define wxUSE_DYNLIB_CLASS 0
113 # endif
114 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
115
116 #ifndef wxUSE_EXCEPTIONS
117 # ifdef wxABORT_ON_CONFIG_ERROR
118 # error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
119 # else
120 # define wxUSE_EXCEPTIONS 0
121 # endif
122 #endif /* !defined(wxUSE_EXCEPTIONS) */
123
124 #ifndef wxUSE_FILE_HISTORY
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
127 # else
128 # define wxUSE_FILE_HISTORY 0
129 # endif
130 #endif /* !defined(wxUSE_FILE_HISTORY) */
131
132 #ifndef wxUSE_FILESYSTEM
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
135 # else
136 # define wxUSE_FILESYSTEM 0
137 # endif
138 #endif /* !defined(wxUSE_FILESYSTEM) */
139
140 #ifndef wxUSE_FS_ARCHIVE
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
143 # else
144 # define wxUSE_FS_ARCHIVE 0
145 # endif
146 #endif /* !defined(wxUSE_FS_ARCHIVE) */
147
148 #ifndef wxUSE_FSVOLUME
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
151 # else
152 # define wxUSE_FSVOLUME 0
153 # endif
154 #endif /* !defined(wxUSE_FSVOLUME) */
155
156 #ifndef wxUSE_FSWATCHER
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
159 # else
160 # define wxUSE_FSWATCHER 0
161 # endif
162 #endif /* !defined(wxUSE_FSWATCHER) */
163
164 #ifndef wxUSE_DYNAMIC_LOADER
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
167 # else
168 # define wxUSE_DYNAMIC_LOADER 0
169 # endif
170 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
171
172 #ifndef wxUSE_INTL
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_INTL must be defined, please read comment near the top of this file."
175 # else
176 # define wxUSE_INTL 0
177 # endif
178 #endif /* !defined(wxUSE_INTL) */
179
180 #ifndef wxUSE_IPV6
181 # ifdef wxABORT_ON_CONFIG_ERROR
182 # error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
183 # else
184 # define wxUSE_IPV6 0
185 # endif
186 #endif /* !defined(wxUSE_IPV6) */
187
188 #ifndef wxUSE_LOG
189 # ifdef wxABORT_ON_CONFIG_ERROR
190 # error "wxUSE_LOG must be defined, please read comment near the top of this file."
191 # else
192 # define wxUSE_LOG 0
193 # endif
194 #endif /* !defined(wxUSE_LOG) */
195
196 #ifndef wxUSE_LONGLONG
197 # ifdef wxABORT_ON_CONFIG_ERROR
198 # error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
199 # else
200 # define wxUSE_LONGLONG 0
201 # endif
202 #endif /* !defined(wxUSE_LONGLONG) */
203
204 #ifndef wxUSE_MIMETYPE
205 # ifdef wxABORT_ON_CONFIG_ERROR
206 # error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
207 # else
208 # define wxUSE_MIMETYPE 0
209 # endif
210 #endif /* !defined(wxUSE_MIMETYPE) */
211
212 #ifndef wxUSE_ON_FATAL_EXCEPTION
213 # ifdef wxABORT_ON_CONFIG_ERROR
214 # error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
215 # else
216 # define wxUSE_ON_FATAL_EXCEPTION 0
217 # endif
218 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
219
220 #ifndef wxUSE_PRINTF_POS_PARAMS
221 # ifdef wxABORT_ON_CONFIG_ERROR
222 # error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
223 # else
224 # define wxUSE_PRINTF_POS_PARAMS 0
225 # endif
226 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
227
228 #ifndef wxUSE_PROTOCOL
229 # ifdef wxABORT_ON_CONFIG_ERROR
230 # error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
231 # else
232 # define wxUSE_PROTOCOL 0
233 # endif
234 #endif /* !defined(wxUSE_PROTOCOL) */
235
236 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
237 #if !wxUSE_PROTOCOL
238 # undef wxUSE_PROTOCOL_HTTP
239 # undef wxUSE_PROTOCOL_FTP
240 # undef wxUSE_PROTOCOL_FILE
241 # define wxUSE_PROTOCOL_HTTP 0
242 # define wxUSE_PROTOCOL_FTP 0
243 # define wxUSE_PROTOCOL_FILE 0
244 #endif /* wxUSE_PROTOCOL */
245
246 #ifndef wxUSE_PROTOCOL_HTTP
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_PROTOCOL_HTTP must be defined, please read comment near the top of this file."
249 # else
250 # define wxUSE_PROTOCOL_HTTP 0
251 # endif
252 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
253
254 #ifndef wxUSE_PROTOCOL_FTP
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_PROTOCOL_FTP must be defined, please read comment near the top of this file."
257 # else
258 # define wxUSE_PROTOCOL_FTP 0
259 # endif
260 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
261
262 #ifndef wxUSE_PROTOCOL_FILE
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_PROTOCOL_FILE must be defined, please read comment near the top of this file."
265 # else
266 # define wxUSE_PROTOCOL_FILE 0
267 # endif
268 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
269
270 #ifndef wxUSE_REGEX
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_REGEX must be defined, please read comment near the top of this file."
273 # else
274 # define wxUSE_REGEX 0
275 # endif
276 #endif /* !defined(wxUSE_REGEX) */
277
278 #ifndef wxUSE_STDPATHS
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
281 # else
282 # define wxUSE_STDPATHS 1
283 # endif
284 #endif /* !defined(wxUSE_STDPATHS) */
285
286 #ifndef wxUSE_XML
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_XML must be defined, please read comment near the top of this file."
289 # else
290 # define wxUSE_XML 0
291 # endif
292 #endif /* !defined(wxUSE_XML) */
293
294 #ifndef wxUSE_SOCKETS
295 # ifdef wxABORT_ON_CONFIG_ERROR
296 # error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
297 # else
298 # define wxUSE_SOCKETS 0
299 # endif
300 #endif /* !defined(wxUSE_SOCKETS) */
301
302 #ifndef wxUSE_STREAMS
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
305 # else
306 # define wxUSE_STREAMS 0
307 # endif
308 #endif /* !defined(wxUSE_STREAMS) */
309
310 #ifndef wxUSE_STOPWATCH
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
313 # else
314 # define wxUSE_STOPWATCH 0
315 # endif
316 #endif /* !defined(wxUSE_STOPWATCH) */
317
318 #ifndef wxUSE_TEXTBUFFER
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
321 # else
322 # define wxUSE_TEXTBUFFER 0
323 # endif
324 #endif /* !defined(wxUSE_TEXTBUFFER) */
325
326 #ifndef wxUSE_TEXTFILE
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
329 # else
330 # define wxUSE_TEXTFILE 0
331 # endif
332 #endif /* !defined(wxUSE_TEXTFILE) */
333
334 #ifndef wxUSE_UNICODE
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
337 # else
338 # define wxUSE_UNICODE 0
339 # endif
340 #endif /* !defined(wxUSE_UNICODE) */
341
342 #ifndef wxUSE_URL
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_URL must be defined, please read comment near the top of this file."
345 # else
346 # define wxUSE_URL 0
347 # endif
348 #endif /* !defined(wxUSE_URL) */
349
350 #ifndef wxUSE_VARIANT
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
353 # else
354 # define wxUSE_VARIANT 0
355 # endif
356 #endif /* wxUSE_VARIANT */
357
358 #ifndef wxUSE_XLOCALE
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
361 # else
362 # define wxUSE_XLOCALE 0
363 # endif
364 #endif /* !defined(wxUSE_XLOCALE) */
365
366 /*
367 Section 1b: all these tests are for GUI only.
368
369 please keep the options in alphabetical order!
370 */
371 #if wxUSE_GUI
372
373 /*
374 all of the settings tested below must be defined or we'd get an error from
375 preprocessor about invalid integer expression
376 */
377
378 #ifndef wxUSE_ABOUTDLG
379 # ifdef wxABORT_ON_CONFIG_ERROR
380 # error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
381 # else
382 # define wxUSE_ABOUTDLG 0
383 # endif
384 #endif /* !defined(wxUSE_ABOUTDLG) */
385
386 #ifndef wxUSE_ACCEL
387 # ifdef wxABORT_ON_CONFIG_ERROR
388 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
389 # else
390 # define wxUSE_ACCEL 0
391 # endif
392 #endif /* !defined(wxUSE_ACCEL) */
393
394 #ifndef wxUSE_ACCESSIBILITY
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
397 # else
398 # define wxUSE_ACCESSIBILITY 0
399 # endif
400 #endif /* !defined(wxUSE_ACCESSIBILITY) */
401
402 #ifndef wxUSE_ANIMATIONCTRL
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
405 # else
406 # define wxUSE_ANIMATIONCTRL 0
407 # endif
408 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
409
410 #ifndef wxUSE_AUTOID_MANAGEMENT
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
413 # else
414 # define wxUSE_AUTOID_MANAGEMENT 0
415 # endif
416 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
417
418 #ifndef wxUSE_BITMAPCOMBOBOX
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
421 # else
422 # define wxUSE_BITMAPCOMBOBOX 0
423 # endif
424 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
425
426 #ifndef wxUSE_BMPBUTTON
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
429 # else
430 # define wxUSE_BMPBUTTON 0
431 # endif
432 #endif /* !defined(wxUSE_BMPBUTTON) */
433
434 #ifndef wxUSE_BUTTON
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
437 # else
438 # define wxUSE_BUTTON 0
439 # endif
440 #endif /* !defined(wxUSE_BUTTON) */
441
442 /*
443 This one is special, it's only used under wxGTK currently so don't require
444 pre-defining it.
445 */
446 #ifndef wxUSE_CAIRO
447 # ifdef __WXGTK210__
448 # define wxUSE_CAIRO 1
449 # else
450 # define wxUSE_CAIRO 0
451 # endif
452 #endif
453
454 #ifndef wxUSE_CALENDARCTRL
455 # ifdef wxABORT_ON_CONFIG_ERROR
456 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
457 # else
458 # define wxUSE_CALENDARCTRL 0
459 # endif
460 #endif /* !defined(wxUSE_CALENDARCTRL) */
461
462 #ifndef wxUSE_CARET
463 # ifdef wxABORT_ON_CONFIG_ERROR
464 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
465 # else
466 # define wxUSE_CARET 0
467 # endif
468 #endif /* !defined(wxUSE_CARET) */
469
470 #ifndef wxUSE_CHECKBOX
471 # ifdef wxABORT_ON_CONFIG_ERROR
472 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
473 # else
474 # define wxUSE_CHECKBOX 0
475 # endif
476 #endif /* !defined(wxUSE_CHECKBOX) */
477
478 #ifndef wxUSE_CHECKLISTBOX
479 # ifdef wxABORT_ON_CONFIG_ERROR
480 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
481 # else
482 # define wxUSE_CHECKLISTBOX 0
483 # endif
484 #endif /* !defined(wxUSE_CHECKLISTBOX) */
485
486 #ifndef wxUSE_CHOICE
487 # ifdef wxABORT_ON_CONFIG_ERROR
488 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
489 # else
490 # define wxUSE_CHOICE 0
491 # endif
492 #endif /* !defined(wxUSE_CHOICE) */
493
494 #ifndef wxUSE_CHOICEBOOK
495 # ifdef wxABORT_ON_CONFIG_ERROR
496 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
497 # else
498 # define wxUSE_CHOICEBOOK 0
499 # endif
500 #endif /* !defined(wxUSE_CHOICEBOOK) */
501
502 #ifndef wxUSE_CHOICEDLG
503 # ifdef wxABORT_ON_CONFIG_ERROR
504 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
505 # else
506 # define wxUSE_CHOICEDLG 0
507 # endif
508 #endif /* !defined(wxUSE_CHOICEDLG) */
509
510 #ifndef wxUSE_CLIPBOARD
511 # ifdef wxABORT_ON_CONFIG_ERROR
512 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
513 # else
514 # define wxUSE_CLIPBOARD 0
515 # endif
516 #endif /* !defined(wxUSE_CLIPBOARD) */
517
518 #ifndef wxUSE_COLLPANE
519 # ifdef wxABORT_ON_CONFIG_ERROR
520 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
521 # else
522 # define wxUSE_COLLPANE 0
523 # endif
524 #endif /* !defined(wxUSE_COLLPANE) */
525
526 #ifndef wxUSE_COLOURDLG
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
529 # else
530 # define wxUSE_COLOURDLG 0
531 # endif
532 #endif /* !defined(wxUSE_COLOURDLG) */
533
534 #ifndef wxUSE_COLOURPICKERCTRL
535 # ifdef wxABORT_ON_CONFIG_ERROR
536 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
537 # else
538 # define wxUSE_COLOURPICKERCTRL 0
539 # endif
540 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
541
542 #ifndef wxUSE_COMBOBOX
543 # ifdef wxABORT_ON_CONFIG_ERROR
544 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
545 # else
546 # define wxUSE_COMBOBOX 0
547 # endif
548 #endif /* !defined(wxUSE_COMBOBOX) */
549
550 #ifndef wxUSE_COMMANDLINKBUTTON
551 # ifdef wxABORT_ON_CONFIG_ERROR
552 # error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
553 # else
554 # define wxUSE_COMMANDLINKBUTTON 0
555 # endif
556 #endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
557
558 #ifndef wxUSE_COMBOCTRL
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
561 # else
562 # define wxUSE_COMBOCTRL 0
563 # endif
564 #endif /* !defined(wxUSE_COMBOCTRL) */
565
566 #ifndef wxUSE_DATAOBJ
567 # ifdef wxABORT_ON_CONFIG_ERROR
568 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
569 # else
570 # define wxUSE_DATAOBJ 0
571 # endif
572 #endif /* !defined(wxUSE_DATAOBJ) */
573
574 #ifndef wxUSE_DATAVIEWCTRL
575 # ifdef wxABORT_ON_CONFIG_ERROR
576 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
577 # else
578 # define wxUSE_DATAVIEWCTRL 0
579 # endif
580 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
581
582 #ifndef wxUSE_DATEPICKCTRL
583 # ifdef wxABORT_ON_CONFIG_ERROR
584 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
585 # else
586 # define wxUSE_DATEPICKCTRL 0
587 # endif
588 #endif /* !defined(wxUSE_DATEPICKCTRL) */
589
590 #ifndef wxUSE_DIRPICKERCTRL
591 # ifdef wxABORT_ON_CONFIG_ERROR
592 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
593 # else
594 # define wxUSE_DIRPICKERCTRL 0
595 # endif
596 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
597
598 #ifndef wxUSE_DISPLAY
599 # ifdef wxABORT_ON_CONFIG_ERROR
600 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
601 # else
602 # define wxUSE_DISPLAY 0
603 # endif
604 #endif /* !defined(wxUSE_DISPLAY) */
605
606 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
607 # ifdef wxABORT_ON_CONFIG_ERROR
608 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
609 # else
610 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
611 # endif
612 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
613
614 #ifndef wxUSE_FILECTRL
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
617 # else
618 # define wxUSE_FILECTRL 0
619 # endif
620 #endif /* !defined(wxUSE_FILECTRL) */
621
622 #ifndef wxUSE_FILEDLG
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
625 # else
626 # define wxUSE_FILEDLG 0
627 # endif
628 #endif /* !defined(wxUSE_FILEDLG) */
629
630 #ifndef wxUSE_FILEPICKERCTRL
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
633 # else
634 # define wxUSE_FILEPICKERCTRL 0
635 # endif
636 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
637
638 #ifndef wxUSE_FONTDLG
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
641 # else
642 # define wxUSE_FONTDLG 0
643 # endif
644 #endif /* !defined(wxUSE_FONTDLG) */
645
646 #ifndef wxUSE_FONTMAP
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
649 # else
650 # define wxUSE_FONTMAP 0
651 # endif
652 #endif /* !defined(wxUSE_FONTMAP) */
653
654 #ifndef wxUSE_FONTPICKERCTRL
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
657 # else
658 # define wxUSE_FONTPICKERCTRL 0
659 # endif
660 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
661
662 #ifndef wxUSE_GAUGE
663 # ifdef wxABORT_ON_CONFIG_ERROR
664 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
665 # else
666 # define wxUSE_GAUGE 0
667 # endif
668 #endif /* !defined(wxUSE_GAUGE) */
669
670 #ifndef wxUSE_GRAPHICS_CONTEXT
671 # ifdef wxABORT_ON_CONFIG_ERROR
672 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
673 # else
674 # define wxUSE_GRAPHICS_CONTEXT 0
675 # endif
676 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
677
678
679 #ifndef wxUSE_GRID
680 # ifdef wxABORT_ON_CONFIG_ERROR
681 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
682 # else
683 # define wxUSE_GRID 0
684 # endif
685 #endif /* !defined(wxUSE_GRID) */
686
687 #ifndef wxUSE_HEADERCTRL
688 # ifdef wxABORT_ON_CONFIG_ERROR
689 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
690 # else
691 # define wxUSE_HEADERCTRL 0
692 # endif
693 #endif /* !defined(wxUSE_HEADERCTRL) */
694
695 #ifndef wxUSE_HELP
696 # ifdef wxABORT_ON_CONFIG_ERROR
697 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
698 # else
699 # define wxUSE_HELP 0
700 # endif
701 #endif /* !defined(wxUSE_HELP) */
702
703 #ifndef wxUSE_HYPERLINKCTRL
704 # ifdef wxABORT_ON_CONFIG_ERROR
705 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
706 # else
707 # define wxUSE_HYPERLINKCTRL 0
708 # endif
709 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
710
711 #ifndef wxUSE_HTML
712 # ifdef wxABORT_ON_CONFIG_ERROR
713 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
714 # else
715 # define wxUSE_HTML 0
716 # endif
717 #endif /* !defined(wxUSE_HTML) */
718
719 #ifndef wxUSE_LIBMSPACK
720 # if !defined(__UNIX__) || defined(__WXPALMOS__)
721 /* set to 0 on platforms that don't have libmspack */
722 # define wxUSE_LIBMSPACK 0
723 # else
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
726 # else
727 # define wxUSE_LIBMSPACK 0
728 # endif
729 # endif
730 #endif /* !defined(wxUSE_LIBMSPACK) */
731
732 #ifndef wxUSE_ICO_CUR
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
735 # else
736 # define wxUSE_ICO_CUR 0
737 # endif
738 #endif /* !defined(wxUSE_ICO_CUR) */
739
740 #ifndef wxUSE_IFF
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
743 # else
744 # define wxUSE_IFF 0
745 # endif
746 #endif /* !defined(wxUSE_IFF) */
747
748 #ifndef wxUSE_IMAGLIST
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
751 # else
752 # define wxUSE_IMAGLIST 0
753 # endif
754 #endif /* !defined(wxUSE_IMAGLIST) */
755
756 #ifndef wxUSE_INFOBAR
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
759 # else
760 # define wxUSE_INFOBAR 0
761 # endif
762 #endif /* !defined(wxUSE_INFOBAR) */
763
764 #ifndef wxUSE_JOYSTICK
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
767 # else
768 # define wxUSE_JOYSTICK 0
769 # endif
770 #endif /* !defined(wxUSE_JOYSTICK) */
771
772 #ifndef wxUSE_LISTBOOK
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
775 # else
776 # define wxUSE_LISTBOOK 0
777 # endif
778 #endif /* !defined(wxUSE_LISTBOOK) */
779
780 #ifndef wxUSE_LISTBOX
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
783 # else
784 # define wxUSE_LISTBOX 0
785 # endif
786 #endif /* !defined(wxUSE_LISTBOX) */
787
788 #ifndef wxUSE_LISTCTRL
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
791 # else
792 # define wxUSE_LISTCTRL 0
793 # endif
794 #endif /* !defined(wxUSE_LISTCTRL) */
795
796 #ifndef wxUSE_LOGGUI
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
799 # else
800 # define wxUSE_LOGGUI 0
801 # endif
802 #endif /* !defined(wxUSE_LOGGUI) */
803
804 #ifndef wxUSE_LOGWINDOW
805 # ifdef wxABORT_ON_CONFIG_ERROR
806 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
807 # else
808 # define wxUSE_LOGWINDOW 0
809 # endif
810 #endif /* !defined(wxUSE_LOGWINDOW) */
811
812 #ifndef wxUSE_LOG_DIALOG
813 # ifdef wxABORT_ON_CONFIG_ERROR
814 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
815 # else
816 # define wxUSE_LOG_DIALOG 0
817 # endif
818 #endif /* !defined(wxUSE_LOG_DIALOG) */
819
820 #ifndef wxUSE_MDI
821 # ifdef wxABORT_ON_CONFIG_ERROR
822 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
823 # else
824 # define wxUSE_MDI 0
825 # endif
826 #endif /* !defined(wxUSE_MDI) */
827
828 #ifndef wxUSE_MDI_ARCHITECTURE
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
831 # else
832 # define wxUSE_MDI_ARCHITECTURE 0
833 # endif
834 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
835
836 #ifndef wxUSE_MENUS
837 # ifdef wxABORT_ON_CONFIG_ERROR
838 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
839 # else
840 # define wxUSE_MENUS 0
841 # endif
842 #endif /* !defined(wxUSE_MENUS) */
843
844 #ifndef wxUSE_MSGDLG
845 # ifdef wxABORT_ON_CONFIG_ERROR
846 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
847 # else
848 # define wxUSE_MSGDLG 0
849 # endif
850 #endif /* !defined(wxUSE_MSGDLG) */
851
852 #ifndef wxUSE_NOTEBOOK
853 # ifdef wxABORT_ON_CONFIG_ERROR
854 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
855 # else
856 # define wxUSE_NOTEBOOK 0
857 # endif
858 #endif /* !defined(wxUSE_NOTEBOOK) */
859
860 #ifndef wxUSE_NOTIFICATION_MESSAGE
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
863 # else
864 # define wxUSE_NOTIFICATION_MESSAGE 0
865 # endif
866 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
867
868 #ifndef wxUSE_ODCOMBOBOX
869 # ifdef wxABORT_ON_CONFIG_ERROR
870 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
871 # else
872 # define wxUSE_ODCOMBOBOX 0
873 # endif
874 #endif /* !defined(wxUSE_ODCOMBOBOX) */
875
876 #ifndef wxUSE_PALETTE
877 # ifdef wxABORT_ON_CONFIG_ERROR
878 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
879 # else
880 # define wxUSE_PALETTE 0
881 # endif
882 #endif /* !defined(wxUSE_PALETTE) */
883
884 #ifndef wxUSE_POPUPWIN
885 # ifdef wxABORT_ON_CONFIG_ERROR
886 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
887 # else
888 # define wxUSE_POPUPWIN 0
889 # endif
890 #endif /* !defined(wxUSE_POPUPWIN) */
891
892 #ifndef wxUSE_PRINTING_ARCHITECTURE
893 # ifdef wxABORT_ON_CONFIG_ERROR
894 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
895 # else
896 # define wxUSE_PRINTING_ARCHITECTURE 0
897 # endif
898 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
899
900 #ifndef wxUSE_RADIOBOX
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
903 # else
904 # define wxUSE_RADIOBOX 0
905 # endif
906 #endif /* !defined(wxUSE_RADIOBOX) */
907
908 #ifndef wxUSE_RADIOBTN
909 # ifdef wxABORT_ON_CONFIG_ERROR
910 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
911 # else
912 # define wxUSE_RADIOBTN 0
913 # endif
914 #endif /* !defined(wxUSE_RADIOBTN) */
915
916 #ifndef wxUSE_REARRANGECTRL
917 # ifdef wxABORT_ON_CONFIG_ERROR
918 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
919 # else
920 # define wxUSE_REARRANGECTRL 0
921 # endif
922 #endif /* !defined(wxUSE_REARRANGECTRL) */
923
924 #ifndef wxUSE_RIBBON
925 # ifdef wxABORT_ON_CONFIG_ERROR
926 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
927 # else
928 # define wxUSE_RIBBON 0
929 # endif
930 #endif /* !defined(wxUSE_RIBBON) */
931
932 #ifndef wxUSE_SASH
933 # ifdef wxABORT_ON_CONFIG_ERROR
934 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
935 # else
936 # define wxUSE_SASH 0
937 # endif
938 #endif /* !defined(wxUSE_SASH) */
939
940 #ifndef wxUSE_SCROLLBAR
941 # ifdef wxABORT_ON_CONFIG_ERROR
942 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
943 # else
944 # define wxUSE_SCROLLBAR 0
945 # endif
946 #endif /* !defined(wxUSE_SCROLLBAR) */
947
948 #ifndef wxUSE_SLIDER
949 # ifdef wxABORT_ON_CONFIG_ERROR
950 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
951 # else
952 # define wxUSE_SLIDER 0
953 # endif
954 #endif /* !defined(wxUSE_SLIDER) */
955
956 #ifndef wxUSE_SOUND
957 # ifdef wxABORT_ON_CONFIG_ERROR
958 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
959 # else
960 # define wxUSE_SOUND 0
961 # endif
962 #endif /* !defined(wxUSE_SOUND) */
963
964 #ifndef wxUSE_SPINBTN
965 # ifdef wxABORT_ON_CONFIG_ERROR
966 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
967 # else
968 # define wxUSE_SPINBTN 0
969 # endif
970 #endif /* !defined(wxUSE_SPINBTN) */
971
972 #ifndef wxUSE_SPINCTRL
973 # ifdef wxABORT_ON_CONFIG_ERROR
974 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
975 # else
976 # define wxUSE_SPINCTRL 0
977 # endif
978 #endif /* !defined(wxUSE_SPINCTRL) */
979
980 #ifndef wxUSE_SPLASH
981 # ifdef wxABORT_ON_CONFIG_ERROR
982 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
983 # else
984 # define wxUSE_SPLASH 0
985 # endif
986 #endif /* !defined(wxUSE_SPLASH) */
987
988 #ifndef wxUSE_SPLITTER
989 # ifdef wxABORT_ON_CONFIG_ERROR
990 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
991 # else
992 # define wxUSE_SPLITTER 0
993 # endif
994 #endif /* !defined(wxUSE_SPLITTER) */
995
996 #ifndef wxUSE_STATBMP
997 # ifdef wxABORT_ON_CONFIG_ERROR
998 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
999 # else
1000 # define wxUSE_STATBMP 0
1001 # endif
1002 #endif /* !defined(wxUSE_STATBMP) */
1003
1004 #ifndef wxUSE_STATBOX
1005 # ifdef wxABORT_ON_CONFIG_ERROR
1006 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1007 # else
1008 # define wxUSE_STATBOX 0
1009 # endif
1010 #endif /* !defined(wxUSE_STATBOX) */
1011
1012 #ifndef wxUSE_STATLINE
1013 # ifdef wxABORT_ON_CONFIG_ERROR
1014 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1015 # else
1016 # define wxUSE_STATLINE 0
1017 # endif
1018 #endif /* !defined(wxUSE_STATLINE) */
1019
1020 #ifndef wxUSE_STATTEXT
1021 # ifdef wxABORT_ON_CONFIG_ERROR
1022 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1023 # else
1024 # define wxUSE_STATTEXT 0
1025 # endif
1026 #endif /* !defined(wxUSE_STATTEXT) */
1027
1028 #ifndef wxUSE_STATUSBAR
1029 # ifdef wxABORT_ON_CONFIG_ERROR
1030 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1031 # else
1032 # define wxUSE_STATUSBAR 0
1033 # endif
1034 #endif /* !defined(wxUSE_STATUSBAR) */
1035
1036 #ifndef wxUSE_TASKBARICON
1037 # ifdef wxABORT_ON_CONFIG_ERROR
1038 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1039 # else
1040 # define wxUSE_TASKBARICON 0
1041 # endif
1042 #endif /* !defined(wxUSE_TASKBARICON) */
1043
1044 #ifndef wxUSE_TEXTCTRL
1045 # ifdef wxABORT_ON_CONFIG_ERROR
1046 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1047 # else
1048 # define wxUSE_TEXTCTRL 0
1049 # endif
1050 #endif /* !defined(wxUSE_TEXTCTRL) */
1051
1052 #ifndef wxUSE_TIPWINDOW
1053 # ifdef wxABORT_ON_CONFIG_ERROR
1054 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1055 # else
1056 # define wxUSE_TIPWINDOW 0
1057 # endif
1058 #endif /* !defined(wxUSE_TIPWINDOW) */
1059
1060 #ifndef wxUSE_TOOLBAR
1061 # ifdef wxABORT_ON_CONFIG_ERROR
1062 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1063 # else
1064 # define wxUSE_TOOLBAR 0
1065 # endif
1066 #endif /* !defined(wxUSE_TOOLBAR) */
1067
1068 #ifndef wxUSE_TOOLTIPS
1069 # ifdef wxABORT_ON_CONFIG_ERROR
1070 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1071 # else
1072 # define wxUSE_TOOLTIPS 0
1073 # endif
1074 #endif /* !defined(wxUSE_TOOLTIPS) */
1075
1076 #ifndef wxUSE_TREECTRL
1077 # ifdef wxABORT_ON_CONFIG_ERROR
1078 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1079 # else
1080 # define wxUSE_TREECTRL 0
1081 # endif
1082 #endif /* !defined(wxUSE_TREECTRL) */
1083
1084 #ifndef wxUSE_UIACTIONSIMULATOR
1085 # ifdef wxABORT_ON_CONFIG_ERROR
1086 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1087 # else
1088 # define wxUSE_UIACTIONSIMULATOR 0
1089 # endif
1090 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1091
1092 #ifndef wxUSE_VALIDATORS
1093 # ifdef wxABORT_ON_CONFIG_ERROR
1094 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1095 # else
1096 # define wxUSE_VALIDATORS 0
1097 # endif
1098 #endif /* !defined(wxUSE_VALIDATORS) */
1099
1100 #ifndef wxUSE_WXHTML_HELP
1101 # ifdef wxABORT_ON_CONFIG_ERROR
1102 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1103 # else
1104 # define wxUSE_WXHTML_HELP 0
1105 # endif
1106 #endif /* !defined(wxUSE_WXHTML_HELP) */
1107
1108 #ifndef wxUSE_XRC
1109 # ifdef wxABORT_ON_CONFIG_ERROR
1110 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1111 # else
1112 # define wxUSE_XRC 0
1113 # endif
1114 #endif /* !defined(wxUSE_XRC) */
1115
1116 #endif /* wxUSE_GUI */
1117
1118 /*
1119 Section 2: platform-specific checks.
1120
1121 This must be done after checking that everything is defined as the platform
1122 checks use wxUSE_XXX symbols in #if tests.
1123 */
1124
1125 #if defined(__WXPALMOS__)
1126 # include "wx/palmos/chkconf.h"
1127 #elif defined(__WXWINCE__)
1128 # include "wx/msw/wince/chkconf.h"
1129 #elif defined(__WXMSW__)
1130 # include "wx/msw/chkconf.h"
1131 #elif defined(__WXGTK__)
1132 # include "wx/gtk/chkconf.h"
1133 #elif defined(__WXCOCOA__)
1134 # include "wx/cocoa/chkconf.h"
1135 #elif defined(__WXMAC__)
1136 # include "wx/osx/chkconf.h"
1137 #elif defined(__OS2__)
1138 # include "wx/os2/chkconf.h"
1139 #elif defined(__WXMGL__)
1140 # include "wx/mgl/chkconf.h"
1141 #elif defined(__WXDFB__)
1142 # include "wx/dfb/chkconf.h"
1143 #elif defined(__WXMOTIF__)
1144 # include "wx/motif/chkconf.h"
1145 #elif defined(__WXX11__)
1146 # include "wx/x11/chkconf.h"
1147 #endif
1148
1149 /*
1150 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1151 there if we're building wxMSW.
1152 */
1153 #if defined(__UNIX__) && !defined(__WXMSW__)
1154 # include "wx/unix/chkconf.h"
1155 #endif
1156
1157 #ifdef __WXUNIVERSAL__
1158 # include "wx/univ/chkconf.h"
1159 #endif
1160
1161 /*
1162 Section 3a: check consistency of the non-GUI settings.
1163 */
1164
1165 #if WXWIN_COMPATIBILITY_2_6
1166 # if !WXWIN_COMPATIBILITY_2_8
1167 # ifdef wxABORT_ON_CONFIG_ERROR
1168 # error "2.6.X compatibility requires 2.8.X compatibility"
1169 # else
1170 # undef WXWIN_COMPATIBILITY_2_8
1171 # define WXWIN_COMPATIBILITY_2_8 1
1172 # endif
1173 # endif
1174 #endif /* WXWIN_COMPATIBILITY_2_6 */
1175
1176 #if wxUSE_ARCHIVE_STREAMS
1177 # if !wxUSE_DATETIME
1178 # ifdef wxABORT_ON_CONFIG_ERROR
1179 # error "wxArchive requires wxUSE_DATETIME"
1180 # else
1181 # undef wxUSE_ARCHIVE_STREAMS
1182 # define wxUSE_ARCHIVE_STREAMS 0
1183 # endif
1184 # endif
1185 #endif /* wxUSE_ARCHIVE_STREAMS */
1186
1187 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1188 # if !wxUSE_PROTOCOL
1189 # ifdef wxABORT_ON_CONFIG_ERROR
1190 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1191 # else
1192 # undef wxUSE_PROTOCOL
1193 # define wxUSE_PROTOCOL 1
1194 # endif
1195 # endif
1196 #endif /* wxUSE_PROTOCOL_XXX */
1197
1198 #if wxUSE_URL
1199 # if !wxUSE_PROTOCOL
1200 # ifdef wxABORT_ON_CONFIG_ERROR
1201 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1202 # else
1203 # undef wxUSE_PROTOCOL
1204 # define wxUSE_PROTOCOL 1
1205 # endif
1206 # endif
1207 #endif /* wxUSE_URL */
1208
1209 #if wxUSE_PROTOCOL
1210 # if !wxUSE_SOCKETS
1211 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1214 # else
1215 # undef wxUSE_SOCKETS
1216 # define wxUSE_SOCKETS 1
1217 # endif
1218 # endif
1219 # endif
1220
1221 # if !wxUSE_STREAMS
1222 # ifdef wxABORT_ON_CONFIG_ERROR
1223 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1224 # else
1225 # undef wxUSE_STREAMS
1226 # define wxUSE_STREAMS 1
1227 # endif
1228 # endif
1229 #endif /* wxUSE_PROTOCOL */
1230
1231 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1232 #if wxUSE_HTML
1233 # if !wxUSE_FILESYSTEM
1234 # ifdef wxABORT_ON_CONFIG_ERROR
1235 # error "wxHTML requires wxFileSystem"
1236 # else
1237 # undef wxUSE_FILESYSTEM
1238 # define wxUSE_FILESYSTEM 1
1239 # endif
1240 # endif
1241 #endif /* wxUSE_HTML */
1242
1243 #if wxUSE_FS_ARCHIVE
1244 # if !wxUSE_FILESYSTEM
1245 # ifdef wxABORT_ON_CONFIG_ERROR
1246 # error "wxArchiveFSHandler requires wxFileSystem"
1247 # else
1248 # undef wxUSE_FILESYSTEM
1249 # define wxUSE_FILESYSTEM 1
1250 # endif
1251 # endif
1252 # if !wxUSE_ARCHIVE_STREAMS
1253 # ifdef wxABORT_ON_CONFIG_ERROR
1254 # error "wxArchiveFSHandler requires wxArchive"
1255 # else
1256 # undef wxUSE_ARCHIVE_STREAMS
1257 # define wxUSE_ARCHIVE_STREAMS 1
1258 # endif
1259 # endif
1260 #endif /* wxUSE_FS_ARCHIVE */
1261
1262 #if wxUSE_FILESYSTEM
1263 # if !wxUSE_STREAMS
1264 # ifdef wxABORT_ON_CONFIG_ERROR
1265 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1266 # else
1267 # undef wxUSE_STREAMS
1268 # define wxUSE_STREAMS 1
1269 # endif
1270 # endif
1271 # if !wxUSE_FILE && !wxUSE_FFILE
1272 # ifdef wxABORT_ON_CONFIG_ERROR
1273 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1274 # else
1275 # undef wxUSE_FILE
1276 # define wxUSE_FILE 1
1277 # undef wxUSE_FFILE
1278 # define wxUSE_FFILE 1
1279 # endif
1280 # endif
1281 #endif /* wxUSE_FILESYSTEM */
1282
1283 #if wxUSE_FS_INET
1284 # if !wxUSE_PROTOCOL
1285 # ifdef wxABORT_ON_CONFIG_ERROR
1286 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1287 # else
1288 # undef wxUSE_PROTOCOL
1289 # define wxUSE_PROTOCOL 1
1290 # endif
1291 # endif
1292 #endif /* wxUSE_FS_INET */
1293
1294 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1295 # if !wxUSE_LONGLONG
1296 # ifdef wxABORT_ON_CONFIG_ERROR
1297 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1298 # else
1299 # undef wxUSE_LONGLONG
1300 # define wxUSE_LONGLONG 1
1301 # endif
1302 # endif
1303 #endif /* wxUSE_STOPWATCH */
1304
1305 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1306 # ifdef wxABORT_ON_CONFIG_ERROR
1307 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1308 # else
1309 # undef wxUSE_TEXTFILE
1310 # define wxUSE_TEXTFILE 1
1311 # endif
1312 #endif /* wxUSE_MIMETYPE */
1313
1314 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1315 # ifdef wxABORT_ON_CONFIG_ERROR
1316 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1317 # else
1318 # undef wxUSE_TEXTBUFFER
1319 # define wxUSE_TEXTBUFFER 1
1320 # endif
1321 #endif /* wxUSE_TEXTFILE */
1322
1323 #if wxUSE_TEXTFILE && !wxUSE_FILE
1324 # ifdef wxABORT_ON_CONFIG_ERROR
1325 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1326 # else
1327 # undef wxUSE_FILE
1328 # define wxUSE_FILE 1
1329 # endif
1330 #endif /* wxUSE_TEXTFILE */
1331
1332 #if !wxUSE_DYNLIB_CLASS
1333 # if wxUSE_DYNAMIC_LOADER
1334 # ifdef wxABORT_ON_CONFIG_ERROR
1335 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1336 # else
1337 # define wxUSE_DYNLIB_CLASS 1
1338 # endif
1339 # endif
1340 #endif /* wxUSE_DYNLIB_CLASS */
1341
1342 #if wxUSE_ZIPSTREAM
1343 # if !wxUSE_ZLIB
1344 # ifdef wxABORT_ON_CONFIG_ERROR
1345 # error "wxZip requires wxZlib"
1346 # else
1347 # undef wxUSE_ZLIB
1348 # define wxUSE_ZLIB 1
1349 # endif
1350 # endif
1351 # if !wxUSE_ARCHIVE_STREAMS
1352 # ifdef wxABORT_ON_CONFIG_ERROR
1353 # error "wxZip requires wxArchive"
1354 # else
1355 # undef wxUSE_ARCHIVE_STREAMS
1356 # define wxUSE_ARCHIVE_STREAMS 1
1357 # endif
1358 # endif
1359 #endif /* wxUSE_ZIPSTREAM */
1360
1361 #if wxUSE_TARSTREAM
1362 # if !wxUSE_ARCHIVE_STREAMS
1363 # ifdef wxABORT_ON_CONFIG_ERROR
1364 # error "wxTar requires wxArchive"
1365 # else
1366 # undef wxUSE_ARCHIVE_STREAMS
1367 # define wxUSE_ARCHIVE_STREAMS 1
1368 # endif
1369 # endif
1370 #endif /* wxUSE_TARSTREAM */
1371
1372 /*
1373 Section 3b: the tests for the GUI settings only.
1374 */
1375 #if wxUSE_GUI
1376
1377 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1378 # ifdef wxABORT_ON_CONFIG_ERROR
1379 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1380 # else
1381 # undef wxUSE_ACCESSIBILITY
1382 # define wxUSE_ACCESSIBILITY 0
1383 # endif
1384 #endif /* wxUSE_ACCESSIBILITY */
1385
1386 #if wxUSE_BUTTON || \
1387 wxUSE_CALENDARCTRL || \
1388 wxUSE_CARET || \
1389 wxUSE_COMBOBOX || \
1390 wxUSE_BMPBUTTON || \
1391 wxUSE_CHECKBOX || \
1392 wxUSE_CHECKLISTBOX || \
1393 wxUSE_CHOICE || \
1394 wxUSE_GAUGE || \
1395 wxUSE_GRID || \
1396 wxUSE_HEADERCTRL || \
1397 wxUSE_LISTBOX || \
1398 wxUSE_LISTCTRL || \
1399 wxUSE_NOTEBOOK || \
1400 wxUSE_RADIOBOX || \
1401 wxUSE_RADIOBTN || \
1402 wxUSE_REARRANGECTRL || \
1403 wxUSE_SCROLLBAR || \
1404 wxUSE_SLIDER || \
1405 wxUSE_SPINBTN || \
1406 wxUSE_SPINCTRL || \
1407 wxUSE_STATBMP || \
1408 wxUSE_STATBOX || \
1409 wxUSE_STATLINE || \
1410 wxUSE_STATTEXT || \
1411 wxUSE_STATUSBAR || \
1412 wxUSE_TEXTCTRL || \
1413 wxUSE_TOOLBAR || \
1414 wxUSE_TREECTRL
1415 # if !wxUSE_CONTROLS
1416 # ifdef wxABORT_ON_CONFIG_ERROR
1417 # error "wxUSE_CONTROLS unset but some controls used"
1418 # else
1419 # undef wxUSE_CONTROLS
1420 # define wxUSE_CONTROLS 1
1421 # endif
1422 # endif
1423 #endif /* controls */
1424
1425 #if wxUSE_BMPBUTTON
1426 # if !wxUSE_BUTTON
1427 # ifdef wxABORT_ON_CONFIG_ERROR
1428 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1429 # else
1430 # undef wxUSE_BUTTON
1431 # define wxUSE_BUTTON 1
1432 # endif
1433 # endif
1434 #endif /* wxUSE_BMPBUTTON */
1435
1436 #if wxUSE_COMMANDLINKBUTTON
1437 # if !wxUSE_BUTTON
1438 # ifdef wxABORT_ON_CONFIG_ERROR
1439 # error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1440 # else
1441 # undef wxUSE_BUTTON
1442 # define wxUSE_BUTTON 1
1443 # endif
1444 # endif
1445 #endif /* wxUSE_COMMANDLINKBUTTON */
1446
1447 /*
1448 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1449 are used
1450 */
1451 #ifdef wxUSE_BOOKCTRL
1452 # ifdef wxABORT_ON_CONFIG_ERROR
1453 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1454 # else
1455 # undef wxUSE_BOOKCTRL
1456 # endif
1457 #endif
1458
1459 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1460 wxUSE_LISTBOOK || \
1461 wxUSE_CHOICEBOOK || \
1462 wxUSE_TOOLBOOK || \
1463 wxUSE_TREEBOOK)
1464
1465 #if wxUSE_COLLPANE
1466 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1467 # ifdef wxABORT_ON_CONFIG_ERROR
1468 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1469 # else
1470 # undef wxUSE_COLLPANE
1471 # define wxUSE_COLLPANE 0
1472 # endif
1473 # endif
1474 #endif /* wxUSE_COLLPANE */
1475
1476 #if wxUSE_LISTBOOK
1477 # if !wxUSE_LISTCTRL
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxListbook requires wxListCtrl"
1480 # else
1481 # undef wxUSE_LISTCTRL
1482 # define wxUSE_LISTCTRL 1
1483 # endif
1484 # endif
1485 #endif /* wxUSE_LISTBOOK */
1486
1487 #if wxUSE_CHOICEBOOK
1488 # if !wxUSE_CHOICE
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "wxChoicebook requires wxChoice"
1491 # else
1492 # undef wxUSE_CHOICE
1493 # define wxUSE_CHOICE 1
1494 # endif
1495 # endif
1496 #endif /* wxUSE_CHOICEBOOK */
1497
1498 #if wxUSE_TOOLBOOK
1499 # if !wxUSE_TOOLBAR
1500 # ifdef wxABORT_ON_CONFIG_ERROR
1501 # error "wxToolbook requires wxToolBar"
1502 # else
1503 # undef wxUSE_TOOLBAR
1504 # define wxUSE_TOOLBAR 1
1505 # endif
1506 # endif
1507 #endif /* wxUSE_TOOLBOOK */
1508
1509 #if !wxUSE_ODCOMBOBOX
1510 # if wxUSE_BITMAPCOMBOBOX
1511 # ifdef wxABORT_ON_CONFIG_ERROR
1512 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1513 # else
1514 # undef wxUSE_BITMAPCOMBOBOX
1515 # define wxUSE_BITMAPCOMBOBOX 0
1516 # endif
1517 # endif
1518 #endif /* !wxUSE_ODCOMBOBOX */
1519
1520 #if !wxUSE_HEADERCTRL
1521 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1522 # ifdef wxABORT_ON_CONFIG_ERROR
1523 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1524 # else
1525 # undef wxUSE_HEADERCTRL
1526 # define wxUSE_HEADERCTRL 1
1527 # endif
1528 # endif
1529 #endif /* !wxUSE_HEADERCTRL */
1530
1531 #if wxUSE_REARRANGECTRL
1532 # if !wxUSE_CHECKLISTBOX
1533 # ifdef wxABORT_ON_CONFIG_ERROR
1534 # error "wxRearrangeCtrl requires wxCheckListBox"
1535 # else
1536 # undef wxUSE_REARRANGECTRL
1537 # define wxUSE_REARRANGECTRL 0
1538 # endif
1539 # endif
1540 #endif /* wxUSE_REARRANGECTRL */
1541
1542 /* don't attempt to use native status bar on the platforms not having it */
1543 #ifndef wxUSE_NATIVE_STATUSBAR
1544 # define wxUSE_NATIVE_STATUSBAR 0
1545 #elif wxUSE_NATIVE_STATUSBAR
1546 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1547 defined(__WXMAC__) || \
1548 defined(__WXPALMOS__) )
1549 # undef wxUSE_NATIVE_STATUSBAR
1550 # define wxUSE_NATIVE_STATUSBAR 0
1551 # endif
1552 #endif
1553
1554 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1555 # ifdef wxABORT_ON_CONFIG_ERROR
1556 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1557 # else
1558 # undef wxUSE_GRAPHICS_CONTEXT
1559 # define wxUSE_GRAPHICS_CONTEXT 0
1560 # endif
1561 #endif /* wxUSE_GRAPHICS_CONTEXT */
1562
1563
1564 /* generic controls dependencies */
1565 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1566 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1567 /* all common controls are needed by these dialogs */
1568 # if !defined(wxUSE_CHOICE) || \
1569 !defined(wxUSE_TEXTCTRL) || \
1570 !defined(wxUSE_BUTTON) || \
1571 !defined(wxUSE_CHECKBOX) || \
1572 !defined(wxUSE_STATTEXT)
1573 # ifdef wxABORT_ON_CONFIG_ERROR
1574 # error "These common controls are needed by common dialogs"
1575 # else
1576 # undef wxUSE_CHOICE
1577 # define wxUSE_CHOICE 1
1578 # undef wxUSE_TEXTCTRL
1579 # define wxUSE_TEXTCTRL 1
1580 # undef wxUSE_BUTTON
1581 # define wxUSE_BUTTON 1
1582 # undef wxUSE_CHECKBOX
1583 # define wxUSE_CHECKBOX 1
1584 # undef wxUSE_STATTEXT
1585 # define wxUSE_STATTEXT 1
1586 # endif
1587 # endif
1588 # endif
1589 #endif /* !wxMSW || wxUniv */
1590
1591 /* generic file dialog depends on (generic) file control */
1592 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1593 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1594 # ifdef wxABORT_ON_CONFIG_ERROR
1595 # error "Generic wxFileDialog requires wxFileCtrl"
1596 # else
1597 # undef wxUSE_FILECTRL
1598 # define wxUSE_FILECTRL 1
1599 # endif
1600 #endif /* wxUSE_FILEDLG */
1601
1602 /* common dependencies */
1603 #if wxUSE_CALENDARCTRL
1604 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1605 # ifdef wxABORT_ON_CONFIG_ERROR
1606 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1607 # else
1608 # undef wxUSE_SPINBTN
1609 # undef wxUSE_COMBOBOX
1610 # define wxUSE_SPINBTN 1
1611 # define wxUSE_COMBOBOX 1
1612 # endif
1613 # endif
1614
1615 # if !wxUSE_DATETIME
1616 # ifdef wxABORT_ON_CONFIG_ERROR
1617 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1618 # else
1619 # undef wxUSE_DATETIME
1620 # define wxUSE_DATETIME 1
1621 # endif
1622 # endif
1623 #endif /* wxUSE_CALENDARCTRL */
1624
1625 #if wxUSE_DATEPICKCTRL
1626 # if !wxUSE_DATETIME
1627 # ifdef wxABORT_ON_CONFIG_ERROR
1628 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1629 # else
1630 # undef wxUSE_DATETIME
1631 # define wxUSE_DATETIME 1
1632 # endif
1633 # endif
1634 #endif /* wxUSE_DATEPICKCTRL */
1635
1636 #if wxUSE_CHECKLISTBOX
1637 # if !wxUSE_LISTBOX
1638 # ifdef wxABORT_ON_CONFIG_ERROR
1639 # error "wxCheckListBox requires wxListBox"
1640 # else
1641 # undef wxUSE_LISTBOX
1642 # define wxUSE_LISTBOX 1
1643 # endif
1644 # endif
1645 #endif /* wxUSE_CHECKLISTBOX */
1646
1647 #if wxUSE_CHOICEDLG
1648 # if !wxUSE_LISTBOX
1649 # ifdef wxABORT_ON_CONFIG_ERROR
1650 # error "Choice dialogs requires wxListBox"
1651 # else
1652 # undef wxUSE_LISTBOX
1653 # define wxUSE_LISTBOX 1
1654 # endif
1655 # endif
1656 #endif /* wxUSE_CHOICEDLG */
1657
1658 #if wxUSE_HELP
1659 # if !wxUSE_BMPBUTTON
1660 # ifdef wxABORT_ON_CONFIG_ERROR
1661 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1662 # else
1663 # undef wxUSE_BMPBUTTON
1664 # define wxUSE_BMPBUTTON 1
1665 # endif
1666 # endif
1667
1668 # if !wxUSE_CHOICEDLG
1669 # ifdef wxABORT_ON_CONFIG_ERROR
1670 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1671 # else
1672 # undef wxUSE_CHOICEDLG
1673 # define wxUSE_CHOICEDLG 1
1674 # endif
1675 # endif
1676 #endif /* wxUSE_HELP */
1677
1678 #if wxUSE_MS_HTML_HELP
1679 /*
1680 this doesn't make sense for platforms other than MSW but we still
1681 define it in wx/setup_inc.h so don't complain if it happens to be
1682 defined under another platform but just silently fix it.
1683 */
1684 # ifndef __WXMSW__
1685 # undef wxUSE_MS_HTML_HELP
1686 # define wxUSE_MS_HTML_HELP 0
1687 # endif
1688 #endif /* wxUSE_MS_HTML_HELP */
1689
1690 #if wxUSE_WXHTML_HELP
1691 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1692 # ifdef wxABORT_ON_CONFIG_ERROR
1693 # error "Built in help controller can't be compiled"
1694 # else
1695 # undef wxUSE_HELP
1696 # define wxUSE_HELP 1
1697 # undef wxUSE_HTML
1698 # define wxUSE_HTML 1
1699 # undef wxUSE_COMBOBOX
1700 # define wxUSE_COMBOBOX 1
1701 # undef wxUSE_NOTEBOOK
1702 # define wxUSE_NOTEBOOK 1
1703 # undef wxUSE_SPINCTRL
1704 # define wxUSE_SPINCTRL 1
1705 # endif
1706 # endif
1707 #endif /* wxUSE_WXHTML_HELP */
1708
1709 #if !wxUSE_IMAGE
1710 /*
1711 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1712 user explicitly wants this and disable all other features that require
1713 wxUSE_IMAGE.
1714 */
1715 # if wxUSE_DRAGIMAGE
1716 # ifdef wxABORT_ON_CONFIG_ERROR
1717 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1718 # else
1719 # undef wxUSE_DRAGIMAGE
1720 # define wxUSE_DRAGIMAGE 0
1721 # endif
1722 # endif
1723
1724 # if wxUSE_LIBPNG
1725 # ifdef wxABORT_ON_CONFIG_ERROR
1726 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1727 # else
1728 # undef wxUSE_LIBPNG
1729 # define wxUSE_LIBPNG 0
1730 # endif
1731 # endif
1732
1733 # if wxUSE_LIBJPEG
1734 # ifdef wxABORT_ON_CONFIG_ERROR
1735 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1736 # else
1737 # undef wxUSE_LIBJPEG
1738 # define wxUSE_LIBJPEG 0
1739 # endif
1740 # endif
1741
1742 # if wxUSE_LIBTIFF
1743 # ifdef wxABORT_ON_CONFIG_ERROR
1744 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1745 # else
1746 # undef wxUSE_LIBTIFF
1747 # define wxUSE_LIBTIFF 0
1748 # endif
1749 # endif
1750
1751 # if wxUSE_GIF
1752 # ifdef wxABORT_ON_CONFIG_ERROR
1753 # error "wxUSE_GIF requires wxUSE_IMAGE"
1754 # else
1755 # undef wxUSE_GIF
1756 # define wxUSE_GIF 0
1757 # endif
1758 # endif
1759
1760 # if wxUSE_PNM
1761 # ifdef wxABORT_ON_CONFIG_ERROR
1762 # error "wxUSE_PNM requires wxUSE_IMAGE"
1763 # else
1764 # undef wxUSE_PNM
1765 # define wxUSE_PNM 0
1766 # endif
1767 # endif
1768
1769 # if wxUSE_PCX
1770 # ifdef wxABORT_ON_CONFIG_ERROR
1771 # error "wxUSE_PCX requires wxUSE_IMAGE"
1772 # else
1773 # undef wxUSE_PCX
1774 # define wxUSE_PCX 0
1775 # endif
1776 # endif
1777
1778 # if wxUSE_IFF
1779 # ifdef wxABORT_ON_CONFIG_ERROR
1780 # error "wxUSE_IFF requires wxUSE_IMAGE"
1781 # else
1782 # undef wxUSE_IFF
1783 # define wxUSE_IFF 0
1784 # endif
1785 # endif
1786
1787 # if wxUSE_TOOLBAR
1788 # ifdef wxABORT_ON_CONFIG_ERROR
1789 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1790 # else
1791 # undef wxUSE_TOOLBAR
1792 # define wxUSE_TOOLBAR 0
1793 # endif
1794 # endif
1795
1796 # if wxUSE_XPM
1797 # ifdef wxABORT_ON_CONFIG_ERROR
1798 # error "wxUSE_XPM requires wxUSE_IMAGE"
1799 # else
1800 # undef wxUSE_XPM
1801 # define wxUSE_XPM 0
1802 # endif
1803 # endif
1804
1805 #endif /* !wxUSE_IMAGE */
1806
1807 #if wxUSE_DOC_VIEW_ARCHITECTURE
1808 # if !wxUSE_MENUS
1809 # ifdef wxABORT_ON_CONFIG_ERROR
1810 # error "DocView requires wxUSE_MENUS"
1811 # else
1812 # undef wxUSE_MENUS
1813 # define wxUSE_MENUS 1
1814 # endif
1815 # endif
1816
1817 # if !wxUSE_CHOICEDLG
1818 # ifdef wxABORT_ON_CONFIG_ERROR
1819 # error "DocView requires wxUSE_CHOICEDLG"
1820 # else
1821 # undef wxUSE_CHOICEDLG
1822 # define wxUSE_CHOICEDLG 1
1823 # endif
1824 # endif
1825
1826 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1827 # ifdef wxABORT_ON_CONFIG_ERROR
1828 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1829 # else
1830 # undef wxUSE_STREAMS
1831 # define wxUSE_STREAMS 1
1832 # endif
1833 # endif
1834
1835 # if !wxUSE_FILE_HISTORY
1836 # ifdef wxABORT_ON_CONFIG_ERROR
1837 # error "DocView requires wxUSE_FILE_HISTORY"
1838 # else
1839 # undef wxUSE_FILE_HISTORY
1840 # define wxUSE_FILE_HISTORY 1
1841 # endif
1842 # endif
1843 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1844
1845 #if wxUSE_PRINTING_ARCHITECTURE
1846 # if !wxUSE_COMBOBOX
1847 # ifdef wxABORT_ON_CONFIG_ERROR
1848 # error "Print dialog requires wxUSE_COMBOBOX"
1849 # else
1850 # undef wxUSE_COMBOBOX
1851 # define wxUSE_COMBOBOX 1
1852 # endif
1853 # endif
1854 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1855
1856 #if wxUSE_MDI_ARCHITECTURE
1857 # if !wxUSE_MDI
1858 # ifdef wxABORT_ON_CONFIG_ERROR
1859 # error "MDI requires wxUSE_MDI"
1860 # else
1861 # undef wxUSE_MDI
1862 # define wxUSE_MDI 1
1863 # endif
1864 # endif
1865
1866 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1867 # ifdef wxABORT_ON_CONFIG_ERROR
1868 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1869 # else
1870 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1871 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1872 # endif
1873 # endif
1874 #endif /* wxUSE_MDI_ARCHITECTURE */
1875
1876 #if !wxUSE_FILEDLG
1877 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1878 # ifdef wxABORT_ON_CONFIG_ERROR
1879 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1880 # else
1881 # undef wxUSE_FILEDLG
1882 # define wxUSE_FILEDLG 1
1883 # endif
1884 # endif
1885 #endif /* wxUSE_FILEDLG */
1886
1887 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1888 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1889 # ifdef wxABORT_ON_CONFIG_ERROR
1890 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1891 # else
1892 # undef wxUSE_GAUGE
1893 # undef wxUSE_BUTTON
1894 # define wxUSE_GAUGE 1
1895 # define wxUSE_BUTTON 1
1896 # endif
1897 # endif
1898 #endif /* !wxUSE_GAUGE */
1899
1900 #if !wxUSE_BUTTON
1901 # if wxUSE_FONTDLG || \
1902 wxUSE_FILEDLG || \
1903 wxUSE_CHOICEDLG || \
1904 wxUSE_NUMBERDLG || \
1905 wxUSE_TEXTDLG || \
1906 wxUSE_DIRDLG || \
1907 wxUSE_STARTUP_TIPS || \
1908 wxUSE_WIZARDDLG
1909 # ifdef wxABORT_ON_CONFIG_ERROR
1910 # error "Common and generic dialogs require wxUSE_BUTTON"
1911 # else
1912 # undef wxUSE_BUTTON
1913 # define wxUSE_BUTTON 1
1914 # endif
1915 # endif
1916 #endif /* !wxUSE_BUTTON */
1917
1918 #if !wxUSE_TOOLBAR
1919 # if wxUSE_TOOLBAR_NATIVE
1920 # ifdef wxABORT_ON_CONFIG_ERROR
1921 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1922 # else
1923 # undef wxUSE_TOOLBAR_NATIVE
1924 # define wxUSE_TOOLBAR_NATIVE 0
1925 # endif
1926 # endif
1927 #endif
1928
1929 #if !wxUSE_IMAGLIST
1930 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1931 # ifdef wxABORT_ON_CONFIG_ERROR
1932 # error "wxImageList must be compiled as well"
1933 # else
1934 # undef wxUSE_IMAGLIST
1935 # define wxUSE_IMAGLIST 1
1936 # endif
1937 # endif
1938 #endif /* !wxUSE_IMAGLIST */
1939
1940 #if wxUSE_RADIOBOX
1941 # if !wxUSE_RADIOBTN
1942 # ifdef wxABORT_ON_CONFIG_ERROR
1943 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1944 # else
1945 # undef wxUSE_RADIOBTN
1946 # define wxUSE_RADIOBTN 1
1947 # endif
1948 # endif
1949 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1950 # ifdef wxABORT_ON_CONFIG_ERROR
1951 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1952 # else
1953 # undef wxUSE_STATBOX
1954 # define wxUSE_STATBOX 1
1955 # endif
1956 # endif
1957 #endif /* wxUSE_RADIOBOX */
1958
1959 #if wxUSE_LOGWINDOW
1960 # if !wxUSE_TEXTCTRL
1961 # ifdef wxABORT_ON_CONFIG_ERROR
1962 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1963 # else
1964 # undef wxUSE_TEXTCTRL
1965 # define wxUSE_TEXTCTRL 1
1966 # endif
1967 # endif
1968 #endif /* wxUSE_LOGWINDOW */
1969
1970 #if wxUSE_LOG_DIALOG
1971 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1972 # ifdef wxABORT_ON_CONFIG_ERROR
1973 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1974 # else
1975 # undef wxUSE_LISTCTRL
1976 # define wxUSE_LISTCTRL 1
1977 # undef wxUSE_BUTTON
1978 # define wxUSE_BUTTON 1
1979 # endif
1980 # endif
1981 #endif /* wxUSE_LOG_DIALOG */
1982
1983 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1984 # ifdef wxABORT_ON_CONFIG_ERROR
1985 # error "wxClipboard requires wxDataObject"
1986 # else
1987 # undef wxUSE_DATAOBJ
1988 # define wxUSE_DATAOBJ 1
1989 # endif
1990 #endif /* wxUSE_CLIPBOARD */
1991
1992 #if wxUSE_XRC && !wxUSE_XML
1993 # ifdef wxABORT_ON_CONFIG_ERROR
1994 # error "wxUSE_XRC requires wxUSE_XML"
1995 # else
1996 # undef wxUSE_XRC
1997 # define wxUSE_XRC 0
1998 # endif
1999 #endif /* wxUSE_XRC */
2000
2001 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2002 # ifdef wxABORT_ON_CONFIG_ERROR
2003 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2004 # else
2005 # undef wxUSE_SOCKETS
2006 # define wxUSE_SOCKETS 0
2007 # endif
2008 #endif /* wxUSE_SOCKETS */
2009
2010 #if wxUSE_SVG && !wxUSE_STREAMS
2011 # ifdef wxABORT_ON_CONFIG_ERROR
2012 # error "wxUSE_SVG requires wxUSE_STREAMS"
2013 # else
2014 # undef wxUSE_SVG
2015 # define wxUSE_SVG 0
2016 # endif
2017 #endif /* wxUSE_SVG */
2018
2019 #if wxUSE_SVG && !wxUSE_IMAGE
2020 # ifdef wxABORT_ON_CONFIG_ERROR
2021 # error "wxUSE_SVG requires wxUSE_IMAGE"
2022 # else
2023 # undef wxUSE_SVG
2024 # define wxUSE_SVG 0
2025 # endif
2026 #endif /* wxUSE_SVG */
2027
2028 #if wxUSE_SVG && !wxUSE_LIBPNG
2029 # ifdef wxABORT_ON_CONFIG_ERROR
2030 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2031 # else
2032 # undef wxUSE_SVG
2033 # define wxUSE_SVG 0
2034 # endif
2035 #endif /* wxUSE_SVG */
2036
2037 #if !wxUSE_VARIANT
2038 # if wxUSE_DATAVIEWCTRL
2039 # ifdef wxABORT_ON_CONFIG_ERROR
2040 # error "wxDataViewCtrl requires wxVariant"
2041 # else
2042 # undef wxUSE_DATAVIEWCTRL
2043 # define wxUSE_DATAVIEWCTRL 0
2044 # endif
2045 # endif
2046 #endif /* wxUSE_VARIANT */
2047
2048 #endif /* wxUSE_GUI */
2049
2050 #endif /* _WX_CHKCONF_H_ */