2003-12-17 14:51:03 -05:00
|
|
|
/**
|
2004-03-04 09:33:20 -05:00
|
|
|
* Name: wx/features.h
|
|
|
|
* Purpose: test macros for the features which might be available in some
|
2004-05-23 10:56:36 -04:00
|
|
|
* wxWidgets ports but not others
|
2004-03-04 09:33:20 -05:00
|
|
|
* Author: Vadim Zeitlin
|
2003-12-17 14:51:03 -05:00
|
|
|
* Modified by: Ryan Norton (Converted to C)
|
2004-03-04 09:33:20 -05:00
|
|
|
* Created: 18.03.02
|
2004-05-23 10:56:36 -04:00
|
|
|
* Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwidgets.org>
|
2004-05-23 16:53:33 -04:00
|
|
|
* Licence: wxWindows licence
|
2003-12-17 14:51:03 -05:00
|
|
|
*/
|
2003-12-17 14:30:31 -05:00
|
|
|
|
|
|
|
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
|
2002-03-18 14:41:35 -05:00
|
|
|
|
|
|
|
#ifndef _WX_FEATURES_H_
|
|
|
|
#define _WX_FEATURES_H_
|
|
|
|
|
2006-07-05 20:17:50 -04:00
|
|
|
/* radio menu items are currently not implemented in wxMotif, use this
|
|
|
|
symbol (kept for compatibility from the time when they were not implemented
|
|
|
|
under other platforms as well) to test for this */
|
|
|
|
#if !defined(__WXMOTIF__)
|
2002-03-18 14:41:35 -05:00
|
|
|
#define wxHAS_RADIO_MENU_ITEMS
|
|
|
|
#else
|
|
|
|
#undef wxHAS_RADIO_MENU_ITEMS
|
|
|
|
#endif
|
|
|
|
|
2003-12-17 14:30:31 -05:00
|
|
|
/* the raw keyboard codes are generated under wxGTK and wxMSW only */
|
2006-08-27 05:42:42 -04:00
|
|
|
#if defined(__WXGTK__) || defined(__WXMSW__) || defined(__WXMAC__) \
|
|
|
|
|| defined(__WXDFB__)
|
2002-04-07 17:06:59 -04:00
|
|
|
#define wxHAS_RAW_KEY_CODES
|
|
|
|
#else
|
|
|
|
#undef wxHAS_RAW_KEY_CODES
|
|
|
|
#endif
|
|
|
|
|
2004-10-14 10:07:27 -04:00
|
|
|
/* taskbar is implemented in the major ports */
|
2014-07-03 18:03:21 -04:00
|
|
|
#if defined(__WXMSW__) \
|
2005-04-04 06:34:56 -04:00
|
|
|
|| defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) \
|
2014-08-23 21:50:11 -04:00
|
|
|
|| defined(__WXOSX_MAC__) || defined(__WXQT__)
|
2003-06-19 18:14:06 -04:00
|
|
|
#define wxHAS_TASK_BAR_ICON
|
|
|
|
#else
|
2007-07-18 21:02:28 -04:00
|
|
|
#undef wxUSE_TASKBARICON
|
|
|
|
#define wxUSE_TASKBARICON 0
|
2003-06-19 18:14:06 -04:00
|
|
|
#undef wxHAS_TASK_BAR_ICON
|
|
|
|
#endif
|
|
|
|
|
2003-12-17 14:30:31 -05:00
|
|
|
/* wxIconLocation appeared in the middle of 2.5.0 so it's handy to have a */
|
|
|
|
/* separate define for it */
|
2003-07-13 17:19:26 -04:00
|
|
|
#define wxHAS_ICON_LOCATION
|
|
|
|
|
2003-12-17 14:30:31 -05:00
|
|
|
/* same for wxCrashReport */
|
2003-07-13 17:19:26 -04:00
|
|
|
#ifdef __WXMSW__
|
|
|
|
#define wxHAS_CRASH_REPORT
|
|
|
|
#else
|
|
|
|
#undef wxHAS_CRASH_REPORT
|
|
|
|
#endif
|
|
|
|
|
2021-07-17 11:40:16 -04:00
|
|
|
/* wxRE_ADVANCED is always defined now and kept for compatibility only. */
|
|
|
|
#define wxHAS_REGEX_ADVANCED
|
2004-02-19 12:28:56 -05:00
|
|
|
|
2007-01-22 09:05:07 -05:00
|
|
|
/* Pango-based ports and wxDFB use UTF-8 for text and font encodings
|
|
|
|
* internally and so their fonts can handle any encodings: */
|
|
|
|
#if wxUSE_PANGO || defined(__WXDFB__)
|
|
|
|
#define wxHAS_UTF8_FONTS
|
|
|
|
#endif
|
|
|
|
|
2007-03-29 22:07:49 -04:00
|
|
|
/* This is defined when the underlying toolkit handles tab traversal natively.
|
|
|
|
Otherwise we implement it ourselves in wxControlContainer. */
|
2014-08-23 21:50:11 -04:00
|
|
|
#if defined(__WXGTK20__) || defined(__WXQT__)
|
2007-03-29 22:07:49 -04:00
|
|
|
#define wxHAS_NATIVE_TAB_TRAVERSAL
|
|
|
|
#endif
|
|
|
|
|
2008-02-10 12:03:23 -05:00
|
|
|
/* This is defined when the compiler provides some type of extended locale
|
|
|
|
functions. Otherwise, we implement them ourselves to only support the
|
|
|
|
'C' locale */
|
2008-02-21 11:11:37 -05:00
|
|
|
#if defined(HAVE_LOCALE_T) || \
|
2015-08-27 11:48:54 -04:00
|
|
|
(wxCHECK_VISUALC_VERSION(8))
|
2008-02-10 12:03:23 -05:00
|
|
|
#define wxHAS_XLOCALE_SUPPORT
|
|
|
|
#else
|
|
|
|
#undef wxHAS_XLOCALE_SUPPORT
|
|
|
|
#endif
|
|
|
|
|
2008-07-23 20:47:13 -04:00
|
|
|
/* Direct access to bitmap data is not implemented in all ports yet */
|
2008-07-23 22:15:55 -04:00
|
|
|
#if defined(__WXGTK20__) || defined(__WXMAC__) || defined(__WXDFB__) || \
|
2014-08-23 21:50:11 -04:00
|
|
|
defined(__WXMSW__) || defined(__WXQT__)
|
2009-05-06 07:42:16 -04:00
|
|
|
|
|
|
|
/*
|
2014-05-16 09:01:06 -04:00
|
|
|
HP aCC for PA-RISC can't deal with templates in wx/rawbmp.h.
|
2009-05-06 07:42:16 -04:00
|
|
|
*/
|
2014-05-16 09:01:06 -04:00
|
|
|
#if !(defined(__HP_aCC) && defined(__hppa))
|
2009-02-19 12:28:37 -05:00
|
|
|
#define wxHAS_RAW_BITMAP
|
|
|
|
#endif
|
2008-06-01 14:42:33 -04:00
|
|
|
#endif
|
|
|
|
|
2008-06-01 16:17:04 -04:00
|
|
|
/* also define deprecated synonym which exists for compatibility only */
|
|
|
|
#ifdef wxHAS_RAW_BITMAP
|
|
|
|
#define wxHAVE_RAW_BITMAP
|
|
|
|
#endif
|
2008-06-01 14:42:33 -04:00
|
|
|
|
2009-05-03 03:44:44 -04:00
|
|
|
|
2014-05-15 18:32:17 -04:00
|
|
|
// Previously this symbol wasn't defined for all compilers as Bind() couldn't
|
|
|
|
// be implemented for some of them (notably MSVC 6), but this is not the case
|
|
|
|
// any more and Bind() is always implemented when using any currently supported
|
|
|
|
// compiler, so this symbol exists purely for compatibility.
|
|
|
|
#define wxHAS_EVENT_BIND
|
2009-05-02 08:52:54 -04:00
|
|
|
|
2003-12-17 14:30:31 -05:00
|
|
|
#endif /* _WX_FEATURES_H_ */
|
2002-03-18 14:41:35 -05:00
|
|
|
|