]>
Commit | Line | Data |
---|---|---|
c67d6888 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/msw/setup.h | |
3 | // Purpose: Configuration for the library | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
65571936 | 9 | // Licence: wxWindows licence |
c67d6888 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_SETUP_H_ | |
13 | #define _WX_SETUP_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // global settings | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
19 | //#define WXWIN_OS_DESCRIPTION wxT("MicroWindows") | |
20 | ||
21 | // define this to 0 when building wxBase library - this can also be done from | |
22 | // makefile/project file overriding the value here | |
23 | #ifndef wxUSE_GUI | |
24 | #define wxUSE_GUI 1 | |
25 | #endif // wxUSE_GUI | |
26 | ||
27 | // ---------------------------------------------------------------------------- | |
28 | // compatibility settings | |
29 | // ---------------------------------------------------------------------------- | |
30 | ||
dee1a63f MB |
31 | // This setting determines the compatibility with 2.6 API: set it to 0 to |
32 | // flag all cases of using deprecated functions. | |
33 | // | |
34 | // Default is 1 but please try building your code with 0 as the default will | |
35 | // change to 0 in the next version and the deprecated functions will disappear | |
36 | // in the version after it completely. | |
37 | // | |
38 | // Recommended setting: 0 (please update your code) | |
39 | #define WXWIN_COMPATIBILITY_2_6 1 | |
c67d6888 | 40 | |
c67d6888 JS |
41 | // Set to 0 for accurate dialog units, else 1 to be as per 2.1.16 and before. |
42 | // If migrating between versions, your dialogs may seem to shrink. | |
43 | // | |
44 | // Default is 1 | |
45 | // | |
46 | // Recommended setting: 0 (the new calculations are more correct!) | |
47 | #define wxDIALOG_UNIT_COMPATIBILITY 1 | |
48 | ||
49 | // ---------------------------------------------------------------------------- | |
50 | // debugging settings | |
51 | // ---------------------------------------------------------------------------- | |
52 | ||
53 | // Generic comment about debugging settings: they are very useful if you don't | |
54 | // use any other memory leak detection tools such as Purify/BoundsChecker, but | |
55 | // are probably redundant otherwise. Also, Visual C++ CRT has the same features | |
77ffb593 | 56 | // as wxWidgets memory debugging subsystem built in since version 5.0 and you |
c67d6888 JS |
57 | // may prefer to use it instead of built in memory debugging code because it is |
58 | // faster and more fool proof. | |
59 | // | |
60 | // Using VC++ CRT memory debugging is enabled by default in debug mode | |
61 | // (__WXDEBUG__) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0) | |
62 | // and if __NO_VC_CRTDBG__ is not defined. | |
63 | ||
64 | // If 1, enables wxDebugContext, for writing error messages to file, etc. If | |
65 | // __WXDEBUG__ is not defined, will still use normal memory operators. It's | |
66 | // recommended to set this to 1, since you may well need to output an error log | |
67 | // in a production version (or non-debugging beta). | |
68 | // | |
69 | // Default is 1. | |
70 | // | |
71 | // Recommended setting: 1 but see comment above | |
72 | #define wxUSE_DEBUG_CONTEXT 1 | |
73 | ||
74 | // If 1, enables debugging versions of wxObject::new and wxObject::delete *IF* | |
75 | // __WXDEBUG__ is also defined. | |
76 | // | |
77 | // WARNING: this code may not work with all architectures, especially if | |
78 | // alignment is an issue. This switch is currently ignored for mingw / cygwin | |
79 | // | |
80 | // Default is 1 | |
81 | // | |
82 | // Recommended setting: 1 but see comment in the beginning of this section | |
e640f823 | 83 | #define wxUSE_MEMORY_TRACING 0 |
c67d6888 JS |
84 | |
85 | // In debug mode, cause new and delete to be redefined globally. | |
86 | // If this causes problems (e.g. link errors), set this to 0. | |
87 | // This switch is currently ignored for mingw / cygwin | |
88 | // | |
89 | // Default is 1 | |
90 | // | |
91 | // Recommended setting: 1 but see comment in the beginning of this section | |
92 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
93 | ||
94 | // In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If | |
95 | // this causes problems (e.g. link errors), set this to 0. You may need to set | |
96 | // this to 0 if using templates (at least for VC++). This switch is currently | |
97 | // ignored for mingw / cygwin | |
98 | // | |
99 | // Default is 1 | |
100 | // | |
101 | // Recommended setting: 1 but see comment in the beginning of this section | |
102 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
103 | ||
104 | // wxHandleFatalExceptions() may be used to catch the program faults at run | |
105 | // time and, instead of terminating the program with a usual GPF message box, | |
106 | // call the user-defined wxApp::OnFatalException() function. If you set | |
107 | // wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work. | |
108 | // | |
109 | // This setting is for Win32 only and can only be enabled if your compiler | |
110 | // supports Win32 structured exception handling (currently only VC++ does) | |
111 | // | |
112 | // Default is 1 | |
113 | // | |
114 | // Recommended setting: 1 if your compiler supports it. | |
115 | #ifdef _MSC_VER | |
116 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
117 | #else | |
118 | #define wxUSE_ON_FATAL_EXCEPTION 0 | |
119 | #endif | |
120 | ||
121 | // ---------------------------------------------------------------------------- | |
122 | // Unicode support | |
123 | // ---------------------------------------------------------------------------- | |
124 | ||
77ffb593 | 125 | // Set wxUSE_UNICODE to 1 to compile wxWidgets in Unicode mode: wxChar will be |
c67d6888 JS |
126 | // defined as wchar_t, wxString will use Unicode internally. If you set this |
127 | // to 1, you must use wxT() macro for all literal strings in the program. | |
128 | // | |
129 | // Unicode is currently only fully supported under Windows NT/2000 (Windows 9x | |
130 | // doesn't support it and the programs compiled in Unicode mode will not run | |
131 | // under 9x). | |
132 | // | |
133 | // Default is 0 | |
134 | // | |
135 | // Recommended setting: 0 (unless you only plan to use Windows NT/2000) | |
136 | #define wxUSE_UNICODE 0 | |
137 | ||
77ffb593 | 138 | // Set wxUSE_UNICODE_MSLU to 1 if you want to compile wxWidgets in Unicode mode |
2d92dfdb JS |
139 | // and be able to run compiled apps under Windows 9x as well as NT/2000/XP. This |
140 | // setting enables use of unicows.dll from MSLU (MS Layer for Unicode, see | |
141 | // http://www.microsoft.com/globaldev/Articles/mslu_announce.asp). Note that you | |
142 | // will have to modify the makefiles to include unicows.lib import library as the first | |
143 | // library. | |
144 | // | |
145 | // Default is 0 | |
146 | // | |
147 | // Recommended setting: 0 | |
148 | #define wxUSE_UNICODE_MSLU 0 | |
149 | ||
c67d6888 JS |
150 | // Setting wxUSE_WCHAR_T to 1 gives you some degree of Unicode support without |
151 | // compiling the program in Unicode mode. More precisely, it will be possible | |
152 | // to construct wxString from a wide (Unicode) string and convert any wxString | |
153 | // to Unicode. | |
154 | // | |
155 | // Default is 1 | |
156 | // | |
157 | // Recommended setting: 1 | |
158 | #define wxUSE_WCHAR_T 0 | |
159 | ||
160 | // ---------------------------------------------------------------------------- | |
161 | // global features | |
162 | // ---------------------------------------------------------------------------- | |
163 | ||
164 | // Support for message/error logging. This includes wxLogXXX() functions and | |
165 | // wxLog and derived classes. Don't set this to 0 unless you really know what | |
166 | // you are doing. | |
167 | // | |
168 | // Default is 1 | |
169 | // | |
170 | // Recommended setting: 1 (always) | |
171 | #define wxUSE_LOG 1 | |
172 | ||
173 | // Support for command line parsing using wxCmdLineParser class. | |
174 | // | |
175 | // Default is 1 | |
176 | // | |
177 | // Recommended setting: 1 (can be set to 0 if you don't use the cmd line) | |
178 | #define wxUSE_CMDLINE_PARSER 1 | |
179 | ||
180 | // Recommended setting: 1 | |
181 | #define wxUSE_LOGWINDOW 1 | |
182 | ||
183 | // Recommended setting: 1 | |
184 | #define wxUSE_LOGGUI 1 | |
185 | ||
186 | // Recommended setting: 1 | |
187 | #define wxUSE_LOG_DIALOG 0 | |
188 | ||
189 | // Support for multithreaded applications: if 1, compile in thread classes | |
190 | // (thread.h) and make the library a bit more thread safe. Although thread | |
191 | // support is quite stable by now, you may still consider recompiling the | |
192 | // library without it if you have no use for it - this will result in a | |
193 | // somewhat smaller and faster operation. | |
194 | // | |
195 | // This is ignored under Win16, threads are only supported under Win32. | |
196 | // | |
197 | // Default is 1 | |
198 | // | |
199 | // Recommended setting: 0 unless you do plan to develop MT applications | |
200 | #define wxUSE_THREADS 0 | |
201 | ||
77ffb593 | 202 | // If enabled (1), compiles wxWidgets streams classes |
c67d6888 JS |
203 | #define wxUSE_STREAMS 1 |
204 | ||
205 | // Use standard C++ streams if 1. If 0, use wxWin streams implementation. | |
206 | #define wxUSE_STD_IOSTREAM 0 | |
207 | ||
208 | // Use serialization (requires utils/serialize) | |
209 | #define wxUSE_SERIAL 0 | |
210 | ||
211 | // ---------------------------------------------------------------------------- | |
212 | // non GUI features selection | |
213 | // ---------------------------------------------------------------------------- | |
214 | ||
215 | // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit | |
216 | // integer which is implemented in terms of native 64 bit integers if any or | |
217 | // uses emulation otherwise. | |
218 | // | |
219 | // This class is required by wxDateTime and so you should enable it if you want | |
220 | // to use wxDateTime. For most modern platforms, it will use the native 64 bit | |
221 | // integers in which case (almost) all of its functions are inline and it | |
222 | // almost does not take any space, so there should be no reason to switch it | |
223 | // off. | |
224 | // | |
225 | // Recommended setting: 1 | |
226 | #define wxUSE_LONGLONG 1 | |
227 | ||
228 | // Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level | |
229 | // POSIX functions for file access, wxFFile uses ANSI C stdio.h functions. | |
230 | // | |
231 | // Default is 1 | |
232 | // | |
233 | // Recommended setting: 1 (wxFile is highly recommended as it is required by | |
234 | // i18n code, wxFileConfig and others) | |
235 | #define wxUSE_FILE 1 | |
236 | #define wxUSE_FFILE 1 | |
237 | ||
238 | // use wxTextBuffer class: required by wxTextFile | |
239 | #define wxUSE_TEXTBUFFER 1 | |
240 | ||
241 | // use wxTextFile class: requires wxFile and wxTextBuffer, required by | |
242 | // wxFileConfig | |
243 | #define wxUSE_TEXTFILE 1 | |
244 | ||
245 | // i18n support: _() macro, wxLocale class. Requires wxTextFile. | |
246 | #define wxUSE_INTL 1 | |
247 | ||
248 | // Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which | |
249 | // allow to manipulate dates, times and time intervals. wxDateTime replaces the | |
250 | // old wxTime and wxDate classes which are still provided for backwards | |
251 | // compatibility (and implemented in terms of wxDateTime). | |
252 | // | |
253 | // Note that this class is relatively new and is still officially in alpha | |
254 | // stage because some features are not yet (fully) implemented. It is already | |
255 | // quite useful though and should only be disabled if you are aiming at | |
256 | // absolutely minimal version of the library. | |
257 | // | |
258 | // Requires: wxUSE_LONGLONG | |
259 | // | |
260 | // Default is 1 | |
261 | // | |
262 | // Recommended setting: 1 | |
263 | #define wxUSE_DATETIME 1 | |
264 | ||
c67d6888 JS |
265 | // Set wxUSE_TIMER to 1 to compile wxTimer class |
266 | // | |
267 | // Default is 1 | |
268 | // | |
269 | // Recommended setting: 1 | |
270 | #define wxUSE_TIMER 1 | |
271 | ||
272 | // Use wxStopWatch clas. | |
273 | // | |
274 | // Default is 1 | |
275 | // | |
276 | // Recommended setting: 1 (needed by wxSocket) | |
277 | #define wxUSE_STOPWATCH 1 | |
278 | ||
279 | // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes | |
280 | // which allow the application to store its settings in the persistent | |
281 | // storage. Setting this to 1 will also enable on-demand creation of the | |
282 | // global config object in wxApp. | |
283 | // | |
284 | // See also wxUSE_CONFIG_NATIVE below. | |
285 | // | |
286 | // Recommended setting: 1 | |
287 | #define wxUSE_CONFIG 1 | |
288 | ||
289 | // If wxUSE_CONFIG is 1, you may choose to use either the native config | |
290 | // classes under Windows (using .INI files under Win16 and the registry under | |
291 | // Win32) or the portable text file format used by the config classes under | |
292 | // Unix. | |
293 | // | |
294 | // Default is 1 to use native classes. Note that you may still use | |
295 | // wxFileConfig even if you set this to 1 - just the config object created by | |
296 | // default for the applications needs will be a wxRegConfig or wxIniConfig and | |
297 | // not wxFileConfig. | |
298 | // | |
299 | // Recommended setting: 1 | |
300 | #define wxUSE_CONFIG_NATIVE 0 | |
301 | ||
302 | // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows | |
303 | // to connect/disconnect from the network and be notified whenever the dial-up | |
304 | // network connection is established/terminated. Requires wxUSE_DYNLIB_CLASS. | |
305 | // | |
306 | // Default is 1. | |
307 | // | |
308 | // Recommended setting: 1 | |
309 | #define wxUSE_DIALUP_MANAGER 0 | |
310 | ||
311 | // Compile in wxLibrary class for run-time DLL loading and function calling. | |
312 | // Required by wxUSE_DIALUP_MANAGER. | |
313 | // | |
314 | // This setting is for Win32 only | |
315 | // | |
316 | // Default is 1. | |
317 | // | |
318 | // Recommended setting: 1 | |
2d92dfdb JS |
319 | #define wxUSE_DYNAMIC_LOADER 0 |
320 | ||
c67d6888 JS |
321 | #define wxUSE_DYNLIB_CLASS 0 |
322 | ||
323 | // Set to 1 to use socket classes | |
324 | #define wxUSE_SOCKETS 0 | |
325 | ||
326 | // Set to 1 to enable virtual file systems (required by wxHTML) | |
327 | #define wxUSE_FILESYSTEM 0 | |
328 | ||
329 | // Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM) | |
330 | #define wxUSE_FS_ZIP 0 | |
331 | ||
332 | // Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM) | |
333 | #define wxUSE_FS_INET 0 | |
334 | ||
335 | // Set to 1 to compile wxZipInput/OutputStream classes. | |
336 | #define wxUSE_ZIPSTREAM 0 | |
337 | ||
338 | // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by | |
339 | // wxUSE_LIBPNG. | |
340 | #define wxUSE_ZLIB 0 | |
341 | ||
342 | // If enabled, the code written by Apple will be used to write, in a portable | |
343 | // way, float on the disk. See extended.c for the license which is different | |
77ffb593 | 344 | // from wxWidgets one. |
c67d6888 JS |
345 | // |
346 | // Default is 1. | |
347 | // | |
348 | // Recommended setting: 1 unless you don't like the license terms (unlikely) | |
349 | #define wxUSE_APPLE_IEEE 1 | |
350 | ||
351 | // Joystick support class | |
352 | #define wxUSE_JOYSTICK 1 | |
353 | ||
354 | // wxFontMapper class | |
355 | #define wxUSE_FONTMAP 1 | |
356 | ||
357 | // wxMimeTypesManager class | |
358 | #define wxUSE_MIMETYPE 0 | |
359 | ||
360 | // wxSystemOptions class | |
361 | #define wxUSE_SYSTEM_OPTIONS 1 | |
362 | ||
363 | // Support for regular expression matching via wxRegEx class: enable this to | |
364 | // use POSIX regular expressions in your code. You need to compile regex | |
365 | // library from src/regex to use it under Windows. | |
366 | // | |
367 | // Default is 0 | |
368 | // | |
369 | // Recommended setting: 1 if your compiler supports it, if it doesn't please | |
370 | // contribute us a makefile for src/regex for it | |
371 | #define wxUSE_REGEX 0 | |
372 | ||
002ed9af VS |
373 | // wxSound class |
374 | #define wxUSE_SOUND 0 | |
c67d6888 | 375 | |
c8a50408 RN |
376 | // Use wxMediaCtrl |
377 | // | |
378 | // Default is 1. | |
379 | // | |
380 | // Recommended setting: 1 | |
381 | #define wxUSE_MEDIACTRL 1 | |
382 | ||
383 | // Use QuickTime | |
384 | // | |
385 | // Default is 0 | |
386 | // | |
387 | // Recommended setting: 1 if you have the QT SDK installed and you need it, else 0 | |
388 | #define wxUSE_QUICKTIME 0 | |
389 | ||
390 | // Use DirectShow | |
391 | // | |
392 | // Default is 0 | |
393 | // | |
394 | // Recommended setting: 1 if the DirectX 7 SDK is installed (highly recommended), else 0 | |
395 | #define wxUSE_DIRECTSHOW 1 | |
396 | ||
84fe931d RN |
397 | // Use wxWidget's XRC XML-based resource system. Recommended. |
398 | // | |
399 | // Default is 1 | |
400 | // | |
401 | // Recommended setting: 1 (requires wxUSE_XML) | |
402 | #define wxUSE_XRC 1 | |
403 | ||
404 | // XML parsing classes. Note that their API will change in the future, so | |
405 | // using wxXmlDocument and wxXmlNode in your app is not recommended. | |
406 | // | |
407 | // Default is 1 | |
408 | // | |
409 | // Recommended setting: 1 (required by XRC) | |
410 | #if wxUSE_XRC | |
411 | # define wxUSE_XML 1 | |
412 | #else | |
413 | # define wxUSE_XML 0 | |
414 | #endif | |
415 | ||
c67d6888 JS |
416 | // ---------------------------------------------------------------------------- |
417 | // Individual GUI controls | |
418 | // ---------------------------------------------------------------------------- | |
419 | ||
420 | // You must set wxUSE_CONTROLS to 1 if you are using any controls at all | |
421 | // (without it, wxControl class is not compiled) | |
422 | // | |
423 | // Default is 1 | |
424 | // | |
425 | // Recommended setting: 1 (don't change except for very special programs) | |
426 | #define wxUSE_CONTROLS 1 | |
427 | ||
428 | // wxPopupWindow class is not used currently by wxMSW | |
429 | // | |
430 | // Default is 0 | |
431 | // | |
432 | // Recommended setting: 0 | |
433 | #define wxUSE_POPUPWIN 1 | |
434 | ||
5ea757d0 JS |
435 | // wxTipWindow allows to implement the custom tooltips, it is used by the |
436 | // context help classes. Requires wxUSE_POPUPWIN. | |
437 | // | |
438 | // Default is 1 | |
439 | // | |
440 | // Recommended setting: 1 (may be set to 0) | |
441 | #define wxUSE_TIPWINDOW 1 | |
442 | ||
77ffb593 | 443 | // Each of the settings below corresponds to one wxWidgets control. They are |
c67d6888 JS |
444 | // all switched on by default but may be disabled if you are sure that your |
445 | // program (including any standard dialogs it can show!) doesn't need them and | |
446 | // if you desperately want to save some space. If you use any of these you must | |
447 | // set wxUSE_CONTROLS as well. | |
448 | // | |
449 | // Default is 1 | |
450 | // | |
451 | // Recommended setting: 1 | |
452 | #define wxUSE_BUTTON 1 // wxButton | |
453 | #define wxUSE_BMPBUTTON 1 // wxBitmapButton | |
454 | #define wxUSE_CALENDARCTRL 0 // wxCalendarCtrl | |
455 | #define wxUSE_CHECKBOX 1 // wxCheckBox | |
e640f823 | 456 | #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN) |
c67d6888 JS |
457 | #define wxUSE_CHOICE 1 // wxChoice |
458 | #define wxUSE_COMBOBOX 1 // wxComboBox | |
e640f823 | 459 | #define wxUSE_GAUGE 1 // wxGauge |
c67d6888 JS |
460 | #define wxUSE_LISTBOX 1 // wxListBox |
461 | #define wxUSE_LISTCTRL 0 // wxListCtrl | |
e640f823 | 462 | #define wxUSE_RADIOBOX 1 // wxRadioBox |
c67d6888 JS |
463 | #define wxUSE_RADIOBTN 1 // wxRadioButton |
464 | #define wxUSE_SCROLLBAR 1 // wxScrollBar | |
465 | #define wxUSE_SLIDER 1 // wxSlider | |
e640f823 JS |
466 | #define wxUSE_SPINBTN 1 // wxSpinButton |
467 | #define wxUSE_SPINCTRL 1 // wxSpinCtrl | |
c67d6888 JS |
468 | #define wxUSE_STATBOX 1 // wxStaticBox |
469 | #define wxUSE_STATLINE 1 // wxStaticLine | |
470 | #define wxUSE_STATTEXT 1 // wxStaticText | |
471 | #define wxUSE_STATBMP 1 // wxStaticBitmap | |
472 | #define wxUSE_TEXTCTRL 1 // wxTextCtrl | |
473 | #define wxUSE_TOGGLEBTN 0 // requires wxButton | |
474 | #define wxUSE_TREECTRL 0 // wxTreeCtrl | |
475 | ||
476 | // Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR | |
477 | // below either wxStatusBar95 or a generic wxStatusBar will be used. | |
478 | // | |
479 | // Default is 1 | |
480 | // | |
481 | // Recommended setting: 1 | |
482 | #define wxUSE_STATUSBAR 1 | |
483 | ||
484 | // Two status bar implementations are available under Win32: the generic one | |
485 | // or the wrapper around native control. For native look and feel the native | |
486 | // version should be used. | |
487 | // | |
488 | // Default is 1. | |
489 | // | |
490 | // Recommended setting: 1 (there is no advantage in using the generic one) | |
491 | #define wxUSE_NATIVE_STATUSBAR 0 | |
492 | ||
493 | // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar | |
494 | // classes at all. Otherwise, use the native toolbar class unless | |
27cc9142 | 495 | // wxUSE_TOOLBAR_NATIVE is 0. |
c67d6888 JS |
496 | // |
497 | // Default is 1 for all settings. | |
498 | // | |
27cc9142 | 499 | // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE. |
c67d6888 JS |
500 | #define wxUSE_TOOLBAR 0 |
501 | #define wxUSE_TOOLBAR_NATIVE 0 | |
c67d6888 | 502 | |
c67d6888 JS |
503 | // wxNotebook is a control with several "tabs" located on one of its sides. It |
504 | // may be used ot logically organise the data presented to the user instead of | |
505 | // putting everything in one huge dialog. It replaces wxTabControl and related | |
506 | // classes of wxWin 1.6x. | |
507 | // | |
508 | // Default is 1. | |
509 | // | |
510 | // Recommended setting: 1 | |
e640f823 | 511 | #define wxUSE_NOTEBOOK 1 |
c67d6888 JS |
512 | |
513 | // wxTabDialog is a generic version of wxNotebook but it is incompatible with | |
514 | // the new class. It shouldn't be used in new code. | |
515 | // | |
516 | // Default is 0. | |
517 | // | |
518 | // Recommended setting: 0 (use wxNotebook) | |
519 | #define wxUSE_TAB_DIALOG 0 | |
520 | ||
03aa88ab VS |
521 | // wxGrid class |
522 | // Default is 1 | |
c67d6888 | 523 | // |
c67d6888 | 524 | #define wxUSE_GRID 0 |
c67d6888 JS |
525 | |
526 | // wxProperty[Value/Form/List] classes, used by Dialog Editor | |
527 | #define wxUSE_PROPSHEET 0 | |
528 | ||
529 | // ---------------------------------------------------------------------------- | |
530 | // Miscellaneous GUI stuff | |
531 | // ---------------------------------------------------------------------------- | |
532 | ||
533 | // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar) | |
534 | #define wxUSE_ACCEL 0 | |
535 | ||
536 | // Use wxCaret: a class implementing a "cursor" in a text control (called caret | |
537 | // under Windows). | |
538 | // | |
539 | // Default is 1. | |
540 | // | |
541 | // Recommended setting: 1 (can be safely set to 0, not used by the library) | |
542 | #define wxUSE_CARET 1 | |
543 | ||
544 | // Miscellaneous geometry code: needed for Canvas library | |
545 | #define wxUSE_GEOMETRY 1 | |
546 | ||
547 | // Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and | |
548 | // wxListCtrl. | |
549 | // | |
550 | // Default is 1. | |
551 | // | |
552 | // Recommended setting: 1 (set it to 0 if you don't use any of the controls | |
553 | // enumerated above, then this class is mostly useless too) | |
e640f823 | 554 | #define wxUSE_IMAGLIST 1 |
c67d6888 JS |
555 | |
556 | // Use wxMenu, wxMenuBar, wxMenuItem. | |
557 | // | |
558 | // Default is 1. | |
559 | // | |
560 | // Recommended setting: 1 (can't be disabled under MSW) | |
561 | #define wxUSE_MENUS 1 | |
562 | ||
563 | // Use wxSashWindow class. | |
564 | // | |
565 | // Default is 1. | |
566 | // | |
567 | // Recommended setting: 1 | |
568 | #define wxUSE_SASH 1 | |
569 | ||
570 | // Use wxSplitterWindow class. | |
571 | // | |
572 | // Default is 1. | |
573 | // | |
574 | // Recommended setting: 1 | |
575 | #define wxUSE_SPLITTER 1 | |
576 | ||
577 | // Use wxToolTip and wxWindow::Set/GetToolTip() methods. | |
578 | // | |
579 | // Default is 1. | |
580 | // | |
581 | // Recommended setting: 1 | |
582 | #define wxUSE_TOOLTIPS 0 | |
583 | ||
584 | // wxValidator class and related methods | |
585 | #define wxUSE_VALIDATORS 0 | |
586 | ||
587 | // wxDC cacheing implementation | |
588 | #define wxUSE_DC_CACHEING 0 | |
589 | ||
590 | // ---------------------------------------------------------------------------- | |
591 | // common dialogs | |
592 | // ---------------------------------------------------------------------------- | |
593 | ||
c67d6888 JS |
594 | // On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g. |
595 | // file selector, printer dialog). Switching this off also switches off the | |
596 | // printing architecture and interactive wxPrinterDC. | |
597 | // | |
598 | // Default is 1 | |
599 | // | |
600 | // Recommended setting: 1 (unless it really doesn't work) | |
601 | #define wxUSE_COMMON_DIALOGS 1 | |
602 | ||
603 | // wxBusyInfo displays window with message when app is busy. Works in same way | |
604 | // as wxBusyCursor | |
605 | #define wxUSE_BUSYINFO 0 | |
606 | ||
607 | // Use single/multiple choice dialogs. | |
608 | // | |
609 | // Default is 1 | |
610 | // | |
611 | // Recommended setting: 1 (used in the library itself) | |
e8d5008c | 612 | #define wxUSE_CHOICEDLG 1 |
c67d6888 JS |
613 | |
614 | // Use colour picker dialog | |
615 | // | |
616 | // Default is 1 | |
617 | // | |
618 | // Recommended setting: 1 | |
619 | #define wxUSE_COLOURDLG 0 | |
620 | ||
621 | // wxDirDlg class for getting a directory name from user | |
622 | #define wxUSE_DIRDLG 0 | |
623 | ||
624 | // TODO: setting to choose the generic or native one | |
625 | ||
626 | // Use file open/save dialogs. | |
627 | // | |
628 | // Default is 1 | |
629 | // | |
630 | // Recommended setting: 1 (used in many places in the library itself) | |
631 | #define wxUSE_FILEDLG 0 | |
632 | ||
633 | // Use find/replace dialogs. | |
634 | // | |
635 | // Default is 1 | |
636 | // | |
637 | // Recommended setting: 1 (but may be safely set to 0) | |
638 | #define wxUSE_FINDREPLDLG 0 | |
639 | ||
640 | // Use font picker dialog | |
641 | // | |
642 | // Default is 1 | |
643 | // | |
644 | // Recommended setting: 1 (used in the library itself) | |
645 | #define wxUSE_FONTDLG 0 | |
646 | ||
647 | // Use wxMessageDialog and wxMessageBox. | |
648 | // | |
649 | // Default is 1 | |
650 | // | |
651 | // Recommended setting: 1 (used in the library itself) | |
652 | #define wxUSE_MSGDLG 1 | |
653 | ||
654 | // progress dialog class for lengthy operations | |
655 | #define wxUSE_PROGRESSDLG 0 | |
656 | ||
657 | // support for startup tips (wxShowTip &c) | |
658 | #define wxUSE_STARTUP_TIPS 0 | |
659 | ||
660 | // text entry dialog and wxGetTextFromUser function | |
661 | #define wxUSE_TEXTDLG 0 | |
662 | ||
663 | // number entry dialog | |
664 | #define wxUSE_NUMBERDLG 0 | |
665 | ||
666 | // splash screen class | |
667 | #define wxUSE_SPLASH 0 | |
668 | ||
669 | // wizards | |
670 | #define wxUSE_WIZARDDLG 0 | |
671 | ||
672 | // ---------------------------------------------------------------------------- | |
673 | // Metafiles support | |
674 | // ---------------------------------------------------------------------------- | |
675 | ||
676 | // Windows supports the graphics format known as metafile which is, though not | |
677 | // portable, is widely used under Windows and so is supported by wxWin (under | |
678 | // Windows only, of course). Win16 (Win3.1) used the so-called "Window | |
679 | // MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in | |
680 | // Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by | |
681 | // default, WMFs will be used under Win16 and EMFs under Win32. This may be | |
682 | // changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting | |
683 | // wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile | |
684 | // in any metafile related classes at all. | |
685 | // | |
686 | // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS. | |
687 | // | |
688 | // Recommended setting: default or 0 for everything for portable programs. | |
689 | #define wxUSE_METAFILE 0 | |
690 | #define wxUSE_ENH_METAFILE 0 | |
691 | #define wxUSE_WIN_METAFILES_ALWAYS 0 | |
692 | ||
693 | // ---------------------------------------------------------------------------- | |
694 | // Big GUI components | |
695 | // ---------------------------------------------------------------------------- | |
696 | ||
697 | // Set to 0 to disable document/view architecture | |
698 | #define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
699 | ||
700 | // Set to 0 to disable MDI document/view architecture | |
701 | #define wxUSE_MDI_ARCHITECTURE 0 | |
702 | ||
703 | // Set to 0 to disable print/preview architecture code | |
704 | #define wxUSE_PRINTING_ARCHITECTURE 0 | |
705 | ||
706 | // wxHTML sublibrary allows to display HTML in wxWindow programs and much, | |
707 | // much more. | |
708 | // | |
709 | // Default is 1. | |
710 | // | |
711 | // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a | |
712 | // smaller library. | |
713 | #define wxUSE_HTML 0 | |
714 | ||
715 | // OpenGL canvas | |
716 | #define wxUSE_GLCANVAS 0 | |
717 | ||
718 | // wxTreeLayout class | |
719 | #define wxUSE_TREELAYOUT 0 | |
720 | ||
721 | // ---------------------------------------------------------------------------- | |
722 | // Data transfer | |
723 | // ---------------------------------------------------------------------------- | |
724 | ||
725 | // Use wxClipboard class for clipboard copy/paste. | |
726 | // | |
727 | // Default is 1. | |
728 | // | |
729 | // Recommended setting: 1 | |
730 | #define wxUSE_CLIPBOARD 0 | |
731 | ||
732 | // Use wxDataObject and related classes. Needed for clipboard and OLE drag and | |
733 | // drop | |
734 | // | |
735 | // Default is 1. | |
736 | // | |
737 | // Recommended setting: 1 | |
738 | #define wxUSE_DATAOBJ 0 | |
739 | ||
740 | // Use wxDropTarget and wxDropSource classes for drag and drop (this is | |
741 | // different from "built in" drag and drop in wxTreeCtrl which is always | |
742 | // available). Requires wxUSE_DATAOBJ. | |
743 | // | |
744 | // Default is 1. | |
745 | // | |
746 | // Recommended setting: 1 | |
747 | #define wxUSE_DRAG_AND_DROP 0 | |
748 | ||
749 | // ---------------------------------------------------------------------------- | |
750 | // miscellaneous settings | |
751 | // ---------------------------------------------------------------------------- | |
752 | ||
753 | // wxSingleInstanceChecker class allows to verify at startup if another program | |
754 | // instance is running (it is only available under Win32) | |
755 | // | |
756 | // Default is 1 | |
757 | // | |
758 | // Recommended setting: 1 (the class is tiny, disabling it won't save much | |
759 | // space) | |
760 | #define wxUSE_SNGLINST_CHECKER 0 | |
761 | ||
762 | #define wxUSE_DRAGIMAGE 0 | |
763 | ||
764 | #define wxUSE_IPC 0 | |
765 | // 0 for no interprocess comms | |
766 | #define wxUSE_HELP 0 | |
767 | // 0 for no help facility | |
768 | #define wxUSE_MS_HTML_HELP 0 | |
769 | // 0 for no MS HTML Help | |
770 | ||
771 | // Use wxHTML-based help controller? | |
772 | #define wxUSE_WXHTML_HELP 0 | |
773 | ||
774 | #define wxUSE_RESOURCES 0 | |
775 | // 0 for no wxGetResource/wxWriteResource | |
776 | #define wxUSE_CONSTRAINTS 1 | |
777 | // 0 for no window layout constraint system | |
778 | ||
779 | #define wxUSE_SPLINES 1 | |
780 | // 0 for no splines | |
781 | ||
782 | #define wxUSE_XPM_IN_MSW 1 | |
783 | // 0 for no XPM support in wxBitmap. | |
784 | // Default is 1, as XPM is now fully | |
785 | // supported this makes easier the issue | |
786 | // of portable icons and bitmaps. | |
787 | ||
788 | #define wxUSE_IMAGE_LOADING_IN_MSW 0 | |
789 | // Use dynamic DIB loading/saving code in utils/dib under MSW. | |
790 | #define wxUSE_RESOURCE_LOADING_IN_MSW 0 | |
791 | // Use dynamic icon/cursor loading/saving code | |
792 | // under MSW. | |
793 | #define wxUSE_WX_RESOURCES 0 | |
794 | // Use .wxr resource mechanism (requires PrologIO library) | |
795 | ||
796 | #define wxUSE_MOUSEWHEEL 0 | |
797 | // Include mouse wheel support | |
798 | ||
799 | // ---------------------------------------------------------------------------- | |
800 | // postscript support settings | |
801 | // ---------------------------------------------------------------------------- | |
802 | ||
803 | // Set to 1 for PostScript device context. | |
804 | #define wxUSE_POSTSCRIPT 0 | |
805 | ||
806 | // Set to 1 to use font metric files in GetTextExtent | |
807 | #define wxUSE_AFM_FOR_POSTSCRIPT 0 | |
808 | ||
c67d6888 JS |
809 | // ---------------------------------------------------------------------------- |
810 | // database classes | |
811 | // ---------------------------------------------------------------------------- | |
812 | ||
813 | // Define 1 to use ODBC classes | |
814 | #define wxUSE_ODBC 0 | |
815 | ||
816 | // For backward compatibility reasons, this parameter now only controls the | |
817 | // default scrolling method used by cursors. This default behavior can be | |
818 | // overriden by setting the second param of wxDB::wxDbGetConnection() or | |
819 | // wxDb() constructor to indicate whether the connection (and any wxDbTable()s | |
820 | // that use the connection) should support forward only scrolling of cursors, | |
821 | // or both forward and backward support for backward scrolling cursors is | |
822 | // dependent on the data source as well as the ODBC driver being used. | |
823 | #define wxODBC_FWD_ONLY_CURSORS 1 | |
824 | ||
825 | // Default is 0. Set to 1 to use the deprecated classes, enum types, function, | |
3103e8a9 | 826 | // member variables. With a setting of 1, full backward compatibility with the |
c67d6888 JS |
827 | // 2.0.x release is possible. It is STRONGLY recommended that this be set to 0, |
828 | // as future development will be done only on the non-deprecated | |
829 | // functions/classes/member variables/etc. | |
830 | #define wxODBC_BACKWARD_COMPATABILITY 0 | |
831 | ||
832 | // ---------------------------------------------------------------------------- | |
833 | // other compiler (mis)features | |
834 | // ---------------------------------------------------------------------------- | |
835 | ||
836 | // Set this to 0 if your compiler can't cope with omission of prototype | |
837 | // parameters. | |
838 | // | |
839 | // Default is 1. | |
840 | // | |
841 | // Recommended setting: 1 (should never need to set this to 0) | |
842 | #define REMOVE_UNUSED_ARG 1 | |
843 | ||
844 | // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix | |
845 | // them. Set to 1 for <iostream.h>, 0 for <iostream> | |
846 | // | |
847 | // Default is 1. | |
848 | // | |
849 | // Recommended setting: whatever your compiler likes more | |
850 | #define wxUSE_IOSTREAMH 1 | |
851 | ||
852 | // ---------------------------------------------------------------------------- | |
853 | // image format support | |
854 | // ---------------------------------------------------------------------------- | |
855 | ||
856 | // wxImage supports many different image formats which can be configured at | |
857 | // compile-time. BMP is always supported, others are optional and can be safely | |
858 | // disabled if you don't plan to use images in such format sometimes saving | |
859 | // substantial amount of code in the final library. | |
860 | // | |
861 | // Some formats require an extra library which is included in wxWin sources | |
862 | // which is mentioned if it is the case. | |
863 | ||
864 | // Set to 1 for wxImage support (recommended). | |
865 | #define wxUSE_IMAGE 1 | |
866 | ||
867 | // Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB. | |
868 | #define wxUSE_LIBPNG 0 | |
869 | ||
870 | // Set to 1 for JPEG format support (requires libjpeg) | |
871 | #define wxUSE_LIBJPEG 0 | |
872 | ||
873 | // Set to 1 for TIFF format support (requires libtiff) | |
874 | #define wxUSE_LIBTIFF 0 | |
875 | ||
876 | // Set to 1 for GIF format support | |
877 | #define wxUSE_GIF 0 | |
878 | ||
879 | // Set to 1 for PNM format support | |
880 | #define wxUSE_PNM 0 | |
881 | ||
882 | // Set to 1 for PCX format support | |
883 | #define wxUSE_PCX 0 | |
884 | ||
4b6b4dfc RR |
885 | // Set to 1 for IFF format support |
886 | #define wxUSE_IFF 0 | |
887 | ||
c67d6888 JS |
888 | // Set to 1 for XPM format support |
889 | #define wxUSE_XPM 1 | |
890 | ||
658974ae VS |
891 | // Set to 1 for MS Icons and Cursors format support |
892 | #define wxUSE_ICO_CUR 1 | |
893 | ||
c67d6888 JS |
894 | // Set to 1 to compile in wxPalette class |
895 | #define wxUSE_PALETTE 1 | |
896 | ||
897 | // ---------------------------------------------------------------------------- | |
898 | // Windows-only settings | |
899 | // ---------------------------------------------------------------------------- | |
900 | ||
77ffb593 | 901 | // Set this to 1 if you want to use wxWidgets and MFC in the same program. This |
c67d6888 JS |
902 | // will override some other settings (see below) |
903 | // | |
904 | // Default is 0. | |
905 | // | |
906 | // Recommended setting: 0 unless you really have to use MFC | |
907 | #define wxUSE_MFC 0 | |
908 | ||
909 | // Set this to 1 for generic OLE support: this is required for drag-and-drop, | |
910 | // clipboard, OLE Automation. Only set it to 0 if your compiler is very old and | |
911 | // can't compile/doesn't have the OLE headers. | |
912 | // | |
913 | // Default is 1. | |
914 | // | |
915 | // Recommended setting: 1 | |
916 | #define wxUSE_OLE 0 | |
917 | ||
918 | // Set this to 1 to use Microsoft CTL3D library for "3D-look" under Win16 or NT | |
919 | // 3.x. This setting is ignored under Win9x and NT 4.0+. | |
920 | // | |
921 | // Default is 0 for (most) Win32 (systems), 1 for Win16 | |
922 | // | |
923 | // Recommended setting: same as default | |
924 | #if defined(__WIN95__) | |
925 | #define wxUSE_CTL3D 0 | |
926 | #else | |
927 | #define wxUSE_CTL3D 1 | |
928 | #endif | |
929 | ||
e6bdaaad MW |
930 | // Set to 0 to disable PostScript print/preview architecture code under Windows |
931 | // (just use Windows printing). | |
932 | #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0 | |
933 | ||
c67d6888 JS |
934 | // Set this to 1 to use RICHEDIT controls for wxTextCtrl with style wxTE_RICH |
935 | // which allows to put more than ~32Kb of text in it even under Win9x (NT | |
936 | // doesn't have such limitation). | |
937 | // | |
938 | // Default is 1 for compilers which support it | |
939 | // | |
940 | // Recommended setting: 1, only set it to 0 if your compiler doesn't have | |
941 | // or can't compile <richedit.h> | |
b39dbf34 | 942 | #if defined(__WIN95__) && !defined(__WINE__) && !defined(__GNUWIN32_OLD__) |
c67d6888 JS |
943 | #define wxUSE_RICHEDIT 1 |
944 | ||
945 | // TODO: This should be ifdef'ed for any compilers that don't support | |
946 | // RichEdit 2.0 but do have RichEdit 1.0... | |
947 | #define wxUSE_RICHEDIT2 1 | |
948 | ||
949 | #else | |
950 | #define wxUSE_RICHEDIT 0 | |
951 | #define wxUSE_RICHEDIT2 0 | |
952 | #endif | |
953 | ||
954 | // Set this to 1 to enable support for the owner-drawn menu and listboxes. This | |
955 | // is required by wxUSE_CHECKLISTBOX. | |
956 | // | |
957 | // Default is 1. | |
958 | // | |
959 | // Recommended setting: 1, set to 0 for a small library size reduction | |
960 | #define wxUSE_OWNER_DRAWN 0 | |
961 | ||
962 | // ---------------------------------------------------------------------------- | |
963 | // obsolete settings | |
964 | // ---------------------------------------------------------------------------- | |
965 | ||
966 | // NB: all settings in this section are obsolete and should not be used/changed | |
967 | // at all, they will disappear | |
968 | ||
c67d6888 JS |
969 | // Define 1 to use bitmap messages. |
970 | #define wxUSE_BITMAP_MESSAGE 1 | |
971 | ||
972 | // If 1, enables provision of run-time type information. | |
973 | // NOW MANDATORY: don't change. | |
974 | #define wxUSE_DYNAMIC_CLASSES 1 | |
975 | ||
976 | // ---------------------------------------------------------------------------- | |
977 | // disable the settings which don't work for some compilers | |
978 | // ---------------------------------------------------------------------------- | |
979 | ||
980 | #ifndef wxUSE_NORLANDER_HEADERS | |
981 | #if (defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) | |
982 | # define wxUSE_NORLANDER_HEADERS 1 | |
983 | #else | |
984 | # define wxUSE_NORLANDER_HEADERS 0 | |
985 | #endif | |
986 | #endif | |
987 | ||
988 | #if defined(__GNUWIN32__) | |
989 | // These don't work as expected for mingw32 and cygwin32 | |
990 | #undef wxUSE_MEMORY_TRACING | |
991 | #define wxUSE_MEMORY_TRACING 0 | |
992 | ||
993 | #undef wxUSE_GLOBAL_MEMORY_OPERATORS | |
994 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
995 | ||
996 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
997 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
998 | ||
999 | // Cygwin betas don't have wcslen | |
1000 | #if defined(__CYGWIN__) || defined(__CYGWIN32__) | |
1001 | # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) | |
1002 | # undef wxUSE_WCHAR_T | |
1003 | # define wxUSE_WCHAR_T 0 | |
1004 | # endif | |
1005 | #endif | |
1006 | ||
1007 | #endif // __GNUWIN32__ | |
1008 | ||
1009 | // MFC duplicates these operators | |
1010 | #if wxUSE_MFC | |
1011 | #undef wxUSE_GLOBAL_MEMORY_OPERATORS | |
1012 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
1013 | ||
1014 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
1015 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
1016 | #endif // wxUSE_MFC | |
1017 | ||
c67d6888 JS |
1018 | #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) |
1019 | // Can't use OLE drag and drop in Windows 3.1 because we don't know how | |
1020 | // to implement UUIDs | |
1021 | // GnuWin32 doesn't have appropriate headers for e.g. IUnknown. | |
1022 | #undef wxUSE_DRAG_AND_DROP | |
1023 | #define wxUSE_DRAG_AND_DROP 0 | |
1024 | #endif | |
1025 | ||
1026 | // Only WIN32 supports wxStatusBar95 | |
1027 | #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR | |
1028 | #undef wxUSE_NATIVE_STATUSBAR | |
1029 | #define wxUSE_NATIVE_STATUSBAR 0 | |
1030 | #endif | |
1031 | ||
1032 | #if !wxUSE_OWNER_DRAWN | |
1033 | #undef wxUSE_CHECKLISTBOX | |
1034 | #define wxUSE_CHECKLISTBOX 0 | |
1035 | #endif | |
1036 | ||
1037 | // Salford C++ doesn't like some of the memory operator definitions | |
1038 | #ifdef __SALFORDC__ | |
1039 | #undef wxUSE_MEMORY_TRACING | |
1040 | #define wxUSE_MEMORY_TRACING 0 | |
1041 | ||
1042 | #undef wxUSE_GLOBAL_MEMORY_OPERATORS | |
1043 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
1044 | ||
1045 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
1046 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
1047 | ||
1048 | #undef wxUSE_THREADS | |
1049 | #define wxUSE_THREADS 0 | |
1050 | ||
1051 | #undef wxUSE_OWNER_DRAWN | |
1052 | #define wxUSE_OWNER_DRAWN 0 | |
1053 | #endif // __SALFORDC__ | |
1054 | ||
c67d6888 JS |
1055 | // BC++/Win16 can't cope with the amount of data in resource.cpp |
1056 | #if defined(__WIN16__) && defined(__BORLANDC__) | |
1057 | #undef wxUSE_WX_RESOURCES | |
1058 | #define wxUSE_WX_RESOURCES 0 | |
1059 | ||
1060 | #undef wxUSE_ODBC | |
1061 | #define wxUSE_ODBC 0 | |
1062 | ||
1063 | #undef wxUSE_NEW_GRID | |
1064 | #define wxUSE_NEW_GRID 0 | |
1065 | #endif | |
1066 | ||
1067 | #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) | |
1068 | // BC++ 4.0 can't compile JPEG library | |
1069 | #undef wxUSE_LIBJPEG | |
1070 | #define wxUSE_LIBJPEG 0 | |
1071 | #endif | |
1072 | ||
1073 | // wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode | |
1074 | #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL)) | |
1075 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
1076 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
1077 | #endif | |
1078 | ||
1079 | #if defined(__WXMSW__) && defined(__WATCOMC__) | |
1080 | /* | |
1081 | #undef wxUSE_GLCANVAS | |
1082 | #define wxUSE_GLCANVAS 0 | |
1083 | */ | |
1084 | ||
1085 | #undef wxUSE_WCHAR_T | |
1086 | #define wxUSE_WCHAR_T 0 | |
1087 | #endif | |
1088 | ||
1089 | #if defined(__WXMSW__) && !defined(__WIN32__) | |
1090 | ||
1091 | #undef wxUSE_SOCKETS | |
1092 | #define wxUSE_SOCKETS 0 | |
1093 | ||
1094 | #undef wxUSE_THREADS | |
1095 | #define wxUSE_THREADS 0 | |
1096 | ||
1097 | #undef wxUSE_TOOLTIPS | |
1098 | #define wxUSE_TOOLTIPS 0 | |
1099 | ||
1100 | #undef wxUSE_SPINCTRL | |
1101 | #define wxUSE_SPINCTRL 0 | |
1102 | ||
1103 | #undef wxUSE_SPINBTN | |
1104 | #define wxUSE_SPINBTN 0 | |
1105 | ||
1106 | #undef wxUSE_LIBPNG | |
1107 | #define wxUSE_LIBPNG 0 | |
1108 | ||
1109 | #undef wxUSE_LIBJPEG | |
1110 | #define wxUSE_LIBJPEG 0 | |
1111 | ||
1112 | #undef wxUSE_LIBTIFF | |
1113 | #define wxUSE_LIBTIFF 0 | |
1114 | ||
1115 | #undef wxUSE_GIF | |
1116 | #define wxUSE_GIF 0 | |
1117 | ||
1118 | #undef wxUSE_PNM | |
1119 | #define wxUSE_PNM 0 | |
1120 | ||
1121 | #undef wxUSE_PCX | |
1122 | #define wxUSE_PCX 0 | |
1123 | ||
1124 | #undef wxUSE_GLCANVAS | |
1125 | #define wxUSE_GLCANVAS 0 | |
1126 | ||
1127 | #undef wxUSE_MS_HTML_HELP | |
1128 | #define wxUSE_MS_HTML_HELP 0 | |
1129 | ||
1130 | #undef wxUSE_WCHAR_T | |
1131 | #define wxUSE_WCHAR_T 0 | |
1132 | ||
1133 | #endif // Win16 | |
1134 | ||
1135 | // ---------------------------------------------------------------------------- | |
1136 | // undef the things which don't make sense for wxBase build | |
1137 | // ---------------------------------------------------------------------------- | |
1138 | ||
1139 | #if !wxUSE_GUI | |
1140 | ||
1141 | #undef wxUSE_HTML | |
1142 | #define wxUSE_HTML 0 | |
1143 | ||
1144 | #endif // !wxUSE_GUI | |
1145 | ||
1146 | // ---------------------------------------------------------------------------- | |
1147 | // check the settings consistency: do it here to abort compilation immediately | |
1148 | // and not almost in the very end when the relevant file fails to compile and | |
1149 | // you need to modify setup.h and rebuild everything | |
1150 | // ---------------------------------------------------------------------------- | |
1151 | ||
1152 | #if wxUSE_DATETIME && !wxUSE_LONGLONG | |
1153 | #error wxDateTime requires wxLongLong | |
1154 | #endif | |
1155 | ||
1156 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
1157 | #error You cannot compile wxTextFile without wxFile | |
1158 | #endif | |
1159 | ||
1160 | #if wxUSE_FILESYSTEM && !wxUSE_STREAMS | |
1161 | #error You cannot compile virtual file systems without wxUSE_STREAMS | |
1162 | #endif | |
1163 | ||
1164 | #if wxUSE_HTML && !wxUSE_FILESYSTEM | |
1165 | #error You cannot compile wxHTML without virtual file systems | |
1166 | #endif | |
1167 | ||
1168 | // add more tests here... | |
1169 | ||
1170 | #endif | |
1171 | // _WX_SETUP_H_ |