]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/dvrenderers.h
Fix missing documentation for several GDI functions.
[wxWidgets.git] / include / wx / osx / dvrenderers.h
index 39a122f5574083678b0f9bb77288d8db9379c61c..5d3e5069811cd7d6074deac61b9f8d8e82b5ea55 100644 (file)
@@ -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 <vadim@wxwidgets.org>
 // 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
 // -------------------------------------
@@ -97,12 +103,20 @@ public:
     wxString GetChoice(size_t index) const { return m_choices[index]; }
     const wxArrayString& GetChoices() const { return m_choices; }
 
+#if wxOSX_USE_COCOA
+    virtual void OSXOnCellChanged(NSObject *value,
+                                  const wxDataViewItem& item,
+                                  unsigned col);
+#endif // Cocoa
+
 private:
     wxArrayString m_choices;
 
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewChoiceRenderer)
 };
 
+#endif // wxOSX_USE_COCOA
+
 // ---------------------------------------------------------
 // wxDataViewIconTextRenderer
 // ---------------------------------------------------------
@@ -115,9 +129,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 +152,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 +176,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 +199,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)