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