X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0607dd221a6110cbd2a4a42e379b93e5f2d5334..f5fac4471b361f54ae6a09f6047ae4dbe30fcb86:/include/wx/osx/dvrenderers.h diff --git a/include/wx/osx/dvrenderers.h b/include/wx/osx/dvrenderers.h index 39a122f557..1916a77ed7 100644 --- a/include/wx/osx/dvrenderers.h +++ b/include/wx/osx/dvrenderers.h @@ -3,7 +3,7 @@ // Purpose: All OS X wxDataViewCtrl renderer classes // Author: Vadim Zeitlin // Created: 2009-11-07 (extracted from wx/osx/dataview.h) -// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,9 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXApplyAttr(const wxDataViewItemAttr& attr); +#endif // Cocoa virtual wxDC* GetDC(); // creates a device context and keeps it void SetDC(wxDC* newDCPtr); // this method takes ownership of the pointer @@ -56,9 +58,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer) @@ -81,6 +85,8 @@ private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer) }; +#if wxOSX_USE_COCOA + // ------------------------------------- // wxDataViewChoiceRenderer // ------------------------------------- @@ -103,6 +109,8 @@ private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewChoiceRenderer) }; +#endif // wxOSX_USE_COCOA + // --------------------------------------------------------- // wxDataViewIconTextRenderer // --------------------------------------------------------- @@ -115,9 +123,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer) @@ -136,9 +146,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer) @@ -158,9 +170,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer) @@ -179,9 +193,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewDateRenderer)