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