]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/setup0.h
wchar/wcslen corrections for Darwin (same as FreeBSD)
[wxWidgets.git] / include / wx / os2 / setup0.h
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 1 if you want icons to behave as bitmaps
20 #define wxICON_IS_BITMAP 0
21
22 // define this to 0 when building wxBase library
23 #define wxUSE_GUI 1
24
25 // ----------------------------------------------------------------------------
26 // General features
27 // ----------------------------------------------------------------------------
28
29 #define wxUSE_FILESYSTEM 1 // better have this is you want to compile wxHTML
30
31 #if defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )
32 #define wxUSE_LONGLONG 1
33 #endif
34
35 #define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
36
37 #define wxUSE_DATETIME 1 // Utilize the date-time classes
38
39 #define wxUSE_CONFIG 1
40 // Use wxConfig, with CreateConfig in wxApp
41
42 #define wxUSE_POSTSCRIPT 1
43 // 0 for no PostScript device context
44 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45 // 1 to use font metric files in GetTextExtent
46 #define wxUSE_METAFILE 1
47 // 0 for no Metafile and metafile device context
48 #define wxUSE_IPC 1
49 // 0 for no interprocess comms
50 // Note: wxHELP uses IPC under X so these are interdependent!
51 #define wxUSE_HELP 1
52 // 0 for no help facility
53 #define wxUSE_RESOURCES 1
54 // 0 for no wxGetResource/wxWriteResource
55 #define wxUSE_CONSTRAINTS 1
56 // 0 for no window layout constraint system
57
58 #define wxUSE_TIMEDATE 1
59 // 0 for no wxTime/wxDate classes
60
61 #define wxUSE_MENUS 1
62 // 0 for no menus
63
64 #define wxUSE_JOYSTICK 1
65 // 0 for no joystick functions
66
67 #define wxUSE_CLIPBOARD 1
68 // 0 for no clipboard functions
69
70 #define wxUSE_PLOT 1
71 // 0 for no generic plot functions
72
73 #define wxUSE_SPLINES 1
74 // 0 for no splines
75
76 #define wxUSE_DRAG_AND_DROP 1
77 // 0 for no drag and drop
78
79 #define wxUSE_CONTROLS 1 // Do not change
80 #define wxUSE_POPUPWIN 0 // OS/2 does not use this
81
82 // Recommended setting: 1
83 #define wxUSE_BUTTON 1 // wxButton
84 #define wxUSE_BMPBUTTON 1 // wxBitmapButton
85 #define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
86 #define wxUSE_CHECKBOX 1 // wxCheckBox
87 #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
88 #define wxUSE_CHOICE 1 // wxChoice
89 #define wxUSE_COMBOBOX 1 // wxComboBox
90 #define wxUSE_GAUGE 1 // wxGauge
91 #define wxUSE_LISTBOX 1 // wxListBox
92 #define wxUSE_LISTCTRL 1 // wxListCtrl
93 #define wxUSE_RADIOBOX 1 // wxRadioBox
94 #define wxUSE_RADIOBTN 1 // wxRadioButton
95 #define wxUSE_SCROLLBAR 1 // wxScrollBar
96 #define wxUSE_SLIDER 1 // wxSlider
97 #define wxUSE_SPINBTN 1 // wxSpinButton
98 #define wxUSE_SPINCTRL 1 // wxSpinCtrl
99 #define wxUSE_STATBOX 1 // wxStaticBox
100 #define wxUSE_STATLINE 1 // wxStaticLine
101 #define wxUSE_STATTEXT 1 // wxStaticText
102 #define wxUSE_STATBMP 1 // wxStaticBitmap
103 #define wxUSE_TEXTCTRL 1 // wxTextCtrl
104 #define wxUSE_TOGGLEBTN 1 // requires wxButton
105 #define wxUSE_TREECTRL 1 // wxTreeCtrl
106 #define wxUSE_CHOICEDLG 1
107 #define wxUSE_COLOURDLG 1
108 #define wxUSE_DATAOBJ 1
109 #define wxUSE_FILEDLG 1
110 #define wxUSE_FONTDLG 1
111 #define wxUSE_FONTMAP 1
112 #define wxUSE_GRID 1
113 #define wxUSE_IMAGLIST 1
114 #define wxUSE_LOGGUI 1
115 #define wxUSE_LOGWINDOW 1
116 #define wxUSE_LOG_DIALOG 1
117 #define wxUSE_MIMETYPE 1
118 #define wxUSE_MSGDLG 1
119 #define wxUSE_NOTEBOOK 1
120 #define wxUSE_SPLITTER 1
121 #define wxUSE_STOPWATCH 1
122 #define wxUSE_TAB_DIALOG 1
123 #define wxUSE_WXHTML_HELP 1
124 #define wxUSE_BUTTONBAR 1
125 // Define 1 to use buttonbar classes (enhanced toolbar
126 // for MS Windows)
127
128 #define wxUSE_RADIOBUTTON 1
129 // Define 1 to use radio button control
130
131 #define wxUSE_SCROLLBAR 1
132 // Define 1 to compile contributed wxScrollBar class
133
134 #define wxUSE_CARET 1
135 // Define 1 to use wxCaret class
136 #define wxUSE_TREECTRL 1
137 // Define 1 to use wxTree* classes
138 #define wxUSE_XPM_IN_OS2 1
139 // Define 1 to support the XPM package in wxBitmap.
140 #define wxUSE_IMAGE_LOADING_IN_OS2 1
141 // Use dynamic DIB loading/saving code in utils/dib under OS2.
142 #define wxUSE_RESOURCE_LOADING_IN_OS2 1
143 // Use dynamic icon/cursor loading/saving code
144 // under OS2.
145 #define wxUSE_WX_RESOURCES 1
146 // Use .wxr resource mechanism (requires PrologIO library)
147
148 // support for startup tips (wxShowTip &c)
149 #define wxUSE_STARTUP_TIPS 1
150
151 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
152 // Set to 0 to disable document/view architecture
153 #define wxUSE_MDI_ARCHITECTURE 1
154 // Set to 0 to disable MDI document/view architecture
155 #define wxUSE_PRINTING_ARCHITECTURE 1
156 // Set to 0 to disable print/preview architecture code
157 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_OS2 1
158 // Set to 0 to disable PostScript print/preview architecture code
159 // under OS/2 PM (just use PM printing).
160 #define wxUSE_DYNAMIC_CLASSES 1
161 // If 1, enables provision of run-time type information.
162 // NOW MANDATORY: don't change.
163 #define wxUSE_MEMORY_TRACING 1
164 // If 1, enables debugging versions of wxObject::new and
165 // wxObject::delete *IF* __WXDEBUG__ is also defined.
166 // WARNING: this code may not work with all architectures, especially
167 // if alignment is an issue.
168 #define wxUSE_DEBUG_CONTEXT 1
169 // If 1, enables wxDebugContext, for
170 // writing error messages to file, etc.
171 // If __WXDEBUG__ is not defined, will still use
172 // normal memory operators.
173 // It's recommended to set this to 1,
174 // since you may well need to output
175 // an error log in a production
176 // version (or non-debugging beta)
177 #if defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )
178 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
179 #else
180 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
181 #endif
182 // In debug mode, cause new and delete to be redefined globally.
183 // If this causes problems (e.g. link errors), set this to 0.
184
185 #define wxUSE_DEBUG_NEW_ALWAYS 1
186 // In debug mode, causes new to be defined to
187 // be WXDEBUG_NEW (see object.h).
188 // If this causes problems (e.g. link errors), set this to 0.
189 // You may need to set this to 0 if using templates (at least
190 // for VC++).
191
192 #define REMOVE_UNUSED_ARG 1
193 // Set this to 0 if your compiler can't cope
194 // with omission of prototype parameters.
195
196 #define wxUSE_ODBC 1
197 // Define 1 to use ODBC classes
198
199 #define wxODBC_FWD_ONLY_CURSORS 1
200 // For backward compatibility reasons, this parameter now only
201 // controls the default scrolling method used by cursors. This
202 // default behavior can be overriden by setting the second param
203 // of wxDB::GetDbConnection() to indicate whether the connection
204 // (and any wxTable()s that use the connection) should support
205 // forward only scrolling of cursors, or both forward and backward
206 // Support for backward scrolling cursors is dependent on the
207 // data source as well as the ODBC driver being used.
208
209 #define wxODBC_BACKWARD_COMPATABILITY 0
210 // Default is 0. Set to 1 to use the deprecated classes, enum
211 // types, function, member variables. With a setting of 1, full
212 // backward compatability with the 2.0.x release is possible.
213 // It is STRONGLY recommended that this be set to 0, as
214 // future development will be done only on the non-deprecated
215 // functions/classes/member variables/etc.
216
217 #define wxUSE_IOSTREAMH 1
218 // VC++ 4.2 and above allows <iostream> and <iostream.h>
219 // but you can't mix them. Set to 1 for <iostream.h>,
220 // 0 for <iostream>
221
222 #define wxUSE_STREAMS 1
223 // If enabled (1), compiles wxWindows streams classes
224
225 #define wxUSE_STD_IOSTREAM 1
226 // Use standard C++ streams if 1. If 0, use wxWin
227 // streams implementation.
228
229 #define wxUSE_THREADS 1
230 // support for multithreaded applications: if
231 // 1, compile in thread classes (thread.h)
232 // and make the library thread safe
233 #define wxUSE_ZLIB 1
234 // Use zlib for compression in streams and PNG code
235 #define wxUSE_IMAGE 1
236 // Set to 1 for wxImage support (recommended).
237 #define wxUSE_LIBPNG 1
238 // Set to 1 for PNG format support
239 #define wxUSE_LIBJPEG 1
240 // Set to 1 for JPEG format support
241 #define wxUSE_LIBTIFF 1
242 // Set to 1 for TIFF format support
243 #define wxUSE_GIF 1
244 // Set to 1 for GIF format support
245 #define wxUSE_PNM 1
246 // Set to 1 for PNM format support
247 #define wxUSE_PCX 1
248 // Set to 1 for PCX format support
249 #define wxUSE_XPM 1
250 // Set to 1 for XPM format support
251
252 #define wxUSE_SERIAL 1
253 // Use serialization (requires utils/serialize)
254 #define wxUSE_DYNLIB_CLASS 1
255 // Compile in wxLibrary class for run-time
256 // DLL loading and function calling
257 #define wxUSE_TOOLTIPS 1
258 // Define to use wxToolTip class and
259 // wxWindow::SetToolTip() method
260 #define wxUSE_SOCKETS 1
261 // Set to 1 to use socket classes
262 #define wxUSE_HTML 1
263 // Set to 1 to use wxHTML sub-library
264 #define wxUSE_FS_ZIP 1
265 #define wxUSE_FS_INET 1 // Set to 1 to enable virtual file systems
266
267 #define wxUSE_BUSYINFO 1
268 // wxBusyInfo displays window with message
269 // when app is busy. Works in same way as
270 // wxBusyCursor
271 #define wxUSE_ZIPSTREAM 1
272 // input stream for reading from zip archives
273
274 #define wxUSE_TIMER 1 // use the timer class
275 /*
276 * Finer detail
277 *
278 */
279
280 #define wxUSE_APPLE_IEEE 1
281 // if enabled, the float codec written by Apple
282 // will be used to write, in a portable way,
283 // float on the disk
284
285 // use wxFile class - required by i18n code, wxConfig and others - recommended
286 #define wxUSE_FILE 1
287
288 #define wxUSE_FFILE 1
289
290 // use wxTextFile class: requires wxFile, required by wxConfig
291 #define wxUSE_TEXTFILE 1
292
293 // i18n support: _() macro, wxLocale class. Requires wxFile
294 #define wxUSE_INTL 1
295
296 // wxLogXXX functions - highly recommended
297 #define wxUSE_LOG 1
298
299 // wxValidator class
300 #define wxUSE_VALIDATORS 1
301
302 // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
303 #define wxUSE_ACCEL 1
304
305 // wxSashWindow class
306 #define wxUSE_SASH 1
307
308 // text entry dialog and wxGetTextFromUser function
309 #define wxUSE_TEXTDLG 1
310
311 // wxToolBar class
312 #define wxUSE_TOOLBAR 1
313 #define wxUSE_TOOLBAR_NATIVE 1
314
315 // wxStatusBar class
316 #define wxUSE_STATUSBAR 1
317
318 // wxSpinCtrl class
319 #define wxUSE_SPINCTRL 1
320
321 // progress dialog class for lengthy operations
322 #define wxUSE_PROGRESSDLG 1
323
324 // wxDirDlg class for getting a directory name from user
325 #define wxUSE_DIRDLG 1
326
327 #define wxUSE_OWNER_DRAWN 1
328 // Owner-drawn menus and listboxes
329
330 #define wxUSE_NEW_GRID 1
331 // Define 1 to use the new drid classes
332
333 /*
334 * Any platform
335 *
336 */
337
338 #define wxUSE_TYPEDEFS 0
339 // Use typedefs not classes for wxPoint
340 // and others, to reduce overhead and avoid
341 // MS C7 memory bug. Bounds checker
342 // complains about deallocating
343 // arrays of wxPoints if wxPoint is a class.
344
345 #define wxUSE_PORTABLE_FONTS_IN_OS2 0
346 // Define 1 to use new portable font scheme in Windows
347 // (used by default under X)
348
349 #define wxUSE_GENERIC_DIALOGS_IN_OS2 0
350 // Define 1 to use generic dialogs in Windows, even though
351 // they duplicate native common dialog (e.g. wxColourDialog)
352
353 #define wxUSE_SNGLINST_CHECKER 1
354
355 #define wxUSE_GEOMETRY 1
356 // needed for wxCanvas
357 #define wxUSE_MENUS 1
358
359 #define wxUSE_WAVE 1
360
361 #define wxUSE_REGEX 1
362
363 #define wxUSE_FINDREPLDLG 1 // Find replace dialog
364
365 #define wxUSE_PALETTE 1
366
367 #define wxUSE_CMDLINE_PARSER 1
368
369 #define wxUSE_SPLASH 1
370
371 #if (!(defined(WXUSINGDLL) || defined(WXMAKINGDLL)))
372 #define NO_TEXT_WINDOW_STREAM 1 // defined in textctrl.h for DLL builds
373 #endif
374
375 #endif
376 // _WX_SETUP_H_