]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/setup.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Configuration for the library
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // define this to 0 when building wxBase library
22 // ----------------------------------------------------------------------------
23 // compatibility settings
24 // ----------------------------------------------------------------------------
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.
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
36 #define WORDS_BIGENDIAN 1
38 // ----------------------------------------------------------------------------
39 // non GUI features selection
40 // ----------------------------------------------------------------------------
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.
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
52 // Recommended setting: 1
53 #define wxUSE_LONGLONG 1
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).
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.
66 // Requires: wxUSE_LONGLONG
68 // Recommended setting: 1
69 #define wxUSE_TIMEDATE 1
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.
76 // See also wxUSE_CONFIG_NATIVE below.
78 // Recommended setting: 1
79 #define wxUSE_CONFIG 1
81 // ----------------------------------------------------------------------------
83 // ----------------------------------------------------------------------------
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.
91 // Default is 1 for all settings.
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
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.
106 // Recommended setting: 1
107 #define wxUSE_NOTEBOOK 1
110 // The corresponding controls will be compiled in if wxUSE_<CONTROL> is set to
111 // 1 and not compiled into the library otherwise.
113 // Default is 1 for everything.
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
132 // ----------------------------------------------------------------------------
133 // Postscript support settings
134 // ----------------------------------------------------------------------------
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
144 // 0 for no interprocess comms
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
154 #define wxUSE_CLIPBOARD 1
155 // 0 for no clipboard functions
157 #define wxUSE_SPLINES 1
160 #define wxUSE_DRAG_AND_DROP 0
161 // 0 for no drag and drop
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
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
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
182 #define wxUSE_SCROLLBAR 1
183 // Define 1 to compile contributed wxScrollBar class
185 #define wxUSE_CHECKBOX 1
186 // Define 1 to compile checkbox
188 #define wxUSE_LISTBOX 1
189 // Define 1 to compile listbox
191 #define wxUSE_SPINBTN 1
192 // Define 1 to compile spin button
194 // use wxStaticLine class (separator line in the dialog)?
195 #define wxUSE_STATLINE 1
197 #define wxUSE_CHECKLISTBOX 1
198 // Define 1 to compile check listbox
200 #define wxUSE_CHOICE 1
201 // Define 1 to compile choice
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
212 #define wxUSE_WX_RESOURCES 1
213 // Use .wxr resource mechanism (requires PrologIO library)
215 // support for startup tips (wxShowTip &c)
216 #define wxUSE_STARTUP_TIPS 1
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
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.
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
261 #define REMOVE_UNUSED_ARG 1
262 // Set this to 0 if your compiler can't cope
263 // with omission of prototype parameters.
266 // Define 1 to use ODBC classes
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.
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.
290 #define wxUSE_IOSTREAMH 0
292 #define wxUSE_IOSTREAMH 1
294 // VC++ 4.2 and above allows <iostream> and <iostream.h>
295 // but you can't mix them. Set to 1 for <iostream.h>,
298 #define wxUSE_STREAMS 1
299 // If enabled (1), compiles wxWindows streams classes
301 #define wxUSE_STD_IOSTREAM 1
302 // Use standard C++ streams if 1. If 0, use wxWin
303 // streams implementation.
305 #define wxUSE_WXCONFIG 1
306 // if enabled, compiles built-in OS independent wxConfig
307 // class and it's file (any platform) and registry (Win)
308 // based implementations
309 #define wxUSE_THREADS 0
310 // support for multithreaded applications: if
311 // 1, compile in thread classes (thread.h)
312 // and make the library thread safe
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
327 #define wxUSE_SOCKETS 0 // 0
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
334 #define wxUSE_BUSYINFO 1 // 0
335 // wxBusyInfo displays window with message
336 // when app is busy. Works in same way as
338 #define wxUSE_ZIPSTREAM 1 // 0
339 // input stream for reading from zip archives
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,
351 // use wxFile class - required by i18n code, wxConfig and others - recommended
354 // use wxTextFile class: requires wxFile, required by wxConfig
355 #define wxUSE_TEXTFILE 1
357 // i18n support: _() macro, wxLocale class. Requires wxFile
360 // wxLogXXX functions - highly recommended
364 #define wxUSE_VALIDATORS 1
366 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
367 #define wxUSE_ACCEL 1
369 // wxSashWindow class
372 // text entry dialog and wxGetTextFromUser function
373 #define wxUSE_TEXTDLG 1
376 #define wxUSE_TOOLBAR 1
379 #define wxUSE_STATUSBAR 1
381 // progress dialog class for lengthy operations
382 #define wxUSE_PROGRESSDLG 1
384 // wxDirDlg class for getting a directory name from user
385 #define wxUSE_DIRDLG 1
388 * MS Windows/Windows NT
393 // drag-and-drop, clipboard, OLE Automation
395 #if defined(__WIN95__)
396 #define wxUSE_CTL3D 0
398 #define wxUSE_CTL3D 1
399 // Define 1 to use Microsoft CTL3D library.
400 // See note above about using FAFA and CTL3D.
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
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
428 #define wxUSE_OWNER_DRAWN 0
429 // Owner-drawn menus and listboxes
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.
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.