]>
Commit | Line | Data |
---|---|---|
e0c749a7 RN |
1 | /** |
2 | * Name: wx/features.h | |
3 | * Purpose: test macros for the features which might be available in some | |
4 | * wxWindows ports but not others | |
5 | * Author: Vadim Zeitlin | |
6 | * Modified by: Ryan Norton (Converted to C) | |
7 | * Created: 18.03.02 | |
8 | * RCS-ID: $Id$ | |
9 | * Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org> | |
10 | * Licence: wxWindows licence | |
11 | */ | |
34cbe514 RN |
12 | |
13 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
d65c269b VZ |
14 | |
15 | #ifndef _WX_FEATURES_H_ | |
16 | #define _WX_FEATURES_H_ | |
17 | ||
34cbe514 | 18 | /* radio menu items are currently only implemented in wxGTK and wxMSW */ |
0472ece7 | 19 | #if defined(__WXGTK__) || defined(__WXMSW__) |
d65c269b VZ |
20 | #define wxHAS_RADIO_MENU_ITEMS |
21 | #else | |
22 | #undef wxHAS_RADIO_MENU_ITEMS | |
23 | #endif | |
24 | ||
34cbe514 | 25 | /* the raw keyboard codes are generated under wxGTK and wxMSW only */ |
9c7df356 VZ |
26 | #if defined(__WXGTK__) || defined(__WXMSW__) |
27 | #define wxHAS_RAW_KEY_CODES | |
28 | #else | |
29 | #undef wxHAS_RAW_KEY_CODES | |
30 | #endif | |
31 | ||
34cbe514 | 32 | /* detect SmartPhone */ |
12617ca5 JS |
33 | #ifdef WIN32_PLATFORM_WFSP |
34 | #ifdef wxUSE_SMARTPHONE | |
35 | #undef wxUSE_SMARTPHONE | |
36 | #endif | |
37 | #define wxUSE_SMARTPHONE 1 | |
38 | #endif | |
39 | ||
34cbe514 | 40 | /* taskbar is only implemented in wxMSW and X11 ports */ |
59f098d1 | 41 | #if defined(__WXMSW__) || \ |
9795182e | 42 | defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) |
3191ff3b VS |
43 | #define wxHAS_TASK_BAR_ICON |
44 | #else | |
45 | #undef wxHAS_TASK_BAR_ICON | |
46 | #endif | |
47 | ||
34cbe514 RN |
48 | /* wxIconLocation appeared in the middle of 2.5.0 so it's handy to have a */ |
49 | /* separate define for it */ | |
81e3be0e VZ |
50 | #define wxHAS_ICON_LOCATION |
51 | ||
34cbe514 | 52 | /* same for wxCrashReport */ |
81e3be0e VZ |
53 | #ifdef __WXMSW__ |
54 | #define wxHAS_CRASH_REPORT | |
55 | #else | |
56 | #undef wxHAS_CRASH_REPORT | |
57 | #endif | |
58 | ||
34cbe514 | 59 | #endif /* _WX_FEATURES_H_ */ |
d65c269b | 60 |