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