]>
Commit | Line | Data |
---|---|---|
1 | /** | |
2 | * Name: wx/chkconf.h | |
3 | * Purpose: check the config settings for consistency | |
4 | * Author: Vadim Zeitlin | |
5 | * Modified by: | |
6 | * Created: 09.08.00 | |
7 | * RCS-ID: $Id$ | |
8 | * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org> | |
9 | * Licence: wxWindows licence | |
10 | */ | |
11 | ||
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
13 | ||
14 | /* | |
15 | Compiler-specific checking. | |
16 | */ | |
17 | ||
18 | #if defined(__WXMSW__) | |
19 | # include "wx/msw/chkconf.h" | |
20 | #elif defined(__WXMAC__) | |
21 | # include "wx/mac/chkconf.h" | |
22 | #endif | |
23 | ||
24 | /* | |
25 | this global setting determines what should we do if the setting FOO | |
26 | requires BAR and BAR is not set: we can either silently define BAR | |
27 | (default, recommended) or give an error and abort (mainly useful for | |
28 | developers only) | |
29 | */ | |
30 | #define wxABORT_ON_CONFIG_ERROR | |
31 | ||
32 | /* | |
33 | global features | |
34 | */ | |
35 | ||
36 | /* GUI build by default */ | |
37 | #if !defined(wxUSE_GUI) | |
38 | # define wxUSE_GUI 1 | |
39 | #endif /* !defined(wxUSE_GUI) */ | |
40 | ||
41 | /* | |
42 | tests for non GUI features | |
43 | */ | |
44 | ||
45 | #ifndef wxUSE_DYNLIB_CLASS | |
46 | # ifdef wxABORT_ON_CONFIG_ERROR | |
47 | # error "wxUSE_DYNLIB_CLASS must be defined." | |
48 | # else | |
49 | # define wxUSE_DYNLIB_CLASS 0 | |
50 | # endif | |
51 | #endif /* !defined(wxUSE_DYNLIB_CLASS) */ | |
52 | ||
53 | #ifndef wxUSE_EXCEPTIONS | |
54 | # ifdef wxABORT_ON_CONFIG_ERROR | |
55 | # error "wxUSE_EXCEPTIONS must be defined." | |
56 | # else | |
57 | # define wxUSE_EXCEPTIONS 0 | |
58 | # endif | |
59 | #endif /* !defined(wxUSE_EXCEPTIONS) */ | |
60 | ||
61 | #ifndef wxUSE_FILESYSTEM | |
62 | # ifdef wxABORT_ON_CONFIG_ERROR | |
63 | # error "wxUSE_FILESYSTEM must be defined." | |
64 | # else | |
65 | # define wxUSE_FILESYSTEM 0 | |
66 | # endif | |
67 | #endif /* !defined(wxUSE_FILESYSTEM) */ | |
68 | ||
69 | /* don't give an error about this one yet, it's not fully implemented */ | |
70 | #ifndef wxUSE_FSVOLUME | |
71 | # define wxUSE_FSVOLUME 0 | |
72 | #endif /* !defined(wxUSE_FSVOLUME) */ | |
73 | ||
74 | #ifndef wxUSE_DYNAMIC_LOADER | |
75 | # ifdef wxABORT_ON_CONFIG_ERROR | |
76 | # error "wxUSE_DYNAMIC_LOADER must be defined." | |
77 | # else | |
78 | # define wxUSE_DYNAMIC_LOADER 0 | |
79 | # endif | |
80 | #endif /* !defined(wxUSE_DYNAMIC_LOADER) */ | |
81 | ||
82 | #ifndef wxUSE_LOG | |
83 | # ifdef wxABORT_ON_CONFIG_ERROR | |
84 | # error "wxUSE_LOG must be defined." | |
85 | # else | |
86 | # define wxUSE_LOG 0 | |
87 | # endif | |
88 | #endif /* !defined(wxUSE_LOG) */ | |
89 | ||
90 | #ifndef wxUSE_LONGLONG | |
91 | # ifdef wxABORT_ON_CONFIG_ERROR | |
92 | # error "wxUSE_LONGLONG must be defined." | |
93 | # else | |
94 | # define wxUSE_LONGLONG 0 | |
95 | # endif | |
96 | #endif /* !defined(wxUSE_LONGLONG) */ | |
97 | ||
98 | #ifndef wxUSE_MIMETYPE | |
99 | # ifdef wxABORT_ON_CONFIG_ERROR | |
100 | # error "wxUSE_MIMETYPE must be defined." | |
101 | # else | |
102 | # define wxUSE_MIMETYPE 0 | |
103 | # endif | |
104 | #endif /* !defined(wxUSE_MIMETYPE) */ | |
105 | ||
106 | #ifndef wxUSE_PROTOCOL | |
107 | # ifdef wxABORT_ON_CONFIG_ERROR | |
108 | # error "wxUSE_PROTOCOL must be defined." | |
109 | # else | |
110 | # define wxUSE_PROTOCOL 0 | |
111 | # endif | |
112 | #endif /* !defined(wxUSE_PROTOCOL) */ | |
113 | ||
114 | /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */ | |
115 | #if !wxUSE_PROTOCOL | |
116 | # undef wxUSE_PROTOCOL_HTTP | |
117 | # undef wxUSE_PROTOCOL_FTP | |
118 | # undef wxUSE_PROTOCOL_FILE | |
119 | # define wxUSE_PROTOCOL_HTTP 0 | |
120 | # define wxUSE_PROTOCOL_FTP 0 | |
121 | # define wxUSE_PROTOCOL_FILE 0 | |
122 | #endif /* wxUSE_PROTOCOL */ | |
123 | ||
124 | #ifndef wxUSE_PROTOCOL_HTTP | |
125 | # ifdef wxABORT_ON_CONFIG_ERROR | |
126 | # error "wxUSE_PROTOCOL_HTTP must be defined." | |
127 | # else | |
128 | # define wxUSE_PROTOCOL_HTTP 0 | |
129 | # endif | |
130 | #endif /* !defined(wxUSE_PROTOCOL_HTTP) */ | |
131 | ||
132 | #ifndef wxUSE_PROTOCOL_FTP | |
133 | # ifdef wxABORT_ON_CONFIG_ERROR | |
134 | # error "wxUSE_PROTOCOL_FTP must be defined." | |
135 | # else | |
136 | # define wxUSE_PROTOCOL_FTP 0 | |
137 | # endif | |
138 | #endif /* !defined(wxUSE_PROTOCOL_FTP) */ | |
139 | ||
140 | #ifndef wxUSE_PROTOCOL_FILE | |
141 | # ifdef wxABORT_ON_CONFIG_ERROR | |
142 | # error "wxUSE_PROTOCOL_FILE must be defined." | |
143 | # else | |
144 | # define wxUSE_PROTOCOL_FILE 0 | |
145 | # endif | |
146 | #endif /* !defined(wxUSE_PROTOCOL_FILE) */ | |
147 | ||
148 | #ifndef wxUSE_REGEX | |
149 | # ifdef wxABORT_ON_CONFIG_ERROR | |
150 | # error "wxUSE_REGEX must be defined." | |
151 | # else | |
152 | # define wxUSE_REGEX 0 | |
153 | # endif | |
154 | #endif /* !defined(wxUSE_REGEX) */ | |
155 | ||
156 | #ifndef wxUSE_XML | |
157 | # ifdef wxABORT_ON_CONFIG_ERROR | |
158 | # error "wxUSE_XML must be defined." | |
159 | # else | |
160 | # define wxUSE_XML 0 | |
161 | # endif | |
162 | #endif /* !defined(wxUSE_XML) */ | |
163 | ||
164 | #ifndef wxUSE_SOCKETS | |
165 | # ifdef wxABORT_ON_CONFIG_ERROR | |
166 | # error "wxUSE_SOCKETS must be defined." | |
167 | # else | |
168 | # define wxUSE_SOCKETS 0 | |
169 | # endif | |
170 | #endif /* !defined(wxUSE_SOCKETS) */ | |
171 | ||
172 | #ifndef wxUSE_STREAMS | |
173 | # ifdef wxABORT_ON_CONFIG_ERROR | |
174 | # error "wxUSE_STREAMS must be defined." | |
175 | # else | |
176 | # define wxUSE_STREAMS 0 | |
177 | # endif | |
178 | #endif /* !defined(wxUSE_STREAMS) */ | |
179 | ||
180 | #ifndef wxUSE_STOPWATCH | |
181 | # ifdef wxABORT_ON_CONFIG_ERROR | |
182 | # error "wxUSE_STOPWATCH must be defined." | |
183 | # else | |
184 | # define wxUSE_STOPWATCH 0 | |
185 | # endif | |
186 | #endif /* !defined(wxUSE_STOPWATCH) */ | |
187 | ||
188 | #ifndef wxUSE_TEXTBUFFER | |
189 | # ifdef wxABORT_ON_CONFIG_ERROR | |
190 | # error "wxUSE_TEXTBUFFER must be defined." | |
191 | # else | |
192 | # define wxUSE_TEXTBUFFER 0 | |
193 | # endif | |
194 | #endif /* !defined(wxUSE_TEXTBUFFER) */ | |
195 | ||
196 | #ifndef wxUSE_TEXTFILE | |
197 | # ifdef wxABORT_ON_CONFIG_ERROR | |
198 | # error "wxUSE_TEXTFILE must be defined." | |
199 | # else | |
200 | # define wxUSE_TEXTFILE 0 | |
201 | # endif | |
202 | #endif /* !defined(wxUSE_TEXTFILE) */ | |
203 | ||
204 | #ifndef wxUSE_UNICODE | |
205 | # ifdef wxABORT_ON_CONFIG_ERROR | |
206 | # error "wxUSE_UNICODE must be defined." | |
207 | # else | |
208 | # define wxUSE_UNICODE 0 | |
209 | # endif | |
210 | #endif /* !defined(wxUSE_UNICODE) */ | |
211 | ||
212 | #ifndef wxUSE_URL | |
213 | # ifdef wxABORT_ON_CONFIG_ERROR | |
214 | # error "wxUSE_URL must be defined." | |
215 | # else | |
216 | # define wxUSE_URL 0 | |
217 | # endif | |
218 | #endif /* !defined(wxUSE_URL) */ | |
219 | ||
220 | /* | |
221 | all these tests are for GUI only | |
222 | */ | |
223 | #if wxUSE_GUI | |
224 | ||
225 | /* | |
226 | all of the settings tested below must be defined or we'd get an error from | |
227 | preprocessor about invalid integer expression | |
228 | */ | |
229 | ||
230 | #ifndef wxUSE_ACCEL | |
231 | # ifdef wxABORT_ON_CONFIG_ERROR | |
232 | # error "wxUSE_ACCEL must be defined." | |
233 | # else | |
234 | # define wxUSE_ACCEL 0 | |
235 | # endif | |
236 | #endif /* !defined(wxUSE_ACCEL) */ | |
237 | ||
238 | #ifndef wxUSE_BMPBUTTON | |
239 | # ifdef wxABORT_ON_CONFIG_ERROR | |
240 | # error "wxUSE_BMPBUTTON must be defined." | |
241 | # else | |
242 | # define wxUSE_BMPBUTTON 0 | |
243 | # endif | |
244 | #endif /* !defined(wxUSE_BMPBUTTON) */ | |
245 | ||
246 | #ifndef wxUSE_BUTTON | |
247 | # ifdef wxABORT_ON_CONFIG_ERROR | |
248 | # error "wxUSE_BUTTON must be defined." | |
249 | # else | |
250 | # define wxUSE_BUTTON 0 | |
251 | # endif | |
252 | #endif /* !defined(wxUSE_BUTTON) */ | |
253 | ||
254 | #ifndef wxUSE_CALENDARCTRL | |
255 | # ifdef wxABORT_ON_CONFIG_ERROR | |
256 | # error "wxUSE_CALENDARCTRL must be defined." | |
257 | # else | |
258 | # define wxUSE_CALENDARCTRL 0 | |
259 | # endif | |
260 | #endif /* !defined(wxUSE_CALENDARCTRL) */ | |
261 | ||
262 | #ifndef wxUSE_CARET | |
263 | # ifdef wxABORT_ON_CONFIG_ERROR | |
264 | # error "wxUSE_CARET must be defined." | |
265 | # else | |
266 | # define wxUSE_CARET 0 | |
267 | # endif | |
268 | #endif /* !defined(wxUSE_CARET) */ | |
269 | ||
270 | #ifndef wxUSE_CHECKBOX | |
271 | # ifdef wxABORT_ON_CONFIG_ERROR | |
272 | # error "wxUSE_CHECKBOX must be defined." | |
273 | # else | |
274 | # define wxUSE_CHECKBOX 0 | |
275 | # endif | |
276 | #endif /* !defined(wxUSE_CHECKBOX) */ | |
277 | ||
278 | #ifndef wxUSE_CHECKLISTBOX | |
279 | # ifdef wxABORT_ON_CONFIG_ERROR | |
280 | # error "wxUSE_CHECKLISTBOX must be defined." | |
281 | # else | |
282 | # define wxUSE_CHECKLISTBOX 0 | |
283 | # endif | |
284 | #endif /* !defined(wxUSE_CHECKLISTBOX) */ | |
285 | ||
286 | #ifndef wxUSE_CHOICE | |
287 | # ifdef wxABORT_ON_CONFIG_ERROR | |
288 | # error "wxUSE_CHOICE must be defined." | |
289 | # else | |
290 | # define wxUSE_CHOICE 0 | |
291 | # endif | |
292 | #endif /* !defined(wxUSE_CHOICE) */ | |
293 | ||
294 | #ifndef wxUSE_CHOICEBOOK | |
295 | # ifdef wxABORT_ON_CONFIG_ERROR | |
296 | # error "wxUSE_CHOICEBOOK must be defined." | |
297 | # else | |
298 | # define wxUSE_CHOICEBOOK 0 | |
299 | # endif | |
300 | #endif /* !defined(wxUSE_CHOICEBOOK) */ | |
301 | ||
302 | #ifndef wxUSE_CHOICEDLG | |
303 | # ifdef wxABORT_ON_CONFIG_ERROR | |
304 | # error "wxUSE_CHOICEDLG must be defined." | |
305 | # else | |
306 | # define wxUSE_CHOICEDLG 0 | |
307 | # endif | |
308 | #endif /* !defined(wxUSE_CHOICEDLG) */ | |
309 | ||
310 | #ifndef wxUSE_CLIPBOARD | |
311 | # ifdef wxABORT_ON_CONFIG_ERROR | |
312 | # error "wxUSE_CLIPBOARD must be defined." | |
313 | # else | |
314 | # define wxUSE_CLIPBOARD 0 | |
315 | # endif | |
316 | #endif /* !defined(wxUSE_CLIPBOARD) */ | |
317 | ||
318 | #ifndef wxUSE_COLOURDLG | |
319 | # ifdef wxABORT_ON_CONFIG_ERROR | |
320 | # error "wxUSE_COLOURDLG must be defined." | |
321 | # else | |
322 | # define wxUSE_COLOURDLG 0 | |
323 | # endif | |
324 | #endif /* !defined(wxUSE_COLOURDLG) */ | |
325 | ||
326 | #ifndef wxUSE_COMBOBOX | |
327 | # ifdef wxABORT_ON_CONFIG_ERROR | |
328 | # error "wxUSE_COMBOBOX must be defined." | |
329 | # else | |
330 | # define wxUSE_COMBOBOX 0 | |
331 | # endif | |
332 | #endif /* !defined(wxUSE_COMBOBOX) */ | |
333 | ||
334 | #ifndef wxUSE_DATAOBJ | |
335 | # ifdef wxABORT_ON_CONFIG_ERROR | |
336 | # error "wxUSE_DATAOBJ must be defined." | |
337 | # else | |
338 | # define wxUSE_DATAOBJ 0 | |
339 | # endif | |
340 | #endif /* !defined(wxUSE_DATAOBJ) */ | |
341 | ||
342 | #ifndef wxUSE_DISPLAY | |
343 | # ifdef wxABORT_ON_CONFIG_ERROR | |
344 | # error "wxUSE_DISPLAY must be defined." | |
345 | # else | |
346 | # define wxUSE_DISPLAY 0 | |
347 | # endif | |
348 | #endif /* !defined(wxUSE_DISPLAY) */ | |
349 | ||
350 | #ifndef wxUSE_DOC_VIEW_ARCHITECTURE | |
351 | # ifdef wxABORT_ON_CONFIG_ERROR | |
352 | # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined." | |
353 | # else | |
354 | # define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
355 | # endif | |
356 | #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */ | |
357 | ||
358 | #ifndef wxUSE_FILEDLG | |
359 | # ifdef wxABORT_ON_CONFIG_ERROR | |
360 | # error "wxUSE_FILEDLG must be defined." | |
361 | # else | |
362 | # define wxUSE_FILEDLG 0 | |
363 | # endif | |
364 | #endif /* !defined(wxUSE_FILEDLG) */ | |
365 | ||
366 | #ifndef wxUSE_FONTDLG | |
367 | # ifdef wxABORT_ON_CONFIG_ERROR | |
368 | # error "wxUSE_FONTDLG must be defined." | |
369 | # else | |
370 | # define wxUSE_FONTDLG 0 | |
371 | # endif | |
372 | #endif /* !defined(wxUSE_FONTDLG) */ | |
373 | ||
374 | #ifndef wxUSE_FONTMAP | |
375 | # ifdef wxABORT_ON_CONFIG_ERROR | |
376 | # error "wxUSE_FONTMAP must be defined." | |
377 | # else | |
378 | # define wxUSE_FONTMAP 0 | |
379 | # endif | |
380 | #endif /* !defined(wxUSE_FONTMAP) */ | |
381 | ||
382 | #ifndef wxUSE_GAUGE | |
383 | # ifdef wxABORT_ON_CONFIG_ERROR | |
384 | # error "wxUSE_GAUGE must be defined." | |
385 | # else | |
386 | # define wxUSE_GAUGE 0 | |
387 | # endif | |
388 | #endif /* !defined(wxUSE_GAUGE) */ | |
389 | ||
390 | #ifndef wxUSE_GRID | |
391 | # ifdef wxABORT_ON_CONFIG_ERROR | |
392 | # error "wxUSE_GRID must be defined." | |
393 | # else | |
394 | # define wxUSE_GRID 0 | |
395 | # endif | |
396 | #endif /* !defined(wxUSE_GRID) */ | |
397 | ||
398 | #ifndef wxUSE_HELP | |
399 | # ifdef wxABORT_ON_CONFIG_ERROR | |
400 | # error "wxUSE_HELP must be defined." | |
401 | # else | |
402 | # define wxUSE_HELP 0 | |
403 | # endif | |
404 | #endif /* !defined(wxUSE_HELP) */ | |
405 | ||
406 | #ifndef wxUSE_HTML | |
407 | # ifdef wxABORT_ON_CONFIG_ERROR | |
408 | # error "wxUSE_HTML must be defined." | |
409 | # else | |
410 | # define wxUSE_HTML 0 | |
411 | # endif | |
412 | #endif /* !defined(wxUSE_HTML) */ | |
413 | ||
414 | #ifndef wxUSE_LIBMSPACK | |
415 | # ifndef __UNIX__ | |
416 | /* set to 0 on platforms that don't have libmspack */ | |
417 | # define wxUSE_LIBMSPACK 0 | |
418 | # else | |
419 | # ifdef wxABORT_ON_CONFIG_ERROR | |
420 | # error "wxUSE_LIBMSPACK must be defined." | |
421 | # else | |
422 | # define wxUSE_LIBMSPACK 0 | |
423 | # endif | |
424 | # endif | |
425 | #endif /* !defined(wxUSE_LIBMSPACK) */ | |
426 | ||
427 | #ifndef wxUSE_ICO_CUR | |
428 | # ifdef wxABORT_ON_CONFIG_ERROR | |
429 | # error "wxUSE_ICO_CUR must be defined." | |
430 | # else | |
431 | # define wxUSE_ICO_CUR 0 | |
432 | # endif | |
433 | #endif /* !defined(wxUSE_ICO_CUR) */ | |
434 | ||
435 | #ifndef wxUSE_IFF | |
436 | # ifdef wxABORT_ON_CONFIG_ERROR | |
437 | # error "wxUSE_IFF must be defined." | |
438 | # else | |
439 | # define wxUSE_IFF 0 | |
440 | # endif | |
441 | #endif /* !defined(wxUSE_IFF) */ | |
442 | ||
443 | #ifndef wxUSE_IMAGLIST | |
444 | # ifdef wxABORT_ON_CONFIG_ERROR | |
445 | # error "wxUSE_IMAGLIST must be defined." | |
446 | # else | |
447 | # define wxUSE_IMAGLIST 0 | |
448 | # endif | |
449 | #endif /* !defined(wxUSE_IMAGLIST) */ | |
450 | ||
451 | #ifndef wxUSE_JOYSTICK | |
452 | # ifdef wxABORT_ON_CONFIG_ERROR | |
453 | # error "wxUSE_JOYSTICK must be defined." | |
454 | # else | |
455 | # define wxUSE_JOYSTICK 0 | |
456 | # endif | |
457 | #endif /* !defined(wxUSE_JOYSTICK) */ | |
458 | ||
459 | #ifndef wxUSE_LISTBOOK | |
460 | # ifdef wxABORT_ON_CONFIG_ERROR | |
461 | # error "wxUSE_LISTBOOK must be defined." | |
462 | # else | |
463 | # define wxUSE_LISTBOOK 0 | |
464 | # endif | |
465 | #endif /* !defined(wxUSE_LISTBOOK) */ | |
466 | ||
467 | #ifndef wxUSE_LISTBOX | |
468 | # ifdef wxABORT_ON_CONFIG_ERROR | |
469 | # error "wxUSE_LISTBOX must be defined." | |
470 | # else | |
471 | # define wxUSE_LISTBOX 0 | |
472 | # endif | |
473 | #endif /* !defined(wxUSE_LISTBOX) */ | |
474 | ||
475 | #ifndef wxUSE_LISTCTRL | |
476 | # ifdef wxABORT_ON_CONFIG_ERROR | |
477 | # error "wxUSE_LISTCTRL must be defined." | |
478 | # else | |
479 | # define wxUSE_LISTCTRL 0 | |
480 | # endif | |
481 | #endif /* !defined(wxUSE_LISTCTRL) */ | |
482 | ||
483 | #ifndef wxUSE_LOGGUI | |
484 | # ifdef wxABORT_ON_CONFIG_ERROR | |
485 | # error "wxUSE_LOGGUI must be defined." | |
486 | # else | |
487 | # define wxUSE_LOGGUI 0 | |
488 | # endif | |
489 | #endif /* !defined(wxUSE_LOGGUI) */ | |
490 | ||
491 | #ifndef wxUSE_LOGWINDOW | |
492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
493 | # error "wxUSE_LOGWINDOW must be defined." | |
494 | # else | |
495 | # define wxUSE_LOGWINDOW 0 | |
496 | # endif | |
497 | #endif /* !defined(wxUSE_LOGWINDOW) */ | |
498 | ||
499 | #ifndef wxUSE_LOG_DIALOG | |
500 | # ifdef wxABORT_ON_CONFIG_ERROR | |
501 | # error "wxUSE_LOG_DIALOG must be defined." | |
502 | # else | |
503 | # define wxUSE_LOG_DIALOG 0 | |
504 | # endif | |
505 | #endif /* !defined(wxUSE_LOG_DIALOG) */ | |
506 | ||
507 | #ifndef wxUSE_MDI | |
508 | # ifdef wxABORT_ON_CONFIG_ERROR | |
509 | # error "wxUSE_MDI must be defined." | |
510 | # else | |
511 | # define wxUSE_MDI 0 | |
512 | # endif | |
513 | #endif /* !defined(wxUSE_MDI) */ | |
514 | ||
515 | #ifndef wxUSE_MDI_ARCHITECTURE | |
516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
517 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
518 | # else | |
519 | # define wxUSE_MDI_ARCHITECTURE 0 | |
520 | # endif | |
521 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
522 | ||
523 | #ifndef wxUSE_MENUS | |
524 | # ifdef wxABORT_ON_CONFIG_ERROR | |
525 | # error "wxUSE_MENUS must be defined." | |
526 | # else | |
527 | # define wxUSE_MENUS 0 | |
528 | # endif | |
529 | #endif /* !defined(wxUSE_MENUS) */ | |
530 | ||
531 | #ifndef wxUSE_MSGDLG | |
532 | # ifdef wxABORT_ON_CONFIG_ERROR | |
533 | # error "wxUSE_MSGDLG must be defined." | |
534 | # else | |
535 | # define wxUSE_MSGDLG 0 | |
536 | # endif | |
537 | #endif /* !defined(wxUSE_MSGDLG) */ | |
538 | ||
539 | #ifndef wxUSE_NOTEBOOK | |
540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
541 | # error "wxUSE_NOTEBOOK must be defined." | |
542 | # else | |
543 | # define wxUSE_NOTEBOOK 0 | |
544 | # endif | |
545 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
546 | ||
547 | #ifndef wxUSE_PALETTE | |
548 | # ifdef wxABORT_ON_CONFIG_ERROR | |
549 | # error "wxUSE_PALETTE must be defined." | |
550 | # else | |
551 | # define wxUSE_PALETTE 0 | |
552 | # endif | |
553 | #endif /* !defined(wxUSE_PALETTE) */ | |
554 | ||
555 | #ifndef wxUSE_POPUPWIN | |
556 | # ifdef wxABORT_ON_CONFIG_ERROR | |
557 | # error "wxUSE_POPUPWIN must be defined." | |
558 | # else | |
559 | # define wxUSE_POPUPWIN 0 | |
560 | # endif | |
561 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
562 | ||
563 | #ifndef wxUSE_PRINTING_ARCHITECTURE | |
564 | # ifdef wxABORT_ON_CONFIG_ERROR | |
565 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
566 | # else | |
567 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
568 | # endif | |
569 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
570 | ||
571 | #ifndef wxUSE_RADIOBOX | |
572 | # ifdef wxABORT_ON_CONFIG_ERROR | |
573 | # error "wxUSE_RADIOBOX must be defined." | |
574 | # else | |
575 | # define wxUSE_RADIOBOX 0 | |
576 | # endif | |
577 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
578 | ||
579 | #ifndef wxUSE_RADIOBTN | |
580 | # ifdef wxABORT_ON_CONFIG_ERROR | |
581 | # error "wxUSE_RADIOBTN must be defined." | |
582 | # else | |
583 | # define wxUSE_RADIOBTN 0 | |
584 | # endif | |
585 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
586 | ||
587 | #ifndef wxUSE_SASH | |
588 | # ifdef wxABORT_ON_CONFIG_ERROR | |
589 | # error "wxUSE_SASH must be defined." | |
590 | # else | |
591 | # define wxUSE_SASH 0 | |
592 | # endif | |
593 | #endif /* !defined(wxUSE_SASH) */ | |
594 | ||
595 | #ifndef wxUSE_SCROLLBAR | |
596 | # ifdef wxABORT_ON_CONFIG_ERROR | |
597 | # error "wxUSE_SCROLLBAR must be defined." | |
598 | # else | |
599 | # define wxUSE_SCROLLBAR 0 | |
600 | # endif | |
601 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
602 | ||
603 | #ifndef wxUSE_SLIDER | |
604 | # ifdef wxABORT_ON_CONFIG_ERROR | |
605 | # error "wxUSE_SLIDER must be defined." | |
606 | # else | |
607 | # define wxUSE_SLIDER 0 | |
608 | # endif | |
609 | #endif /* !defined(wxUSE_SLIDER) */ | |
610 | ||
611 | #ifndef wxUSE_SOUND | |
612 | # ifdef wxABORT_ON_CONFIG_ERROR | |
613 | # error "wxUSE_SOUND must be defined." | |
614 | # else | |
615 | # define wxUSE_SOUND 0 | |
616 | # endif | |
617 | #endif /* !defined(wxUSE_SOUND) */ | |
618 | ||
619 | #ifndef wxUSE_SPINBTN | |
620 | # ifdef wxABORT_ON_CONFIG_ERROR | |
621 | # error "wxUSE_SPINBTN must be defined." | |
622 | # else | |
623 | # define wxUSE_SPINBTN 0 | |
624 | # endif | |
625 | #endif /* !defined(wxUSE_SPINBTN) */ | |
626 | ||
627 | #ifndef wxUSE_SPINCTRL | |
628 | # ifdef wxABORT_ON_CONFIG_ERROR | |
629 | # error "wxUSE_SPINCTRL must be defined." | |
630 | # else | |
631 | # define wxUSE_SPINCTRL 0 | |
632 | # endif | |
633 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
634 | ||
635 | #ifndef wxUSE_SPLASH | |
636 | # ifdef wxABORT_ON_CONFIG_ERROR | |
637 | # error "wxUSE_SPLASH must be defined." | |
638 | # else | |
639 | # define wxUSE_SPLASH 0 | |
640 | # endif | |
641 | #endif /* !defined(wxUSE_SPLASH) */ | |
642 | ||
643 | #ifndef wxUSE_SPLITTER | |
644 | # ifdef wxABORT_ON_CONFIG_ERROR | |
645 | # error "wxUSE_SPLITTER must be defined." | |
646 | # else | |
647 | # define wxUSE_SPLITTER 0 | |
648 | # endif | |
649 | #endif /* !defined(wxUSE_SPLITTER) */ | |
650 | ||
651 | #ifndef wxUSE_STATBMP | |
652 | # ifdef wxABORT_ON_CONFIG_ERROR | |
653 | # error "wxUSE_STATBMP must be defined." | |
654 | # else | |
655 | # define wxUSE_STATBMP 0 | |
656 | # endif | |
657 | #endif /* !defined(wxUSE_STATBMP) */ | |
658 | ||
659 | #ifndef wxUSE_STATBOX | |
660 | # ifdef wxABORT_ON_CONFIG_ERROR | |
661 | # error "wxUSE_STATBOX must be defined." | |
662 | # else | |
663 | # define wxUSE_STATBOX 0 | |
664 | # endif | |
665 | #endif /* !defined(wxUSE_STATBOX) */ | |
666 | ||
667 | #ifndef wxUSE_STATLINE | |
668 | # ifdef wxABORT_ON_CONFIG_ERROR | |
669 | # error "wxUSE_STATLINE must be defined." | |
670 | # else | |
671 | # define wxUSE_STATLINE 0 | |
672 | # endif | |
673 | #endif /* !defined(wxUSE_STATLINE) */ | |
674 | ||
675 | #ifndef wxUSE_STATTEXT | |
676 | # ifdef wxABORT_ON_CONFIG_ERROR | |
677 | # error "wxUSE_STATTEXT must be defined." | |
678 | # else | |
679 | # define wxUSE_STATTEXT 0 | |
680 | # endif | |
681 | #endif /* !defined(wxUSE_STATTEXT) */ | |
682 | ||
683 | #ifndef wxUSE_STATUSBAR | |
684 | # ifdef wxABORT_ON_CONFIG_ERROR | |
685 | # error "wxUSE_STATUSBAR must be defined." | |
686 | # else | |
687 | # define wxUSE_STATUSBAR 0 | |
688 | # endif | |
689 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
690 | ||
691 | #ifndef wxUSE_TAB_DIALOG | |
692 | # ifdef wxABORT_ON_CONFIG_ERROR | |
693 | # error "wxUSE_TAB_DIALOG must be defined." | |
694 | # else | |
695 | # define wxUSE_TAB_DIALOG 0 | |
696 | # endif | |
697 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
698 | ||
699 | #ifndef wxUSE_TEXTCTRL | |
700 | # ifdef wxABORT_ON_CONFIG_ERROR | |
701 | # error "wxUSE_TEXTCTRL must be defined." | |
702 | # else | |
703 | # define wxUSE_TEXTCTRL 0 | |
704 | # endif | |
705 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
706 | ||
707 | #ifndef wxUSE_TIPWINDOW | |
708 | # ifdef wxABORT_ON_CONFIG_ERROR | |
709 | # error "wxUSE_TIPWINDOW must be defined." | |
710 | # else | |
711 | # define wxUSE_TIPWINDOW 0 | |
712 | # endif | |
713 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
714 | ||
715 | #ifndef wxUSE_TOOLBAR | |
716 | # ifdef wxABORT_ON_CONFIG_ERROR | |
717 | # error "wxUSE_TOOLBAR must be defined." | |
718 | # else | |
719 | # define wxUSE_TOOLBAR 0 | |
720 | # endif | |
721 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
722 | ||
723 | #ifndef wxUSE_TOOLTIPS | |
724 | # ifdef wxABORT_ON_CONFIG_ERROR | |
725 | # error "wxUSE_TOOLTIPS must be defined." | |
726 | # else | |
727 | # define wxUSE_TOOLTIPS 0 | |
728 | # endif | |
729 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
730 | ||
731 | #ifndef wxUSE_TREECTRL | |
732 | # ifdef wxABORT_ON_CONFIG_ERROR | |
733 | # error "wxUSE_TREECTRL must be defined." | |
734 | # else | |
735 | # define wxUSE_TREECTRL 0 | |
736 | # endif | |
737 | #endif /* !defined(wxUSE_TREECTRL) */ | |
738 | ||
739 | #ifndef wxUSE_VALIDATORS | |
740 | # ifdef wxABORT_ON_CONFIG_ERROR | |
741 | # error "wxUSE_VALIDATORS must be defined." | |
742 | # else | |
743 | # define wxUSE_VALIDATORS 0 | |
744 | # endif | |
745 | #endif /* !defined(wxUSE_VALIDATORS) */ | |
746 | ||
747 | #ifndef wxUSE_WXHTML_HELP | |
748 | # ifdef wxABORT_ON_CONFIG_ERROR | |
749 | # error "wxUSE_WXHTML_HELP must be defined." | |
750 | # else | |
751 | # define wxUSE_WXHTML_HELP 0 | |
752 | # endif | |
753 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
754 | ||
755 | #endif /* wxUSE_GUI */ | |
756 | ||
757 | /* | |
758 | check consistency of the settings | |
759 | */ | |
760 | ||
761 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP | |
762 | # if !wxUSE_PROTOCOL | |
763 | # ifdef wxABORT_ON_CONFIG_ERROR | |
764 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
765 | # else | |
766 | # undef wxUSE_PROTOCOL | |
767 | # define wxUSE_PROTOCOL 1 | |
768 | # endif | |
769 | # endif | |
770 | #endif /* wxUSE_PROTOCOL_XXX */ | |
771 | ||
772 | #if wxUSE_URL | |
773 | # if !wxUSE_PROTOCOL | |
774 | # ifdef wxABORT_ON_CONFIG_ERROR | |
775 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
776 | # else | |
777 | # undef wxUSE_PROTOCOL | |
778 | # define wxUSE_PROTOCOL 1 | |
779 | # endif | |
780 | # endif | |
781 | #endif /* wxUSE_URL */ | |
782 | ||
783 | #if wxUSE_PROTOCOL | |
784 | # if !wxUSE_SOCKETS | |
785 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
786 | # ifdef wxABORT_ON_CONFIG_ERROR | |
787 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
788 | # else | |
789 | # undef wxUSE_SOCKETS | |
790 | # define wxUSE_SOCKETS 1 | |
791 | # endif | |
792 | # endif | |
793 | # endif | |
794 | ||
795 | # if !wxUSE_STREAMS | |
796 | # ifdef wxABORT_ON_CONFIG_ERROR | |
797 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
798 | # else | |
799 | # undef wxUSE_STREAMS | |
800 | # define wxUSE_STREAMS 1 | |
801 | # endif | |
802 | # endif | |
803 | #endif /* wxUSE_PROTOCOL */ | |
804 | ||
805 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ | |
806 | #if wxUSE_HTML | |
807 | # if !wxUSE_FILESYSTEM | |
808 | # ifdef wxABORT_ON_CONFIG_ERROR | |
809 | # error "wxHTML requires wxFileSystem" | |
810 | # else | |
811 | # undef wxUSE_FILESYSTEM | |
812 | # define wxUSE_FILESYSTEM 1 | |
813 | # endif | |
814 | # endif | |
815 | #endif /* wxUSE_HTML */ | |
816 | ||
817 | #if wxUSE_FILESYSTEM | |
818 | # if !wxUSE_STREAMS | |
819 | # ifdef wxABORT_ON_CONFIG_ERROR | |
820 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
821 | # else | |
822 | # undef wxUSE_STREAMS | |
823 | # define wxUSE_STREAMS 1 | |
824 | # endif | |
825 | # endif | |
826 | #endif /* wxUSE_FILESYSTEM */ | |
827 | ||
828 | #if wxUSE_FS_INET | |
829 | # if !wxUSE_PROTOCOL | |
830 | # ifdef wxABORT_ON_CONFIG_ERROR | |
831 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
832 | # else | |
833 | # undef wxUSE_PROTOCOL | |
834 | # define wxUSE_PROTOCOL 1 | |
835 | # endif | |
836 | # endif | |
837 | #endif /* wxUSE_FS_INET */ | |
838 | ||
839 | #if wxUSE_STOPWATCH || wxUSE_DATETIME | |
840 | # if !wxUSE_LONGLONG | |
841 | # ifdef wxABORT_ON_CONFIG_ERROR | |
842 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" | |
843 | # else | |
844 | # undef wxUSE_LONGLONG | |
845 | # define wxUSE_LONGLONG 1 | |
846 | # endif | |
847 | # endif | |
848 | #endif /* wxUSE_STOPWATCH */ | |
849 | ||
850 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
851 | # ifdef wxABORT_ON_CONFIG_ERROR | |
852 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
853 | # else | |
854 | # undef wxUSE_TEXTFILE | |
855 | # define wxUSE_TEXTFILE 1 | |
856 | # endif | |
857 | #endif /* wxUSE_MIMETYPE */ | |
858 | ||
859 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER | |
860 | # ifdef wxABORT_ON_CONFIG_ERROR | |
861 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
862 | # else | |
863 | # undef wxUSE_TEXTBUFFER | |
864 | # define wxUSE_TEXTBUFFER 1 | |
865 | # endif | |
866 | #endif /* wxUSE_TEXTFILE */ | |
867 | ||
868 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
869 | # ifdef wxABORT_ON_CONFIG_ERROR | |
870 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
871 | # else | |
872 | # undef wxUSE_FILE | |
873 | # define wxUSE_FILE 1 | |
874 | # endif | |
875 | #endif /* wxUSE_TEXTFILE */ | |
876 | ||
877 | #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE | |
878 | # ifdef wxABORT_ON_CONFIG_ERROR | |
879 | # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE" | |
880 | # else | |
881 | # undef wxUSE_UNICODE | |
882 | # define wxUSE_UNICODE 1 | |
883 | # endif | |
884 | #endif /* wxUSE_UNICODE_MSLU */ | |
885 | ||
886 | /* ODBC and Unicode are now compatible */ | |
887 | ||
888 | #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */ | |
889 | # ifdef wxABORT_ON_CONFIG_ERROR | |
890 | /* (ODBC classes aren't Unicode-compatible yet) */ | |
891 | # error "wxUSE_ODBC can't be used with wxUSE_UNICODE" | |
892 | # else | |
893 | # undef wxUSE_ODBC | |
894 | # define wxUSE_ODBC 0 | |
895 | # endif | |
896 | #endif /* wxUSE_ODBC */ | |
897 | ||
898 | #if wxUSE_XML && !wxUSE_WCHAR_T | |
899 | # ifdef wxABORT_ON_CONFIG_ERROR | |
900 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
901 | # else | |
902 | # undef wxUSE_XML | |
903 | # define wxUSE_XML 0 | |
904 | # endif | |
905 | #endif /* wxUSE_UNICODE_MSLU */ | |
906 | ||
907 | #if !wxUSE_DYNLIB_CLASS | |
908 | # if wxUSE_DYNAMIC_LOADER | |
909 | # ifdef wxABORT_ON_CONFIG_ERROR | |
910 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
911 | # else | |
912 | # define wxUSE_DYNLIB_CLASS 1 | |
913 | # endif | |
914 | # endif | |
915 | #endif /* wxUSE_DYNLIB_CLASS */ | |
916 | ||
917 | /* the rest of the tests is for the GUI settings only */ | |
918 | #if wxUSE_GUI | |
919 | ||
920 | #if wxUSE_BUTTON || \ | |
921 | wxUSE_CALENDARCTRL || \ | |
922 | wxUSE_CARET || \ | |
923 | wxUSE_COMBOBOX || \ | |
924 | wxUSE_BMPBUTTON || \ | |
925 | wxUSE_CHECKBOX || \ | |
926 | wxUSE_CHECKLISTBOX || \ | |
927 | wxUSE_CHOICE || \ | |
928 | wxUSE_GAUGE || \ | |
929 | wxUSE_GRID || \ | |
930 | wxUSE_LISTBOX || \ | |
931 | wxUSE_LISTCTRL || \ | |
932 | wxUSE_NOTEBOOK || \ | |
933 | wxUSE_RADIOBOX || \ | |
934 | wxUSE_RADIOBTN || \ | |
935 | wxUSE_SCROLLBAR || \ | |
936 | wxUSE_SLIDER || \ | |
937 | wxUSE_SPINBTN || \ | |
938 | wxUSE_SPINCTRL || \ | |
939 | wxUSE_STATBMP || \ | |
940 | wxUSE_STATBOX || \ | |
941 | wxUSE_STATLINE || \ | |
942 | wxUSE_STATTEXT || \ | |
943 | wxUSE_STATUSBAR || \ | |
944 | wxUSE_TEXTCTRL || \ | |
945 | wxUSE_TOOLBAR || \ | |
946 | wxUSE_TREECTRL | |
947 | # if !wxUSE_CONTROLS | |
948 | # ifdef wxABORT_ON_CONFIG_ERROR | |
949 | # error "wxUSE_CONTROLS unset but some controls used" | |
950 | # else | |
951 | # undef wxUSE_CONTROLS | |
952 | # define wxUSE_CONTROLS 1 | |
953 | # endif | |
954 | # endif | |
955 | #endif /* controls */ | |
956 | ||
957 | #if wxUSE_BMPBUTTON | |
958 | # if !wxUSE_BUTTON | |
959 | # ifdef wxABORT_ON_CONFIG_ERROR | |
960 | # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON" | |
961 | # else | |
962 | # undef wxUSE_BUTTON | |
963 | # define wxUSE_BUTTON 1 | |
964 | # endif | |
965 | # endif | |
966 | #endif /* wxUSE_BMPBUTTON */ | |
967 | ||
968 | #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK | |
969 | # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL | |
970 | # ifdef wxABORT_ON_CONFIG_ERROR | |
971 | # error "wxUSE_BOOKCTRL must be set." | |
972 | # else | |
973 | # undef wxUSE_BOOKCTRL | |
974 | # endif | |
975 | # endif | |
976 | ||
977 | # ifndef wxUSE_BOOKCTRL | |
978 | # define wxUSE_BOOKCTRL 1 | |
979 | # endif | |
980 | #endif /* wxUSE_NOTEBOOK */ | |
981 | ||
982 | #if wxUSE_LISTBOOK | |
983 | # if !wxUSE_LISTCTRL | |
984 | # ifdef wxABORT_ON_CONFIG_ERROR | |
985 | # error "wxListbook requires wxListCtrl" | |
986 | # else | |
987 | # undef wxUSE_LISTCTRL | |
988 | # define wxUSE_LISTCTRL 1 | |
989 | # endif | |
990 | # endif | |
991 | #endif /* wxUSE_LISTBOOK */ | |
992 | ||
993 | #if wxUSE_CHOICEBOOK | |
994 | # if !wxUSE_CHOICE | |
995 | # ifdef wxABORT_ON_CONFIG_ERROR | |
996 | # error "wxChoicebook requires wxChoice" | |
997 | # else | |
998 | # undef wxUSE_CHOICE | |
999 | # define wxUSE_CHOICE 1 | |
1000 | # endif | |
1001 | # endif | |
1002 | #endif /* wxUSE_CHOICEBOOK */ | |
1003 | ||
1004 | /* wxUniv-specific dependencies */ | |
1005 | #if defined(__WXUNIVERSAL__) | |
1006 | # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN | |
1007 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1008 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
1009 | # else | |
1010 | # undef wxUSE_POPUPWIN | |
1011 | # define wxUSE_POPUPWIN 1 | |
1012 | # endif | |
1013 | # endif | |
1014 | ||
1015 | # if wxUSE_COMBOBOX | |
1016 | # if !wxUSE_LISTBOX | |
1017 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1018 | # error "wxComboBox requires wxListBox in wxUniversal" | |
1019 | # else | |
1020 | # undef wxUSE_LISTBOX | |
1021 | # define wxUSE_LISTBOX 1 | |
1022 | # endif | |
1023 | # endif | |
1024 | # endif /* wxUSE_COMBOBOX */ | |
1025 | ||
1026 | # if wxUSE_RADIOBTN | |
1027 | # if !wxUSE_CHECKBOX | |
1028 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1029 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
1030 | # else | |
1031 | # undef wxUSE_CHECKBOX | |
1032 | # define wxUSE_CHECKBOX 1 | |
1033 | # endif | |
1034 | # endif | |
1035 | # endif /* wxUSE_RADIOBTN */ | |
1036 | ||
1037 | # if wxUSE_TEXTCTRL | |
1038 | # if !wxUSE_CARET | |
1039 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1040 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
1041 | # else | |
1042 | # undef wxUSE_CARET | |
1043 | # define wxUSE_CARET 1 | |
1044 | # endif | |
1045 | # endif /* wxUSE_CARET */ | |
1046 | ||
1047 | # if !wxUSE_SCROLLBAR | |
1048 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1049 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
1050 | # else | |
1051 | # undef wxUSE_SCROLLBAR | |
1052 | # define wxUSE_SCROLLBAR 1 | |
1053 | # endif | |
1054 | # endif /* wxUSE_SCROLLBAR */ | |
1055 | # endif /* wxUSE_TEXTCTRL */ | |
1056 | #endif /* __WXUNIVERSAL__ */ | |
1057 | ||
1058 | /* wxGTK-specific dependencies */ | |
1059 | #ifdef __WXGTK__ | |
1060 | # ifndef __WXUNIVERSAL__ | |
1061 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1062 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1063 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1064 | # else | |
1065 | # undef wxUSE_MENUS | |
1066 | # define wxUSE_MENUS 1 | |
1067 | # endif | |
1068 | # endif | |
1069 | # endif /* !__WXUNIVERSAL__ */ | |
1070 | ||
1071 | # if wxUSE_JOYSTICK | |
1072 | # if !wxUSE_THREADS | |
1073 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1074 | # error "wxJoystick requires threads in wxGTK" | |
1075 | # else | |
1076 | # undef wxUSE_JOYSTICK | |
1077 | # define wxUSE_JOYSTICK 0 | |
1078 | # endif | |
1079 | # endif | |
1080 | # endif | |
1081 | #endif /* wxGTK && !wxUniv */ | |
1082 | ||
1083 | /* wxMSW-specific dependencies */ | |
1084 | #ifdef __WXMSW__ | |
1085 | # ifndef wxUSE_UNICODE_MSLU | |
1086 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1087 | # error "wxUSE_UNICODE_MSLU must be defined." | |
1088 | # else | |
1089 | # define wxUSE_UNICODE_MSLU 0 | |
1090 | # endif | |
1091 | # endif /* wxUSE_UNICODE_MSLU */ | |
1092 | # ifndef wxUSE_UXTHEME | |
1093 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1094 | # error "wxUSE_UXTHEME must be defined." | |
1095 | # else | |
1096 | # define wxUSE_UXTHEME 0 | |
1097 | # endif | |
1098 | # endif /* wxUSE_UXTHEME */ | |
1099 | # ifndef wxUSE_UXTHEME_AUTO | |
1100 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1101 | # error "wxUSE_UXTHEME_AUTO must be defined." | |
1102 | # else | |
1103 | # define wxUSE_UXTHEME_AUTO 0 | |
1104 | # endif | |
1105 | # endif /* wxUSE_UXTHEME_AUTO */ | |
1106 | # ifndef wxUSE_MS_HTML_HELP | |
1107 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1108 | # error "wxUSE_MS_HTML_HELP must be defined." | |
1109 | # else | |
1110 | # define wxUSE_MS_HTML_HELP 0 | |
1111 | # endif | |
1112 | # endif /* !defined(wxUSE_MS_HTML_HELP) */ | |
1113 | # ifndef wxUSE_DIALUP_MANAGER | |
1114 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1115 | # error "wxUSE_DIALUP_MANAGER must be defined." | |
1116 | # else | |
1117 | # define wxUSE_DIALUP_MANAGER 0 | |
1118 | # endif | |
1119 | # endif /* !defined(wxUSE_DIALUP_MANAGER) */ | |
1120 | ||
1121 | # if !wxUSE_DYNAMIC_LOADER | |
1122 | # if wxUSE_MS_HTML_HELP | |
1123 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1124 | # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER." | |
1125 | # else | |
1126 | # define wxUSE_DYNAMIC_LOADER 1 | |
1127 | # endif | |
1128 | # endif | |
1129 | # if wxUSE_DIALUP_MANAGER | |
1130 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1131 | # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER." | |
1132 | # else | |
1133 | # define wxUSE_DYNAMIC_LOADER 1 | |
1134 | # endif | |
1135 | # endif | |
1136 | # endif /* wxUSE_DYNAMIC_LOADER */ | |
1137 | #endif /* wxMSW */ | |
1138 | ||
1139 | /* wxMAC-specific dependencies */ | |
1140 | #ifdef __WXMAC__ | |
1141 | # if wxUSE_UNICODE | |
1142 | # if !TARGET_CARBON | |
1143 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1144 | # error "wxUSE_UNICODE is only supported for Carbon Targets." | |
1145 | # else | |
1146 | # define wxUSE_UNICODE 0 | |
1147 | # endif | |
1148 | # endif | |
1149 | # endif | |
1150 | #endif /* wxMAC */ | |
1151 | /* wxMotif-specific dependencies */ | |
1152 | #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG | |
1153 | # undef wxUSE_TAB_DIALOG | |
1154 | # define wxUSE_TAB_DIALOG 1 | |
1155 | #endif | |
1156 | ||
1157 | /* wxMGL-specific dependencies */ | |
1158 | #ifdef __WXMGL__ | |
1159 | # if !wxUSE_PALETTE | |
1160 | # error "wxMGL requires wxUSE_PALETTE=1" | |
1161 | # endif | |
1162 | #endif /* wxMGL */ | |
1163 | ||
1164 | /* Hopefully we can emulate these dialogs in due course */ | |
1165 | #ifdef __SMARTPHONE__ | |
1166 | # ifdef wxUSE_COLOURDLG | |
1167 | # undef wxUSE_COLOURDLG | |
1168 | # define wxUSE_COLOURDLG 0 | |
1169 | # endif | |
1170 | #endif /* __SMARTPHONE__ */ | |
1171 | ||
1172 | ||
1173 | /* generic controls dependencies */ | |
1174 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1175 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1176 | /* all common controls are needed by these dialogs */ | |
1177 | # if !defined(wxUSE_CHOICE) || \ | |
1178 | !defined(wxUSE_TEXTCTRL) || \ | |
1179 | !defined(wxUSE_BUTTON) || \ | |
1180 | !defined(wxUSE_CHECKBOX) || \ | |
1181 | !defined(wxUSE_STATTEXT) | |
1182 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1183 | # error "These common controls are needed by common dialogs" | |
1184 | # else | |
1185 | # undef wxUSE_CHOICE | |
1186 | # define wxUSE_CHOICE 1 | |
1187 | # undef wxUSE_TEXTCTRL | |
1188 | # define wxUSE_TEXTCTRL 1 | |
1189 | # undef wxUSE_BUTTON | |
1190 | # define wxUSE_BUTTON 1 | |
1191 | # undef wxUSE_CHECKBOX | |
1192 | # define wxUSE_CHECKBOX 1 | |
1193 | # undef wxUSE_STATTEXT | |
1194 | # define wxUSE_STATTEXT 1 | |
1195 | # endif | |
1196 | # endif | |
1197 | # endif | |
1198 | #endif /* !wxMSW || wxUniv */ | |
1199 | ||
1200 | /* common dependencies */ | |
1201 | #if wxUSE_CALENDARCTRL | |
1202 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1203 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1204 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1205 | # else | |
1206 | # undef wxUSE_SPINBTN | |
1207 | # undef wxUSE_COMBOBOX | |
1208 | # define wxUSE_SPINBTN 1 | |
1209 | # define wxUSE_COMBOBOX 1 | |
1210 | # endif | |
1211 | # endif | |
1212 | ||
1213 | # if !wxUSE_DATETIME | |
1214 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1215 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1216 | # else | |
1217 | # undef wxUSE_DATETIME | |
1218 | # define wxUSE_DATETIME 1 | |
1219 | # endif | |
1220 | # endif | |
1221 | #endif /* wxUSE_CALENDARCTRL */ | |
1222 | ||
1223 | #if wxUSE_CHECKLISTBOX | |
1224 | # if !wxUSE_LISTBOX | |
1225 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1226 | # error "wxCheckListBox requires wxListBox" | |
1227 | # else | |
1228 | # undef wxUSE_LISTBOX | |
1229 | # define wxUSE_LISTBOX 1 | |
1230 | # endif | |
1231 | # endif | |
1232 | #endif /* wxUSE_CHECKLISTBOX */ | |
1233 | ||
1234 | #if wxUSE_CHOICEDLG | |
1235 | # if !wxUSE_LISTBOX | |
1236 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1237 | # error "Choice dialogs requires wxListBox" | |
1238 | # else | |
1239 | # undef wxUSE_LISTBOX | |
1240 | # define wxUSE_LISTBOX 1 | |
1241 | # endif | |
1242 | # endif | |
1243 | #endif /* wxUSE_CHOICEDLG */ | |
1244 | ||
1245 | #if wxUSE_HELP | |
1246 | # if !wxUSE_BMPBUTTON | |
1247 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1248 | # error "wxUSE_HELP requires wxUSE_BMPBUTTON" | |
1249 | # else | |
1250 | # undef wxUSE_BMPBUTTON | |
1251 | # define wxUSE_BMPBUTTON 1 | |
1252 | # endif | |
1253 | # endif | |
1254 | ||
1255 | # if !wxUSE_CHOICEDLG | |
1256 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1257 | # error "wxUSE_HELP requires wxUSE_CHOICEDLG" | |
1258 | # else | |
1259 | # undef wxUSE_CHOICEDLG | |
1260 | # define wxUSE_CHOICEDLG 1 | |
1261 | # endif | |
1262 | # endif | |
1263 | #endif /* wxUSE_HELP */ | |
1264 | ||
1265 | #if wxUSE_WXHTML_HELP | |
1266 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK | |
1267 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1268 | # error "Built in help controller can't be compiled" | |
1269 | # else | |
1270 | # undef wxUSE_HELP | |
1271 | # define wxUSE_HELP 1 | |
1272 | # undef wxUSE_HTML | |
1273 | # define wxUSE_HTML 1 | |
1274 | # undef wxUSE_COMBOBOX | |
1275 | # define wxUSE_COMBOBOX 1 | |
1276 | # undef wxUSE_NOTEBOOK | |
1277 | # define wxUSE_NOTEBOOK 1 | |
1278 | # endif | |
1279 | # endif | |
1280 | #endif /* wxUSE_WXHTML_HELP */ | |
1281 | ||
1282 | #if !wxUSE_IMAGE | |
1283 | /* | |
1284 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1285 | user explicitly wants this and disable all other features that require | |
1286 | wxUSE_IMAGE. | |
1287 | */ | |
1288 | # if wxUSE_DRAGIMAGE | |
1289 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1290 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1291 | # else | |
1292 | # undef wxUSE_DRAGIMAGE | |
1293 | # define wxUSE_DRAGIMAGE 0 | |
1294 | # endif | |
1295 | # endif | |
1296 | ||
1297 | # if wxUSE_LIBPNG | |
1298 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1299 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1300 | # else | |
1301 | # undef wxUSE_LIBPNG | |
1302 | # define wxUSE_LIBPNG 0 | |
1303 | # endif | |
1304 | # endif | |
1305 | ||
1306 | # if wxUSE_LIBJPEG | |
1307 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1308 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1309 | # else | |
1310 | # undef wxUSE_LIBJPEG | |
1311 | # define wxUSE_LIBJPEG 0 | |
1312 | # endif | |
1313 | # endif | |
1314 | ||
1315 | # if wxUSE_LIBTIFF | |
1316 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1317 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1318 | # else | |
1319 | # undef wxUSE_LIBTIFF | |
1320 | # define wxUSE_LIBTIFF 0 | |
1321 | # endif | |
1322 | # endif | |
1323 | ||
1324 | # if wxUSE_GIF | |
1325 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1326 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1327 | # else | |
1328 | # undef wxUSE_GIF | |
1329 | # define wxUSE_GIF 0 | |
1330 | # endif | |
1331 | # endif | |
1332 | ||
1333 | # if wxUSE_PNM | |
1334 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1335 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1336 | # else | |
1337 | # undef wxUSE_PNM | |
1338 | # define wxUSE_PNM 0 | |
1339 | # endif | |
1340 | # endif | |
1341 | ||
1342 | # if wxUSE_PCX | |
1343 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1344 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1345 | # else | |
1346 | # undef wxUSE_PCX | |
1347 | # define wxUSE_PCX 0 | |
1348 | # endif | |
1349 | # endif | |
1350 | ||
1351 | # if wxUSE_IFF | |
1352 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1353 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1354 | # else | |
1355 | # undef wxUSE_IFF | |
1356 | # define wxUSE_IFF 0 | |
1357 | # endif | |
1358 | # endif | |
1359 | ||
1360 | # if wxUSE_TOOLBAR | |
1361 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1362 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1363 | # else | |
1364 | # undef wxUSE_TOOLBAR | |
1365 | # define wxUSE_TOOLBAR 0 | |
1366 | # endif | |
1367 | # endif | |
1368 | ||
1369 | # if wxUSE_XPM | |
1370 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1371 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1372 | # else | |
1373 | # undef wxUSE_XPM | |
1374 | # define wxUSE_XPM 0 | |
1375 | # endif | |
1376 | # endif | |
1377 | ||
1378 | #endif /* !wxUSE_IMAGE */ | |
1379 | ||
1380 | #if wxUSE_DOC_VIEW_ARCHITECTURE | |
1381 | # if !wxUSE_MENUS | |
1382 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1383 | # error "DocView requires wxUSE_MENUS" | |
1384 | # else | |
1385 | # undef wxUSE_MENUS | |
1386 | # define wxUSE_MENUS 1 | |
1387 | # endif | |
1388 | # endif | |
1389 | ||
1390 | # if !wxUSE_CHOICEDLG | |
1391 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1392 | # error "DocView requires wxUSE_CHOICEDLG" | |
1393 | # else | |
1394 | # undef wxUSE_CHOICEDLG | |
1395 | # define wxUSE_CHOICEDLG 1 | |
1396 | # endif | |
1397 | # endif | |
1398 | ||
1399 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM | |
1400 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1401 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1402 | # else | |
1403 | # undef wxUSE_STREAMS | |
1404 | # define wxUSE_STREAMS 1 | |
1405 | # endif | |
1406 | # endif | |
1407 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1408 | ||
1409 | #if wxUSE_PRINTING_ARCHITECTURE | |
1410 | # if !wxUSE_COMBOBOX | |
1411 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1412 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1413 | # else | |
1414 | # undef wxUSE_COMBOBOX | |
1415 | # define wxUSE_COMBOBOX 1 | |
1416 | # endif | |
1417 | # endif | |
1418 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1419 | ||
1420 | #if wxUSE_MDI_ARCHITECTURE | |
1421 | # if !wxUSE_MDI | |
1422 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1423 | # error "MDI requires wxUSE_MDI" | |
1424 | # else | |
1425 | # undef wxUSE_MDI | |
1426 | # define wxUSE_MDI 1 | |
1427 | # endif | |
1428 | # endif | |
1429 | ||
1430 | # if !wxUSE_DOC_VIEW_ARCHITECTURE | |
1431 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1432 | # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE" | |
1433 | # else | |
1434 | # undef wxUSE_DOC_VIEW_ARCHITECTURE | |
1435 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1436 | # endif | |
1437 | # endif | |
1438 | #endif /* wxUSE_MDI_ARCHITECTURE */ | |
1439 | ||
1440 | #if !wxUSE_FILEDLG | |
1441 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP | |
1442 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1443 | # error "wxFileDialog must be compiled as well" | |
1444 | # else | |
1445 | # undef wxUSE_FILEDLG | |
1446 | # define wxUSE_FILEDLG 1 | |
1447 | # endif | |
1448 | # endif | |
1449 | #endif /* wxUSE_FILEDLG */ | |
1450 | ||
1451 | #if !wxUSE_BUTTON | |
1452 | # if wxUSE_PROGRESSDLG || \ | |
1453 | wxUSE_FONTDLG || \ | |
1454 | wxUSE_FILEDLG || \ | |
1455 | wxUSE_CHOICEDLG || \ | |
1456 | wxUSE_NUMBERDLG || \ | |
1457 | wxUSE_TEXTDLG || \ | |
1458 | wxUSE_DIRDLG || \ | |
1459 | wxUSE_STARTUP_TIPS || \ | |
1460 | wxUSE_WIZARDDLG | |
1461 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1462 | # error "Common and generic dialogs require wxUSE_BUTTON" | |
1463 | # else | |
1464 | # undef wxUSE_BUTTON | |
1465 | # define wxUSE_BUTTON 1 | |
1466 | # endif | |
1467 | # endif | |
1468 | #endif /* wxUSE_PROGRESSDLG */ | |
1469 | ||
1470 | #if !wxUSE_TOOLBAR | |
1471 | # if wxUSE_TOOLBAR_NATIVE | |
1472 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1473 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1474 | # else | |
1475 | # undef wxUSE_TOOLBAR_NATIVE | |
1476 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1477 | # endif | |
1478 | # endif | |
1479 | ||
1480 | # if wxUSE_TOOLBAR_SIMPLE | |
1481 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1482 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1" | |
1483 | # else | |
1484 | # undef wxUSE_TOOLBAR_SIMPLE | |
1485 | # define wxUSE_TOOLBAR_SIMPLE 0 | |
1486 | # endif | |
1487 | # endif | |
1488 | #endif | |
1489 | ||
1490 | #if !wxUSE_IMAGLIST | |
1491 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1493 | # error "wxImageList must be compiled as well" | |
1494 | # else | |
1495 | # undef wxUSE_IMAGLIST | |
1496 | # define wxUSE_IMAGLIST 1 | |
1497 | # endif | |
1498 | # endif | |
1499 | #endif /* !wxUSE_IMAGLIST */ | |
1500 | ||
1501 | #if !wxUSE_MSGDLG | |
1502 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1503 | /* FIXME: should compile without it, of course, but doesn't */ | |
1504 | # error "wxMessageBox is always needed" | |
1505 | # else | |
1506 | # undef wxUSE_MSGDLG | |
1507 | # define wxUSE_MSGDLG 1 | |
1508 | # endif | |
1509 | #endif | |
1510 | ||
1511 | #if wxUSE_RADIOBOX | |
1512 | # if !wxUSE_RADIOBTN || !wxUSE_STATBOX | |
1513 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1514 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX" | |
1515 | # else | |
1516 | # undef wxUSE_RADIOBTN | |
1517 | # undef wxUSE_STATBOX | |
1518 | # define wxUSE_RADIOBTN 1 | |
1519 | # define wxUSE_STATBOX 1 | |
1520 | # endif | |
1521 | # endif | |
1522 | #endif /* wxUSE_RADIOBOX */ | |
1523 | ||
1524 | #if wxUSE_LOGWINDOW | |
1525 | # if !wxUSE_TEXTCTRL | |
1526 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1527 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1528 | # else | |
1529 | # undef wxUSE_TEXTCTRL | |
1530 | # define wxUSE_TEXTCTRL 1 | |
1531 | # endif | |
1532 | # endif | |
1533 | #endif /* wxUSE_LOGWINDOW */ | |
1534 | ||
1535 | #if wxUSE_LOG_DIALOG | |
1536 | # if !wxUSE_LISTCTRL || !wxUSE_BUTTON | |
1537 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1538 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON" | |
1539 | # else | |
1540 | # undef wxUSE_LISTCTRL | |
1541 | # define wxUSE_LISTCTRL 1 | |
1542 | # undef wxUSE_BUTTON | |
1543 | # define wxUSE_BUTTON 1 | |
1544 | # endif | |
1545 | # endif | |
1546 | #endif /* wxUSE_LOG_DIALOG */ | |
1547 | ||
1548 | /* I wonder if we shouldn't just remove all occurrences of | |
1549 | wxUSE_DYNAMIC_CLASSES from the sources? */ | |
1550 | #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES | |
1551 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1552 | # error "wxUSE_DYNAMIC_CLASSES must be defined as 1" | |
1553 | # else | |
1554 | # undef wxUSE_DYNAMIC_CLASSES | |
1555 | # define wxUSE_DYNAMIC_CLASSES 1 | |
1556 | # endif | |
1557 | #endif /* wxUSE_DYNAMIC_CLASSES */ | |
1558 | ||
1559 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ | |
1560 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1561 | # error "wxClipboard requires wxDataObject" | |
1562 | # else | |
1563 | # undef wxUSE_DATAOBJ | |
1564 | # define wxUSE_DATAOBJ 1 | |
1565 | # endif | |
1566 | #endif /* wxUSE_CLIPBOARD */ | |
1567 | ||
1568 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO | |
1569 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1570 | # error "wxr resources require PrologIO" | |
1571 | # else | |
1572 | # undef wxUSE_PROLOGIO | |
1573 | # define wxUSE_PROLOGIO 1 | |
1574 | # endif | |
1575 | #endif /* wxUSE_WX_RESOURCES */ | |
1576 | ||
1577 | #endif /* wxUSE_GUI */ | |
1578 |