]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/setup.h
Some changes in a vain attempt to make Salford C++ work; added FAQ files;
[wxWidgets.git] / include / wx / msw / setup.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 * General features
17 *
18 */
19
20 #define wxUSE_CONFIG 1
21 // Use wxConfig, with CreateConfig in wxApp
22 #define _WX_GOODCOMPILER__
23 // gcc can have problems, but Windows compilers
24 // are generally OK.
25 #define WXWIN_COMPATIBILITY 0
26 // Compatibility with 1.68 API.
27 // Level 0: no backward compatibility, all new features
28 // Level 1: Some compatibility. In fact
29 // the compatibility code is now very minimal so there
30 // is little advantage to setting it to 1.
31
32 #define wxUSE_AUTOTRANS 1
33 // Define wxTString
34 #define wxUSE_POSTSCRIPT 0
35 // 0 for no PostScript device context
36 #define wxUSE_AFM_FOR_POSTSCRIPT 0
37 // 1 to use font metric files in GetTextExtent
38 #define wxUSE_METAFILE 1
39 // 0 for no Metafile and metafile device context
40 #define wxUSE_FORM 0
41 // 0 for no wxForm
42 #define wxUSE_IPC 1
43 // 0 for no interprocess comms
44 // Note: wxHELP uses IPC under X so these are interdependent!
45 #define wxUSE_HELP 1
46 // 0 for no help facility
47 #define wxUSE_RESOURCES 1
48 // 0 for no wxGetResource/wxWriteResource
49 #define wxUSE_CONSTRAINTS 1
50 // 0 for no window layout constraint system
51
52 #define wxUSE_TIMEDATE 1
53 // 0 for no wxTime/wxDate classes
54
55 #define wxUSE_CLIPBOARD 1
56 // 0 for no clipboard functions
57 #define wxUSE_SPLINES 1
58 // 0 for no splines
59 #define wxUSE_XFIG_SPLINE_CODE 1
60 // 1 for XFIG spline code, 0 for AIAI spline code.
61 // AIAI spline code is slower, but freer of copyright issues.
62
63 #define wxUSE_DRAG_AND_DROP 1
64 // 0 for no drag and drop
65
66 #define wxUSE_TOOLBAR 1
67 // Define 1 to use toolbar classes
68 #define wxUSE_BUTTONBAR 1
69 // Define 1 to use buttonbar classes (enhanced toolbar
70 // for MS Windows)
71 #define wxUSE_GAUGE 1
72 // Define 1 to use Microsoft's gauge (Windows)
73 // or Bull's gauge (Motif) library (both in contrib).
74 #define wxUSE_COMBOBOX 1
75 // Define 1 to use COMBOXBOX control (Windows)
76 // or FWW's ComboBox widget (Motif).
77 #define wxUSE_RADIOBUTTON 1
78 // Define 1 to use radio button control
79
80 #define wxUSE_SCROLLBAR 1
81 // Define 1 to compile contributed wxScrollBar class
82 #define wxUSE_XPM_IN_MSW 1
83 // Define 1 to support the XPM package in wxBitmap.
84 #define wxUSE_IMAGE_LOADING_IN_MSW 1
85 // Use dynamic DIB loading/saving code in utils/dib under MSW.
86 #define wxUSE_RESOURCE_LOADING_IN_MSW 1
87 // Use dynamic icon/cursor loading/saving code
88 // under MSW.
89 #define wxUSE_WX_RESOURCES 1
90 // Use .wxr resource mechanism (requires PrologIO library)
91
92 // BC++/Win16 can't cope with the amount of data in resource.cpp
93 #if defined(__WIN16__) && defined(__BORLANDC__)
94 #undef wxUSE_WX_RESOURCES
95 #define wxUSE_WX_RESOURCES 0
96 #endif
97
98 #define HAVE_SOCKET 1
99 // Use WinSock if 1
100 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
101 // Set to 0 to disable document/view architecture
102 #define wxUSE_PRINTING_ARCHITECTURE 1
103 // Set to 0 to disable print/preview architecture code
104 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
105 // Set to 0 to disable PostScript print/preview architecture code
106 // under Windows (just use Windows printing).
107 #define wxUSE_DYNAMIC_CLASSES 1
108 // If 1, enables provision of run-time type information.
109 // NOW MANDATORY: don't change.
110 #define wxUSE_MEMORY_TRACING 1
111 // If 1, enables debugging versions of wxObject::new and
112 // wxObject::delete *IF* __WXDEBUG__ is also defined.
113 // WARNING: this code may not work with all architectures, especially
114 // if alignment is an issue.
115 #define wxUSE_DEBUG_CONTEXT 1
116 // If 1, enables wxDebugContext, for
117 // writing error messages to file, etc.
118 // If __WXDEBUG__ is not defined, will still use
119 // normal memory operators.
120 // It's recommended to set this to 1,
121 // since you may well need to output
122 // an error log in a production
123 // version (or non-debugging beta)
124 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
125 // In debug mode, cause new and delete to be redefined globally.
126 // If this causes problems (e.g. link errors), set this to 0.
127
128 #define wxUSE_DEBUG_NEW_ALWAYS 1
129 // In debug mode, causes new to be defined to
130 // be WXDEBUG_NEW (see object.h).
131 // If this causes problems (e.g. link errors), set this to 0.
132 // You may need to set this to 0 if using templates (at least
133 // for VC++).
134
135 #define REMOVE_UNUSED_ARG 1
136 // Set this to 0 if your compiler can't cope
137 // with omission of prototype parameters.
138
139 #define wxUSE_ODBC 1
140 // Define 1 to use ODBC classes
141
142 #ifndef __MWERKS__
143 #define wxUSE_IOSTREAMH 1
144 #else
145 #define wxUSE_IOSTREAMH 0
146 #endif
147 // VC++ 4.2 and above allows <iostream> and <iostream.h>
148 // but you can't mix them. Set to 1 for <iostream.h>,
149 // 0 for <iostream>
150
151 #define wxUSE_WXCONFIG 1
152 // if enabled, compiles built-in OS independent wxConfig
153 // class and it's file (any platform) and registry (Win)
154 // based implementations
155 #define wxUSE_THREADS 1
156 // support for multithreaded applications: if
157 // 1, compile in thread classes (thread.h)
158 // and make the library thread safe
159 #define wxUSE_ZLIB 1
160 // Use zlib for compression in streams and PNG code
161 #define wxUSE_LIBPNG 1
162 // Use PNG bitmap code
163 #define wxUSE_STD_IOSTREAM 1
164 // Use standard C++ streams if 1. If 0, use wxWin
165 // streams implementation.
166
167 /*
168 * Finer detail
169 *
170 */
171
172 #define wxUSE_APPLE_IEEE 1
173 // if enabled, the float codec written by Apple
174 // will be used to write, in a portable way,
175 // float on the disk
176
177 /*
178 * MS Windows/Windows NT
179 *
180 */
181
182 #if defined(__WIN95__)
183 #define CTL3D 0
184 #else
185 #define CTL3D 1
186 // Define 1 to use Microsoft CTL3D library.
187 // See note above about using FAFA and CTL3D.
188 #endif
189
190 #define wxUSE_COMMON_DIALOGS 1
191 // On rare occasions (e.g. using DJGPP) may want
192 // to omit common dialogs
193 // (e.g. file selector, printer dialog).
194 // Switching this off also switches off
195 // the printing architecture and interactive
196 // wxPrinterDC.
197 #define wxUSE_ITSY_BITSY 1
198 // Define 1 to use Microsoft's ItsyBitsy
199 // small title bar library, for wxMiniFrame
200 #define wxUSE_BITMAP_MESSAGE 1
201 // Define 1 to use bitmap messages.
202 #define wxUSE_PORTABLE_FONTS_IN_MSW 0
203 // Define 1 to use new portable font scheme in Windows
204 // (used by default under X)
205 #define FONT_SIZE_COMPATIBILITY 0
206 // Define 1 for font size to be backward compatible
207 // to 1.63 and earlier. 1.64 and later define point
208 // sizes to be compatible with Windows.
209 #define wxUSE_GENERIC_DIALOGS_IN_MSW 1
210 // Define 1 to use generic dialogs in Windows, even though
211 // they duplicate native common dialog (e.g. wxColourDialog)
212 #define wxUSE_PENWINDOWS 0
213 // Set to 1 to use PenWindows
214
215 #define wxUSE_OWNER_DRAWN 1
216 // Owner-drawn menus and listboxes
217
218 #define wxUSE_NATIVE_STATUSBAR 1
219 // Set to 0 to use cross-platform wxStatusBar
220 #define wxUSE_DBWIN32 1
221 // Use Andrew Tucker's OutputDebugString implementation
222 // (required on Win95 only). See utils.cpp.
223
224 /*
225 * Any platform
226 *
227 */
228
229 #define wxUSE_TYPEDEFS 0
230 // Use typedefs not classes for wxPoint
231 // and others, to reduce overhead and avoid
232 // MS C7 memory bug. Bounds checker
233 // complains about deallocating
234 // arrays of wxPoints if wxPoint is a class.
235
236 #if (!defined(WIN32) && !defined(__WIN32__)) || defined(__GNUWIN32__) || defined(__BORLANDC__)
237 // Can't use OLE drag and drop in Windows 3.1 because we don't know how
238 // to implement UUIDs
239 // GnuWin32 doesn't have appropriate headers for e.g. IUnknown.
240 #undef wxUSE_DRAG_AND_DROP
241 #define wxUSE_DRAG_AND_DROP 0
242 #endif
243
244 // Only WIN32 supports wxStatusBar95
245 #if !defined(__WIN32__) && wxUSE_NATIVE_STATUSBAR
246 #undef wxUSE_NATIVE_STATUSBAR
247 #define wxUSE_NATIVE_STATUSBAR 0
248 #endif
249
250 // Salford C++ doesn't like some of the memory operator definitions
251 #ifdef __SALFORDC__
252 #undef wxUSE_MEMORY_TRACING
253 #define wxUSE_MEMORY_TRACING 0
254
255 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
256 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
257
258 #undef wxUSE_DEBUG_NEW_ALWAYS
259 #define wxUSE_DEBUG_NEW_ALWAYS 0
260
261 #undef wxUSE_THREADS
262 #define wxUSE_THREADS 0
263
264 #undef wxUSE_DBWIN32
265 #define wxUSE_DBWIN32 0
266
267 #undef wxUSE_OWNER_DRAWN
268 #define wxUSE_OWNER_DRAWN 0
269 #endif
270
271 // Minimal setup e.g. for compiling small utilities
272 #define MINIMAL_WXWINDOWS_SETUP 0
273
274 #if MINIMAL_WXWINDOWS_SETUP
275 #undef wxUSE_POSTSCRIPT
276 # define wxUSE_POSTSCRIPT 0
277 #undef wxUSE_PRINTING_ARCHITECTURE
278 # define wxUSE_PRINTING_ARCHITECTURE 0
279 #undef wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
280 # define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
281 #undef wxUSE_METAFILE
282 # define wxUSE_METAFILE 0
283 #undef wxUSE_FORM
284 # define wxUSE_FORM 0
285 #undef wxUSE_SPLINES
286 # define wxUSE_SPLINES 0
287 #undef wxUSE_SCROLLBAR
288 # define wxUSE_SCROLLBAR 0
289 #undef wxUSE_COMBOBOX
290 # define wxUSE_COMBOBOX 0
291 #undef wxUSE_RADIOBUTTON
292 # define wxUSE_RADIOBUTTON 0
293 #undef wxUSE_XPM_IN_MSW
294 # define wxUSE_XPM_IN_MSW 0
295 #undef wxUSE_WX_RESOURCES
296 # define wxUSE_WX_RESOURCES 0
297 #undef wxUSE_DOC_VIEW_ARCHITECTURE
298 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
299 #undef wxUSE_GNU_WXSTRING
300 # define wxUSE_GNU_WXSTRING 0
301 #undef wxUSE_ODBC
302 # define wxUSE_ODBC 0
303 #undef wxUSE_TIMEDATE
304 # define wxUSE_TIMEDATE 0
305 #undef CTL3D
306 # define CTL3D 0
307 #undef wxUSE_ITSY_BITSY
308 # define wxUSE_ITSY_BITSY 0
309 #undef wxUSE_IMAGE_LOADING_IN_MSW
310 # define wxUSE_IMAGE_LOADING_IN_MSW 0
311 #undef wxUSE_GAUGE
312 # define wxUSE_GAUGE 0
313 #undef wxUSE_RESOURCE_LOADING_IN_MSW
314 # define wxUSE_RESOURCE_LOADING_IN_MSW 0
315 #undef wxUSE_DRAG_AND_DROP
316 # define wxUSE_DRAG_AND_DROP 0
317 #endif
318
319 #endif
320 // _WX_SETUP_H_