]> git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
6f8c330ed05b4f658d362e372ba1462b4cd34115
[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 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
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_STD_CONTAINERS
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
305 # else
306 # define wxUSE_STD_CONTAINERS 0
307 # endif
308 #endif /* !defined(wxUSE_STD_CONTAINERS) */
309
310 #ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
313 # else
314 # define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
315 # endif
316 #endif /* !defined(wxUSE_STD_STRING_CONV_IN_WXSTRING) */
317
318 #ifndef wxUSE_STREAMS
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
321 # else
322 # define wxUSE_STREAMS 0
323 # endif
324 #endif /* !defined(wxUSE_STREAMS) */
325
326 #ifndef wxUSE_STOPWATCH
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
329 # else
330 # define wxUSE_STOPWATCH 0
331 # endif
332 #endif /* !defined(wxUSE_STOPWATCH) */
333
334 #ifndef wxUSE_TEXTBUFFER
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
337 # else
338 # define wxUSE_TEXTBUFFER 0
339 # endif
340 #endif /* !defined(wxUSE_TEXTBUFFER) */
341
342 #ifndef wxUSE_TEXTFILE
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
345 # else
346 # define wxUSE_TEXTFILE 0
347 # endif
348 #endif /* !defined(wxUSE_TEXTFILE) */
349
350 #ifndef wxUSE_UNICODE
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
353 # else
354 # define wxUSE_UNICODE 0
355 # endif
356 #endif /* !defined(wxUSE_UNICODE) */
357
358 #ifndef wxUSE_URL
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_URL must be defined, please read comment near the top of this file."
361 # else
362 # define wxUSE_URL 0
363 # endif
364 #endif /* !defined(wxUSE_URL) */
365
366 #ifndef wxUSE_VARIANT
367 # ifdef wxABORT_ON_CONFIG_ERROR
368 # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
369 # else
370 # define wxUSE_VARIANT 0
371 # endif
372 #endif /* wxUSE_VARIANT */
373
374 #ifndef wxUSE_XLOCALE
375 # ifdef wxABORT_ON_CONFIG_ERROR
376 # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
377 # else
378 # define wxUSE_XLOCALE 0
379 # endif
380 #endif /* !defined(wxUSE_XLOCALE) */
381
382 /*
383 Section 1b: all these tests are for GUI only.
384
385 please keep the options in alphabetical order!
386 */
387 #if wxUSE_GUI
388
389 /*
390 all of the settings tested below must be defined or we'd get an error from
391 preprocessor about invalid integer expression
392 */
393
394 #ifndef wxUSE_ABOUTDLG
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
397 # else
398 # define wxUSE_ABOUTDLG 0
399 # endif
400 #endif /* !defined(wxUSE_ABOUTDLG) */
401
402 #ifndef wxUSE_ACCEL
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
405 # else
406 # define wxUSE_ACCEL 0
407 # endif
408 #endif /* !defined(wxUSE_ACCEL) */
409
410 #ifndef wxUSE_ACCESSIBILITY
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
413 # else
414 # define wxUSE_ACCESSIBILITY 0
415 # endif
416 #endif /* !defined(wxUSE_ACCESSIBILITY) */
417
418 #ifndef wxUSE_ANIMATIONCTRL
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
421 # else
422 # define wxUSE_ANIMATIONCTRL 0
423 # endif
424 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
425
426 #ifndef wxUSE_ARTPROVIDER_STD
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_ARTPROVIDER_STD must be defined, please read comment near the top of this file."
429 # else
430 # define wxUSE_ARTPROVIDER_STD 0
431 # endif
432 #endif /* !defined(wxUSE_ARTPROVIDER_STD) */
433
434 #ifndef wxUSE_ARTPROVIDER_TANGO
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_ARTPROVIDER_TANGO must be defined, please read comment near the top of this file."
437 # else
438 # define wxUSE_ARTPROVIDER_TANGO 0
439 # endif
440 #endif /* !defined(wxUSE_ARTPROVIDER_TANGO) */
441
442 #ifndef wxUSE_AUTOID_MANAGEMENT
443 # ifdef wxABORT_ON_CONFIG_ERROR
444 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
445 # else
446 # define wxUSE_AUTOID_MANAGEMENT 0
447 # endif
448 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
449
450 #ifndef wxUSE_BITMAPCOMBOBOX
451 # ifdef wxABORT_ON_CONFIG_ERROR
452 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
453 # else
454 # define wxUSE_BITMAPCOMBOBOX 0
455 # endif
456 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
457
458 #ifndef wxUSE_BMPBUTTON
459 # ifdef wxABORT_ON_CONFIG_ERROR
460 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
461 # else
462 # define wxUSE_BMPBUTTON 0
463 # endif
464 #endif /* !defined(wxUSE_BMPBUTTON) */
465
466 #ifndef wxUSE_BUTTON
467 # ifdef wxABORT_ON_CONFIG_ERROR
468 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
469 # else
470 # define wxUSE_BUTTON 0
471 # endif
472 #endif /* !defined(wxUSE_BUTTON) */
473
474 #ifndef wxUSE_CAIRO
475 # ifdef wxABORT_ON_CONFIG_ERROR
476 # error "wxUSE_CAIRO must be defined, please read comment near the top of this file."
477 # else
478 # define wxUSE_CAIRO 0
479 # endif
480 #endif /* !defined(wxUSE_CAIRO) */
481
482 #ifndef wxUSE_CALENDARCTRL
483 # ifdef wxABORT_ON_CONFIG_ERROR
484 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
485 # else
486 # define wxUSE_CALENDARCTRL 0
487 # endif
488 #endif /* !defined(wxUSE_CALENDARCTRL) */
489
490 #ifndef wxUSE_CARET
491 # ifdef wxABORT_ON_CONFIG_ERROR
492 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
493 # else
494 # define wxUSE_CARET 0
495 # endif
496 #endif /* !defined(wxUSE_CARET) */
497
498 #ifndef wxUSE_CHECKBOX
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
501 # else
502 # define wxUSE_CHECKBOX 0
503 # endif
504 #endif /* !defined(wxUSE_CHECKBOX) */
505
506 #ifndef wxUSE_CHECKLISTBOX
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
509 # else
510 # define wxUSE_CHECKLISTBOX 0
511 # endif
512 #endif /* !defined(wxUSE_CHECKLISTBOX) */
513
514 #ifndef wxUSE_CHOICE
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
517 # else
518 # define wxUSE_CHOICE 0
519 # endif
520 #endif /* !defined(wxUSE_CHOICE) */
521
522 #ifndef wxUSE_CHOICEBOOK
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
525 # else
526 # define wxUSE_CHOICEBOOK 0
527 # endif
528 #endif /* !defined(wxUSE_CHOICEBOOK) */
529
530 #ifndef wxUSE_CHOICEDLG
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
533 # else
534 # define wxUSE_CHOICEDLG 0
535 # endif
536 #endif /* !defined(wxUSE_CHOICEDLG) */
537
538 #ifndef wxUSE_CLIPBOARD
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
541 # else
542 # define wxUSE_CLIPBOARD 0
543 # endif
544 #endif /* !defined(wxUSE_CLIPBOARD) */
545
546 #ifndef wxUSE_COLLPANE
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
549 # else
550 # define wxUSE_COLLPANE 0
551 # endif
552 #endif /* !defined(wxUSE_COLLPANE) */
553
554 #ifndef wxUSE_COLOURDLG
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
557 # else
558 # define wxUSE_COLOURDLG 0
559 # endif
560 #endif /* !defined(wxUSE_COLOURDLG) */
561
562 #ifndef wxUSE_COLOURPICKERCTRL
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
565 # else
566 # define wxUSE_COLOURPICKERCTRL 0
567 # endif
568 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
569
570 #ifndef wxUSE_COMBOBOX
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
573 # else
574 # define wxUSE_COMBOBOX 0
575 # endif
576 #endif /* !defined(wxUSE_COMBOBOX) */
577
578 #ifndef wxUSE_COMMANDLINKBUTTON
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
581 # else
582 # define wxUSE_COMMANDLINKBUTTON 0
583 # endif
584 #endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
585
586 #ifndef wxUSE_COMBOCTRL
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
589 # else
590 # define wxUSE_COMBOCTRL 0
591 # endif
592 #endif /* !defined(wxUSE_COMBOCTRL) */
593
594 #ifndef wxUSE_DATAOBJ
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
597 # else
598 # define wxUSE_DATAOBJ 0
599 # endif
600 #endif /* !defined(wxUSE_DATAOBJ) */
601
602 #ifndef wxUSE_DATAVIEWCTRL
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
605 # else
606 # define wxUSE_DATAVIEWCTRL 0
607 # endif
608 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
609
610 #ifndef wxUSE_DATEPICKCTRL
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
613 # else
614 # define wxUSE_DATEPICKCTRL 0
615 # endif
616 #endif /* !defined(wxUSE_DATEPICKCTRL) */
617
618 #ifndef wxUSE_DC_TRANSFORM_MATRIX
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_DC_TRANSFORM_MATRIX must be defined, please read comment near the top of this file."
621 # else
622 # define wxUSE_DC_TRANSFORM_MATRIX 1
623 # endif
624 #endif /* wxUSE_DC_TRANSFORM_MATRIX */
625
626 #ifndef wxUSE_DIRPICKERCTRL
627 # ifdef wxABORT_ON_CONFIG_ERROR
628 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
629 # else
630 # define wxUSE_DIRPICKERCTRL 0
631 # endif
632 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
633
634 #ifndef wxUSE_DISPLAY
635 # ifdef wxABORT_ON_CONFIG_ERROR
636 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
637 # else
638 # define wxUSE_DISPLAY 0
639 # endif
640 #endif /* !defined(wxUSE_DISPLAY) */
641
642 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
645 # else
646 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
647 # endif
648 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
649
650 #ifndef wxUSE_FILECTRL
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
653 # else
654 # define wxUSE_FILECTRL 0
655 # endif
656 #endif /* !defined(wxUSE_FILECTRL) */
657
658 #ifndef wxUSE_FILEDLG
659 # ifdef wxABORT_ON_CONFIG_ERROR
660 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
661 # else
662 # define wxUSE_FILEDLG 0
663 # endif
664 #endif /* !defined(wxUSE_FILEDLG) */
665
666 #ifndef wxUSE_FILEPICKERCTRL
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
669 # else
670 # define wxUSE_FILEPICKERCTRL 0
671 # endif
672 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
673
674 #ifndef wxUSE_FONTDLG
675 # ifdef wxABORT_ON_CONFIG_ERROR
676 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
677 # else
678 # define wxUSE_FONTDLG 0
679 # endif
680 #endif /* !defined(wxUSE_FONTDLG) */
681
682 #ifndef wxUSE_FONTMAP
683 # ifdef wxABORT_ON_CONFIG_ERROR
684 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
685 # else
686 # define wxUSE_FONTMAP 0
687 # endif
688 #endif /* !defined(wxUSE_FONTMAP) */
689
690 #ifndef wxUSE_FONTPICKERCTRL
691 # ifdef wxABORT_ON_CONFIG_ERROR
692 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
693 # else
694 # define wxUSE_FONTPICKERCTRL 0
695 # endif
696 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
697
698 #ifndef wxUSE_GAUGE
699 # ifdef wxABORT_ON_CONFIG_ERROR
700 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
701 # else
702 # define wxUSE_GAUGE 0
703 # endif
704 #endif /* !defined(wxUSE_GAUGE) */
705
706 #ifndef wxUSE_GRAPHICS_CONTEXT
707 # ifdef wxABORT_ON_CONFIG_ERROR
708 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
709 # else
710 # define wxUSE_GRAPHICS_CONTEXT 0
711 # endif
712 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
713
714
715 #ifndef wxUSE_GRID
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
718 # else
719 # define wxUSE_GRID 0
720 # endif
721 #endif /* !defined(wxUSE_GRID) */
722
723 #ifndef wxUSE_HEADERCTRL
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
726 # else
727 # define wxUSE_HEADERCTRL 0
728 # endif
729 #endif /* !defined(wxUSE_HEADERCTRL) */
730
731 #ifndef wxUSE_HELP
732 # ifdef wxABORT_ON_CONFIG_ERROR
733 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
734 # else
735 # define wxUSE_HELP 0
736 # endif
737 #endif /* !defined(wxUSE_HELP) */
738
739 #ifndef wxUSE_HYPERLINKCTRL
740 # ifdef wxABORT_ON_CONFIG_ERROR
741 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
742 # else
743 # define wxUSE_HYPERLINKCTRL 0
744 # endif
745 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
746
747 #ifndef wxUSE_HTML
748 # ifdef wxABORT_ON_CONFIG_ERROR
749 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
750 # else
751 # define wxUSE_HTML 0
752 # endif
753 #endif /* !defined(wxUSE_HTML) */
754
755 #ifndef wxUSE_LIBMSPACK
756 # if !defined(__UNIX__) || defined(__WXPALMOS__)
757 /* set to 0 on platforms that don't have libmspack */
758 # define wxUSE_LIBMSPACK 0
759 # else
760 # ifdef wxABORT_ON_CONFIG_ERROR
761 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
762 # else
763 # define wxUSE_LIBMSPACK 0
764 # endif
765 # endif
766 #endif /* !defined(wxUSE_LIBMSPACK) */
767
768 #ifndef wxUSE_ICO_CUR
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
771 # else
772 # define wxUSE_ICO_CUR 0
773 # endif
774 #endif /* !defined(wxUSE_ICO_CUR) */
775
776 #ifndef wxUSE_IFF
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
779 # else
780 # define wxUSE_IFF 0
781 # endif
782 #endif /* !defined(wxUSE_IFF) */
783
784 #ifndef wxUSE_IMAGLIST
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
787 # else
788 # define wxUSE_IMAGLIST 0
789 # endif
790 #endif /* !defined(wxUSE_IMAGLIST) */
791
792 #ifndef wxUSE_INFOBAR
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
795 # else
796 # define wxUSE_INFOBAR 0
797 # endif
798 #endif /* !defined(wxUSE_INFOBAR) */
799
800 #ifndef wxUSE_JOYSTICK
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
803 # else
804 # define wxUSE_JOYSTICK 0
805 # endif
806 #endif /* !defined(wxUSE_JOYSTICK) */
807
808 #ifndef wxUSE_LISTBOOK
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
811 # else
812 # define wxUSE_LISTBOOK 0
813 # endif
814 #endif /* !defined(wxUSE_LISTBOOK) */
815
816 #ifndef wxUSE_LISTBOX
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
819 # else
820 # define wxUSE_LISTBOX 0
821 # endif
822 #endif /* !defined(wxUSE_LISTBOX) */
823
824 #ifndef wxUSE_LISTCTRL
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
827 # else
828 # define wxUSE_LISTCTRL 0
829 # endif
830 #endif /* !defined(wxUSE_LISTCTRL) */
831
832 #ifndef wxUSE_LOGGUI
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
835 # else
836 # define wxUSE_LOGGUI 0
837 # endif
838 #endif /* !defined(wxUSE_LOGGUI) */
839
840 #ifndef wxUSE_LOGWINDOW
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
843 # else
844 # define wxUSE_LOGWINDOW 0
845 # endif
846 #endif /* !defined(wxUSE_LOGWINDOW) */
847
848 #ifndef wxUSE_LOG_DIALOG
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
851 # else
852 # define wxUSE_LOG_DIALOG 0
853 # endif
854 #endif /* !defined(wxUSE_LOG_DIALOG) */
855
856 #ifndef wxUSE_MARKUP
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_MARKUP must be defined, please read comment near the top of this file."
859 # else
860 # define wxUSE_MARKUP 0
861 # endif
862 #endif /* !defined(wxUSE_MARKUP) */
863
864 #ifndef wxUSE_MDI
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
867 # else
868 # define wxUSE_MDI 0
869 # endif
870 #endif /* !defined(wxUSE_MDI) */
871
872 #ifndef wxUSE_MDI_ARCHITECTURE
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
875 # else
876 # define wxUSE_MDI_ARCHITECTURE 0
877 # endif
878 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
879
880 #ifndef wxUSE_MENUS
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
883 # else
884 # define wxUSE_MENUS 0
885 # endif
886 #endif /* !defined(wxUSE_MENUS) */
887
888 #ifndef wxUSE_MSGDLG
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
891 # else
892 # define wxUSE_MSGDLG 0
893 # endif
894 #endif /* !defined(wxUSE_MSGDLG) */
895
896 #ifndef wxUSE_NOTEBOOK
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
899 # else
900 # define wxUSE_NOTEBOOK 0
901 # endif
902 #endif /* !defined(wxUSE_NOTEBOOK) */
903
904 #ifndef wxUSE_NOTIFICATION_MESSAGE
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
907 # else
908 # define wxUSE_NOTIFICATION_MESSAGE 0
909 # endif
910 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
911
912 #ifndef wxUSE_ODCOMBOBOX
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
915 # else
916 # define wxUSE_ODCOMBOBOX 0
917 # endif
918 #endif /* !defined(wxUSE_ODCOMBOBOX) */
919
920 #ifndef wxUSE_PALETTE
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
923 # else
924 # define wxUSE_PALETTE 0
925 # endif
926 #endif /* !defined(wxUSE_PALETTE) */
927
928 #ifndef wxUSE_POPUPWIN
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
931 # else
932 # define wxUSE_POPUPWIN 0
933 # endif
934 #endif /* !defined(wxUSE_POPUPWIN) */
935
936 #ifndef wxUSE_PRINTING_ARCHITECTURE
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
939 # else
940 # define wxUSE_PRINTING_ARCHITECTURE 0
941 # endif
942 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
943
944 #ifndef wxUSE_RADIOBOX
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
947 # else
948 # define wxUSE_RADIOBOX 0
949 # endif
950 #endif /* !defined(wxUSE_RADIOBOX) */
951
952 #ifndef wxUSE_RADIOBTN
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
955 # else
956 # define wxUSE_RADIOBTN 0
957 # endif
958 #endif /* !defined(wxUSE_RADIOBTN) */
959
960 #ifndef wxUSE_REARRANGECTRL
961 # ifdef wxABORT_ON_CONFIG_ERROR
962 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
963 # else
964 # define wxUSE_REARRANGECTRL 0
965 # endif
966 #endif /* !defined(wxUSE_REARRANGECTRL) */
967
968 #ifndef wxUSE_RIBBON
969 # ifdef wxABORT_ON_CONFIG_ERROR
970 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
971 # else
972 # define wxUSE_RIBBON 0
973 # endif
974 #endif /* !defined(wxUSE_RIBBON) */
975
976 #ifndef wxUSE_RICHMSGDLG
977 # ifdef wxABORT_ON_CONFIG_ERROR
978 # error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
979 # else
980 # define wxUSE_RICHMSGDLG 0
981 # endif
982 #endif /* !defined(wxUSE_RIBBON) */
983
984 #ifndef wxUSE_SASH
985 # ifdef wxABORT_ON_CONFIG_ERROR
986 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
987 # else
988 # define wxUSE_SASH 0
989 # endif
990 #endif /* !defined(wxUSE_SASH) */
991
992 #ifndef wxUSE_SCROLLBAR
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
995 # else
996 # define wxUSE_SCROLLBAR 0
997 # endif
998 #endif /* !defined(wxUSE_SCROLLBAR) */
999
1000 #ifndef wxUSE_SLIDER
1001 # ifdef wxABORT_ON_CONFIG_ERROR
1002 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1003 # else
1004 # define wxUSE_SLIDER 0
1005 # endif
1006 #endif /* !defined(wxUSE_SLIDER) */
1007
1008 #ifndef wxUSE_SOUND
1009 # ifdef wxABORT_ON_CONFIG_ERROR
1010 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
1011 # else
1012 # define wxUSE_SOUND 0
1013 # endif
1014 #endif /* !defined(wxUSE_SOUND) */
1015
1016 #ifndef wxUSE_SPINBTN
1017 # ifdef wxABORT_ON_CONFIG_ERROR
1018 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1019 # else
1020 # define wxUSE_SPINBTN 0
1021 # endif
1022 #endif /* !defined(wxUSE_SPINBTN) */
1023
1024 #ifndef wxUSE_SPINCTRL
1025 # ifdef wxABORT_ON_CONFIG_ERROR
1026 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1027 # else
1028 # define wxUSE_SPINCTRL 0
1029 # endif
1030 #endif /* !defined(wxUSE_SPINCTRL) */
1031
1032 #ifndef wxUSE_SPLASH
1033 # ifdef wxABORT_ON_CONFIG_ERROR
1034 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
1035 # else
1036 # define wxUSE_SPLASH 0
1037 # endif
1038 #endif /* !defined(wxUSE_SPLASH) */
1039
1040 #ifndef wxUSE_SPLITTER
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1043 # else
1044 # define wxUSE_SPLITTER 0
1045 # endif
1046 #endif /* !defined(wxUSE_SPLITTER) */
1047
1048 #ifndef wxUSE_STATBMP
1049 # ifdef wxABORT_ON_CONFIG_ERROR
1050 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1051 # else
1052 # define wxUSE_STATBMP 0
1053 # endif
1054 #endif /* !defined(wxUSE_STATBMP) */
1055
1056 #ifndef wxUSE_STATBOX
1057 # ifdef wxABORT_ON_CONFIG_ERROR
1058 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1059 # else
1060 # define wxUSE_STATBOX 0
1061 # endif
1062 #endif /* !defined(wxUSE_STATBOX) */
1063
1064 #ifndef wxUSE_STATLINE
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1067 # else
1068 # define wxUSE_STATLINE 0
1069 # endif
1070 #endif /* !defined(wxUSE_STATLINE) */
1071
1072 #ifndef wxUSE_STATTEXT
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1075 # else
1076 # define wxUSE_STATTEXT 0
1077 # endif
1078 #endif /* !defined(wxUSE_STATTEXT) */
1079
1080 #ifndef wxUSE_STATUSBAR
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1083 # else
1084 # define wxUSE_STATUSBAR 0
1085 # endif
1086 #endif /* !defined(wxUSE_STATUSBAR) */
1087
1088 #ifndef wxUSE_TASKBARICON
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1091 # else
1092 # define wxUSE_TASKBARICON 0
1093 # endif
1094 #endif /* !defined(wxUSE_TASKBARICON) */
1095
1096 #ifndef wxUSE_TEXTCTRL
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1099 # else
1100 # define wxUSE_TEXTCTRL 0
1101 # endif
1102 #endif /* !defined(wxUSE_TEXTCTRL) */
1103
1104 #ifndef wxUSE_TIPWINDOW
1105 # ifdef wxABORT_ON_CONFIG_ERROR
1106 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1107 # else
1108 # define wxUSE_TIPWINDOW 0
1109 # endif
1110 #endif /* !defined(wxUSE_TIPWINDOW) */
1111
1112 #ifndef wxUSE_TOOLBAR
1113 # ifdef wxABORT_ON_CONFIG_ERROR
1114 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1115 # else
1116 # define wxUSE_TOOLBAR 0
1117 # endif
1118 #endif /* !defined(wxUSE_TOOLBAR) */
1119
1120 #ifndef wxUSE_TOOLTIPS
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1123 # else
1124 # define wxUSE_TOOLTIPS 0
1125 # endif
1126 #endif /* !defined(wxUSE_TOOLTIPS) */
1127
1128 #ifndef wxUSE_TREECTRL
1129 # ifdef wxABORT_ON_CONFIG_ERROR
1130 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1131 # else
1132 # define wxUSE_TREECTRL 0
1133 # endif
1134 #endif /* !defined(wxUSE_TREECTRL) */
1135
1136 #ifndef wxUSE_TREELISTCTRL
1137 # ifdef wxABORT_ON_CONFIG_ERROR
1138 # error "wxUSE_TREELISTCTRL must be defined, please read comment near the top of this file."
1139 # else
1140 # define wxUSE_TREELISTCTRL 0
1141 # endif
1142 #endif /* !defined(wxUSE_TREELISTCTRL) */
1143
1144 #ifndef wxUSE_UIACTIONSIMULATOR
1145 # ifdef wxABORT_ON_CONFIG_ERROR
1146 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1147 # else
1148 # define wxUSE_UIACTIONSIMULATOR 0
1149 # endif
1150 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1151
1152 #ifndef wxUSE_VALIDATORS
1153 # ifdef wxABORT_ON_CONFIG_ERROR
1154 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1155 # else
1156 # define wxUSE_VALIDATORS 0
1157 # endif
1158 #endif /* !defined(wxUSE_VALIDATORS) */
1159
1160 #ifndef wxUSE_WEBVIEW
1161 # ifdef wxABORT_ON_CONFIG_ERROR
1162 # error "wxUSE_WEBVIEW must be defined, please read comment near the top of this file."
1163 # else
1164 # define wxUSE_WEBVIEW 0
1165 # endif
1166 #endif /* !defined(wxUSE_WEBVIEW) */
1167
1168 #ifndef wxUSE_WXHTML_HELP
1169 # ifdef wxABORT_ON_CONFIG_ERROR
1170 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1171 # else
1172 # define wxUSE_WXHTML_HELP 0
1173 # endif
1174 #endif /* !defined(wxUSE_WXHTML_HELP) */
1175
1176 #ifndef wxUSE_XRC
1177 # ifdef wxABORT_ON_CONFIG_ERROR
1178 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1179 # else
1180 # define wxUSE_XRC 0
1181 # endif
1182 #endif /* !defined(wxUSE_XRC) */
1183
1184 #endif /* wxUSE_GUI */
1185
1186 /*
1187 Section 2: platform-specific checks.
1188
1189 This must be done after checking that everything is defined as the platform
1190 checks use wxUSE_XXX symbols in #if tests.
1191 */
1192
1193 #if defined(__WXPALMOS__)
1194 # include "wx/palmos/chkconf.h"
1195 #elif defined(__WXWINCE__)
1196 # include "wx/msw/wince/chkconf.h"
1197 #elif defined(__WXMSW__)
1198 # include "wx/msw/chkconf.h"
1199 #elif defined(__WXGTK__)
1200 # include "wx/gtk/chkconf.h"
1201 #elif defined(__WXCOCOA__)
1202 # include "wx/cocoa/chkconf.h"
1203 #elif defined(__WXMAC__)
1204 # include "wx/osx/chkconf.h"
1205 #elif defined(__OS2__)
1206 # include "wx/os2/chkconf.h"
1207 #elif defined(__WXMGL__)
1208 # include "wx/mgl/chkconf.h"
1209 #elif defined(__WXDFB__)
1210 # include "wx/dfb/chkconf.h"
1211 #elif defined(__WXMOTIF__)
1212 # include "wx/motif/chkconf.h"
1213 #elif defined(__WXX11__)
1214 # include "wx/x11/chkconf.h"
1215 #endif
1216
1217 /*
1218 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1219 there if we're building wxMSW.
1220 */
1221 #if defined(__UNIX__) && !defined(__WXMSW__)
1222 # include "wx/unix/chkconf.h"
1223 #endif
1224
1225 #ifdef __WXUNIVERSAL__
1226 # include "wx/univ/chkconf.h"
1227 #endif
1228
1229 /*
1230 Section 3a: check consistency of the non-GUI settings.
1231 */
1232
1233 #if WXWIN_COMPATIBILITY_2_6
1234 # if !WXWIN_COMPATIBILITY_2_8
1235 # ifdef wxABORT_ON_CONFIG_ERROR
1236 # error "2.6.X compatibility requires 2.8.X compatibility"
1237 # else
1238 # undef WXWIN_COMPATIBILITY_2_8
1239 # define WXWIN_COMPATIBILITY_2_8 1
1240 # endif
1241 # endif
1242 #endif /* WXWIN_COMPATIBILITY_2_6 */
1243
1244 #if wxUSE_ARCHIVE_STREAMS
1245 # if !wxUSE_DATETIME
1246 # ifdef wxABORT_ON_CONFIG_ERROR
1247 # error "wxArchive requires wxUSE_DATETIME"
1248 # else
1249 # undef wxUSE_ARCHIVE_STREAMS
1250 # define wxUSE_ARCHIVE_STREAMS 0
1251 # endif
1252 # endif
1253 #endif /* wxUSE_ARCHIVE_STREAMS */
1254
1255 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1256 # if !wxUSE_PROTOCOL
1257 # ifdef wxABORT_ON_CONFIG_ERROR
1258 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1259 # else
1260 # undef wxUSE_PROTOCOL
1261 # define wxUSE_PROTOCOL 1
1262 # endif
1263 # endif
1264 #endif /* wxUSE_PROTOCOL_XXX */
1265
1266 #if wxUSE_URL
1267 # if !wxUSE_PROTOCOL
1268 # ifdef wxABORT_ON_CONFIG_ERROR
1269 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1270 # else
1271 # undef wxUSE_PROTOCOL
1272 # define wxUSE_PROTOCOL 1
1273 # endif
1274 # endif
1275 #endif /* wxUSE_URL */
1276
1277 #if wxUSE_PROTOCOL
1278 # if !wxUSE_SOCKETS
1279 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1280 # ifdef wxABORT_ON_CONFIG_ERROR
1281 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1282 # else
1283 # undef wxUSE_SOCKETS
1284 # define wxUSE_SOCKETS 1
1285 # endif
1286 # endif
1287 # endif
1288
1289 # if !wxUSE_STREAMS
1290 # ifdef wxABORT_ON_CONFIG_ERROR
1291 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1292 # else
1293 # undef wxUSE_STREAMS
1294 # define wxUSE_STREAMS 1
1295 # endif
1296 # endif
1297 #endif /* wxUSE_PROTOCOL */
1298
1299 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1300 #if wxUSE_HTML
1301 # if !wxUSE_FILESYSTEM
1302 # ifdef wxABORT_ON_CONFIG_ERROR
1303 # error "wxHTML requires wxFileSystem"
1304 # else
1305 # undef wxUSE_FILESYSTEM
1306 # define wxUSE_FILESYSTEM 1
1307 # endif
1308 # endif
1309 #endif /* wxUSE_HTML */
1310
1311 #if wxUSE_FS_ARCHIVE
1312 # if !wxUSE_FILESYSTEM
1313 # ifdef wxABORT_ON_CONFIG_ERROR
1314 # error "wxArchiveFSHandler requires wxFileSystem"
1315 # else
1316 # undef wxUSE_FILESYSTEM
1317 # define wxUSE_FILESYSTEM 1
1318 # endif
1319 # endif
1320 # if !wxUSE_ARCHIVE_STREAMS
1321 # ifdef wxABORT_ON_CONFIG_ERROR
1322 # error "wxArchiveFSHandler requires wxArchive"
1323 # else
1324 # undef wxUSE_ARCHIVE_STREAMS
1325 # define wxUSE_ARCHIVE_STREAMS 1
1326 # endif
1327 # endif
1328 #endif /* wxUSE_FS_ARCHIVE */
1329
1330 #if wxUSE_FILESYSTEM
1331 # if !wxUSE_STREAMS
1332 # ifdef wxABORT_ON_CONFIG_ERROR
1333 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1334 # else
1335 # undef wxUSE_STREAMS
1336 # define wxUSE_STREAMS 1
1337 # endif
1338 # endif
1339 # if !wxUSE_FILE && !wxUSE_FFILE
1340 # ifdef wxABORT_ON_CONFIG_ERROR
1341 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1342 # else
1343 # undef wxUSE_FILE
1344 # define wxUSE_FILE 1
1345 # undef wxUSE_FFILE
1346 # define wxUSE_FFILE 1
1347 # endif
1348 # endif
1349 #endif /* wxUSE_FILESYSTEM */
1350
1351 #if wxUSE_FS_INET
1352 # if !wxUSE_PROTOCOL
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1355 # else
1356 # undef wxUSE_PROTOCOL
1357 # define wxUSE_PROTOCOL 1
1358 # endif
1359 # endif
1360 #endif /* wxUSE_FS_INET */
1361
1362 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1363 # if !wxUSE_LONGLONG
1364 # ifdef wxABORT_ON_CONFIG_ERROR
1365 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1366 # else
1367 # undef wxUSE_LONGLONG
1368 # define wxUSE_LONGLONG 1
1369 # endif
1370 # endif
1371 #endif /* wxUSE_STOPWATCH */
1372
1373 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1374 # ifdef wxABORT_ON_CONFIG_ERROR
1375 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1376 # else
1377 # undef wxUSE_TEXTFILE
1378 # define wxUSE_TEXTFILE 1
1379 # endif
1380 #endif /* wxUSE_MIMETYPE */
1381
1382 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1383 # ifdef wxABORT_ON_CONFIG_ERROR
1384 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1385 # else
1386 # undef wxUSE_TEXTBUFFER
1387 # define wxUSE_TEXTBUFFER 1
1388 # endif
1389 #endif /* wxUSE_TEXTFILE */
1390
1391 #if wxUSE_TEXTFILE && !wxUSE_FILE
1392 # ifdef wxABORT_ON_CONFIG_ERROR
1393 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1394 # else
1395 # undef wxUSE_FILE
1396 # define wxUSE_FILE 1
1397 # endif
1398 #endif /* wxUSE_TEXTFILE */
1399
1400 #if !wxUSE_DYNLIB_CLASS
1401 # if wxUSE_DYNAMIC_LOADER
1402 # ifdef wxABORT_ON_CONFIG_ERROR
1403 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1404 # else
1405 # define wxUSE_DYNLIB_CLASS 1
1406 # endif
1407 # endif
1408 #endif /* wxUSE_DYNLIB_CLASS */
1409
1410 #if wxUSE_ZIPSTREAM
1411 # if !wxUSE_ZLIB
1412 # ifdef wxABORT_ON_CONFIG_ERROR
1413 # error "wxZip requires wxZlib"
1414 # else
1415 # undef wxUSE_ZLIB
1416 # define wxUSE_ZLIB 1
1417 # endif
1418 # endif
1419 # if !wxUSE_ARCHIVE_STREAMS
1420 # ifdef wxABORT_ON_CONFIG_ERROR
1421 # error "wxZip requires wxArchive"
1422 # else
1423 # undef wxUSE_ARCHIVE_STREAMS
1424 # define wxUSE_ARCHIVE_STREAMS 1
1425 # endif
1426 # endif
1427 #endif /* wxUSE_ZIPSTREAM */
1428
1429 #if wxUSE_TARSTREAM
1430 # if !wxUSE_ARCHIVE_STREAMS
1431 # ifdef wxABORT_ON_CONFIG_ERROR
1432 # error "wxTar requires wxArchive"
1433 # else
1434 # undef wxUSE_ARCHIVE_STREAMS
1435 # define wxUSE_ARCHIVE_STREAMS 1
1436 # endif
1437 # endif
1438 #endif /* wxUSE_TARSTREAM */
1439
1440 /*
1441 Section 3b: the tests for the GUI settings only.
1442 */
1443 #if wxUSE_GUI
1444
1445 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
1446 # ifdef wxABORT_ON_CONFIG_ERROR
1447 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1448 # else
1449 # undef wxUSE_ACCESSIBILITY
1450 # define wxUSE_ACCESSIBILITY 0
1451 # endif
1452 #endif /* wxUSE_ACCESSIBILITY */
1453
1454 #if wxUSE_BUTTON || \
1455 wxUSE_CALENDARCTRL || \
1456 wxUSE_CARET || \
1457 wxUSE_COMBOBOX || \
1458 wxUSE_BMPBUTTON || \
1459 wxUSE_CHECKBOX || \
1460 wxUSE_CHECKLISTBOX || \
1461 wxUSE_CHOICE || \
1462 wxUSE_GAUGE || \
1463 wxUSE_GRID || \
1464 wxUSE_HEADERCTRL || \
1465 wxUSE_LISTBOX || \
1466 wxUSE_LISTCTRL || \
1467 wxUSE_NOTEBOOK || \
1468 wxUSE_RADIOBOX || \
1469 wxUSE_RADIOBTN || \
1470 wxUSE_REARRANGECTRL || \
1471 wxUSE_SCROLLBAR || \
1472 wxUSE_SLIDER || \
1473 wxUSE_SPINBTN || \
1474 wxUSE_SPINCTRL || \
1475 wxUSE_STATBMP || \
1476 wxUSE_STATBOX || \
1477 wxUSE_STATLINE || \
1478 wxUSE_STATTEXT || \
1479 wxUSE_STATUSBAR || \
1480 wxUSE_TEXTCTRL || \
1481 wxUSE_TOOLBAR || \
1482 wxUSE_TREECTRL || \
1483 wxUSE_TREELISTCTRL
1484 # if !wxUSE_CONTROLS
1485 # ifdef wxABORT_ON_CONFIG_ERROR
1486 # error "wxUSE_CONTROLS unset but some controls used"
1487 # else
1488 # undef wxUSE_CONTROLS
1489 # define wxUSE_CONTROLS 1
1490 # endif
1491 # endif
1492 #endif /* controls */
1493
1494 #if wxUSE_BMPBUTTON
1495 # if !wxUSE_BUTTON
1496 # ifdef wxABORT_ON_CONFIG_ERROR
1497 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1498 # else
1499 # undef wxUSE_BUTTON
1500 # define wxUSE_BUTTON 1
1501 # endif
1502 # endif
1503 #endif /* wxUSE_BMPBUTTON */
1504
1505 #if wxUSE_COMMANDLINKBUTTON
1506 # if !wxUSE_BUTTON
1507 # ifdef wxABORT_ON_CONFIG_ERROR
1508 # error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1509 # else
1510 # undef wxUSE_BUTTON
1511 # define wxUSE_BUTTON 1
1512 # endif
1513 # endif
1514 #endif /* wxUSE_COMMANDLINKBUTTON */
1515
1516 /*
1517 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1518 are used
1519 */
1520 #ifdef wxUSE_BOOKCTRL
1521 # ifdef wxABORT_ON_CONFIG_ERROR
1522 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1523 # else
1524 # undef wxUSE_BOOKCTRL
1525 # endif
1526 #endif
1527
1528 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1529 wxUSE_LISTBOOK || \
1530 wxUSE_CHOICEBOOK || \
1531 wxUSE_TOOLBOOK || \
1532 wxUSE_TREEBOOK)
1533
1534 #if wxUSE_COLLPANE
1535 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1536 # ifdef wxABORT_ON_CONFIG_ERROR
1537 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1538 # else
1539 # undef wxUSE_COLLPANE
1540 # define wxUSE_COLLPANE 0
1541 # endif
1542 # endif
1543 #endif /* wxUSE_COLLPANE */
1544
1545 #if wxUSE_LISTBOOK
1546 # if !wxUSE_LISTCTRL
1547 # ifdef wxABORT_ON_CONFIG_ERROR
1548 # error "wxListbook requires wxListCtrl"
1549 # else
1550 # undef wxUSE_LISTCTRL
1551 # define wxUSE_LISTCTRL 1
1552 # endif
1553 # endif
1554 #endif /* wxUSE_LISTBOOK */
1555
1556 #if wxUSE_CHOICEBOOK
1557 # if !wxUSE_CHOICE
1558 # ifdef wxABORT_ON_CONFIG_ERROR
1559 # error "wxChoicebook requires wxChoice"
1560 # else
1561 # undef wxUSE_CHOICE
1562 # define wxUSE_CHOICE 1
1563 # endif
1564 # endif
1565 #endif /* wxUSE_CHOICEBOOK */
1566
1567 #if wxUSE_TOOLBOOK
1568 # if !wxUSE_TOOLBAR
1569 # ifdef wxABORT_ON_CONFIG_ERROR
1570 # error "wxToolbook requires wxToolBar"
1571 # else
1572 # undef wxUSE_TOOLBAR
1573 # define wxUSE_TOOLBAR 1
1574 # endif
1575 # endif
1576 #endif /* wxUSE_TOOLBOOK */
1577
1578 #if !wxUSE_ODCOMBOBOX
1579 # if wxUSE_BITMAPCOMBOBOX
1580 # ifdef wxABORT_ON_CONFIG_ERROR
1581 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1582 # else
1583 # undef wxUSE_BITMAPCOMBOBOX
1584 # define wxUSE_BITMAPCOMBOBOX 0
1585 # endif
1586 # endif
1587 #endif /* !wxUSE_ODCOMBOBOX */
1588
1589 #if !wxUSE_HEADERCTRL
1590 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1591 # ifdef wxABORT_ON_CONFIG_ERROR
1592 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1593 # else
1594 # undef wxUSE_HEADERCTRL
1595 # define wxUSE_HEADERCTRL 1
1596 # endif
1597 # endif
1598 #endif /* !wxUSE_HEADERCTRL */
1599
1600 #if wxUSE_REARRANGECTRL
1601 # if !wxUSE_CHECKLISTBOX
1602 # ifdef wxABORT_ON_CONFIG_ERROR
1603 # error "wxRearrangeCtrl requires wxCheckListBox"
1604 # else
1605 # undef wxUSE_REARRANGECTRL
1606 # define wxUSE_REARRANGECTRL 0
1607 # endif
1608 # endif
1609 #endif /* wxUSE_REARRANGECTRL */
1610
1611 #if wxUSE_RICHMSGDLG
1612 # if !wxUSE_MSGDLG
1613 # ifdef wxABORT_ON_CONFIG_ERROR
1614 # error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1615 # else
1616 # undef wxUSE_MSGDLG
1617 # define wxUSE_MSGDLG 1
1618 # endif
1619 # endif
1620 #endif /* wxUSE_RICHMSGDLG */
1621
1622 /* don't attempt to use native status bar on the platforms not having it */
1623 #ifndef wxUSE_NATIVE_STATUSBAR
1624 # define wxUSE_NATIVE_STATUSBAR 0
1625 #elif wxUSE_NATIVE_STATUSBAR
1626 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1627 defined(__WXMAC__) || \
1628 defined(__WXPALMOS__) )
1629 # undef wxUSE_NATIVE_STATUSBAR
1630 # define wxUSE_NATIVE_STATUSBAR 0
1631 # endif
1632 #endif
1633
1634 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1635 # ifdef wxABORT_ON_CONFIG_ERROR
1636 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1637 # else
1638 # undef wxUSE_GRAPHICS_CONTEXT
1639 # define wxUSE_GRAPHICS_CONTEXT 0
1640 # endif
1641 #endif /* wxUSE_GRAPHICS_CONTEXT */
1642
1643
1644 /* generic controls dependencies */
1645 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1646 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1647 /* all common controls are needed by these dialogs */
1648 # if !defined(wxUSE_CHOICE) || \
1649 !defined(wxUSE_TEXTCTRL) || \
1650 !defined(wxUSE_BUTTON) || \
1651 !defined(wxUSE_CHECKBOX) || \
1652 !defined(wxUSE_STATTEXT)
1653 # ifdef wxABORT_ON_CONFIG_ERROR
1654 # error "These common controls are needed by common dialogs"
1655 # else
1656 # undef wxUSE_CHOICE
1657 # define wxUSE_CHOICE 1
1658 # undef wxUSE_TEXTCTRL
1659 # define wxUSE_TEXTCTRL 1
1660 # undef wxUSE_BUTTON
1661 # define wxUSE_BUTTON 1
1662 # undef wxUSE_CHECKBOX
1663 # define wxUSE_CHECKBOX 1
1664 # undef wxUSE_STATTEXT
1665 # define wxUSE_STATTEXT 1
1666 # endif
1667 # endif
1668 # endif
1669 #endif /* !wxMSW || wxUniv */
1670
1671 /* generic file dialog depends on (generic) file control */
1672 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1673 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1674 # ifdef wxABORT_ON_CONFIG_ERROR
1675 # error "Generic wxFileDialog requires wxFileCtrl"
1676 # else
1677 # undef wxUSE_FILECTRL
1678 # define wxUSE_FILECTRL 1
1679 # endif
1680 #endif /* wxUSE_FILEDLG */
1681
1682 /* common dependencies */
1683 #if wxUSE_ARTPROVIDER_TANGO
1684 # if !(wxUSE_STREAMS && wxUSE_IMAGE && wxUSE_LIBPNG)
1685 # ifdef wxABORT_ON_CONFIG_ERROR
1686 # error "Tango art provider requires wxImage with streams and PNG support"
1687 # else
1688 # undef wxUSE_ARTPROVIDER_TANGO
1689 # define wxUSE_ARTPROVIDER_TANGO 0
1690 # endif
1691 # endif
1692 #endif /* wxUSE_ARTPROVIDER_TANGO */
1693
1694 #if wxUSE_CALENDARCTRL
1695 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1696 # ifdef wxABORT_ON_CONFIG_ERROR
1697 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1698 # else
1699 # undef wxUSE_SPINBTN
1700 # undef wxUSE_COMBOBOX
1701 # define wxUSE_SPINBTN 1
1702 # define wxUSE_COMBOBOX 1
1703 # endif
1704 # endif
1705
1706 # if !wxUSE_DATETIME
1707 # ifdef wxABORT_ON_CONFIG_ERROR
1708 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1709 # else
1710 # undef wxUSE_DATETIME
1711 # define wxUSE_DATETIME 1
1712 # endif
1713 # endif
1714 #endif /* wxUSE_CALENDARCTRL */
1715
1716 #if wxUSE_DATEPICKCTRL
1717 # if !wxUSE_DATETIME
1718 # ifdef wxABORT_ON_CONFIG_ERROR
1719 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1720 # else
1721 # undef wxUSE_DATETIME
1722 # define wxUSE_DATETIME 1
1723 # endif
1724 # endif
1725 #endif /* wxUSE_DATEPICKCTRL */
1726
1727 #if wxUSE_CHECKLISTBOX
1728 # if !wxUSE_LISTBOX
1729 # ifdef wxABORT_ON_CONFIG_ERROR
1730 # error "wxCheckListBox requires wxListBox"
1731 # else
1732 # undef wxUSE_LISTBOX
1733 # define wxUSE_LISTBOX 1
1734 # endif
1735 # endif
1736 #endif /* wxUSE_CHECKLISTBOX */
1737
1738 #if wxUSE_CHOICEDLG
1739 # if !wxUSE_LISTBOX
1740 # ifdef wxABORT_ON_CONFIG_ERROR
1741 # error "Choice dialogs requires wxListBox"
1742 # else
1743 # undef wxUSE_LISTBOX
1744 # define wxUSE_LISTBOX 1
1745 # endif
1746 # endif
1747 #endif /* wxUSE_CHOICEDLG */
1748
1749 #if wxUSE_HELP
1750 # if !wxUSE_BMPBUTTON
1751 # ifdef wxABORT_ON_CONFIG_ERROR
1752 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1753 # else
1754 # undef wxUSE_BMPBUTTON
1755 # define wxUSE_BMPBUTTON 1
1756 # endif
1757 # endif
1758
1759 # if !wxUSE_CHOICEDLG
1760 # ifdef wxABORT_ON_CONFIG_ERROR
1761 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1762 # else
1763 # undef wxUSE_CHOICEDLG
1764 # define wxUSE_CHOICEDLG 1
1765 # endif
1766 # endif
1767 #endif /* wxUSE_HELP */
1768
1769 #if wxUSE_MS_HTML_HELP
1770 /*
1771 this doesn't make sense for platforms other than MSW but we still
1772 define it in wx/setup_inc.h so don't complain if it happens to be
1773 defined under another platform but just silently fix it.
1774 */
1775 # ifndef __WXMSW__
1776 # undef wxUSE_MS_HTML_HELP
1777 # define wxUSE_MS_HTML_HELP 0
1778 # endif
1779 #endif /* wxUSE_MS_HTML_HELP */
1780
1781 #if wxUSE_WXHTML_HELP
1782 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1783 # ifdef wxABORT_ON_CONFIG_ERROR
1784 # error "Built in help controller can't be compiled"
1785 # else
1786 # undef wxUSE_HELP
1787 # define wxUSE_HELP 1
1788 # undef wxUSE_HTML
1789 # define wxUSE_HTML 1
1790 # undef wxUSE_COMBOBOX
1791 # define wxUSE_COMBOBOX 1
1792 # undef wxUSE_NOTEBOOK
1793 # define wxUSE_NOTEBOOK 1
1794 # undef wxUSE_SPINCTRL
1795 # define wxUSE_SPINCTRL 1
1796 # endif
1797 # endif
1798 #endif /* wxUSE_WXHTML_HELP */
1799
1800 #if !wxUSE_IMAGE
1801 /*
1802 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1803 user explicitly wants this and disable all other features that require
1804 wxUSE_IMAGE.
1805 */
1806 # if wxUSE_DRAGIMAGE
1807 # ifdef wxABORT_ON_CONFIG_ERROR
1808 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1809 # else
1810 # undef wxUSE_DRAGIMAGE
1811 # define wxUSE_DRAGIMAGE 0
1812 # endif
1813 # endif
1814
1815 # if wxUSE_LIBPNG
1816 # ifdef wxABORT_ON_CONFIG_ERROR
1817 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1818 # else
1819 # undef wxUSE_LIBPNG
1820 # define wxUSE_LIBPNG 0
1821 # endif
1822 # endif
1823
1824 # if wxUSE_LIBJPEG
1825 # ifdef wxABORT_ON_CONFIG_ERROR
1826 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1827 # else
1828 # undef wxUSE_LIBJPEG
1829 # define wxUSE_LIBJPEG 0
1830 # endif
1831 # endif
1832
1833 # if wxUSE_LIBTIFF
1834 # ifdef wxABORT_ON_CONFIG_ERROR
1835 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1836 # else
1837 # undef wxUSE_LIBTIFF
1838 # define wxUSE_LIBTIFF 0
1839 # endif
1840 # endif
1841
1842 # if wxUSE_GIF
1843 # ifdef wxABORT_ON_CONFIG_ERROR
1844 # error "wxUSE_GIF requires wxUSE_IMAGE"
1845 # else
1846 # undef wxUSE_GIF
1847 # define wxUSE_GIF 0
1848 # endif
1849 # endif
1850
1851 # if wxUSE_PNM
1852 # ifdef wxABORT_ON_CONFIG_ERROR
1853 # error "wxUSE_PNM requires wxUSE_IMAGE"
1854 # else
1855 # undef wxUSE_PNM
1856 # define wxUSE_PNM 0
1857 # endif
1858 # endif
1859
1860 # if wxUSE_PCX
1861 # ifdef wxABORT_ON_CONFIG_ERROR
1862 # error "wxUSE_PCX requires wxUSE_IMAGE"
1863 # else
1864 # undef wxUSE_PCX
1865 # define wxUSE_PCX 0
1866 # endif
1867 # endif
1868
1869 # if wxUSE_IFF
1870 # ifdef wxABORT_ON_CONFIG_ERROR
1871 # error "wxUSE_IFF requires wxUSE_IMAGE"
1872 # else
1873 # undef wxUSE_IFF
1874 # define wxUSE_IFF 0
1875 # endif
1876 # endif
1877
1878 # if wxUSE_TOOLBAR
1879 # ifdef wxABORT_ON_CONFIG_ERROR
1880 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1881 # else
1882 # undef wxUSE_TOOLBAR
1883 # define wxUSE_TOOLBAR 0
1884 # endif
1885 # endif
1886
1887 # if wxUSE_XPM
1888 # ifdef wxABORT_ON_CONFIG_ERROR
1889 # error "wxUSE_XPM requires wxUSE_IMAGE"
1890 # else
1891 # undef wxUSE_XPM
1892 # define wxUSE_XPM 0
1893 # endif
1894 # endif
1895
1896 #endif /* !wxUSE_IMAGE */
1897
1898 #if wxUSE_DOC_VIEW_ARCHITECTURE
1899 # if !wxUSE_MENUS
1900 # ifdef wxABORT_ON_CONFIG_ERROR
1901 # error "DocView requires wxUSE_MENUS"
1902 # else
1903 # undef wxUSE_MENUS
1904 # define wxUSE_MENUS 1
1905 # endif
1906 # endif
1907
1908 # if !wxUSE_CHOICEDLG
1909 # ifdef wxABORT_ON_CONFIG_ERROR
1910 # error "DocView requires wxUSE_CHOICEDLG"
1911 # else
1912 # undef wxUSE_CHOICEDLG
1913 # define wxUSE_CHOICEDLG 1
1914 # endif
1915 # endif
1916
1917 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1918 # ifdef wxABORT_ON_CONFIG_ERROR
1919 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1920 # else
1921 # undef wxUSE_STREAMS
1922 # define wxUSE_STREAMS 1
1923 # endif
1924 # endif
1925
1926 # if !wxUSE_FILE_HISTORY
1927 # ifdef wxABORT_ON_CONFIG_ERROR
1928 # error "DocView requires wxUSE_FILE_HISTORY"
1929 # else
1930 # undef wxUSE_FILE_HISTORY
1931 # define wxUSE_FILE_HISTORY 1
1932 # endif
1933 # endif
1934 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1935
1936 #if wxUSE_PRINTING_ARCHITECTURE
1937 # if !wxUSE_COMBOBOX
1938 # ifdef wxABORT_ON_CONFIG_ERROR
1939 # error "Print dialog requires wxUSE_COMBOBOX"
1940 # else
1941 # undef wxUSE_COMBOBOX
1942 # define wxUSE_COMBOBOX 1
1943 # endif
1944 # endif
1945 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1946
1947 #if wxUSE_MDI_ARCHITECTURE
1948 # if !wxUSE_MDI
1949 # ifdef wxABORT_ON_CONFIG_ERROR
1950 # error "MDI requires wxUSE_MDI"
1951 # else
1952 # undef wxUSE_MDI
1953 # define wxUSE_MDI 1
1954 # endif
1955 # endif
1956
1957 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1958 # ifdef wxABORT_ON_CONFIG_ERROR
1959 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1960 # else
1961 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1962 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1963 # endif
1964 # endif
1965 #endif /* wxUSE_MDI_ARCHITECTURE */
1966
1967 #if !wxUSE_FILEDLG
1968 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1969 # ifdef wxABORT_ON_CONFIG_ERROR
1970 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1971 # else
1972 # undef wxUSE_FILEDLG
1973 # define wxUSE_FILEDLG 1
1974 # endif
1975 # endif
1976 #endif /* wxUSE_FILEDLG */
1977
1978 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1979 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1980 # ifdef wxABORT_ON_CONFIG_ERROR
1981 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1982 # else
1983 # undef wxUSE_GAUGE
1984 # undef wxUSE_BUTTON
1985 # define wxUSE_GAUGE 1
1986 # define wxUSE_BUTTON 1
1987 # endif
1988 # endif
1989 #endif /* !wxUSE_GAUGE */
1990
1991 #if !wxUSE_BUTTON
1992 # if wxUSE_FONTDLG || \
1993 wxUSE_FILEDLG || \
1994 wxUSE_CHOICEDLG || \
1995 wxUSE_NUMBERDLG || \
1996 wxUSE_TEXTDLG || \
1997 wxUSE_DIRDLG || \
1998 wxUSE_STARTUP_TIPS || \
1999 wxUSE_WIZARDDLG
2000 # ifdef wxABORT_ON_CONFIG_ERROR
2001 # error "Common and generic dialogs require wxUSE_BUTTON"
2002 # else
2003 # undef wxUSE_BUTTON
2004 # define wxUSE_BUTTON 1
2005 # endif
2006 # endif
2007 #endif /* !wxUSE_BUTTON */
2008
2009 #if !wxUSE_TOOLBAR
2010 # if wxUSE_TOOLBAR_NATIVE
2011 # ifdef wxABORT_ON_CONFIG_ERROR
2012 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
2013 # else
2014 # undef wxUSE_TOOLBAR_NATIVE
2015 # define wxUSE_TOOLBAR_NATIVE 0
2016 # endif
2017 # endif
2018 #endif
2019
2020 #if !wxUSE_IMAGLIST
2021 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL || wxUSE_TREELISTCTRL
2022 # ifdef wxABORT_ON_CONFIG_ERROR
2023 # error "wxImageList must be compiled as well"
2024 # else
2025 # undef wxUSE_IMAGLIST
2026 # define wxUSE_IMAGLIST 1
2027 # endif
2028 # endif
2029 #endif /* !wxUSE_IMAGLIST */
2030
2031 #if wxUSE_RADIOBOX
2032 # if !wxUSE_RADIOBTN
2033 # ifdef wxABORT_ON_CONFIG_ERROR
2034 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
2035 # else
2036 # undef wxUSE_RADIOBTN
2037 # define wxUSE_RADIOBTN 1
2038 # endif
2039 # endif
2040 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
2041 # ifdef wxABORT_ON_CONFIG_ERROR
2042 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
2043 # else
2044 # undef wxUSE_STATBOX
2045 # define wxUSE_STATBOX 1
2046 # endif
2047 # endif
2048 #endif /* wxUSE_RADIOBOX */
2049
2050 #if wxUSE_LOGWINDOW
2051 # if !wxUSE_TEXTCTRL
2052 # ifdef wxABORT_ON_CONFIG_ERROR
2053 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
2054 # else
2055 # undef wxUSE_TEXTCTRL
2056 # define wxUSE_TEXTCTRL 1
2057 # endif
2058 # endif
2059 #endif /* wxUSE_LOGWINDOW */
2060
2061 #if wxUSE_LOG_DIALOG
2062 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
2063 # ifdef wxABORT_ON_CONFIG_ERROR
2064 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
2065 # else
2066 # undef wxUSE_LISTCTRL
2067 # define wxUSE_LISTCTRL 1
2068 # undef wxUSE_BUTTON
2069 # define wxUSE_BUTTON 1
2070 # endif
2071 # endif
2072 #endif /* wxUSE_LOG_DIALOG */
2073
2074 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
2075 # ifdef wxABORT_ON_CONFIG_ERROR
2076 # error "wxClipboard requires wxDataObject"
2077 # else
2078 # undef wxUSE_DATAOBJ
2079 # define wxUSE_DATAOBJ 1
2080 # endif
2081 #endif /* wxUSE_CLIPBOARD */
2082
2083 #if wxUSE_XRC && !wxUSE_XML
2084 # ifdef wxABORT_ON_CONFIG_ERROR
2085 # error "wxUSE_XRC requires wxUSE_XML"
2086 # else
2087 # undef wxUSE_XRC
2088 # define wxUSE_XRC 0
2089 # endif
2090 #endif /* wxUSE_XRC */
2091
2092 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2093 # ifdef wxABORT_ON_CONFIG_ERROR
2094 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2095 # else
2096 # undef wxUSE_SOCKETS
2097 # define wxUSE_SOCKETS 0
2098 # endif
2099 #endif /* wxUSE_SOCKETS */
2100
2101 #if wxUSE_SVG && !wxUSE_STREAMS
2102 # ifdef wxABORT_ON_CONFIG_ERROR
2103 # error "wxUSE_SVG requires wxUSE_STREAMS"
2104 # else
2105 # undef wxUSE_SVG
2106 # define wxUSE_SVG 0
2107 # endif
2108 #endif /* wxUSE_SVG */
2109
2110 #if wxUSE_SVG && !wxUSE_IMAGE
2111 # ifdef wxABORT_ON_CONFIG_ERROR
2112 # error "wxUSE_SVG requires wxUSE_IMAGE"
2113 # else
2114 # undef wxUSE_SVG
2115 # define wxUSE_SVG 0
2116 # endif
2117 #endif /* wxUSE_SVG */
2118
2119 #if wxUSE_SVG && !wxUSE_LIBPNG
2120 # ifdef wxABORT_ON_CONFIG_ERROR
2121 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2122 # else
2123 # undef wxUSE_SVG
2124 # define wxUSE_SVG 0
2125 # endif
2126 #endif /* wxUSE_SVG */
2127
2128 #if wxUSE_TASKBARICON && !wxUSE_MENUS
2129 # ifdef wxABORT_ON_CONFIG_ERROR
2130 # error "wxUSE_TASKBARICON requires wxUSE_MENUS"
2131 # else
2132 # undef wxUSE_TASKBARICON
2133 # define wxUSE_TASKBARICON 0
2134 # endif
2135 #endif /* wxUSE_TASKBARICON */
2136
2137 #if !wxUSE_VARIANT
2138 # if wxUSE_DATAVIEWCTRL
2139 # ifdef wxABORT_ON_CONFIG_ERROR
2140 # error "wxDataViewCtrl requires wxVariant"
2141 # else
2142 # undef wxUSE_DATAVIEWCTRL
2143 # define wxUSE_DATAVIEWCTRL 0
2144 # endif
2145 # endif
2146 #endif /* wxUSE_VARIANT */
2147
2148 #if wxUSE_TREELISTCTRL && !wxUSE_DATAVIEWCTRL
2149 # ifdef wxABORT_ON_CONFIG_ERROR
2150 # error "wxUSE_TREELISTCTRL requires wxDataViewCtrl"
2151 # else
2152 # undef wxUSE_TREELISTCTRL
2153 # define wxUSE_TREELISTCTRL 0
2154 # endif
2155 #endif /* wxUSE_TREELISTCTRL */
2156
2157 #endif /* wxUSE_GUI */
2158
2159 #endif /* _WX_CHKCONF_H_ */