setup.h 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/os2/setup.h
  3. // Purpose: Configuration for the library
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_SETUP_H_
  11. #define _WX_SETUP_H_
  12. /* --- start common options --- */
  13. // ----------------------------------------------------------------------------
  14. // global settings
  15. // ----------------------------------------------------------------------------
  16. // define this to 0 when building wxBase library - this can also be done from
  17. // makefile/project file overriding the value here
  18. #ifndef wxUSE_GUI
  19. #define wxUSE_GUI 1
  20. #endif // wxUSE_GUI
  21. // ----------------------------------------------------------------------------
  22. // compatibility settings
  23. // ----------------------------------------------------------------------------
  24. // This setting determines the compatibility with 2.6 API: set it to 0 to
  25. // flag all cases of using deprecated functions.
  26. //
  27. // Default is 1 but please try building your code with 0 as the default will
  28. // change to 0 in the next version and the deprecated functions will disappear
  29. // in the version after it completely.
  30. //
  31. // Recommended setting: 0 (please update your code)
  32. #define WXWIN_COMPATIBILITY_2_6 0
  33. // This setting determines the compatibility with 2.8 API: set it to 0 to
  34. // flag all cases of using deprecated functions.
  35. //
  36. // Default is 1 but please try building your code with 0 as the default will
  37. // change to 0 in the next version and the deprecated functions will disappear
  38. // in the version after it completely.
  39. //
  40. // Recommended setting: 0 (please update your code)
  41. #define WXWIN_COMPATIBILITY_2_8 1
  42. // MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
  43. // default system font is used for wxWindow::GetCharWidth/Height() instead of
  44. // the current font.
  45. //
  46. // Default is 0
  47. //
  48. // Recommended setting: 0
  49. #define wxDIALOG_UNIT_COMPATIBILITY 0
  50. // ----------------------------------------------------------------------------
  51. // debugging settings
  52. // ----------------------------------------------------------------------------
  53. // wxDEBUG_LEVEL will be defined as 1 in wx/debug.h so normally there is no
  54. // need to define it here. You may do it for two reasons: either completely
  55. // disable/compile out the asserts in release version (then do it inside #ifdef
  56. // NDEBUG) or, on the contrary, enable more asserts, including the usually
  57. // disabled ones, in the debug build (then do it inside #ifndef NDEBUG)
  58. //
  59. // #ifdef NDEBUG
  60. // #define wxDEBUG_LEVEL 0
  61. // #else
  62. // #define wxDEBUG_LEVEL 2
  63. // #endif
  64. // wxHandleFatalExceptions() may be used to catch the program faults at run
  65. // time and, instead of terminating the program with a usual GPF message box,
  66. // call the user-defined wxApp::OnFatalException() function. If you set
  67. // wxUSE_ON_FATAL_EXCEPTION to 0, wxHandleFatalExceptions() will not work.
  68. //
  69. // This setting is for Win32 only and can only be enabled if your compiler
  70. // supports Win32 structured exception handling (currently only VC++ does)
  71. //
  72. // Default is 1
  73. //
  74. // Recommended setting: 1 if your compiler supports it.
  75. #define wxUSE_ON_FATAL_EXCEPTION 1
  76. // Set this to 1 to be able to generate a human-readable (unlike
  77. // machine-readable minidump created by wxCrashReport::Generate()) stack back
  78. // trace when your program crashes using wxStackWalker
  79. //
  80. // Default is 1 if supported by the compiler.
  81. //
  82. // Recommended setting: 1, set to 0 if your programs never crash
  83. #define wxUSE_STACKWALKER 1
  84. // Set this to 1 to compile in wxDebugReport class which allows you to create
  85. // and optionally upload to your web site a debug report consisting of back
  86. // trace of the crash (if wxUSE_STACKWALKER == 1) and other information.
  87. //
  88. // Default is 1 if supported by the compiler.
  89. //
  90. // Recommended setting: 1, it is compiled into a separate library so there
  91. // is no overhead if you don't use it
  92. #define wxUSE_DEBUGREPORT 1
  93. // Generic comment about debugging settings: they are very useful if you don't
  94. // use any other memory leak detection tools such as Purify/BoundsChecker, but
  95. // are probably redundant otherwise. Also, Visual C++ CRT has the same features
  96. // as wxWidgets memory debugging subsystem built in since version 5.0 and you
  97. // may prefer to use it instead of built in memory debugging code because it is
  98. // faster and more fool proof.
  99. //
  100. // Using VC++ CRT memory debugging is enabled by default in debug build (_DEBUG
  101. // is defined) if wxUSE_GLOBAL_MEMORY_OPERATORS is *not* enabled (i.e. is 0)
  102. // and if __NO_VC_CRTDBG__ is not defined.
  103. // The rest of the options in this section are obsolete and not supported,
  104. // enable them at your own risk.
  105. // If 1, enables wxDebugContext, for writing error messages to file, etc. If
  106. // __WXDEBUG__ is not defined, will still use the normal memory operators.
  107. //
  108. // Default is 0
  109. //
  110. // Recommended setting: 0
  111. #define wxUSE_DEBUG_CONTEXT 0
  112. // If 1, enables debugging versions of wxObject::new and wxObject::delete *IF*
  113. // __WXDEBUG__ is also defined.
  114. //
  115. // WARNING: this code may not work with all architectures, especially if
  116. // alignment is an issue. This switch is currently ignored for mingw / cygwin
  117. //
  118. // Default is 0
  119. //
  120. // Recommended setting: 1 if you are not using a memory debugging tool, else 0
  121. #define wxUSE_MEMORY_TRACING 0
  122. // In debug mode, cause new and delete to be redefined globally.
  123. // If this causes problems (e.g. link errors which is a common problem
  124. // especially if you use another library which also redefines the global new
  125. // and delete), set this to 0.
  126. // This switch is currently ignored for mingw / cygwin
  127. //
  128. // Default is 0
  129. //
  130. // Recommended setting: 0
  131. #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
  132. // In debug mode, causes new to be defined to be WXDEBUG_NEW (see object.h). If
  133. // this causes problems (e.g. link errors), set this to 0. You may need to set
  134. // this to 0 if using templates (at least for VC++). This switch is currently
  135. // ignored for MinGW/Cygwin.
  136. //
  137. // Default is 0
  138. //
  139. // Recommended setting: 0
  140. #define wxUSE_DEBUG_NEW_ALWAYS 0
  141. // ----------------------------------------------------------------------------
  142. // Unicode support
  143. // ----------------------------------------------------------------------------
  144. // These settings are obsolete: the library is always built in Unicode mode
  145. // now, only set wxUSE_UNICODE to 0 to compile legacy code in ANSI mode if
  146. // absolutely necessary -- updating it is strongly recommended as the ANSI mode
  147. // will disappear completely in future wxWidgets releases.
  148. #ifndef wxUSE_UNICODE
  149. #define wxUSE_UNICODE 1
  150. #endif
  151. // wxUSE_WCHAR_T is required by wxWidgets now, don't change.
  152. #define wxUSE_WCHAR_T 1
  153. // ----------------------------------------------------------------------------
  154. // global features
  155. // ----------------------------------------------------------------------------
  156. // Compile library in exception-safe mode? If set to 1, the library will try to
  157. // behave correctly in presence of exceptions (even though it still will not
  158. // use the exceptions itself) and notify the user code about any unhandled
  159. // exceptions. If set to 0, propagation of the exceptions through the library
  160. // code will lead to undefined behaviour -- but the code itself will be
  161. // slightly smaller and faster.
  162. //
  163. // Note that like wxUSE_THREADS this option is automatically set to 0 if
  164. // wxNO_EXCEPTIONS is defined.
  165. //
  166. // Default is 1
  167. //
  168. // Recommended setting: depends on whether you intend to use C++ exceptions
  169. // in your own code (1 if you do, 0 if you don't)
  170. #define wxUSE_EXCEPTIONS 1
  171. // Set wxUSE_EXTENDED_RTTI to 1 to use extended RTTI
  172. //
  173. // Default is 0
  174. //
  175. // Recommended setting: 0 (this is still work in progress...)
  176. #define wxUSE_EXTENDED_RTTI 0
  177. // Support for message/error logging. This includes wxLogXXX() functions and
  178. // wxLog and derived classes. Don't set this to 0 unless you really know what
  179. // you are doing.
  180. //
  181. // Default is 1
  182. //
  183. // Recommended setting: 1 (always)
  184. #define wxUSE_LOG 1
  185. // Recommended setting: 1
  186. #define wxUSE_LOGWINDOW 1
  187. // Recommended setting: 1
  188. #define wxUSE_LOGGUI 1
  189. // Recommended setting: 1
  190. #define wxUSE_LOG_DIALOG 1
  191. // Support for command line parsing using wxCmdLineParser class.
  192. //
  193. // Default is 1
  194. //
  195. // Recommended setting: 1 (can be set to 0 if you don't use the cmd line)
  196. #define wxUSE_CMDLINE_PARSER 1
  197. // Support for multithreaded applications: if 1, compile in thread classes
  198. // (thread.h) and make the library a bit more thread safe. Although thread
  199. // support is quite stable by now, you may still consider recompiling the
  200. // library without it if you have no use for it - this will result in a
  201. // somewhat smaller and faster operation.
  202. //
  203. // Notice that if wxNO_THREADS is defined, wxUSE_THREADS is automatically reset
  204. // to 0 in wx/chkconf.h, so, for example, if you set USE_THREADS to 0 in
  205. // build/msw/config.* file this value will have no effect.
  206. //
  207. // Default is 1
  208. //
  209. // Recommended setting: 0 unless you do plan to develop MT applications
  210. #define wxUSE_THREADS 1
  211. // If enabled, compiles wxWidgets streams classes
  212. //
  213. // wx stream classes are used for image IO, process IO redirection, network
  214. // protocols implementation and much more and so disabling this results in a
  215. // lot of other functionality being lost.
  216. //
  217. // Default is 1
  218. //
  219. // Recommended setting: 1 as setting it to 0 disables many other things
  220. #define wxUSE_STREAMS 1
  221. // Support for positional parameters (e.g. %1$d, %2$s ...) in wxVsnprintf.
  222. // Note that if the system's implementation does not support positional
  223. // parameters, setting this to 1 forces the use of the wxWidgets implementation
  224. // of wxVsnprintf. The standard vsnprintf() supports positional parameters on
  225. // many Unix systems but usually doesn't under Windows.
  226. //
  227. // Positional parameters are very useful when translating a program since using
  228. // them in formatting strings allow translators to correctly reorder the
  229. // translated sentences.
  230. //
  231. // Default is 1
  232. //
  233. // Recommended setting: 1 if you want to support multiple languages
  234. #define wxUSE_PRINTF_POS_PARAMS 1
  235. // Enable the use of compiler-specific thread local storage keyword, if any.
  236. // This is used for wxTLS_XXX() macros implementation and normally should use
  237. // the compiler-provided support as it's simpler and more efficient, but is
  238. // disabled under Windows in wx/msw/chkconf.h as it can't be used if wxWidgets
  239. // is used in a dynamically loaded Win32 DLL (i.e. using LoadLibrary()) under
  240. // XP as this triggers a bug in compiler TLS support that results in crashes
  241. // when any TLS variables are used.
  242. //
  243. // If you're absolutely sure that your build of wxWidgets is never going to be
  244. // used in such situation, either because it's not going to be linked from any
  245. // kind of plugin or because you only target Vista or later systems, you can
  246. // set this to 2 to force the use of compiler TLS even under MSW.
  247. //
  248. // Default is 1 meaning that compiler TLS is used only if it's 100% safe.
  249. //
  250. // Recommended setting: 2 if you want to have maximal performance and don't
  251. // care about the scenario described above.
  252. #define wxUSE_COMPILER_TLS 1
  253. // ----------------------------------------------------------------------------
  254. // Interoperability with the standard library.
  255. // ----------------------------------------------------------------------------
  256. // Set wxUSE_STL to 1 to enable maximal interoperability with the standard
  257. // library, even at the cost of backwards compatibility.
  258. //
  259. // Default is 0
  260. //
  261. // Recommended setting: 0 as the options below already provide a relatively
  262. // good level of interoperability and changing this option arguably isn't worth
  263. // diverging from the official builds of the library.
  264. #define wxUSE_STL 0
  265. // This is not a real option but is used as the default value for
  266. // wxUSE_STD_IOSTREAM, wxUSE_STD_STRING and wxUSE_STD_CONTAINERS.
  267. //
  268. // Currently the Digital Mars and Watcom compilers come without standard C++
  269. // library headers by default, wxUSE_STD_STRING can be set to 1 if you do have
  270. // them (e.g. from STLPort).
  271. //
  272. // VC++ 5.0 does include standard C++ library headers, however they produce
  273. // many warnings that can't be turned off when compiled at warning level 4.
  274. #if defined(__DMC__) || defined(__WATCOMC__) \
  275. || (defined(_MSC_VER) && _MSC_VER < 1200)
  276. #define wxUSE_STD_DEFAULT 0
  277. #else
  278. #define wxUSE_STD_DEFAULT 1
  279. #endif
  280. // Use standard C++ containers to implement wxVector<>, wxStack<>, wxDList<>
  281. // and wxHashXXX<> classes. If disabled, wxWidgets own (mostly compatible but
  282. // usually more limited) implementations are used which allows to avoid the
  283. // dependency on the C++ run-time library.
  284. //
  285. // Notice that the compilers mentioned in wxUSE_STD_DEFAULT comment above don't
  286. // support using standard containers and that VC6 needs non-default options for
  287. // such build to avoid getting "fatal error C1076: compiler limit : internal
  288. // heap limit reached; use /Zm to specify a higher limit" in its own standard
  289. // headers, so you need to ensure you do increase the heap size before enabling
  290. // this option for this compiler.
  291. //
  292. // Default is 0 for compatibility reasons.
  293. //
  294. // Recommended setting: 1 unless compatibility with the official wxWidgets
  295. // build and/or the existing code is a concern.
  296. #define wxUSE_STD_CONTAINERS 0
  297. // Use standard C++ streams if 1 instead of wx streams in some places. If
  298. // disabled, wx streams are used everywhere and wxWidgets doesn't depend on the
  299. // standard streams library.
  300. //
  301. // Notice that enabling this does not replace wx streams with std streams
  302. // everywhere, in a lot of places wx streams are used no matter what.
  303. //
  304. // Default is 1 if compiler supports it.
  305. //
  306. // Recommended setting: 1 if you use the standard streams anyhow and so
  307. // dependency on the standard streams library is not a
  308. // problem
  309. #define wxUSE_STD_IOSTREAM wxUSE_STD_DEFAULT
  310. // Enable minimal interoperability with the standard C++ string class if 1.
  311. // "Minimal" means that wxString can be constructed from std::string or
  312. // std::wstring but can't be implicitly converted to them. You need to enable
  313. // the option below for the latter.
  314. //
  315. // Default is 1 for most compilers.
  316. //
  317. // Recommended setting: 1 unless you want to ensure your program doesn't use
  318. // the standard C++ library at all.
  319. #define wxUSE_STD_STRING wxUSE_STD_DEFAULT
  320. // Make wxString as much interchangeable with std::[w]string as possible, in
  321. // particular allow implicit conversion of wxString to either of these classes.
  322. // This comes at a price (or a benefit, depending on your point of view) of not
  323. // allowing implicit conversion to "const char *" and "const wchar_t *".
  324. //
  325. // Because a lot of existing code relies on these conversions, this option is
  326. // disabled by default but can be enabled for your build if you don't care
  327. // about compatibility.
  328. //
  329. // Default is 0 if wxUSE_STL has its default value or 1 if it is enabled.
  330. //
  331. // Recommended setting: 0 to remain compatible with the official builds of
  332. // wxWidgets.
  333. #define wxUSE_STD_STRING_CONV_IN_WXSTRING wxUSE_STL
  334. // VC++ 4.2 and above allows <iostream> and <iostream.h> but you can't mix
  335. // them. Set this option to 1 to use <iostream.h>, 0 to use <iostream>.
  336. //
  337. // Note that newer compilers (including VC++ 7.1 and later) don't support
  338. // wxUSE_IOSTREAMH == 1 and so <iostream> will be used anyhow.
  339. //
  340. // Default is 0.
  341. //
  342. // Recommended setting: 0, only set to 1 if you use a really old compiler
  343. #define wxUSE_IOSTREAMH 0
  344. // ----------------------------------------------------------------------------
  345. // non GUI features selection
  346. // ----------------------------------------------------------------------------
  347. // Set wxUSE_LONGLONG to 1 to compile the wxLongLong class. This is a 64 bit
  348. // integer which is implemented in terms of native 64 bit integers if any or
  349. // uses emulation otherwise.
  350. //
  351. // This class is required by wxDateTime and so you should enable it if you want
  352. // to use wxDateTime. For most modern platforms, it will use the native 64 bit
  353. // integers in which case (almost) all of its functions are inline and it
  354. // almost does not take any space, so there should be no reason to switch it
  355. // off.
  356. //
  357. // Recommended setting: 1
  358. #define wxUSE_LONGLONG 1
  359. // Set wxUSE_BASE64 to 1, to compile in Base64 support. This is required for
  360. // storing binary data in wxConfig on most platforms.
  361. //
  362. // Default is 1.
  363. //
  364. // Recommended setting: 1 (but can be safely disabled if you don't use it)
  365. #define wxUSE_BASE64 1
  366. // Set this to 1 to be able to use wxEventLoop even in console applications
  367. // (i.e. using base library only, without GUI). This is mostly useful for
  368. // processing socket events but is also necessary to use timers in console
  369. // applications
  370. //
  371. // Default is 1.
  372. //
  373. // Recommended setting: 1 (but can be safely disabled if you don't use it)
  374. #define wxUSE_CONSOLE_EVENTLOOP 1
  375. // Set wxUSE_(F)FILE to 1 to compile wx(F)File classes. wxFile uses low level
  376. // POSIX functions for file access, wxFFile uses ANSI C stdio.h functions.
  377. //
  378. // Default is 1
  379. //
  380. // Recommended setting: 1 (wxFile is highly recommended as it is required by
  381. // i18n code, wxFileConfig and others)
  382. #define wxUSE_FILE 1
  383. #define wxUSE_FFILE 1
  384. // Use wxFSVolume class providing access to the configured/active mount points
  385. //
  386. // Default is 1
  387. //
  388. // Recommended setting: 1 (but may be safely disabled if you don't use it)
  389. #define wxUSE_FSVOLUME 1
  390. // Use wxStandardPaths class which allows to retrieve some standard locations
  391. // in the file system
  392. //
  393. // Default is 1
  394. //
  395. // Recommended setting: 1 (may be disabled to save space, but not much)
  396. #define wxUSE_STDPATHS 1
  397. // use wxTextBuffer class: required by wxTextFile
  398. #define wxUSE_TEXTBUFFER 1
  399. // use wxTextFile class: requires wxFile and wxTextBuffer, required by
  400. // wxFileConfig
  401. #define wxUSE_TEXTFILE 1
  402. // i18n support: _() macro, wxLocale class. Requires wxTextFile.
  403. #define wxUSE_INTL 1
  404. // Provide wxFoo_l() functions similar to standard foo() functions but taking
  405. // an extra locale parameter.
  406. //
  407. // Notice that this is fully implemented only for the systems providing POSIX
  408. // xlocale support or Microsoft Visual C++ >= 8 (which provides proprietary
  409. // almost-equivalent of xlocale functions), otherwise wxFoo_l() functions will
  410. // only work for the current user locale and "C" locale. You can use
  411. // wxHAS_XLOCALE_SUPPORT to test whether the full support is available.
  412. //
  413. // Default is 1
  414. //
  415. // Recommended setting: 1 but may be disabled if you are writing programs
  416. // running only in C locale anyhow
  417. #define wxUSE_XLOCALE 1
  418. // Set wxUSE_DATETIME to 1 to compile the wxDateTime and related classes which
  419. // allow to manipulate dates, times and time intervals. wxDateTime replaces the
  420. // old wxTime and wxDate classes which are still provided for backwards
  421. // compatibility (and implemented in terms of wxDateTime).
  422. //
  423. // Note that this class is relatively new and is still officially in alpha
  424. // stage because some features are not yet (fully) implemented. It is already
  425. // quite useful though and should only be disabled if you are aiming at
  426. // absolutely minimal version of the library.
  427. //
  428. // Requires: wxUSE_LONGLONG
  429. //
  430. // Default is 1
  431. //
  432. // Recommended setting: 1
  433. #define wxUSE_DATETIME 1
  434. // Set wxUSE_TIMER to 1 to compile wxTimer class
  435. //
  436. // Default is 1
  437. //
  438. // Recommended setting: 1
  439. #define wxUSE_TIMER 1
  440. // Use wxStopWatch clas.
  441. //
  442. // Default is 1
  443. //
  444. // Recommended setting: 1 (needed by wxSocket)
  445. #define wxUSE_STOPWATCH 1
  446. // Set wxUSE_FSWATCHER to 1 if you want to enable wxFileSystemWatcher
  447. //
  448. // Default is 1
  449. //
  450. // Recommended setting: 1
  451. #define wxUSE_FSWATCHER 1
  452. // Setting wxUSE_CONFIG to 1 enables the use of wxConfig and related classes
  453. // which allow the application to store its settings in the persistent
  454. // storage. Setting this to 1 will also enable on-demand creation of the
  455. // global config object in wxApp.
  456. //
  457. // See also wxUSE_CONFIG_NATIVE below.
  458. //
  459. // Recommended setting: 1
  460. #define wxUSE_CONFIG 1
  461. // If wxUSE_CONFIG is 1, you may choose to use either the native config
  462. // classes under Windows (using .INI files under Win16 and the registry under
  463. // Win32) or the portable text file format used by the config classes under
  464. // Unix.
  465. //
  466. // Default is 1 to use native classes. Note that you may still use
  467. // wxFileConfig even if you set this to 1 - just the config object created by
  468. // default for the applications needs will be a wxRegConfig or wxIniConfig and
  469. // not wxFileConfig.
  470. //
  471. // Recommended setting: 1
  472. #define wxUSE_CONFIG_NATIVE 1
  473. // If wxUSE_DIALUP_MANAGER is 1, compile in wxDialUpManager class which allows
  474. // to connect/disconnect from the network and be notified whenever the dial-up
  475. // network connection is established/terminated. Requires wxUSE_DYNAMIC_LOADER.
  476. //
  477. // Default is 1.
  478. //
  479. // Recommended setting: 1
  480. #define wxUSE_DIALUP_MANAGER 1
  481. // Compile in classes for run-time DLL loading and function calling.
  482. // Required by wxUSE_DIALUP_MANAGER.
  483. //
  484. // This setting is for Win32 only
  485. //
  486. // Default is 1.
  487. //
  488. // Recommended setting: 1
  489. #define wxUSE_DYNLIB_CLASS 1
  490. // experimental, don't use for now
  491. #define wxUSE_DYNAMIC_LOADER 1
  492. // Set to 1 to use socket classes
  493. #define wxUSE_SOCKETS 1
  494. // Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
  495. //
  496. // Notice that currently setting this option under Windows will result in
  497. // programs which can only run on recent OS versions (with ws2_32.dll
  498. // installed) which is why it is disabled by default.
  499. //
  500. // Default is 1.
  501. //
  502. // Recommended setting: 1 if you need IPv6 support
  503. #define wxUSE_IPV6 0
  504. // Set to 1 to enable virtual file systems (required by wxHTML)
  505. #define wxUSE_FILESYSTEM 1
  506. // Set to 1 to enable virtual ZIP filesystem (requires wxUSE_FILESYSTEM)
  507. #define wxUSE_FS_ZIP 1
  508. // Set to 1 to enable virtual archive filesystem (requires wxUSE_FILESYSTEM)
  509. #define wxUSE_FS_ARCHIVE 1
  510. // Set to 1 to enable virtual Internet filesystem (requires wxUSE_FILESYSTEM)
  511. #define wxUSE_FS_INET 1
  512. // wxArchive classes for accessing archives such as zip and tar
  513. #define wxUSE_ARCHIVE_STREAMS 1
  514. // Set to 1 to compile wxZipInput/OutputStream classes.
  515. #define wxUSE_ZIPSTREAM 1
  516. // Set to 1 to compile wxTarInput/OutputStream classes.
  517. #define wxUSE_TARSTREAM 1
  518. // Set to 1 to compile wxZlibInput/OutputStream classes. Also required by
  519. // wxUSE_LIBPNG
  520. #define wxUSE_ZLIB 1
  521. // If enabled, the code written by Apple will be used to write, in a portable
  522. // way, float on the disk. See extended.c for the license which is different
  523. // from wxWidgets one.
  524. //
  525. // Default is 1.
  526. //
  527. // Recommended setting: 1 unless you don't like the license terms (unlikely)
  528. #define wxUSE_APPLE_IEEE 1
  529. // Joystick support class
  530. #define wxUSE_JOYSTICK 1
  531. // wxFontEnumerator class
  532. #define wxUSE_FONTENUM 1
  533. // wxFontMapper class
  534. #define wxUSE_FONTMAP 1
  535. // wxMimeTypesManager class
  536. #define wxUSE_MIMETYPE 1
  537. // wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
  538. // or wxURL you need to set this to 1.
  539. //
  540. // Default is 1.
  541. //
  542. // Recommended setting: 1
  543. #define wxUSE_PROTOCOL 1
  544. // The settings for the individual URL schemes
  545. #define wxUSE_PROTOCOL_FILE 1
  546. #define wxUSE_PROTOCOL_FTP 1
  547. #define wxUSE_PROTOCOL_HTTP 1
  548. // Define this to use wxURL class.
  549. #define wxUSE_URL 1
  550. // Define this to use native platform url and protocol support.
  551. // Currently valid only for MS-Windows.
  552. // Note: if you set this to 1, you can open ftp/http/gopher sites
  553. // and obtain a valid input stream for these sites
  554. // even when you set wxUSE_PROTOCOL_FTP/HTTP to 0.
  555. // Doing so reduces the code size.
  556. //
  557. // This code is experimental and subject to change.
  558. #define wxUSE_URL_NATIVE 0
  559. // Support for wxVariant class used in several places throughout the library,
  560. // notably in wxDataViewCtrl API.
  561. //
  562. // Default is 1.
  563. //
  564. // Recommended setting: 1 unless you want to reduce the library size as much as
  565. // possible in which case setting this to 0 can gain up to 100KB.
  566. #define wxUSE_VARIANT 1
  567. // Support for wxAny class, the successor for wxVariant.
  568. //
  569. // Default is 1.
  570. //
  571. // Recommended setting: 1 unless you want to reduce the library size by a small amount,
  572. // or your compiler cannot for some reason cope with complexity of templates used.
  573. #define wxUSE_ANY 1
  574. // Support for regular expression matching via wxRegEx class: enable this to
  575. // use POSIX regular expressions in your code. You need to compile regex
  576. // library from src/regex to use it under Windows.
  577. //
  578. // Default is 0
  579. //
  580. // Recommended setting: 1 if your compiler supports it, if it doesn't please
  581. // contribute us a makefile for src/regex for it
  582. #define wxUSE_REGEX 1
  583. // wxSystemOptions class
  584. #define wxUSE_SYSTEM_OPTIONS 1
  585. // wxSound class
  586. #define wxUSE_SOUND 1
  587. // Use wxMediaCtrl
  588. //
  589. // Default is 1.
  590. //
  591. // Recommended setting: 1
  592. #define wxUSE_MEDIACTRL 1
  593. // Use wxWidget's XRC XML-based resource system. Recommended.
  594. //
  595. // Default is 1
  596. //
  597. // Recommended setting: 1 (requires wxUSE_XML)
  598. #define wxUSE_XRC 1
  599. // XML parsing classes. Note that their API will change in the future, so
  600. // using wxXmlDocument and wxXmlNode in your app is not recommended.
  601. //
  602. // Default is the same as wxUSE_XRC, i.e. 1 by default.
  603. //
  604. // Recommended setting: 1 (required by XRC)
  605. #define wxUSE_XML wxUSE_XRC
  606. // Use wxWidget's AUI docking system
  607. //
  608. // Default is 1
  609. //
  610. // Recommended setting: 1
  611. #define wxUSE_AUI 1
  612. // Use wxWidget's Ribbon classes for interfaces
  613. //
  614. // Default is 1
  615. //
  616. // Recommended setting: 1
  617. #define wxUSE_RIBBON 1
  618. // Use wxPropertyGrid.
  619. //
  620. // Default is 1
  621. //
  622. // Recommended setting: 1
  623. #define wxUSE_PROPGRID 1
  624. // Use wxStyledTextCtrl, a wxWidgets implementation of Scintilla.
  625. //
  626. // Default is 1
  627. //
  628. // Recommended setting: 1
  629. #define wxUSE_STC 1
  630. // Use wxWidget's web viewing classes
  631. //
  632. // Default is 1
  633. //
  634. // Recommended setting: 1
  635. #define wxUSE_WEBVIEW 1
  636. // Use the IE wxWebView backend
  637. //
  638. // Default is 1 on MSW
  639. //
  640. // Recommended setting: 1
  641. #ifdef __WXMSW__
  642. #define wxUSE_WEBVIEW_IE 1
  643. #else
  644. #define wxUSE_WEBVIEW_IE 0
  645. #endif
  646. // Use the WebKit wxWebView backend
  647. //
  648. // Default is 1 on GTK and OSX
  649. //
  650. // Recommended setting: 1
  651. #if defined(__WXGTK__) || defined(__WXOSX__)
  652. #define wxUSE_WEBVIEW_WEBKIT 1
  653. #else
  654. #define wxUSE_WEBVIEW_WEBKIT 0
  655. #endif
  656. // Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
  657. // 2D drawing API. (Still somewhat experimental)
  658. //
  659. // Please note that on Windows gdiplus.dll is loaded dynamically which means
  660. // that nothing special needs to be done as long as you don't use
  661. // wxGraphicsContext at all or only use it on XP and later systems but you
  662. // still do need to distribute it yourself for an application using
  663. // wxGraphicsContext to be runnable on pre-XP systems.
  664. //
  665. // Default is 1 except if you're using a non-Microsoft compiler under Windows
  666. // as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
  667. // mingw32) you may need to install the headers (and just the headers)
  668. // yourself. If you do, change the setting below manually.
  669. //
  670. // Recommended setting: 1 if supported by the compilation environment
  671. // notice that we can't use wxCHECK_VISUALC_VERSION() here as this file is
  672. // included from wx/platform.h before wxCHECK_VISUALC_VERSION() is defined
  673. #ifdef _MSC_VER
  674. # if _MSC_VER >= 1310
  675. // MSVC7.1+ comes with new enough Platform SDK, enable
  676. // wxGraphicsContext support for it
  677. # define wxUSE_GRAPHICS_CONTEXT 1
  678. # else
  679. // MSVC 6 didn't include GDI+ headers so disable by default, enable it
  680. // here if you use MSVC 6 with a newer SDK
  681. # define wxUSE_GRAPHICS_CONTEXT 0
  682. # endif
  683. #else
  684. // Disable support for other Windows compilers, enable it if your compiler
  685. // comes with new enough SDK or you installed the headers manually.
  686. //
  687. // Notice that this will be set by configure under non-Windows platforms
  688. // anyhow so the value there is not important.
  689. # define wxUSE_GRAPHICS_CONTEXT 0
  690. #endif
  691. // Enable wxGraphicsContext implementation using Cairo library.
  692. //
  693. // This is not needed under Windows and detected automatically by configure
  694. // under other systems, however you may set this to 1 manually if you installed
  695. // Cairo under Windows yourself and prefer to use it instead the native GDI+
  696. // implementation.
  697. //
  698. // Default is 0
  699. //
  700. // Recommended setting: 0
  701. #define wxUSE_CAIRO 0
  702. // ----------------------------------------------------------------------------
  703. // Individual GUI controls
  704. // ----------------------------------------------------------------------------
  705. // You must set wxUSE_CONTROLS to 1 if you are using any controls at all
  706. // (without it, wxControl class is not compiled)
  707. //
  708. // Default is 1
  709. //
  710. // Recommended setting: 1 (don't change except for very special programs)
  711. #define wxUSE_CONTROLS 1
  712. // Support markup in control labels, i.e. provide wxControl::SetLabelMarkup().
  713. // Currently markup is supported only by a few controls and only some ports but
  714. // their number will increase with time.
  715. //
  716. // Default is 1
  717. //
  718. // Recommended setting: 1 (may be set to 0 if you want to save on code size)
  719. #define wxUSE_MARKUP 1
  720. // wxPopupWindow class is a top level transient window. It is currently used
  721. // to implement wxTipWindow
  722. //
  723. // Default is 1
  724. //
  725. // Recommended setting: 1 (may be set to 0 if you don't wxUSE_TIPWINDOW)
  726. #define wxUSE_POPUPWIN 1
  727. // wxTipWindow allows to implement the custom tooltips, it is used by the
  728. // context help classes. Requires wxUSE_POPUPWIN.
  729. //
  730. // Default is 1
  731. //
  732. // Recommended setting: 1 (may be set to 0)
  733. #define wxUSE_TIPWINDOW 1
  734. // Each of the settings below corresponds to one wxWidgets control. They are
  735. // all switched on by default but may be disabled if you are sure that your
  736. // program (including any standard dialogs it can show!) doesn't need them and
  737. // if you desperately want to save some space. If you use any of these you must
  738. // set wxUSE_CONTROLS as well.
  739. //
  740. // Default is 1
  741. //
  742. // Recommended setting: 1
  743. #define wxUSE_ANIMATIONCTRL 1 // wxAnimationCtrl
  744. #define wxUSE_BANNERWINDOW 1 // wxBannerWindow
  745. #define wxUSE_BUTTON 1 // wxButton
  746. #define wxUSE_BMPBUTTON 1 // wxBitmapButton
  747. #define wxUSE_CALENDARCTRL 1 // wxCalendarCtrl
  748. #define wxUSE_CHECKBOX 1 // wxCheckBox
  749. #define wxUSE_CHECKLISTBOX 1 // wxCheckListBox (requires wxUSE_OWNER_DRAWN)
  750. #define wxUSE_CHOICE 1 // wxChoice
  751. #define wxUSE_COLLPANE 1 // wxCollapsiblePane
  752. #define wxUSE_COLOURPICKERCTRL 1 // wxColourPickerCtrl
  753. #define wxUSE_COMBOBOX 1 // wxComboBox
  754. #define wxUSE_COMMANDLINKBUTTON 1 // wxCommandLinkButton
  755. #define wxUSE_DATAVIEWCTRL 1 // wxDataViewCtrl
  756. #define wxUSE_DATEPICKCTRL 1 // wxDatePickerCtrl
  757. #define wxUSE_DIRPICKERCTRL 1 // wxDirPickerCtrl
  758. #define wxUSE_EDITABLELISTBOX 1 // wxEditableListBox
  759. #define wxUSE_FILECTRL 1 // wxFileCtrl
  760. #define wxUSE_FILEPICKERCTRL 1 // wxFilePickerCtrl
  761. #define wxUSE_FONTPICKERCTRL 1 // wxFontPickerCtrl
  762. #define wxUSE_GAUGE 1 // wxGauge
  763. #define wxUSE_HEADERCTRL 1 // wxHeaderCtrl
  764. #define wxUSE_HYPERLINKCTRL 1 // wxHyperlinkCtrl
  765. #define wxUSE_LISTBOX 1 // wxListBox
  766. #define wxUSE_LISTCTRL 1 // wxListCtrl
  767. #define wxUSE_RADIOBOX 1 // wxRadioBox
  768. #define wxUSE_RADIOBTN 1 // wxRadioButton
  769. #define wxUSE_RICHMSGDLG 1 // wxRichMessageDialog
  770. #define wxUSE_SCROLLBAR 1 // wxScrollBar
  771. #define wxUSE_SEARCHCTRL 1 // wxSearchCtrl
  772. #define wxUSE_SLIDER 1 // wxSlider
  773. #define wxUSE_SPINBTN 1 // wxSpinButton
  774. #define wxUSE_SPINCTRL 1 // wxSpinCtrl
  775. #define wxUSE_STATBOX 1 // wxStaticBox
  776. #define wxUSE_STATLINE 1 // wxStaticLine
  777. #define wxUSE_STATTEXT 1 // wxStaticText
  778. #define wxUSE_STATBMP 1 // wxStaticBitmap
  779. #define wxUSE_TEXTCTRL 1 // wxTextCtrl
  780. #define wxUSE_TIMEPICKCTRL 1 // wxTimePickerCtrl
  781. #define wxUSE_TOGGLEBTN 1 // requires wxButton
  782. #define wxUSE_TREECTRL 1 // wxTreeCtrl
  783. #define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
  784. // Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
  785. // below either wxStatusBar95 or a generic wxStatusBar will be used.
  786. //
  787. // Default is 1
  788. //
  789. // Recommended setting: 1
  790. #define wxUSE_STATUSBAR 1
  791. // Two status bar implementations are available under Win32: the generic one
  792. // or the wrapper around native control. For native look and feel the native
  793. // version should be used.
  794. //
  795. // Default is 1 for the platforms where native status bar is supported.
  796. //
  797. // Recommended setting: 1 (there is no advantage in using the generic one)
  798. #define wxUSE_NATIVE_STATUSBAR 1
  799. // wxToolBar related settings: if wxUSE_TOOLBAR is 0, don't compile any toolbar
  800. // classes at all. Otherwise, use the native toolbar class unless
  801. // wxUSE_TOOLBAR_NATIVE is 0.
  802. //
  803. // Default is 1 for all settings.
  804. //
  805. // Recommended setting: 1 for wxUSE_TOOLBAR and wxUSE_TOOLBAR_NATIVE.
  806. #define wxUSE_TOOLBAR 1
  807. #define wxUSE_TOOLBAR_NATIVE 1
  808. // wxNotebook is a control with several "tabs" located on one of its sides. It
  809. // may be used to logically organise the data presented to the user instead of
  810. // putting everything in one huge dialog. It replaces wxTabControl and related
  811. // classes of wxWin 1.6x.
  812. //
  813. // Default is 1.
  814. //
  815. // Recommended setting: 1
  816. #define wxUSE_NOTEBOOK 1
  817. // wxListbook control is similar to wxNotebook but uses wxListCtrl instead of
  818. // the tabs
  819. //
  820. // Default is 1.
  821. //
  822. // Recommended setting: 1
  823. #define wxUSE_LISTBOOK 1
  824. // wxChoicebook control is similar to wxNotebook but uses wxChoice instead of
  825. // the tabs
  826. //
  827. // Default is 1.
  828. //
  829. // Recommended setting: 1
  830. #define wxUSE_CHOICEBOOK 1
  831. // wxTreebook control is similar to wxNotebook but uses wxTreeCtrl instead of
  832. // the tabs
  833. //
  834. // Default is 1.
  835. //
  836. // Recommended setting: 1
  837. #define wxUSE_TREEBOOK 1
  838. // wxToolbook control is similar to wxNotebook but uses wxToolBar instead of
  839. // tabs
  840. //
  841. // Default is 1.
  842. //
  843. // Recommended setting: 1
  844. #define wxUSE_TOOLBOOK 1
  845. // wxTaskBarIcon is a small notification icon shown in the system toolbar or
  846. // dock.
  847. //
  848. // Default is 1.
  849. //
  850. // Recommended setting: 1 (but can be set to 0 if you don't need it)
  851. #define wxUSE_TASKBARICON 1
  852. // wxGrid class
  853. //
  854. // Default is 1, set to 0 to cut down compilation time and binaries size if you
  855. // don't use it.
  856. //
  857. // Recommended setting: 1
  858. //
  859. #define wxUSE_GRID 1
  860. // wxMiniFrame class: a frame with narrow title bar
  861. //
  862. // Default is 1.
  863. //
  864. // Recommended setting: 1 (it doesn't cost almost anything)
  865. #define wxUSE_MINIFRAME 1
  866. // wxComboCtrl and related classes: combobox with custom popup window and
  867. // not necessarily a listbox.
  868. //
  869. // Default is 1.
  870. //
  871. // Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
  872. // it used by wxComboBox
  873. #define wxUSE_COMBOCTRL 1
  874. // wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox
  875. // items.
  876. //
  877. // Default is 1.
  878. //
  879. // Recommended setting: 1 but can be safely set to 0, except where it is
  880. // needed as a base class for generic wxBitmapComboBox.
  881. #define wxUSE_ODCOMBOBOX 1
  882. // wxBitmapComboBox is a combobox that can have images in front of text items.
  883. //
  884. // Default is 1.
  885. //
  886. // Recommended setting: 1 but can be safely set to 0
  887. #define wxUSE_BITMAPCOMBOBOX 1
  888. // wxRearrangeCtrl is a wxCheckListBox with two buttons allowing to move items
  889. // up and down in it. It is also used as part of wxRearrangeDialog.
  890. //
  891. // Default is 1.
  892. //
  893. // Recommended setting: 1 but can be safely set to 0 (currently used only by
  894. // wxHeaderCtrl)
  895. #define wxUSE_REARRANGECTRL 1
  896. // ----------------------------------------------------------------------------
  897. // Miscellaneous GUI stuff
  898. // ----------------------------------------------------------------------------
  899. // wxAcceleratorTable/Entry classes and support for them in wxMenu(Bar)
  900. #define wxUSE_ACCEL 1
  901. // Use the standard art provider. The icons returned by this provider are
  902. // embedded into the library as XPMs so disabling it reduces the library size
  903. // somewhat but this should only be done if you use your own custom art
  904. // provider returning the icons or never use any icons not provided by the
  905. // native art provider (which might not be implemented at all for some
  906. // platforms) or by the Tango icons provider (if it's not itself disabled
  907. // below).
  908. //
  909. // Default is 1.
  910. //
  911. // Recommended setting: 1 unless you use your own custom art provider.
  912. #define wxUSE_ARTPROVIDER_STD 1
  913. // Use art provider providing Tango icons: this art provider has higher quality
  914. // icons than the default ones using smaller size XPM icons without
  915. // transparency but the embedded PNG icons add to the library size.
  916. //
  917. // Default is 1 under non-GTK ports. Under wxGTK the native art provider using
  918. // the GTK+ stock icons replaces it so it is normally not necessary.
  919. //
  920. // Recommended setting: 1 but can be turned off to reduce the library size.
  921. #define wxUSE_ARTPROVIDER_TANGO 1
  922. // Hotkey support (currently Windows only)
  923. #define wxUSE_HOTKEY 1
  924. // Use wxCaret: a class implementing a "cursor" in a text control (called caret
  925. // under Windows).
  926. //
  927. // Default is 1.
  928. //
  929. // Recommended setting: 1 (can be safely set to 0, not used by the library)
  930. #define wxUSE_CARET 1
  931. // Use wxDisplay class: it allows enumerating all displays on a system and
  932. // their geometries as well as finding the display on which the given point or
  933. // window lies.
  934. //
  935. // Default is 1.
  936. //
  937. // Recommended setting: 1 if you need it, can be safely set to 0 otherwise
  938. #define wxUSE_DISPLAY 1
  939. // Miscellaneous geometry code: needed for Canvas library
  940. #define wxUSE_GEOMETRY 1
  941. // Use wxImageList. This class is needed by wxNotebook, wxTreeCtrl and
  942. // wxListCtrl.
  943. //
  944. // Default is 1.
  945. //
  946. // Recommended setting: 1 (set it to 0 if you don't use any of the controls
  947. // enumerated above, then this class is mostly useless too)
  948. #define wxUSE_IMAGLIST 1
  949. // Use wxInfoBar class.
  950. //
  951. // Default is 1.
  952. //
  953. // Recommended setting: 1 (but can be disabled without problems as nothing
  954. // depends on it)
  955. #define wxUSE_INFOBAR 1
  956. // Use wxMenu, wxMenuBar, wxMenuItem.
  957. //
  958. // Default is 1.
  959. //
  960. // Recommended setting: 1 (can't be disabled under MSW)
  961. #define wxUSE_MENUS 1
  962. // Use wxNotificationMessage.
  963. //
  964. // wxNotificationMessage allows to show non-intrusive messages to the user
  965. // using balloons, banners, popups or whatever is the appropriate method for
  966. // the current platform.
  967. //
  968. // Default is 1.
  969. //
  970. // Recommended setting: 1
  971. #define wxUSE_NOTIFICATION_MESSAGE 1
  972. // wxPreferencesEditor provides a common API for different ways of presenting
  973. // the standard "Preferences" or "Properties" dialog under different platforms
  974. // (e.g. some use modal dialogs, some use modeless ones; some apply the changes
  975. // immediately while others require an explicit "Apply" button).
  976. //
  977. // Default is 1.
  978. //
  979. // Recommended setting: 1 (but can be safely disabled if you don't use it)
  980. #define wxUSE_PREFERENCES_EDITOR 1
  981. // wxRichToolTip is a customizable tooltip class which has more functionality
  982. // than the stock (but native, unlike this class) wxToolTip.
  983. //
  984. // Default is 1.
  985. //
  986. // Recommended setting: 1 (but can be safely set to 0 if you don't need it)
  987. #define wxUSE_RICHTOOLTIP 1
  988. // Use wxSashWindow class.
  989. //
  990. // Default is 1.
  991. //
  992. // Recommended setting: 1
  993. #define wxUSE_SASH 1
  994. // Use wxSplitterWindow class.
  995. //
  996. // Default is 1.
  997. //
  998. // Recommended setting: 1
  999. #define wxUSE_SPLITTER 1
  1000. // Use wxToolTip and wxWindow::Set/GetToolTip() methods.
  1001. //
  1002. // Default is 1.
  1003. //
  1004. // Recommended setting: 1
  1005. #define wxUSE_TOOLTIPS 1
  1006. // wxValidator class and related methods
  1007. #define wxUSE_VALIDATORS 1
  1008. // Use reference counted ID management: this means that wxWidgets will track
  1009. // the automatically allocated ids (those used when you use wxID_ANY when
  1010. // creating a window, menu or toolbar item &c) instead of just supposing that
  1011. // the program never runs out of them. This is mostly useful only under wxMSW
  1012. // where the total ids range is limited to SHRT_MIN..SHRT_MAX and where
  1013. // long-running programs can run into problems with ids reuse without this. On
  1014. // the other platforms, where the ids have the full int range, this shouldn't
  1015. // be necessary.
  1016. #ifdef __WXMSW__
  1017. #define wxUSE_AUTOID_MANAGEMENT 1
  1018. #else
  1019. #define wxUSE_AUTOID_MANAGEMENT 0
  1020. #endif
  1021. // ----------------------------------------------------------------------------
  1022. // common dialogs
  1023. // ----------------------------------------------------------------------------
  1024. // On rare occasions (e.g. using DJGPP) may want to omit common dialogs (e.g.
  1025. // file selector, printer dialog). Switching this off also switches off the
  1026. // printing architecture and interactive wxPrinterDC.
  1027. //
  1028. // Default is 1
  1029. //
  1030. // Recommended setting: 1 (unless it really doesn't work)
  1031. #define wxUSE_COMMON_DIALOGS 1
  1032. // wxBusyInfo displays window with message when app is busy. Works in same way
  1033. // as wxBusyCursor
  1034. #define wxUSE_BUSYINFO 1
  1035. // Use single/multiple choice dialogs.
  1036. //
  1037. // Default is 1
  1038. //
  1039. // Recommended setting: 1 (used in the library itself)
  1040. #define wxUSE_CHOICEDLG 1
  1041. // Use colour picker dialog
  1042. //
  1043. // Default is 1
  1044. //
  1045. // Recommended setting: 1
  1046. #define wxUSE_COLOURDLG 1
  1047. // wxDirDlg class for getting a directory name from user
  1048. #define wxUSE_DIRDLG 1
  1049. // TODO: setting to choose the generic or native one
  1050. // Use file open/save dialogs.
  1051. //
  1052. // Default is 1
  1053. //
  1054. // Recommended setting: 1 (used in many places in the library itself)
  1055. #define wxUSE_FILEDLG 1
  1056. // Use find/replace dialogs.
  1057. //
  1058. // Default is 1
  1059. //
  1060. // Recommended setting: 1 (but may be safely set to 0)
  1061. #define wxUSE_FINDREPLDLG 1
  1062. // Use font picker dialog
  1063. //
  1064. // Default is 1
  1065. //
  1066. // Recommended setting: 1 (used in the library itself)
  1067. #define wxUSE_FONTDLG 1
  1068. // Use wxMessageDialog and wxMessageBox.
  1069. //
  1070. // Default is 1
  1071. //
  1072. // Recommended setting: 1 (used in the library itself)
  1073. #define wxUSE_MSGDLG 1
  1074. // progress dialog class for lengthy operations
  1075. #define wxUSE_PROGRESSDLG 1
  1076. // support for startup tips (wxShowTip &c)
  1077. #define wxUSE_STARTUP_TIPS 1
  1078. // text entry dialog and wxGetTextFromUser function
  1079. #define wxUSE_TEXTDLG 1
  1080. // number entry dialog
  1081. #define wxUSE_NUMBERDLG 1
  1082. // splash screen class
  1083. #define wxUSE_SPLASH 1
  1084. // wizards
  1085. #define wxUSE_WIZARDDLG 1
  1086. // Compile in wxAboutBox() function showing the standard "About" dialog.
  1087. //
  1088. // Default is 1
  1089. //
  1090. // Recommended setting: 1 but can be set to 0 to save some space if you don't
  1091. // use this function
  1092. #define wxUSE_ABOUTDLG 1
  1093. // wxFileHistory class
  1094. //
  1095. // Default is 1
  1096. //
  1097. // Recommended setting: 1
  1098. #define wxUSE_FILE_HISTORY 1
  1099. // ----------------------------------------------------------------------------
  1100. // Metafiles support
  1101. // ----------------------------------------------------------------------------
  1102. // Windows supports the graphics format known as metafile which is, though not
  1103. // portable, is widely used under Windows and so is supported by wxWin (under
  1104. // Windows only, of course). Win16 (Win3.1) used the so-called "Window
  1105. // MetaFiles" or WMFs which were replaced with "Enhanced MetaFiles" or EMFs in
  1106. // Win32 (Win9x, NT, 2000). Both of these are supported in wxWin and, by
  1107. // default, WMFs will be used under Win16 and EMFs under Win32. This may be
  1108. // changed by setting wxUSE_WIN_METAFILES_ALWAYS to 1 and/or setting
  1109. // wxUSE_ENH_METAFILE to 0. You may also set wxUSE_METAFILE to 0 to not compile
  1110. // in any metafile related classes at all.
  1111. //
  1112. // Default is 1 for wxUSE_ENH_METAFILE and 0 for wxUSE_WIN_METAFILES_ALWAYS.
  1113. //
  1114. // Recommended setting: default or 0 for everything for portable programs.
  1115. #define wxUSE_METAFILE 1
  1116. #define wxUSE_ENH_METAFILE 1
  1117. #define wxUSE_WIN_METAFILES_ALWAYS 0
  1118. // ----------------------------------------------------------------------------
  1119. // Big GUI components
  1120. // ----------------------------------------------------------------------------
  1121. // Set to 0 to disable MDI support.
  1122. //
  1123. // Requires wxUSE_NOTEBOOK under platforms other than MSW.
  1124. //
  1125. // Default is 1.
  1126. //
  1127. // Recommended setting: 1, can be safely set to 0.
  1128. #define wxUSE_MDI 1
  1129. // Set to 0 to disable document/view architecture
  1130. #define wxUSE_DOC_VIEW_ARCHITECTURE 1
  1131. // Set to 0 to disable MDI document/view architecture
  1132. //
  1133. // Requires wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE
  1134. #define wxUSE_MDI_ARCHITECTURE 1
  1135. // Set to 0 to disable print/preview architecture code
  1136. #define wxUSE_PRINTING_ARCHITECTURE 1
  1137. // wxHTML sublibrary allows to display HTML in wxWindow programs and much,
  1138. // much more.
  1139. //
  1140. // Default is 1.
  1141. //
  1142. // Recommended setting: 1 (wxHTML is great!), set to 0 if you want compile a
  1143. // smaller library.
  1144. #define wxUSE_HTML 1
  1145. // Setting wxUSE_GLCANVAS to 1 enables OpenGL support. You need to have OpenGL
  1146. // headers and libraries to be able to compile the library with wxUSE_GLCANVAS
  1147. // set to 1 and, under Windows, also to add opengl32.lib and glu32.lib to the
  1148. // list of libraries used to link your application (although this is done
  1149. // implicitly for Microsoft Visual C++ users).
  1150. //
  1151. // Default is 1 unless the compiler is known to ship without the necessary
  1152. // headers (Digital Mars) or the platform doesn't support OpenGL (Windows CE).
  1153. //
  1154. // Recommended setting: 1 if you intend to use OpenGL, can be safely set to 0
  1155. // otherwise.
  1156. #define wxUSE_GLCANVAS 1
  1157. // wxRichTextCtrl allows editing of styled text.
  1158. //
  1159. // Default is 1.
  1160. //
  1161. // Recommended setting: 1, set to 0 if you want compile a
  1162. // smaller library.
  1163. #define wxUSE_RICHTEXT 1
  1164. // ----------------------------------------------------------------------------
  1165. // Data transfer
  1166. // ----------------------------------------------------------------------------
  1167. // Use wxClipboard class for clipboard copy/paste.
  1168. //
  1169. // Default is 1.
  1170. //
  1171. // Recommended setting: 1
  1172. #define wxUSE_CLIPBOARD 1
  1173. // Use wxDataObject and related classes. Needed for clipboard and OLE drag and
  1174. // drop
  1175. //
  1176. // Default is 1.
  1177. //
  1178. // Recommended setting: 1
  1179. #define wxUSE_DATAOBJ 1
  1180. // Use wxDropTarget and wxDropSource classes for drag and drop (this is
  1181. // different from "built in" drag and drop in wxTreeCtrl which is always
  1182. // available). Requires wxUSE_DATAOBJ.
  1183. //
  1184. // Default is 1.
  1185. //
  1186. // Recommended setting: 1
  1187. #define wxUSE_DRAG_AND_DROP 1
  1188. // Use wxAccessible for enhanced and customisable accessibility.
  1189. // Depends on wxUSE_OLE.
  1190. //
  1191. // Default is 0.
  1192. //
  1193. // Recommended setting (at present): 0
  1194. #define wxUSE_ACCESSIBILITY 0
  1195. // ----------------------------------------------------------------------------
  1196. // miscellaneous settings
  1197. // ----------------------------------------------------------------------------
  1198. // wxSingleInstanceChecker class allows to verify at startup if another program
  1199. // instance is running.
  1200. //
  1201. // Default is 1
  1202. //
  1203. // Recommended setting: 1 (the class is tiny, disabling it won't save much
  1204. // space)
  1205. #define wxUSE_SNGLINST_CHECKER 1
  1206. #define wxUSE_DRAGIMAGE 1
  1207. #define wxUSE_IPC 1
  1208. // 0 for no interprocess comms
  1209. #define wxUSE_HELP 1
  1210. // 0 for no help facility
  1211. // Should we use MS HTML help for wxHelpController? If disabled, neither
  1212. // wxCHMHelpController nor wxBestHelpController are available.
  1213. //
  1214. // Default is 1 under MSW, 0 is always used for the other platforms.
  1215. //
  1216. // Recommended setting: 1, only set to 0 if you have trouble compiling
  1217. // wxCHMHelpController (could be a problem with really ancient compilers)
  1218. #define wxUSE_MS_HTML_HELP 1
  1219. // Use wxHTML-based help controller?
  1220. #define wxUSE_WXHTML_HELP 1
  1221. #define wxUSE_CONSTRAINTS 1
  1222. // 0 for no window layout constraint system
  1223. #define wxUSE_SPLINES 1
  1224. // 0 for no splines
  1225. #define wxUSE_MOUSEWHEEL 1
  1226. // Include mouse wheel support
  1227. // Compile wxUIActionSimulator class?
  1228. #define wxUSE_UIACTIONSIMULATOR 1
  1229. // ----------------------------------------------------------------------------
  1230. // wxDC classes for various output formats
  1231. // ----------------------------------------------------------------------------
  1232. // Set to 1 for PostScript device context.
  1233. #define wxUSE_POSTSCRIPT 0
  1234. // Set to 1 to use font metric files in GetTextExtent
  1235. #define wxUSE_AFM_FOR_POSTSCRIPT 1
  1236. // Set to 1 to compile in support for wxSVGFileDC, a wxDC subclass which allows
  1237. // to create files in SVG (Scalable Vector Graphics) format.
  1238. #define wxUSE_SVG 1
  1239. // Should wxDC provide SetTransformMatrix() and related methods?
  1240. //
  1241. // Default is 1 but can be set to 0 if this functionality is not used. Notice
  1242. // that currently only wxMSW supports this so setting this to 0 doesn't change
  1243. // much for non-MSW platforms (although it will still save a few bytes
  1244. // probably).
  1245. //
  1246. // Recommended setting: 1.
  1247. #define wxUSE_DC_TRANSFORM_MATRIX 1
  1248. // ----------------------------------------------------------------------------
  1249. // image format support
  1250. // ----------------------------------------------------------------------------
  1251. // wxImage supports many different image formats which can be configured at
  1252. // compile-time. BMP is always supported, others are optional and can be safely
  1253. // disabled if you don't plan to use images in such format sometimes saving
  1254. // substantial amount of code in the final library.
  1255. //
  1256. // Some formats require an extra library which is included in wxWin sources
  1257. // which is mentioned if it is the case.
  1258. // Set to 1 for wxImage support (recommended).
  1259. #define wxUSE_IMAGE 1
  1260. // Set to 1 for PNG format support (requires libpng). Also requires wxUSE_ZLIB.
  1261. #define wxUSE_LIBPNG 1
  1262. // Set to 1 for JPEG format support (requires libjpeg)
  1263. #define wxUSE_LIBJPEG 1
  1264. // Set to 1 for TIFF format support (requires libtiff)
  1265. #define wxUSE_LIBTIFF 1
  1266. // Set to 1 for TGA format support (loading only)
  1267. #define wxUSE_TGA 1
  1268. // Set to 1 for GIF format support
  1269. #define wxUSE_GIF 1
  1270. // Set to 1 for PNM format support
  1271. #define wxUSE_PNM 1
  1272. // Set to 1 for PCX format support
  1273. #define wxUSE_PCX 1
  1274. // Set to 1 for IFF format support (Amiga format)
  1275. #define wxUSE_IFF 0
  1276. // Set to 1 for XPM format support
  1277. #define wxUSE_XPM 1
  1278. // Set to 1 for MS Icons and Cursors format support
  1279. #define wxUSE_ICO_CUR 1
  1280. // Set to 1 to compile in wxPalette class
  1281. #define wxUSE_PALETTE 1
  1282. // ----------------------------------------------------------------------------
  1283. // wxUniversal-only options
  1284. // ----------------------------------------------------------------------------
  1285. // Set to 1 to enable compilation of all themes, this is the default
  1286. #define wxUSE_ALL_THEMES 1
  1287. // Set to 1 to enable the compilation of individual theme if wxUSE_ALL_THEMES
  1288. // is unset, if it is set these options are not used; notice that metal theme
  1289. // uses Win32 one
  1290. #define wxUSE_THEME_GTK 0
  1291. #define wxUSE_THEME_METAL 0
  1292. #define wxUSE_THEME_MONO 0
  1293. #define wxUSE_THEME_WIN32 0
  1294. /* --- end common options --- */
  1295. /*
  1296. * Unix-specific options
  1297. */
  1298. #define wxUSE_SELECT_DISPATCHER 1
  1299. #define wxUSE_EPOLL_DISPATCHER 0
  1300. #define wxUSE_UNICODE_UTF8 0
  1301. #define wxUSE_UTF8_LOCALE_ONLY 0
  1302. #endif // _WX_SETUP_H_