]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: 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 | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_SETUP_H_ | |
13 | #define _WX_SETUP_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // global settings | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
19 | // define this to 0 when building wxBase library | |
20 | #define wxUSE_GUI 1 | |
21 | ||
22 | // ---------------------------------------------------------------------------- | |
23 | // compatibility settings | |
24 | // ---------------------------------------------------------------------------- | |
25 | ||
26 | #define WXWIN_COMPATIBILITY 0 | |
27 | // Compatibility with 1.68 API. | |
28 | // Level 0: no backward compatibility, all new features | |
29 | // Level 1: Some compatibility. In fact | |
30 | // the compatibility code is now very minimal so there | |
31 | // is little advantage to setting it to 1. | |
32 | ||
33 | // in wxMSW version 2.1.11 and earlier, wxIcon always derives from wxBitmap, | |
34 | // but this is very dangerous because you can mistakenly pass an icon instead | |
35 | // of a bitmap to a function taking "const wxBitmap&" - which will *not* work | |
36 | // because an icon is not a valid bitmap | |
37 | // | |
38 | // Starting from 2.1.12, you have the choice under this backwards compatible | |
39 | // behaviour (your code will still compile, but probably won't behave as | |
40 | // expected!) and not deriving wxIcon class from wxBitmap, but providing a | |
41 | // conversion ctor wxBitmap(const wxIcon&) instead. | |
42 | // | |
43 | // Recommended setting: 0 | |
44 | #define wxICON_IS_BITMAP 0 | |
45 | ||
46 | // ---------------------------------------------------------------------------- | |
47 | // General features | |
48 | // ---------------------------------------------------------------------------- | |
49 | ||
50 | // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes | |
51 | // which allow the application to store its settings in the persistent | |
52 | // storage. Setting this to 1 will also enable on-demand creation of the | |
53 | // global config object in wxApp. | |
54 | // | |
55 | // See also wxUSE_CONFIG_NATIVE below. | |
56 | // | |
57 | // Recommended setting: 1 | |
58 | #define wxUSE_CONFIG 1 | |
59 | ||
60 | // If wxUSE_CONFIG is 1, you may choose to use either the native config | |
61 | // classes under Windows (using .INI files under Win16 and the registry under | |
62 | // Win32) or the portable text file format used by the config classes under | |
63 | // Unix. | |
64 | // | |
65 | // Default is 1 to use native classes. Note that you may still use | |
66 | // wxFileConfig even if you set this to 1 - just the config object created by | |
67 | // default for the applications needs will be a wxRegConfig or wxIniConfig and | |
68 | // not wxFileConfig. | |
69 | // | |
70 | // Recommended setting: 1 | |
71 | #define wxUSE_CONFIG_NATIVE 1 | |
72 | ||
73 | // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows | |
74 | // to connect/disconnect from the network and be notified whenever the dial-up | |
75 | // network connection is established/terminated. | |
76 | // | |
77 | // Default is 1. | |
78 | // | |
79 | // Recommended setting: 1 | |
80 | #define wxUSE_DIALUP_MANAGER 1 | |
81 | ||
82 | // ---------------------------------------------------------------------------- | |
83 | // Optional controls | |
84 | // ---------------------------------------------------------------------------- | |
85 | ||
86 | // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar | |
87 | // classes at all. Otherwise, use the native toolbar class unless | |
88 | // wxUSE_TOOLBAR_NATIVE is 0. Additionally, the generic toolbar class which | |
89 | // supports some features which might not be supported by the native wxToolBar | |
90 | // class may be compiled in if wxUSE_TOOLBAR_SIMPLE is 1. | |
91 | // | |
92 | // Default is 1 for all settings. | |
93 | // | |
94 | // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE and 0 for | |
95 | // wxUSE_TOOLBAR_SIMPLE (the default is 1 mainly for backwards compatibility). | |
96 | #define wxUSE_TOOLBAR 1 | |
97 | #define wxUSE_TOOLBAR_NATIVE 1 | |
98 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
99 | ||
100 | // ---------------------------------------------------------------------------- | |
101 | // Postscript support settings | |
102 | // ---------------------------------------------------------------------------- | |
103 | ||
104 | #define wxUSE_POSTSCRIPT 0 | |
105 | // 0 for no PostScript device context | |
106 | #define wxUSE_AFM_FOR_POSTSCRIPT 0 | |
107 | // 1 to use font metric files in GetTextExtent | |
108 | #define wxUSE_METAFILE 1 | |
109 | // 0 for no Metafile and metafile device context | |
110 | #define wxUSE_IPC 1 | |
111 | // 0 for no interprocess comms | |
112 | // Note: wxHELP uses IPC under X so these are interdependent! | |
113 | #define wxUSE_HELP 1 | |
114 | // 0 for no help facility | |
115 | #define wxUSE_RESOURCES 1 | |
116 | // 0 for no wxGetResource/wxWriteResource | |
117 | #define wxUSE_CONSTRAINTS 1 | |
118 | // 0 for no window layout constraint system | |
119 | ||
120 | #define wxUSE_TIMEDATE 1 | |
121 | // 0 for no wxTime/wxDate classes | |
122 | ||
123 | #define wxUSE_CLIPBOARD 1 | |
124 | // 0 for no clipboard functions | |
125 | ||
126 | #define wxUSE_SPLINES 1 | |
127 | // 0 for no splines | |
128 | ||
129 | #define wxUSE_DRAG_AND_DROP 1 | |
130 | // 0 for no drag and drop | |
131 | ||
132 | #define wxUSE_BUTTONBAR 1 | |
133 | // Define 1 to use buttonbar classes (enhanced toolbar | |
134 | // for MS Windows) | |
135 | #define wxUSE_GAUGE 1 | |
136 | // Define 1 to use Microsoft's gauge (Windows) | |
137 | // or Bull's gauge (Motif) library (both in contrib). | |
138 | #define wxUSE_COMBOBOX 1 | |
139 | // Define 1 to use COMBOXBOX control (Windows) | |
140 | // or FWW's ComboBox widget (Motif). | |
141 | #define wxUSE_CHOICE 1 | |
142 | // Define 1 to use CHOICE | |
143 | ||
144 | #define wxUSE_RADIOBUTTON 1 | |
145 | // Define 1 to use radio button control | |
146 | #define wxUSE_RADIOBTN 1 | |
147 | // Unfortunately someone introduced this one, too | |
148 | #define wxUSE_RADIOBOX 1 | |
149 | // And this... don't know which one is corect | |
150 | ||
151 | #define wxUSE_SCROLLBAR 1 | |
152 | // Define 1 to compile contributed wxScrollBar class | |
153 | ||
154 | #define wxUSE_CHECKBOX 1 | |
155 | // Define 1 to compile checkbox | |
156 | ||
157 | #define wxUSE_LISTBOX 1 | |
158 | // Define 1 to compile listbox | |
159 | ||
160 | #define wxUSE_SPINBTN 1 | |
161 | // Define 1 to compile spin button | |
162 | ||
163 | #define wxUSE_SPINCTRL 1 | |
164 | // Define 1 to use wxSpinCtrl class | |
165 | ||
166 | #define wxUSE_STATLINE 1 | |
167 | // use wxStaticLine class | |
168 | ||
169 | #define wxUSE_CHECKLISTBOX 1 | |
170 | // Define 1 to compile check listbox | |
171 | ||
172 | #define wxUSE_CHOICE 1 | |
173 | // Define 1 to compile choice | |
174 | ||
175 | #define wxUSE_CARET 1 | |
176 | // Define 1 to use wxCaret class | |
177 | ||
178 | #define wxUSE_SLIDER 1 | |
179 | // Define 1 to use wxSlider class | |
180 | ||
181 | #define wxUSE_NEW_GRID 1 | |
182 | // Define 1 to use the new wxGrid class | |
183 | // (still under development, define 0 to | |
184 | // use existing wxGrid class) | |
185 | #define wxUSE_XPM_IN_MSW 1 | |
186 | // Define 1 to support the XPM package in wxBitmap. | |
187 | #define wxUSE_IMAGE_LOADING_IN_MSW 1 | |
188 | // Use dynamic DIB loading/saving code in utils/dib under MSW. | |
189 | #define wxUSE_RESOURCE_LOADING_IN_MSW 1 | |
190 | // Use dynamic icon/cursor loading/saving code | |
191 | // under MSW. | |
192 | #define wxUSE_WX_RESOURCES 1 | |
193 | // Use .wxr resource mechanism (requires PrologIO library) | |
194 | ||
195 | #define wxUSE_STARTUP_TIPS 1 | |
196 | // support for startup tips (wxShowTip &c) | |
197 | ||
198 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
199 | // Set to 0 to disable document/view architecture | |
200 | #define wxUSE_MDI_ARCHITECTURE 1 | |
201 | // Set to 0 to disable MDI document/view architecture | |
202 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
203 | // Set to 0 to disable print/preview architecture code | |
204 | #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 | |
205 | // Set to 0 to disable PostScript print/preview architecture code | |
206 | // under Windows (just use Windows printing). | |
207 | #define wxUSE_DYNAMIC_CLASSES 1 | |
208 | // If 1, enables provision of run-time type information. | |
209 | // NOW MANDATORY: don't change. | |
210 | #define wxUSE_MEMORY_TRACING 1 | |
211 | // If 1, enables debugging versions of wxObject::new and | |
212 | // wxObject::delete *IF* __WXDEBUG__ is also defined. | |
213 | // WARNING: this code may not work with all architectures, especially | |
214 | // if alignment is an issue. | |
215 | #define wxUSE_DEBUG_CONTEXT 1 | |
216 | // If 1, enables wxDebugContext, for | |
217 | // writing error messages to file, etc. | |
218 | // If __WXDEBUG__ is not defined, will still use | |
219 | // normal memory operators. | |
220 | // It's recommended to set this to 1, | |
221 | // since you may well need to output | |
222 | // an error log in a production | |
223 | // version (or non-debugging beta) | |
224 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
225 | // In debug mode, cause new and delete to be redefined globally. | |
226 | // If this causes problems (e.g. link errors), set this to 0. | |
227 | ||
228 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
229 | // In debug mode, causes new to be defined to | |
230 | // be WXDEBUG_NEW (see object.h). | |
231 | // If this causes problems (e.g. link errors), set this to 0. | |
232 | // You may need to set this to 0 if using templates (at least | |
233 | // for VC++). | |
234 | ||
235 | #define REMOVE_UNUSED_ARG 1 | |
236 | // Set this to 0 if your compiler can't cope | |
237 | // with omission of prototype parameters. | |
238 | ||
239 | #define wxUSE_ODBC 0 | |
240 | // Define 1 to use ODBC classes | |
241 | ||
242 | #define wxODBC_FWD_ONLY_CURSORS 1 | |
243 | // Some databases/ODBC drivers only allow forward scrolling cursors. | |
244 | // Unless you specifically want to use backward scrolling | |
245 | // cursors, and you know that all of the databases/ODBC drivers | |
246 | // that you will use these odbc classes with allow backward | |
247 | // scrolling cursors, this setting should remain set to 1 | |
248 | // for maximum database/driver compatibilty | |
249 | ||
250 | #ifndef __MWERKS__ | |
251 | #define wxUSE_IOSTREAMH 1 | |
252 | #else | |
253 | #define wxUSE_IOSTREAMH 1 | |
254 | #endif | |
255 | // VC++ 4.2 and above allows <iostream> and <iostream.h> | |
256 | // but you can't mix them. Set to 1 for <iostream.h>, | |
257 | // 0 for <iostream> | |
258 | ||
259 | #define wxUSE_STREAMS 1 | |
260 | // If enabled (1), compiles wxWindows streams classes | |
261 | ||
262 | #define wxUSE_STD_IOSTREAM 0 | |
263 | // Use standard C++ streams if 1. If 0, use wxWin | |
264 | // streams implementation. | |
265 | ||
266 | #define wxUSE_WXCONFIG 1 | |
267 | // if enabled, compiles built-in OS independent wxConfig | |
268 | // class and it's file (any platform) and registry (Win) | |
269 | // based implementations | |
270 | #define wxUSE_THREADS 1 | |
271 | // support for multithreaded applications: if | |
272 | // 1, compile in thread classes (thread.h) | |
273 | // and make the library thread safe | |
274 | #define wxUSE_ZLIB 1 | |
275 | // Use zlib for compression in streams and PNG code | |
276 | #define wxUSE_LIBPNG 1 | |
277 | // Use PNG bitmap/image code | |
278 | #define wxUSE_LIBJPEG 1 | |
279 | // Use JPEG bitmap/image code | |
280 | #define wxUSE_GIF 1 | |
281 | // Use GIF bitmap/image code | |
282 | #define wxUSE_PNM 1 | |
283 | // Use PNM bitmap/image code | |
284 | #define wxUSE_PCX 1 | |
285 | // Use PCX bitmap/image code | |
286 | #define wxUSE_SERIAL 0 | |
287 | // Use serialization (requires utils/serialize) | |
288 | #define wxUSE_DYNLIB_CLASS 0 | |
289 | // Compile in wxLibrary class for run-time | |
290 | // DLL loading and function calling | |
291 | #define wxUSE_TOOLTIPS 1 | |
292 | // Define to use wxToolTip class and | |
293 | // wxWindow::SetToolTip() method | |
294 | #define wxUSE_SOCKETS 1 | |
295 | // Set to 1 to use socket classes | |
296 | #define wxUSE_HTML 1 | |
297 | // Set to 1 to use wxHTML sub-library | |
298 | #define wxUSE_FS_ZIP 1 | |
299 | #define wxUSE_FS_INET 1 // Set to 1 to enable virtual file systems | |
300 | ||
301 | #define wxUSE_BUSYINFO 1 | |
302 | // wxBusyInfo displays window with message | |
303 | // when app is busy. Works in same way as | |
304 | // wxBusyCursor | |
305 | #define wxUSE_ZIPSTREAM 1 | |
306 | // input stream for reading from zip archives | |
307 | ||
308 | /* | |
309 | * Finer detail | |
310 | * | |
311 | */ | |
312 | ||
313 | #define wxUSE_APPLE_IEEE 1 | |
314 | // if enabled, the float codec written by Apple | |
315 | // will be used to write, in a portable way, | |
316 | // float on the disk | |
317 | ||
318 | // use wxFile class - required by i18n code, wxConfig and others - recommended | |
319 | #define wxUSE_FILE 1 | |
320 | ||
321 | // use wxTextFile class: requires wxFile, required by wxConfig | |
322 | #define wxUSE_TEXTFILE 1 | |
323 | ||
324 | // i18n support: _() macro, wxLocale class. Requires wxFile | |
325 | #define wxUSE_INTL 1 | |
326 | ||
327 | // wxLogXXX functions - highly recommended | |
328 | #define wxUSE_LOG 1 | |
329 | ||
330 | // wxValidator class | |
331 | #define wxUSE_VALIDATORS 1 | |
332 | ||
333 | // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar) | |
334 | #define wxUSE_ACCEL 1 | |
335 | ||
336 | // wxSashWindow class | |
337 | #define wxUSE_SASH 1 | |
338 | ||
339 | // text entry dialog and wxGetTextFromUser function | |
340 | #define wxUSE_TEXTDLG 1 | |
341 | ||
342 | // wxStatusBar class | |
343 | #define wxUSE_STATUSBAR 1 | |
344 | ||
345 | // progress dialog class for lengthy operations | |
346 | #define wxUSE_PROGRESSDLG 1 | |
347 | ||
348 | // wxDirDlg class for getting a directory name from user | |
349 | #define wxUSE_DIRDLG 1 | |
350 | ||
351 | /* | |
352 | * MS Windows/Windows NT | |
353 | * | |
354 | */ | |
355 | ||
356 | #define wxUSE_OLE 1 | |
357 | // drag-and-drop, clipboard, OLE Automation | |
358 | ||
359 | #if defined(__WIN95__) | |
360 | #define wxUSE_CTL3D 0 | |
361 | #else | |
362 | #define wxUSE_CTL3D 1 | |
363 | // Define 1 to use Microsoft CTL3D library. | |
364 | // See note above about using FAFA and CTL3D. | |
365 | #endif | |
366 | ||
367 | // can we use RICHEDIT control? | |
368 | #if defined(__WIN95__) && !defined(__TWIN32__) && !defined(__GNUWIN32_OLD__) | |
369 | #define wxUSE_RICHEDIT 1 | |
370 | #else | |
371 | #define wxUSE_RICHEDIT 0 | |
372 | #endif | |
373 | ||
374 | #define wxUSE_COMMON_DIALOGS 1 | |
375 | // On rare occasions (e.g. using DJGPP) may want | |
376 | // to omit common dialogs | |
377 | // (e.g. file selector, printer dialog). | |
378 | // Switching this off also switches off | |
379 | // the printing architecture and interactive | |
380 | // wxPrinterDC. | |
381 | #define wxUSE_ITSY_BITSY 1 | |
382 | // Define 1 to use Microsoft's ItsyBitsy | |
383 | // small title bar library, for wxMiniFrame | |
384 | #define wxUSE_BITMAP_MESSAGE 1 | |
385 | // Define 1 to use bitmap messages. | |
386 | #define wxUSE_PORTABLE_FONTS_IN_MSW 0 | |
387 | // Define 1 to use new portable font scheme in Windows | |
388 | // (used by default under X) | |
389 | #define wxFONT_SIZE_COMPATIBILITY 0 | |
390 | // Define 1 for font size to be backward compatible | |
391 | // to 1.63 and earlier. 1.64 and later define point | |
392 | // sizes to be compatible with Windows. | |
393 | #define wxUSE_GENERIC_DIALOGS_IN_MSW 1 | |
394 | // Define 1 to use generic dialogs in Windows, even though | |
395 | // they duplicate native common dialog (e.g. wxColourDialog) | |
396 | #define wxUSE_PENWINDOWS 0 | |
397 | // Set to 1 to use PenWindows | |
398 | ||
399 | #define wxUSE_OWNER_DRAWN 1 | |
400 | // Owner-drawn menus and listboxes | |
401 | ||
402 | #define wxUSE_NATIVE_STATUSBAR 1 | |
403 | // Set to 0 to use cross-platform wxStatusBar | |
404 | ||
405 | /* | |
406 | * Any platform | |
407 | * | |
408 | */ | |
409 | ||
410 | #define wxUSE_TYPEDEFS 0 | |
411 | // Use typedefs not classes for wxPoint | |
412 | // and others, to reduce overhead and avoid | |
413 | // MS C7 memory bug. Bounds checker | |
414 | // complains about deallocating | |
415 | // arrays of wxPoints if wxPoint is a class. | |
416 | ||
417 | #if defined(__MINGW32__) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) | |
418 | #ifndef wxUSE_NORLANDER_HEADERS | |
419 | # define wxUSE_NORLANDER_HEADERS 1 | |
420 | #endif | |
421 | #endif | |
422 | ||
423 | #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !defined(wxUSE_NORLANDER_HEADERS)) | |
424 | // Can't use OLE drag and drop in Windows 3.1 because we don't know how | |
425 | // to implement UUIDs | |
426 | // GnuWin32 doesn't have appropriate headers for e.g. IUnknown. | |
427 | #undef wxUSE_DRAG_AND_DROP | |
428 | #define wxUSE_DRAG_AND_DROP 0 | |
429 | #endif | |
430 | ||
431 | // Only WIN32 supports wxStatusBar95 | |
432 | #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR | |
433 | #undef wxUSE_NATIVE_STATUSBAR | |
434 | #define wxUSE_NATIVE_STATUSBAR 0 | |
435 | #endif | |
436 | ||
437 | // Salford C++ doesn't like some of the memory operator definitions | |
438 | #ifdef __SALFORDC__ | |
439 | #undef wxUSE_MEMORY_TRACING | |
440 | #define wxUSE_MEMORY_TRACING 0 | |
441 | ||
442 | #undef wxUSE_GLOBAL_MEMORY_OPERATORS | |
443 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
444 | ||
445 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
446 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
447 | ||
448 | #undef wxUSE_THREADS | |
449 | #define wxUSE_THREADS 0 | |
450 | ||
451 | #undef wxUSE_OWNER_DRAWN | |
452 | #define wxUSE_OWNER_DRAWN 0 | |
453 | #endif | |
454 | ||
455 | #ifdef __TWIN32__ | |
456 | ||
457 | #undef wxUSE_THREADS | |
458 | #define wxUSE_THREADS 0 | |
459 | ||
460 | #undef wxUSE_ODBC | |
461 | #define wxUSE_ODBC 0 | |
462 | ||
463 | #endif | |
464 | ||
465 | // BC++/Win16 can't cope with the amount of data in resource.cpp | |
466 | #if defined(__WIN16__) && defined(__BORLANDC__) | |
467 | #undef wxUSE_WX_RESOURCES | |
468 | #define wxUSE_WX_RESOURCES 0 | |
469 | ||
470 | #undef wxUSE_ODBC | |
471 | #define wxUSE_ODBC 0 | |
472 | #endif | |
473 | ||
474 | #if defined(__WXMSW__) && defined(__WATCOMC__) | |
475 | #undef wxUSE_LIBJPEG | |
476 | #define wxUSE_LIBJPEG 0 | |
477 | #endif | |
478 | ||
479 | #if defined(__WXMSW__) && !defined(__WIN32__) | |
480 | ||
481 | #undef wxUSE_SOCKETS | |
482 | #define wxUSE_SOCKETS 0 | |
483 | ||
484 | #undef wxUSE_THREADS | |
485 | #define wxUSE_THREADS 0 | |
486 | ||
487 | #undef wxUSE_TOOLTIPS | |
488 | #define wxUSE_TOOLTIPS 0 | |
489 | ||
490 | #undef wxUSE_SPINCTRL | |
491 | #define wxUSE_SPINCTRL 0 | |
492 | ||
493 | #undef wxUSE_SPINBTN | |
494 | #define wxUSE_SPINBTN 0 | |
495 | ||
496 | #undef wxUSE_LIBPNG | |
497 | #define wxUSE_LIBPNG 0 | |
498 | ||
499 | #undef wxUSE_LIBJPEG | |
500 | #define wxUSE_LIBJPEG 0 | |
501 | ||
502 | #undef wxUSE_GIF | |
503 | #define wxUSE_GIF 0 | |
504 | ||
505 | #undef wxUSE_PNM | |
506 | #define wxUSE_PNM 0 | |
507 | ||
508 | #undef wxUSE_PCX | |
509 | #define wxUSE_PCX 0 | |
510 | ||
511 | #endif | |
512 | ||
513 | #endif | |
514 | // _WX_SETUP_H_ |