* use OS X CoreGraphics (1) or QuickDraw (0) for rendering
*/
-#ifndef wxMAC_USE_CORE_GRAPHICS
- #define wxMAC_USE_CORE_GRAPHICS 1
+#ifndef wxOSX_USE_CORE_GRAPHICS
+ #define wxOSX_USE_CORE_GRAPHICS 1
#endif
/*
- * wxMAC_USE_CORE_GRAPHICS is now implemented in terms of wxUSE_GRAPHICS_CONTEXT
+ * wxOSX_USE_CORE_GRAPHICS is now implemented in terms of wxUSE_GRAPHICS_CONTEXT
*/
-#if wxMAC_USE_CORE_GRAPHICS
+#if wxOSX_USE_CORE_GRAPHICS
#undef wxUSE_GRAPHICS_CONTEXT
#define wxUSE_GRAPHICS_CONTEXT 1
#endif
/*
* check graphics context option
*/
-#if wxUSE_GRAPHICS_CONTEXT && !wxMAC_USE_CORE_GRAPHICS
-# error "wxUSE_GRAPHICS_CONTEXT on wxMac requires wxMAC_USE_CORE_GRAPHICS"
+#if wxUSE_GRAPHICS_CONTEXT && !wxOSX_USE_CORE_GRAPHICS
+# error "wxUSE_GRAPHICS_CONTEXT on wxMac requires wxOSX_USE_CORE_GRAPHICS"
#endif
/*
* using mixins of cocoa functionality
*/
-#ifndef wxMAC_USE_COCOA
- #define wxMAC_USE_COCOA 0
+#ifndef wxOSX_USE_COCOA
+ #define wxOSX_USE_COCOA 0
#endif
/*
*/
#ifdef __LP64__
- #if wxMAC_USE_COCOA == 0
- #undef wxMAC_USE_COCOA
- #define wxMAC_USE_COCOA 1
+ #if wxOSX_USE_COCOA == 0
+ #undef wxOSX_USE_COCOA
+ #define wxOSX_USE_COCOA 1
#endif
- #define wxMAC_USE_QUICKDRAW 0
- #define wxMAC_USE_CARBON 0
+ #define wxOSX_USE_QUICKDRAW 0
+ #define wxOSX_USE_CARBON 0
+ #define wxOSX_USE_IPHONE 0
#else
#ifdef __WXOSX_IPHONE__
- #define wxMAC_USE_QUICKDRAW 0
- #define wxMAC_USE_CARBON 0
+ #define wxOSX_USE_QUICKDRAW 0
+ #define wxOSX_USE_CARBON 0
+ #define wxOSX_USE_IPHONE 1
#else
- #define wxMAC_USE_QUICKDRAW 1
- #define wxMAC_USE_CARBON 1
+ #define wxOSX_USE_IPHONE 0
+ #if wxOSX_USE_COCOA
+ #define wxOSX_USE_QUICKDRAW 0
+ #define wxOSX_USE_CARBON 0
+ #else
+ #define wxOSX_USE_QUICKDRAW 1
+ #define wxOSX_USE_CARBON 1
+ #endif
#endif
#endif
+#if wxOSX_USE_COCOA || wxOSX_USE_CARBON
+ #define wxOSX_USE_COCOA_OR_CARBON 1
+#else
+ #define wxOSX_USE_COCOA_OR_CARBON 0
+#endif
+
+#if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
+ #define wxOSX_USE_COCOA_OR_IPHONE 1
+#else
+ #define wxOSX_USE_COCOA_OR_IPHONE 0
+#endif
+
/*
* text rendering system
*/
* under a certain platform
*/
+#ifdef __WXOSX_IPHONE__
+ #define wxMAC_USE_CG_TEXT 1
+ #define wxMAC_USE_CORE_TEXT 0
+ #define wxMAC_USE_ATSU_TEXT 0
+#else // !__WXOSX_IPHONE__
+
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
-#ifdef __WXOSX_IPHONE__
-#define wxMAC_USE_CG_TEXT 1
-#define wxMAC_USE_CORE_TEXT 0
-#define wxMAC_USE_ATSU_TEXT 0
-#else
-#define wxMAC_USE_CORE_TEXT 1
-#define wxMAC_USE_ATSU_TEXT 0
-#define wxMAC_USE_CG_TEXT 0
-#endif
+ #define wxMAC_USE_CORE_TEXT 1
+ #define wxMAC_USE_ATSU_TEXT 0
+ #define wxMAC_USE_CG_TEXT 0
#else // platform < 10.5
-#define wxMAC_USE_CG_TEXT 0
+ #define wxMAC_USE_CG_TEXT 0
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
-#define wxMAC_USE_CORE_TEXT 1
-#else
-#define wxMAC_USE_CORE_TEXT 0
-#endif
-#define wxMAC_USE_ATSU_TEXT 1
+ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ #define wxMAC_USE_CORE_TEXT 1
+ #else
+ #define wxMAC_USE_CORE_TEXT 0
+ #endif
+ #define wxMAC_USE_ATSU_TEXT 1
#endif
+#endif // !__WXOSX_IPHONE__
+
/*
* turning off capabilities that don't work under 64 bit yet
*/
-#ifdef __LP64__
+#if wxOSX_USE_COCOA_OR_IPHONE
+
+#if wxUSE_MDI
+#undef wxUSE_MDI
+#define wxUSE_MDI 0
+#endif
+
+#if wxUSE_MDI_ARCHITECTURE
+#undef wxUSE_MDI_ARCHITECTURE
+#define wxUSE_MDI_ARCHITECTURE 0
+#endif
#if wxUSE_DRAG_AND_DROP
#undef wxUSE_DRAG_AND_DROP
#define wxUSE_TOOLTIPS 0
#endif
+#if wxUSE_DATAVIEWCTRL
+#undef wxUSE_DATAVIEWCTRL
+#define wxUSE_DATAVIEWCTRL 0
+#endif
+#if wxUSE_DRAG_AND_DROP
+#undef wxUSE_DRAG_AND_DROP
+#define wxUSE_DRAG_AND_DROP 0
#endif
+#if wxUSE_TASKBARICON
+#undef wxUSE_TASKBARICON
+#define wxUSE_TASKBARICON 0
+#endif
+
+/*
+#if wxUSE_POPUPWIN
+#undef wxUSE_POPUPWIN
+#define wxUSE_POPUPWIN 0
+#endif
+
+#if wxUSE_COMBOBOX
+#undef wxUSE_COMBOBOX
+#define wxUSE_COMBOBOX 0
+#endif
+
+
+#if wxUSE_MENUS
+#undef wxUSE_MENUS
+#define wxUSE_MENUS 0
+#endif
+
+#if wxUSE_CALENDARCTRL
+#undef wxUSE_CALENDARCTRL
+#define wxUSE_CALENDARCTRL 0
+#endif
+
+#if wxUSE_WXHTML_HELP
+#undef wxUSE_WXHTML_HELP
+#define wxUSE_WXHTML_HELP 0
+#endif
+
+#if wxUSE_DOC_VIEW_ARCHITECTURE
+#undef wxUSE_DOC_VIEW_ARCHITECTURE
+#define wxUSE_DOC_VIEW_ARCHITECTURE 0
+#endif
+
+#if wxUSE_PRINTING_ARCHITECTURE
+#undef wxUSE_PRINTING_ARCHITECTURE
+#define wxUSE_PRINTING_ARCHITECTURE 0
+#endif
+
+*/
+
+
+#endif // wxOSX_USE_COCOA_OR_IPHON
+
+#if wxOSX_USE_IPHONE
+
+#if wxUSE_CLIPBOARD
+#undef wxUSE_CLIPBOARD
+#define wxUSE_CLIPBOARD 0
+#endif // wxUSE_CLIPBOARD
+
+#endif //wxOSX_USE_IPHONE
#endif
/* _WX_MAC_CHKCONF_H_ */