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