]> git.saurik.com Git - wxWidgets.git/blob - include/wx/features.h
must convert filename to URL
[wxWidgets.git] / include / wx / features.h
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:
7 // Created: 18.03.02
8 // RCS-ID: $Id$
9 // Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_FEATURES_H_
14 #define _WX_FEATURES_H_
15
16 // radio menu items are currently only implemented in wxGTK and wxMSW
17 #if defined(__WXGTK__) || defined(__WXMSW__)
18 #define wxHAS_RADIO_MENU_ITEMS
19 #else
20 #undef wxHAS_RADIO_MENU_ITEMS
21 #endif
22
23 // the raw keyboard codes are generated under wxGTK and wxMSW only
24 #if defined(__WXGTK__) || defined(__WXMSW__)
25 #define wxHAS_RAW_KEY_CODES
26 #else
27 #undef wxHAS_RAW_KEY_CODES
28 #endif
29
30 // taskbar is only implemented in wxMSW and X11 ports
31 #if defined(__WXMSW__) || \
32 defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__)
33 #define wxHAS_TASK_BAR_ICON
34 #else
35 #undef wxHAS_TASK_BAR_ICON
36 #endif
37
38 // wxIconLocation appeared in the middle of 2.5.0 so it's handy to have a
39 // separate define for it
40 #define wxHAS_ICON_LOCATION
41
42 // same for wxCrashReport
43 #ifdef __WXMSW__
44 #define wxHAS_CRASH_REPORT
45 #else
46 #undef wxHAS_CRASH_REPORT
47 #endif
48
49 // Hopefully we can emulate these dialogs in due
50 // course
51 #if wxUSE_SMARTPHONE
52
53 # ifdef wxUSE_COLOURDLG
54 # undef wxUSE_COLOURDLG
55 # define wxUSE_COLOURDLG 0
56 # endif
57
58 #endif
59
60
61 #endif // _WX_FEATURES_H_
62