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