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