📄 setup0.h
字号:
// wxValidator class and related methods#define wxUSE_VALIDATORS 1// ----------------------------------------------------------------------------// common dialogs// ----------------------------------------------------------------------------// On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g.// file selector, printer dialog). Switching this off also switches off the// printing architecture and interactive wxPrinterDC.//// Default is 1//// Recommended setting: 1 (unless it really doesn't work)#define wxUSE_COMMON_DIALOGS 1// wxBusyInfo displays window with message when app is busy. Works in same way// as wxBusyCursor#define wxUSE_BUSYINFO 1// Use single/multiple choice dialogs.//// Default is 1//// Recommended setting: 1 (used in the library itself)#define wxUSE_CHOICEDLG 1// Use colour picker dialog//// Default is 1//// Recommended setting: 1#define wxUSE_COLOURDLG 1// wxDirDlg class for getting a directory name from user#define wxUSE_DIRDLG 1// TODO: setting to choose the generic or native one// Use file open/save dialogs.//// Default is 1//// Recommended setting: 1 (used in many places in the library itself)#define wxUSE_FILEDLG 1// Use find/replace dialogs.//// Default is 1//// Recommended setting: 1 (but may be safely set to 0)#define wxUSE_FINDREPLDLG 1// Use font picker dialog//// Default is 1//// Recommended setting: 1 (used in the library itself)#define wxUSE_FONTDLG 1// Use wxMessageDialog and wxMessageBox.//// Default is 1//// Recommended setting: 1 (used in the library itself)#define wxUSE_MSGDLG 1// progress dialog class for lengthy operations#define wxUSE_PROGRESSDLG 1// support for startup tips (wxShowTip &c)#define wxUSE_STARTUP_TIPS 1// text entry dialog and wxGetTextFromUser function#define wxUSE_TEXTDLG 1// number entry dialog#define wxUSE_NUMBERDLG 1// splash screen class#define wxUSE_SPLASH 1// wizards#define wxUSE_WIZARDDLG 1// Compile in wxAboutBox() function showing the standard "About" dialog.//// Default is 1//// Recommended setting: 1 but can be set to 0 to save some space if you don't// use this function#define wxUSE_ABOUTDLG 1// ----------------------------------------------------------------------------// Metafiles support// ----------------------------------------------------------------------------// Windows supports the graphics format known as metafile which is, though not// portable, is widely used under Windows and so is supported by wxWin (under// Windows only, of course). Win16 (Win3.1) used the so-called "Window// MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in// Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by// default, WMFs will be used under Win16 and EMFs under Win32. This may be// changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting// wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile// in any metafile related classes at all.//// Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.//// Recommended setting: default or 0 for everything for portable programs.#define wxUSE_METAFILE 1#define wxUSE_ENH_METAFILE 1#define wxUSE_WIN_METAFILES_ALWAYS 0// ----------------------------------------------------------------------------// Big GUI components// ----------------------------------------------------------------------------// Set to 0 to disable MDI support.//// Requires wxUSE_NOTEBOOK under platforms other than MSW.//// Default is 1.//// Recommended setting: 1, can be safely set to 0.#define wxUSE_MDI 1// Set to 0 to disable document/view architecture#define wxUSE_DOC_VIEW_ARCHITECTURE 1// Set to 0 to disable MDI document/view architecture//// Requires wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE#define wxUSE_MDI_ARCHITECTURE 1// Set to 0 to disable print/preview architecture code#define wxUSE_PRINTING_ARCHITECTURE 1// wxHTML sublibrary allows to display HTML in wxWindow programs and much,// much more.//// Default is 1.//// Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a// smaller library.#define wxUSE_HTML 1// Setting wxUSE_GLCANVAS to 1 enables OpenGL support. You need to have OpenGL// headers and libraries to be able to compile the library with wxUSE_GLCANVAS// set to 1. Note that for some compilers (notably Microsoft Visual C++) you// will need to manually add opengl32.lib and glu32.lib to the list of// libraries linked with your program if you use OpenGL.//// Default is 0.//// Recommended setting: 1 if you intend to use OpenGL, 0 otherwise#define wxUSE_GLCANVAS 0// wxRichTextCtrl allows editing of styled text.//// Default is 1.//// Recommended setting: 1, set to 0 if you want compile a// smaller library.#define wxUSE_RICHTEXT 1// ----------------------------------------------------------------------------// Data transfer// ----------------------------------------------------------------------------// Use wxClipboard class for clipboard copy/paste.//// Default is 1.//// Recommended setting: 1#define wxUSE_CLIPBOARD 1// Use wxDataObject and related classes. Needed for clipboard and OLE drag and// drop//// Default is 1.//// Recommended setting: 1#define wxUSE_DATAOBJ 1// Use wxDropTarget and wxDropSource classes for drag and drop (this is// different from "built in" drag and drop in wxTreeCtrl which is always// available). Requires wxUSE_DATAOBJ.//// Default is 1.//// Recommended setting: 1#define wxUSE_DRAG_AND_DROP 1// Use wxAccessible for enhanced and customisable accessibility.// Depends on wxUSE_OLE.//// Default is 0.//// Recommended setting (at present): 0#define wxUSE_ACCESSIBILITY 0// ----------------------------------------------------------------------------// miscellaneous settings// ----------------------------------------------------------------------------// wxSingleInstanceChecker class allows to verify at startup if another program// instance is running (it is only available under Win32)//// Default is 1//// Recommended setting: 1 (the class is tiny, disabling it won't save much// space)#define wxUSE_SNGLINST_CHECKER 1#define wxUSE_DRAGIMAGE 1#define wxUSE_IPC 1 // 0 for no interprocess comms#define wxUSE_HELP 1 // 0 for no help facility// Should we use MS HTML help for wxHelpController? If disabled, neither// wxCHMHelpController nor wxBestHelpController are available.//// Default is 1 under MSW, 0 is always used for the other platforms.//// Recommended setting: 1, only set to 0 if you have trouble compiling// wxCHMHelpController (could be a problem with really ancient compilers)#define wxUSE_MS_HTML_HELP 1// Use wxHTML-based help controller?#define wxUSE_WXHTML_HELP 1#define wxUSE_RESOURCES 0 // 0 for no wxGetResource/wxWriteResource#define wxUSE_CONSTRAINTS 1 // 0 for no window layout constraint system#define wxUSE_SPLINES 1 // 0 for no splines#define wxUSE_MOUSEWHEEL 1 // Include mouse wheel support// ----------------------------------------------------------------------------// postscript support settings// ----------------------------------------------------------------------------// Set to 1 for PostScript device context.#define wxUSE_POSTSCRIPT 0// Set to 1 to use font metric files in GetTextExtent#define wxUSE_AFM_FOR_POSTSCRIPT 1// ----------------------------------------------------------------------------// database classes// ----------------------------------------------------------------------------// Define 1 to use ODBC classes#define wxUSE_ODBC 0// For backward compatibility reasons, this parameter now only controls the// default scrolling method used by cursors. This default behavior can be// overriden by setting the second param of wxDB::wxDbGetConnection() or// wxDb() constructor to indicate whether the connection (and any wxDbTable()s// that use the connection) should support forward only scrolling of cursors,// or both forward and backward support for backward scrolling cursors is// dependent on the data source as well as the ODBC driver being used.#define wxODBC_FWD_ONLY_CURSORS 1// Default is 0. Set to 1 to use the deprecated classes, enum types, function,// member variables. With a setting of 1, full backward compatibility with the// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,// as future development will be done only on the non-deprecated// functions/classes/member variables/etc.#define wxODBC_BACKWARD_COMPATABILITY 0// ----------------------------------------------------------------------------// other compiler (mis)features// ----------------------------------------------------------------------------// Set this to 0 if your compiler can't cope with omission of prototype// parameters.//// Default is 1.//// Recommended setting: 1 (should never need to set this to 0)#define REMOVE_UNUSED_ARG 1// VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix// them. Set to 1 for <iostream.h>, 0 for <iostream>. Note that VC++ 7.1// and later doesn't support wxUSE_IOSTREAMH == 1 and so <iostream> will be// used anyhow.//// Default is 1.//// Recommended setting: whatever your compiler likes more#define wxUSE_IOSTREAMH 1// ----------------------------------------------------------------------------// image format support// ----------------------------------------------------------------------------// wxImage supports many different image formats which can be configured at// compile-time. BMP is always supported, others are optional and can be safely// disabled if you don't plan to use images in such format sometimes saving// substantial amount of code in the final library.//// Some formats require an extra library which is included in wxWin sources// which is mentioned if it is the case.// Set to 1 for wxImage support (recommended).#define wxUSE_IMAGE 1// Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB.#define wxUSE_LIBPNG 1// Set to 1 for JPEG format support (requires libjpeg)#define wxUSE_LIBJPEG 1// Set to 1 for TIFF format support (requires libtiff)#define wxUSE_LIBTIFF 1// Set to 1 for TGA format support (loading only)#define wxUSE_TGA 1// Set to 1 for GIF format support#define wxUSE_GIF 1// Set to 1 for PNM format support#define wxUSE_PNM 1// Set to 1 for PCX format support#define wxUSE_PCX 1// Set to 1 for IFF format support (Amiga format)#define wxUSE_IFF 0// Set to 1 for XPM format support#define wxUSE_XPM 1// Set to 1 for MS Icons and Cursors format support#define wxUSE_ICO_CUR 1// Set to 1 to compile in wxPalette class#define wxUSE_PALETTE 1// ----------------------------------------------------------------------------// wxUniversal-only options// ----------------------------------------------------------------------------// Set to 1 to enable compilation of all themes, this is the default#define wxUSE_ALL_THEMES 1// Set to 1 to enable the compilation of individual theme if wxUSE_ALL_THEMES// is unset, if it is set these options are not used; notice that metal theme// uses Win32 one#define wxUSE_THEME_GTK 0#define wxUSE_THEME_METAL 0#define wxUSE_THEME_MONO 0#define wxUSE_THEME_WIN32 0/* --- end common options --- */// ----------------------------------------------------------------------------// Mac-specific settings// ----------------------------------------------------------------------------// override some settings for Metrowerks//// VZ: isn't this file only used when building with Metrowerks anyhow?// CS: no, it is also used by the XCode projects #ifdef __MWERKS__ #undef wxUSE_DEBUG_CONTEXT #define wxUSE_DEBUG_CONTEXT 1 #undef wxUSE_STD_IOSTREAM // CS: I have to set this to 0 now, as shared builds are having problems #define wxUSE_STD_IOSTREAM 0#endif// things not implemented under Mac#undef wxUSE_POPUPWIN#define wxUSE_POPUPWIN 0#undef wxUSE_TIPWINDOW#define wxUSE_TIPWINDOW 0#undef wxUSE_TOGGLEBTN#define wxUSE_TOGGLEBTN 0#undef wxUSE_STACKWALKER#define wxUSE_STACKWALKER 0// wxWebKit is a wrapper for Apple's WebKit framework, use it if you want to// embed the Safari browser control// 0 by default because of Jaguar compatibility problems#define wxUSE_WEBKIT 0// Set to 0 for no libmspack#define wxUSE_LIBMSPACK 0// native toolbar does not support embedding controls yet, please test by setting to 1#define wxMAC_USE_NATIVE_TOOLBAR 0#endif // _WX_SETUP_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -