]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: setup.h | |
3 | // Purpose: Configuration for the library | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_SETUP_H_ | |
13 | #define _WX_SETUP_H_ | |
14 | ||
4765d335 SC |
15 | // ---------------------------------------------------------------------------- |
16 | // global settings | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
19 | // define this to 0 when building wxBase library | |
20 | #define wxUSE_GUI 1 | |
e7549107 | 21 | |
4765d335 SC |
22 | // ---------------------------------------------------------------------------- |
23 | // compatibility settings | |
24 | // ---------------------------------------------------------------------------- | |
25 | ||
26 | // This setting determines the compatibility with 1.68 API: | |
27 | // Level 0: no backward compatibility, all new features | |
28 | // Level 1: some extra methods are defined for compatibility. | |
29 | // | |
30 | // Default is 0. | |
31 | // | |
32 | // Recommended setting: 0 (in fact the compatibility code is now very minimal | |
33 | // so there is little advantage to setting it to 1. | |
34 | #define WXWIN_COMPATIBILITY 0 | |
35 | ||
7c74e7fe SC |
36 | #define WORDS_BIGENDIAN 1 |
37 | ||
4765d335 SC |
38 | // ---------------------------------------------------------------------------- |
39 | // non GUI features selection | |
40 | // ---------------------------------------------------------------------------- | |
41 | ||
42 | // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit | |
43 | // integer which is implemented in terms of native 64 bit integers if any or | |
44 | // uses emulation otherwise. | |
45 | // | |
46 | // This class is required by wxDateTime and so you should enable it if you want | |
47 | // to use wxDateTime. For most modern platforms, it will use the native 64 bit | |
48 | // integers in which case (almost) all of its functions are inline and it | |
49 | // almost does not take any space, so there should be no reason to switch it | |
50 | // off. | |
51 | // | |
52 | // Recommended setting: 1 | |
53 | #define wxUSE_LONGLONG 1 | |
54 | ||
55 | ||
56 | // Set wxUSE_TIMEDATE to 1 to compile the wxDateTime and related classes which | |
57 | // allow to manipulate dates, times and time intervals. wxDateTime replaces the | |
58 | // old wxTime and wxDate classes which are still provided for backwards | |
59 | // compatibility (and implemented in terms of wxDateTime). | |
60 | // | |
61 | // Note that this class is relatively new and is still officially in alpha | |
62 | // stage because some features are not yet (fully) implemented. It is already | |
63 | // quite useful though and should only be disabled if you are aiming at | |
64 | // absolutely minimal version of the library. | |
65 | // | |
66 | // Requires: wxUSE_LONGLONG | |
67 | // | |
68 | // Recommended setting: 1 | |
69 | #define wxUSE_TIMEDATE 1 | |
70 | ||
71 | // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes | |
72 | // which allow the application to store its settings in the persistent | |
73 | // storage. Setting this to 1 will also enable on-demand creation of the | |
74 | // global config object in wxApp. | |
75 | // | |
76 | // See also wxUSE_CONFIG_NATIVE below. | |
77 | // | |
78 | // Recommended setting: 1 | |
0dbd6262 | 79 | #define wxUSE_CONFIG 1 |
e7549107 | 80 | |
4765d335 SC |
81 | // ---------------------------------------------------------------------------- |
82 | // Optional controls | |
83 | // ---------------------------------------------------------------------------- | |
84 | ||
85 | // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar | |
86 | // classes at all. Otherwise, use the native toolbar class unless | |
87 | // wxUSE_TOOLBAR_NATIVE is 0. Additionally, the generic toolbar class which | |
88 | // supports some features which might not be supported by the native wxToolBar | |
89 | // class may be compiled in if wxUSE_TOOLBAR_SIMPLE is 1. | |
90 | // | |
91 | // Default is 1 for all settings. | |
92 | // | |
93 | // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE and 0 for | |
94 | // wxUSE_TOOLBAR_SIMPLE (the default is 1 mainly for backwards compatibility). | |
95 | #define wxUSE_TOOLBAR 1 | |
96 | #define wxUSE_TOOLBAR_NATIVE 1 | |
97 | #define wxUSE_TOOLBAR_SIMPLE 0 | |
98 | ||
99 | // wxNotebook is a control with several "tabs" located on one of its sides. It | |
100 | // may be used ot logically organise the data presented to the user instead of | |
101 | // putting everything in one huge dialog. It replaces wxTabControl and related | |
102 | // classes of wxWin 1.6x. | |
103 | // | |
104 | // Default is 1. | |
105 | // | |
106 | // Recommended setting: 1 | |
107 | #define wxUSE_NOTEBOOK 1 | |
108 | ||
109 | ||
110 | // The corresponding controls will be compiled in if wxUSE_<CONTROL> is set to | |
111 | // 1 and not compiled into the library otherwise. | |
112 | // | |
113 | // Default is 1 for everything. | |
114 | // | |
115 | // Recommended setting: 1 (library might fail to compile for some combinations | |
116 | // of disabled controls) | |
117 | #define wxUSE_COMBOBOX 1 | |
118 | #define wxUSE_CHOICE 1 | |
119 | #define wxUSE_RADIOBTN 1 | |
120 | #define wxUSE_RADIOBOX 1 | |
121 | #define wxUSE_SCROLLBAR 1 | |
122 | #define wxUSE_CHECKBOX 1 | |
123 | #define wxUSE_LISTBOX 1 | |
124 | #define wxUSE_SPINBTN 1 | |
125 | #define wxUSE_SPINCTRL 1 | |
126 | #define wxUSE_STATLINE 1 | |
127 | #define wxUSE_CHECKLISTBOX 1 | |
128 | #define wxUSE_CHOICE 1 | |
129 | #define wxUSE_CARET 1 | |
130 | #define wxUSE_SLIDER 1 | |
131 | ||
132 | // ---------------------------------------------------------------------------- | |
133 | // Postscript support settings | |
134 | // ---------------------------------------------------------------------------- | |
135 | ||
136 | ||
8be97d65 | 137 | #define wxUSE_POSTSCRIPT 0 |
0dbd6262 SC |
138 | // 0 for no PostScript device context |
139 | #define wxUSE_AFM_FOR_POSTSCRIPT 0 | |
140 | // 1 to use font metric files in GetTextExtent | |
519cb848 | 141 | #define wxUSE_METAFILE 1 |
0dbd6262 | 142 | // 0 for no Metafile and metafile device context |
8be97d65 | 143 | #define wxUSE_IPC 0 |
0dbd6262 | 144 | // 0 for no interprocess comms |
8be97d65 | 145 | #define wxUSE_HELP 0 |
0dbd6262 | 146 | // 0 for no help facility |
519cb848 | 147 | #define wxUSE_RESOURCES 1 |
0dbd6262 | 148 | // 0 for no wxGetResource/wxWriteResource |
e7549107 SC |
149 | #define wxUSE_CONSTRAINTS 1 |
150 | // Use constraints mechanism | |
151 | #define wxUSE_TIMEDATE 1 | |
152 | // 0 for no wxTime/wxDate classes | |
153 | ||
519cb848 | 154 | #define wxUSE_CLIPBOARD 1 |
e7549107 SC |
155 | // 0 for no clipboard functions |
156 | ||
157 | #define wxUSE_SPLINES 1 | |
158 | // 0 for no splines | |
159 | ||
8be97d65 | 160 | #define wxUSE_DRAG_AND_DROP 0 |
e7549107 SC |
161 | // 0 for no drag and drop |
162 | ||
163 | #define wxUSE_TOOLBAR 1 | |
164 | // Define 1 to use toolbar classes | |
165 | #define wxUSE_BUTTONBAR 1 | |
166 | // Define 1 to use buttonbar classes (enhanced toolbar | |
167 | // for MS Windows) | |
168 | #define wxUSE_GAUGE 1 | |
169 | // Define 1 to use Microsoft's gauge (Windows) | |
170 | // or Bull's gauge (Motif) library (both in contrib). | |
171 | #define wxUSE_COMBOBOX 1 | |
172 | // Define 1 to use COMBOXBOX control (Windows) | |
173 | // or FWW's ComboBox widget (Motif). | |
174 | #define wxUSE_CHOICE 1 | |
175 | // Define 1 to use CHOICE | |
176 | ||
177 | #define wxUSE_RADIOBUTTON 1 | |
178 | // Define 1 to use radio button control | |
179 | #define wxUSE_RADIOBTN 1 | |
180 | // Unfortunately someone introduced this one, too | |
181 | ||
182 | #define wxUSE_SCROLLBAR 1 | |
183 | // Define 1 to compile contributed wxScrollBar class | |
184 | ||
185 | #define wxUSE_CHECKBOX 1 | |
186 | // Define 1 to compile checkbox | |
187 | ||
188 | #define wxUSE_LISTBOX 1 | |
189 | // Define 1 to compile listbox | |
190 | ||
191 | #define wxUSE_SPINBTN 1 | |
192 | // Define 1 to compile spin button | |
193 | ||
194 | // use wxStaticLine class (separator line in the dialog)? | |
195 | #define wxUSE_STATLINE 1 | |
0dbd6262 | 196 | |
e7549107 SC |
197 | #define wxUSE_CHECKLISTBOX 1 |
198 | // Define 1 to compile check listbox | |
199 | ||
200 | #define wxUSE_CHOICE 1 | |
201 | // Define 1 to compile choice | |
202 | ||
203 | #define wxUSE_CARET 1 | |
204 | // Define 1 to use wxCaret class | |
205 | #define wxUSE_XPM_IN_MSW 1 | |
206 | // Define 1 to support the XPM package in wxBitmap. | |
207 | #define wxUSE_IMAGE_LOADING_IN_MSW 1 | |
208 | // Use dynamic DIB loading/saving code in utils/dib under MSW. | |
209 | #define wxUSE_RESOURCE_LOADING_IN_MSW 1 | |
210 | // Use dynamic icon/cursor loading/saving code | |
211 | // under MSW. | |
519cb848 | 212 | #define wxUSE_WX_RESOURCES 1 |
0dbd6262 SC |
213 | // Use .wxr resource mechanism (requires PrologIO library) |
214 | ||
e7549107 SC |
215 | // support for startup tips (wxShowTip &c) |
216 | #define wxUSE_STARTUP_TIPS 1 | |
217 | ||
218 | // BC++/Win16 can't cope with the amount of data in resource.cpp | |
219 | #if defined(__WIN16__) && defined(__BORLANDC__) | |
220 | #undef wxUSE_WX_RESOURCES | |
221 | #define wxUSE_WX_RESOURCES 0 | |
222 | #endif | |
223 | ||
0dbd6262 SC |
224 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
225 | // Set to 0 to disable document/view architecture | |
e7549107 SC |
226 | #define wxUSE_MDI_ARCHITECTURE 1 |
227 | // Set to 0 to disable MDI document/view architecture | |
519cb848 | 228 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
0dbd6262 | 229 | // Set to 0 to disable print/preview architecture code |
e7549107 | 230 | #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1 |
0dbd6262 SC |
231 | // Set to 0 to disable PostScript print/preview architecture code |
232 | // under Windows (just use Windows printing). | |
233 | #define wxUSE_DYNAMIC_CLASSES 1 | |
234 | // If 1, enables provision of run-time type information. | |
235 | // NOW MANDATORY: don't change. | |
236 | #define wxUSE_MEMORY_TRACING 1 | |
237 | // If 1, enables debugging versions of wxObject::new and | |
e7549107 | 238 | // wxObject::delete *IF* __WXDEBUG__ is also defined. |
0dbd6262 SC |
239 | // WARNING: this code may not work with all architectures, especially |
240 | // if alignment is an issue. | |
241 | #define wxUSE_DEBUG_CONTEXT 1 | |
242 | // If 1, enables wxDebugContext, for | |
243 | // writing error messages to file, etc. | |
e7549107 | 244 | // If __WXDEBUG__ is not defined, will still use |
0dbd6262 SC |
245 | // normal memory operators. |
246 | // It's recommended to set this to 1, | |
247 | // since you may well need to output | |
248 | // an error log in a production | |
249 | // version (or non-debugging beta) | |
7c74e7fe | 250 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 |
0dbd6262 SC |
251 | // In debug mode, cause new and delete to be redefined globally. |
252 | // If this causes problems (e.g. link errors), set this to 0. | |
253 | ||
254 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
255 | // In debug mode, causes new to be defined to | |
256 | // be WXDEBUG_NEW (see object.h). | |
257 | // If this causes problems (e.g. link errors), set this to 0. | |
e7549107 SC |
258 | // You may need to set this to 0 if using templates (at least |
259 | // for VC++). | |
0dbd6262 SC |
260 | |
261 | #define REMOVE_UNUSED_ARG 1 | |
262 | // Set this to 0 if your compiler can't cope | |
263 | // with omission of prototype parameters. | |
264 | ||
f6bcfd97 BP |
265 | #define wxUSE_ODBC 1 |
266 | // Define 1 to use ODBC classes | |
267 | ||
268 | ||
269 | #define wxODBC_FWD_ONLY_CURSORS 1 | |
270 | // For backward compatibility reasons, this parameter now only | |
271 | // controls the default scrolling method used by cursors. This | |
272 | // default behavior can be overriden by setting the second param | |
273 | // of wxDB::GetDbConnection() to indicate whether the connection | |
274 | // (and any wxTable()s that use the connection) should support | |
275 | // forward only scrolling of cursors, or both forward and backward | |
276 | // Support for backward scrolling cursors is dependent on the | |
277 | // data source as well as the ODBC driver being used. | |
278 | ||
279 | #define wxODBC_BACKWARD_COMPATABILITY 0 | |
280 | // Default is 0. Set to 1 to use the deprecated classes, enum | |
281 | // types, function, member variables. With a setting of 1, full | |
282 | // backward compatability with the 2.0.x release is possible. | |
283 | // It is STRONGLY recommended that this be set to 0, as | |
284 | // future development will be done only on the non-deprecated | |
285 | // functions/classes/member variables/etc. | |
9695185a GT |
286 | |
287 | ||
0dbd6262 | 288 | |
e7549107 | 289 | #ifndef __MWERKS__ |
0dbd6262 | 290 | #define wxUSE_IOSTREAMH 0 |
e7549107 SC |
291 | #else |
292 | #define wxUSE_IOSTREAMH 1 | |
293 | #endif | |
0dbd6262 SC |
294 | // VC++ 4.2 and above allows <iostream> and <iostream.h> |
295 | // but you can't mix them. Set to 1 for <iostream.h>, | |
296 | // 0 for <iostream> | |
297 | ||
519cb848 SC |
298 | #define wxUSE_STREAMS 1 |
299 | // If enabled (1), compiles wxWindows streams classes | |
300 | ||
301 | #define wxUSE_STD_IOSTREAM 1 | |
302 | // Use standard C++ streams if 1. If 0, use wxWin | |
303 | // streams implementation. | |
e7549107 SC |
304 | |
305 | #define wxUSE_WXCONFIG 1 | |
0dbd6262 SC |
306 | // if enabled, compiles built-in OS independent wxConfig |
307 | // class and it's file (any platform) and registry (Win) | |
308 | // based implementations | |
51abe921 | 309 | #define wxUSE_THREADS 0 |
e7549107 SC |
310 | // support for multithreaded applications: if |
311 | // 1, compile in thread classes (thread.h) | |
312 | // and make the library thread safe | |
313 | #define wxUSE_ZLIB 1 | |
314 | // Use zlib for compression in streams and PNG code | |
315 | #define wxUSE_LIBPNG 1 | |
316 | // Use PNG bitmap code | |
317 | #define wxUSE_LIBJPEG 0 | |
318 | // Use JPEG bitmap code | |
319 | #define wxUSE_SERIAL 0 | |
320 | // Use serialization (requires utils/serialize) | |
321 | #define wxUSE_DYNLIB_CLASS 0 | |
322 | // Compile in wxLibrary class for run-time | |
323 | // DLL loading and function calling | |
324 | #define wxUSE_TOOLTIPS 1 | |
325 | // Define to use wxToolTip class and | |
326 | // wxWindow::SetToolTip() method | |
51abe921 | 327 | #define wxUSE_SOCKETS 0 // 0 |
e7549107 SC |
328 | // Set to 1 to use socket classes |
329 | #define wxUSE_HTML 1 // 0 | |
330 | // Set to 1 to use wxHTML sub-library | |
331 | #define wxUSE_FS_ZIP 1 // 0 | |
332 | #define wxUSE_FS_INET 1 // 0 // Set to 1 to enable virtual file systems | |
333 | ||
334 | #define wxUSE_BUSYINFO 1 // 0 | |
335 | // wxBusyInfo displays window with message | |
336 | // when app is busy. Works in same way as | |
337 | // wxBusyCursor | |
338 | #define wxUSE_ZIPSTREAM 1 // 0 | |
339 | // input stream for reading from zip archives | |
340 | ||
0dbd6262 SC |
341 | /* |
342 | * Finer detail | |
343 | * | |
344 | */ | |
345 | ||
e7549107 SC |
346 | #define wxUSE_APPLE_IEEE 1 |
347 | // if enabled, the float codec written by Apple | |
348 | // will be used to write, in a portable way, | |
349 | // float on the disk | |
0dbd6262 | 350 | |
519cb848 SC |
351 | // use wxFile class - required by i18n code, wxConfig and others - recommended |
352 | #define wxUSE_FILE 1 | |
353 | ||
354 | // use wxTextFile class: requires wxFile, required by wxConfig | |
355 | #define wxUSE_TEXTFILE 1 | |
356 | ||
357 | // i18n support: _() macro, wxLocale class. Requires wxFile | |
358 | #define wxUSE_INTL 1 | |
359 | ||
360 | // wxLogXXX functions - highly recommended | |
361 | #define wxUSE_LOG 1 | |
362 | ||
363 | // wxValidator class | |
364 | #define wxUSE_VALIDATORS 1 | |
365 | ||
366 | // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar) | |
367 | #define wxUSE_ACCEL 1 | |
368 | ||
369 | // wxSashWindow class | |
370 | #define wxUSE_SASH 1 | |
371 | ||
372 | // text entry dialog and wxGetTextFromUser function | |
373 | #define wxUSE_TEXTDLG 1 | |
374 | ||
519cb848 SC |
375 | // wxToolBar class |
376 | #define wxUSE_TOOLBAR 1 | |
377 | ||
378 | // wxStatusBar class | |
379 | #define wxUSE_STATUSBAR 1 | |
380 | ||
381 | // progress dialog class for lengthy operations | |
382 | #define wxUSE_PROGRESSDLG 1 | |
383 | ||
384 | // wxDirDlg class for getting a directory name from user | |
385 | #define wxUSE_DIRDLG 1 | |
386 | ||
e7549107 SC |
387 | /* |
388 | * MS Windows/Windows NT | |
389 | * | |
390 | */ | |
391 | ||
392 | #define wxUSE_OLE 1 | |
393 | // drag-and-drop, clipboard, OLE Automation | |
394 | ||
395 | #if defined(__WIN95__) | |
396 | #define wxUSE_CTL3D 0 | |
397 | #else | |
398 | #define wxUSE_CTL3D 1 | |
399 | // Define 1 to use Microsoft CTL3D library. | |
400 | // See note above about using FAFA and CTL3D. | |
401 | #endif | |
402 | ||
403 | #define wxUSE_COMMON_DIALOGS 1 | |
404 | // On rare occasions (e.g. using DJGPP) may want | |
405 | // to omit common dialogs | |
406 | // (e.g. file selector, printer dialog). | |
407 | // Switching this off also switches off | |
408 | // the printing architecture and interactive | |
409 | // wxPrinterDC. | |
410 | #define wxUSE_ITSY_BITSY 1 | |
411 | // Define 1 to use Microsoft's ItsyBitsy | |
412 | // small title bar library, for wxMiniFrame | |
413 | #define wxUSE_BITMAP_MESSAGE 1 | |
414 | // Define 1 to use bitmap messages. | |
415 | #define wxUSE_PORTABLE_FONTS_IN_MSW 0 | |
416 | // Define 1 to use new portable font scheme in Windows | |
417 | // (used by default under X) | |
418 | #define wxFONT_SIZE_COMPATIBILITY 0 | |
419 | // Define 1 for font size to be backward compatible | |
420 | // to 1.63 and earlier. 1.64 and later define point | |
421 | // sizes to be compatible with Windows. | |
422 | #define wxUSE_GENERIC_DIALOGS_IN_MSW 1 | |
423 | // Define 1 to use generic dialogs in Windows, even though | |
424 | // they duplicate native common dialog (e.g. wxColourDialog) | |
425 | #define wxUSE_PENWINDOWS 0 | |
426 | // Set to 1 to use PenWindows | |
427 | ||
51abe921 | 428 | #define wxUSE_OWNER_DRAWN 0 |
e7549107 SC |
429 | // Owner-drawn menus and listboxes |
430 | ||
431 | #define wxUSE_NATIVE_STATUSBAR 1 | |
432 | // Set to 0 to use cross-platform wxStatusBar | |
433 | #define wxUSE_DBWIN32 1 | |
434 | // Use Andrew Tucker's OutputDebugString implementation | |
435 | // (required on Win95 only). See utils.cpp. | |
436 | ||
437 | /* | |
438 | * Any platform | |
439 | * | |
440 | */ | |
441 | ||
442 | #define wxUSE_TYPEDEFS 1 | |
443 | // Use typedefs not classes for wxPoint | |
444 | // and others, to reduce overhead and avoid | |
445 | // MS C7 memory bug. Bounds checker | |
446 | // complains about deallocating | |
447 | // arrays of wxPoints if wxPoint is a class. | |
448 | ||
449 | ||
0dbd6262 SC |
450 | #endif |
451 | // _WX_SETUP_H_ |