📄 setup0.h
字号:
/////////////////////////////////////////////////////////////////////////////// Name: setup.h// Purpose: Configuration for the library// Author: Stefan Csomor// Modified by: Stefan Csomor// Created: 1998-01-01// RCS-ID: $Id: setup0.h,v 1.96 2006/11/09 00:54:57 VZ Exp $// Copyright: (c) Stefan Csomor// Licence: wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _WX_SETUP_H_#define _WX_SETUP_H_/* --- start common options --- */// ----------------------------------------------------------------------------// global settings// ----------------------------------------------------------------------------// define this to 0 when building wxBase library - this can also be done from// makefile/project file overriding the value here#ifndef wxUSE_GUI #define wxUSE_GUI 1#endif // wxUSE_GUI// ----------------------------------------------------------------------------// compatibility settings// ----------------------------------------------------------------------------// This setting determines the compatibility with 2.4 API: set it to 1 to// enable it but please consider updating your code instead.//// Default is 0//// Recommended setting: 0 (please update your code)#define WXWIN_COMPATIBILITY_2_4 0// This setting determines the compatibility with 2.6 API: set it to 0 to// flag all cases of using deprecated functions.//// Default is 1 but please try building your code with 0 as the default will// change to 0 in the next version and the deprecated functions will disappear// in the version after it completely.//// Recommended setting: 0 (please update your code)#define WXWIN_COMPATIBILITY_2_6 1// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when// default system font is used for wxWindow::GetCharWidth/Height() instead of// the current font.//// Default is 0//// Recommended setting: 0#define wxDIALOG_UNIT_COMPATIBILITY 0// ----------------------------------------------------------------------------// debugging settings// ----------------------------------------------------------------------------// Generic comment about debugging settings: they are very useful if you don't// use any other memory leak detection tools such as Purify/BoundsChecker, but// are probably redundant otherwise. Also, Visual C++ CRT has the same features// as wxWidgets memory debugging subsystem built in since version 5.0 and you// may prefer to use it instead of built in memory debugging code because it is// faster and more fool proof.//// Using VC++ CRT memory debugging is enabled by default in debug mode// (__WXDEBUG__) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0)// and if __NO_VC_CRTDBG__ is not defined.// If 1, enables wxDebugContext, for writing error messages to file, etc. If// __WXDEBUG__ is not defined, will still use the normal memory operators.//// Default is 0//// Recommended setting: 0#define wxUSE_DEBUG_CONTEXT 0// If 1, enables debugging versions of wxObject::new and wxObject::delete *IF*// __WXDEBUG__ is also defined.//// WARNING: this code may not work with all architectures, especially if// alignment is an issue. This switch is currently ignored for mingw / cygwin//// Default is 0//// Recommended setting: 1 if you are not using a memory debugging tool, else 0#define wxUSE_MEMORY_TRACING 0// In debug mode, cause new and delete to be redefined globally.// If this causes problems (e.g. link errors which is a common problem// especially if you use another library which also redefines the global new// and delete), set this to 0.// This switch is currently ignored for mingw / cygwin//// Default is 0//// Recommended setting: 0#define wxUSE_GLOBAL_MEMORY_OPERATORS 0// In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If// this causes problems (e.g. link errors), set this to 0. You may need to set// this to 0 if using templates (at least for VC++). This switch is currently// ignored for mingw / cygwin / CodeWarrior//// Default is 0//// Recommended setting: 0#define wxUSE_DEBUG_NEW_ALWAYS 0// wxHandleFatalExceptions() may be used to catch the program faults at run// time and, instead of terminating the program with a usual GPF message box,// call the user-defined wxApp::OnFatalException() function. If you set// wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work.//// This setting is for Win32 only and can only be enabled if your compiler// supports Win32 structured exception handling (currently only VC++ does)//// Default is 1//// Recommended setting: 1 if your compiler supports it.#define wxUSE_ON_FATAL_EXCEPTION 1// Set this to 1 to be able to generate a human-readable (unlike// machine-readable minidump created by wxCrashReport::Generate()) stack back// trace when your program crashes using wxStackWalker//// Default is 1 if supported by the compiler.//// Recommended setting: 1, set to 0 if your programs never crash#define wxUSE_STACKWALKER 1// Set this to 1 to compile in wxDebugReport class which allows you to create// and optionally upload to your web site a debug report consisting of back// trace of the crash (if wxUSE_STACKWALKER == 1) and other information.//// Default is 1 if supported by the compiler.//// Recommended setting: 1, it is compiled into a separate library so there// is no overhead if you don't use it#define wxUSE_DEBUGREPORT 1// ----------------------------------------------------------------------------// Unicode support// ----------------------------------------------------------------------------// Set wxUSE_UNICODE to 1 to compile wxWidgets in Unicode mode: wxChar will be// defined as wchar_t, wxString will use Unicode internally. If you set this// to 1, you must use wxT() macro for all literal strings in the program.//// Unicode is currently only fully supported under Windows NT/2000/XP// (Windows 9x doesn't support it and the programs compiled in Unicode mode// will not run under 9x -- but see wxUSE_UNICODE_MSLU below).//// Default is 0//// Recommended setting: 0 (unless you only plan to use Windows NT/2000/XP)#ifndef wxUSE_UNICODE #define wxUSE_UNICODE 0#endif// Setting wxUSE_WCHAR_T to 1 gives you some degree of Unicode support without// compiling the program in Unicode mode. More precisely, it will be possible// to construct wxString from a wide (Unicode) string and convert any wxString// to Unicode.//// Default is 1//// Recommended setting: 1#define wxUSE_WCHAR_T 1// ----------------------------------------------------------------------------// global features// ----------------------------------------------------------------------------// Compile library in exception-safe mode? If set to 1, the library will try to// behave correctly in presence of exceptions (even though it still will not// use the exceptions itself) and notify the user code about any unhandled// exceptions. If set to 0, propagation of the exceptions through the library// code will lead to undefined behaviour -- but the code itself will be// slightly smaller and faster.//// Note that like wxUSE_THREADS this option is automatically set to 0 if// wxNO_EXCEPTIONS is defined.//// Default is 1//// Recommended setting: depends on whether you intend to use C++ exceptions// in your own code (1 if you do, 0 if you don't)#define wxUSE_EXCEPTIONS 1// Set wxUSE_EXTENDED_RTTI to 1 to use extended RTTI//// Default is 0//// Recommended setting: 0 (this is still work in progress...)#define wxUSE_EXTENDED_RTTI 0// Set wxUSE_STL to 1 to derive wxList(Foo) and wxArray(Foo) from// std::list<Foo*> and std::vector<Foo*>, with a compatibility interface,// and for wxHashMap to be implemented with templates.//// Default is 0//// Recommended setting: YMMV#define wxUSE_STL 0// Support for message/error logging. This includes wxLogXXX() functions and// wxLog and derived classes. Don't set this to 0 unless you really know what// you are doing.//// Default is 1//// Recommended setting: 1 (always)#define wxUSE_LOG 1// Recommended setting: 1#define wxUSE_LOGWINDOW 1// Recommended setting: 1#define wxUSE_LOGGUI 1// Recommended setting: 1#define wxUSE_LOG_DIALOG 1// Support for command line parsing using wxCmdLineParser class.//// Default is 1//// Recommended setting: 1 (can be set to 0 if you don't use the cmd line)#define wxUSE_CMDLINE_PARSER 1// Support for multithreaded applications: if 1, compile in thread classes// (thread.h) and make the library a bit more thread safe. Although thread// support is quite stable by now, you may still consider recompiling the// library without it if you have no use for it - this will result in a// somewhat smaller and faster operation.//// Notice that if wxNO_THREADS is defined, wxUSE_THREADS is automatically reset// to 0 in wx/chkconf.h, so, for example, if you set USE_THREADS to 0 in// build/msw/config.* file this value will have no effect.//// Default is 1//// Recommended setting: 0 unless you do plan to develop MT applications#define wxUSE_THREADS 1// If enabled, compiles wxWidgets streams classes//// wx stream classes are used for image IO, process IO redirection, network// protocols implementation and much more and so disabling this results in a// lot of other functionality being lost.//// Default is 1//// Recommended setting: 1 as setting it to 0 disables many other things#define wxUSE_STREAMS 1// Use standard C++ streams if 1 instead of wx streams in some places. If// disabled (default), wx streams are used everywhere and wxWidgets doesn't// depend on the standard streams library.//// Notice that enabling this does not replace wx streams with std streams// everywhere, in a lot of places wx streams are used no matter what.//// Default is 0//// Recommended setting: 1 if you use the standard streams anyhow and so// dependency on the standard streams library is not a// problem#define wxUSE_STD_IOSTREAM 0// Enable conversion to standard C++ string if 1.//// Default is 1 for most compilers.//// Currently the Digital Mars and Watcom compilers come without standard C++// library headers by default, wxUSE_STD_STRING can be set to 1 if you do have// them (e.g. from STLPort).//// VC++ 5.0 does include standard C++ library header, however they produce// many warnings that can't be turned off when compiled at warning level 4.#if defined(__DMC__) || defined(__WATCOMC__) \ || (defined(_MSC_VER) && _MSC_VER < 1200) #define wxUSE_STD_STRING 0#else #define wxUSE_STD_STRING 1#endif// Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.// Note that if the system's implementation does not support positional// parameters, setting this to 1 forces the use of the wxWidgets implementation// of wxVsnprintf. The standard vsnprintf() supports positional parameters on// many Unix systems but usually doesn't under Windows.//// Positional parameters are very useful when translating a program since using// them in formatting strings allow translators to correctly reorder the// translated sentences.//// Default is 1//// Recommended setting: 1 if you want to support multiple languages#define wxUSE_PRINTF_POS_PARAMS 1// ----------------------------------------------------------------------------// non GUI features selection// ----------------------------------------------------------------------------// Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit// integer which is implemented in terms of native 64 bit integers if any or// uses emulation otherwise.//// This class is required by wxDateTime and so you should enable it if you want// to use wxDateTime. For most modern platforms, it will use the native 64 bit// integers in which case (almost) all of its functions are inline and it// almost does not take any space, so there should be no reason to switch it// off.//// Recommended setting: 1#define wxUSE_LONGLONG 1// Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level// POSIX functions for file access, wxFFile uses ANSI C stdio.h functions.//// Default is 1//// Recommended setting: 1 (wxFile is highly recommended as it is required by// i18n code, wxFileConfig and others)#define wxUSE_FILE 1#define wxUSE_FFILE 1// Use wxFSVolume class providing access to the configured/active mount points//// Default is 1//// Recommended setting: 1 (but may be safely disabled if you don't use it)#define wxUSE_FSVOLUME 1// Use wxStandardPaths class which allows to retrieve some standard locations// in the file system//// Default is 1//// Recommended setting: 1 (may be disabled to save space, but not much)#define wxUSE_STDPATHS 1// use wxTextBuffer class: required by wxTextFile#define wxUSE_TEXTBUFFER 1// use wxTextFile class: requires wxFile and wxTextBuffer, required by// wxFileConfig#define wxUSE_TEXTFILE 1// i18n support: _() macro, wxLocale class. Requires wxTextFile.#define wxUSE_INTL 1// Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which// allow to manipulate dates, times and time intervals. wxDateTime replaces the// old wxTime and wxDate classes which are still provided for backwards// compatibility (and implemented in terms of wxDateTime).//// Note that this class is relatively new and is still officially in alpha// stage because some features are not yet (fully) implemented. It is already// quite useful though and should only be disabled if you are aiming at// absolutely minimal version of the library.//// Requires: wxUSE_LONGLONG//// Default is 1//// Recommended setting: 1#define wxUSE_DATETIME 1// Set wxUSE_TIMER to 1 to compile wxTimer class//// Default is 1//// Recommended setting: 1#define wxUSE_TIMER 1// Use wxStopWatch clas.//// Default is 1//// Recommended setting: 1 (needed by wxSocket)#define wxUSE_STOPWATCH 1// Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes// which allow the application to store its settings in the persistent// storage. Setting this to 1 will also enable on-demand creation of the// global config object in wxApp.//// See also wxUSE_CONFIG_NATIVE below.//// Recommended setting: 1#define wxUSE_CONFIG 1// If wxUSE_CONFIG is 1, you may choose to use either the native config// classes under Windows (using .INI files under Win16 and the registry under// Win32) or the portable text file format used by the config classes under// Unix.//// Default is 1 to use native classes. Note that you may still use// wxFileConfig even if you set this to 1 - just the config object created by// default for the applications needs will be a wxRegConfig or wxIniConfig and// not wxFileConfig.//// Recommended setting: 1#define wxUSE_CONFIG_NATIVE 1// If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows// to connect/disconnect from the network and be notified whenever the dial-up// network connection is established/terminated. Requires wxUSE_DYNAMIC_LOADER.//// Default is 1.//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -