]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/setup.h
Fixed missing paint events when overriding DoMoveWindow()
[wxWidgets.git] / include / wx / mac / setup.h
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
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 // 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
36 #define WORDS_BIGENDIAN 1
37
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
79 #define wxUSE_CONFIG 1
80
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
137 #define wxUSE_POSTSCRIPT 0
138 // 0 for no PostScript device context
139 #define wxUSE_AFM_FOR_POSTSCRIPT 0
140 // 1 to use font metric files in GetTextExtent
141 #define wxUSE_METAFILE 1
142 // 0 for no Metafile and metafile device context
143 #define wxUSE_IPC 0
144 // 0 for no interprocess comms
145 #define wxUSE_HELP 0
146 // 0 for no help facility
147 #define wxUSE_RESOURCES 1
148 // 0 for no wxGetResource/wxWriteResource
149 #define wxUSE_CONSTRAINTS 1
150 // Use constraints mechanism
151 #define wxUSE_TIMEDATE 1
152 // 0 for no wxTime/wxDate classes
153
154 #define wxUSE_CLIPBOARD 1
155 // 0 for no clipboard functions
156
157 #define wxUSE_SPLINES 1
158 // 0 for no splines
159
160 #define wxUSE_DRAG_AND_DROP 0
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
196
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.
212 #define wxUSE_WX_RESOURCES 1
213 // Use .wxr resource mechanism (requires PrologIO library)
214
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
224 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
225 // Set to 0 to disable document/view architecture
226 #define wxUSE_MDI_ARCHITECTURE 1
227 // Set to 0 to disable MDI document/view architecture
228 #define wxUSE_PRINTING_ARCHITECTURE 1
229 // Set to 0 to disable print/preview architecture code
230 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
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
238 // wxObject::delete *IF* __WXDEBUG__ is also defined.
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.
244 // If __WXDEBUG__ is not defined, will still use
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)
250 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
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.
258 // You may need to set this to 0 if using templates (at least
259 // for VC++).
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
265 #define wxUSE_ODBC 1
266 // Define 1 to use ODBC classes
267
268
269 #define wxODBC_FWD_ONLY_CURSORS 1
270 // Some databases/ODBC drivers only allow forward scrolling cursors.
271 // Unless you specifically want to use backward scrolling
272 // cursors, and you know that all of the databases/ODBC drivers
273 // that you will use these odbc classes with allow backward
274 // scrolling cursors, this setting should remain set to 1
275 // for maximum database/driver compatibilty
276
277
278
279 #ifndef __MWERKS__
280 #define wxUSE_IOSTREAMH 0
281 #else
282 #define wxUSE_IOSTREAMH 1
283 #endif
284 // VC++ 4.2 and above allows <iostream> and <iostream.h>
285 // but you can't mix them. Set to 1 for <iostream.h>,
286 // 0 for <iostream>
287
288 #define wxUSE_STREAMS 1
289 // If enabled (1), compiles wxWindows streams classes
290
291 #define wxUSE_STD_IOSTREAM 1
292 // Use standard C++ streams if 1. If 0, use wxWin
293 // streams implementation.
294
295 #define wxUSE_WXCONFIG 1
296 // if enabled, compiles built-in OS independent wxConfig
297 // class and it's file (any platform) and registry (Win)
298 // based implementations
299 #define wxUSE_THREADS 0
300 // support for multithreaded applications: if
301 // 1, compile in thread classes (thread.h)
302 // and make the library thread safe
303 #define wxUSE_ZLIB 1
304 // Use zlib for compression in streams and PNG code
305 #define wxUSE_LIBPNG 1
306 // Use PNG bitmap code
307 #define wxUSE_LIBJPEG 0
308 // Use JPEG bitmap code
309 #define wxUSE_SERIAL 0
310 // Use serialization (requires utils/serialize)
311 #define wxUSE_DYNLIB_CLASS 0
312 // Compile in wxLibrary class for run-time
313 // DLL loading and function calling
314 #define wxUSE_TOOLTIPS 1
315 // Define to use wxToolTip class and
316 // wxWindow::SetToolTip() method
317 #define wxUSE_SOCKETS 0 // 0
318 // Set to 1 to use socket classes
319 #define wxUSE_HTML 1 // 0
320 // Set to 1 to use wxHTML sub-library
321 #define wxUSE_FS_ZIP 1 // 0
322 #define wxUSE_FS_INET 1 // 0 // Set to 1 to enable virtual file systems
323
324 #define wxUSE_BUSYINFO 1 // 0
325 // wxBusyInfo displays window with message
326 // when app is busy. Works in same way as
327 // wxBusyCursor
328 #define wxUSE_ZIPSTREAM 1 // 0
329 // input stream for reading from zip archives
330
331 /*
332 * Finer detail
333 *
334 */
335
336 #define wxUSE_APPLE_IEEE 1
337 // if enabled, the float codec written by Apple
338 // will be used to write, in a portable way,
339 // float on the disk
340
341 // use wxFile class - required by i18n code, wxConfig and others - recommended
342 #define wxUSE_FILE 1
343
344 // use wxTextFile class: requires wxFile, required by wxConfig
345 #define wxUSE_TEXTFILE 1
346
347 // i18n support: _() macro, wxLocale class. Requires wxFile
348 #define wxUSE_INTL 1
349
350 // wxLogXXX functions - highly recommended
351 #define wxUSE_LOG 1
352
353 // wxValidator class
354 #define wxUSE_VALIDATORS 1
355
356 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
357 #define wxUSE_ACCEL 1
358
359 // wxSashWindow class
360 #define wxUSE_SASH 1
361
362 // text entry dialog and wxGetTextFromUser function
363 #define wxUSE_TEXTDLG 1
364
365 // wxToolBar class
366 #define wxUSE_TOOLBAR 1
367
368 // wxStatusBar class
369 #define wxUSE_STATUSBAR 1
370
371 // progress dialog class for lengthy operations
372 #define wxUSE_PROGRESSDLG 1
373
374 // wxDirDlg class for getting a directory name from user
375 #define wxUSE_DIRDLG 1
376
377 /*
378 * MS Windows/Windows NT
379 *
380 */
381
382 #define wxUSE_OLE 1
383 // drag-and-drop, clipboard, OLE Automation
384
385 #if defined(__WIN95__)
386 #define wxUSE_CTL3D 0
387 #else
388 #define wxUSE_CTL3D 1
389 // Define 1 to use Microsoft CTL3D library.
390 // See note above about using FAFA and CTL3D.
391 #endif
392
393 #define wxUSE_COMMON_DIALOGS 1
394 // On rare occasions (e.g. using DJGPP) may want
395 // to omit common dialogs
396 // (e.g. file selector, printer dialog).
397 // Switching this off also switches off
398 // the printing architecture and interactive
399 // wxPrinterDC.
400 #define wxUSE_ITSY_BITSY 1
401 // Define 1 to use Microsoft's ItsyBitsy
402 // small title bar library, for wxMiniFrame
403 #define wxUSE_BITMAP_MESSAGE 1
404 // Define 1 to use bitmap messages.
405 #define wxUSE_PORTABLE_FONTS_IN_MSW 0
406 // Define 1 to use new portable font scheme in Windows
407 // (used by default under X)
408 #define wxFONT_SIZE_COMPATIBILITY 0
409 // Define 1 for font size to be backward compatible
410 // to 1.63 and earlier. 1.64 and later define point
411 // sizes to be compatible with Windows.
412 #define wxUSE_GENERIC_DIALOGS_IN_MSW 1
413 // Define 1 to use generic dialogs in Windows, even though
414 // they duplicate native common dialog (e.g. wxColourDialog)
415 #define wxUSE_PENWINDOWS 0
416 // Set to 1 to use PenWindows
417
418 #define wxUSE_OWNER_DRAWN 0
419 // Owner-drawn menus and listboxes
420
421 #define wxUSE_NATIVE_STATUSBAR 1
422 // Set to 0 to use cross-platform wxStatusBar
423 #define wxUSE_DBWIN32 1
424 // Use Andrew Tucker's OutputDebugString implementation
425 // (required on Win95 only). See utils.cpp.
426
427 /*
428 * Any platform
429 *
430 */
431
432 #define wxUSE_TYPEDEFS 1
433 // Use typedefs not classes for wxPoint
434 // and others, to reduce overhead and avoid
435 // MS C7 memory bug. Bounds checker
436 // complains about deallocating
437 // arrays of wxPoints if wxPoint is a class.
438
439
440 #endif
441 // _WX_SETUP_H_