]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/dataview.h
Start on Get/SetStyle support for OS X Cocoa wxTextCtrl.
[wxWidgets.git] / include / wx / osx / dataview.h
index a48488022293442a66f429eecf7f7d03cb19d432..c7f9433b68c6916a9d642aded9d203770f76e529 100644 (file)
@@ -82,6 +82,14 @@ public:
 
   void SetNativeData(wxDataViewRendererNativeData* newNativeDataPtr);
 
+
+#if wxOSX_USE_COCOA
+  // called when a value was edited by user
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 private:
 //
 // variables
@@ -189,7 +197,12 @@ public:
 //
   virtual bool MacRender();
 
-protected:
+#if wxOSX_USE_COCOA
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 private:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer)
 };
@@ -272,6 +285,12 @@ public:
 //
   virtual bool MacRender();
 
+#if wxOSX_USE_COCOA
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 protected:
 private:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer)
@@ -291,7 +310,12 @@ public:
 //
   virtual bool MacRender();
 
-protected:
+#if wxOSX_USE_COCOA
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 private:
   DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer)
 };
@@ -311,7 +335,12 @@ public:
 //
   virtual bool MacRender();
 
-protected:
+#if wxOSX_USE_COCOA
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 private:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer)
 };
@@ -330,7 +359,12 @@ public:
 //
   virtual bool MacRender();
 
-protected:
+#if wxOSX_USE_COCOA
+  virtual void OSXOnCellChanged(NSObject *value,
+                                const wxDataViewItem& item,
+                                unsigned col);
+#endif // Cocoa
+
 private:
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewDateRenderer)
 };
@@ -363,7 +397,7 @@ public:
     virtual int GetMaxWidth() const { return m_maxWidth; }
     virtual int GetMinWidth() const { return m_minWidth; }
     virtual wxString GetTitle() const { return m_title; }
-    virtual int GetWidth() const { return m_width; }
+    virtual int GetWidth() const;
     virtual bool IsHidden() const { return false; } // TODO
     virtual bool IsSortOrderAscending() const { return m_ascending; }
     virtual bool IsSortKey() const;
@@ -389,6 +423,10 @@ public:
     }
 
     void SetNativeData(wxDataViewColumnNativeData* newNativeDataPtr); // class takes ownership of pointer
+    int GetWidthVariable() const
+    {
+        return m_width;
+    }
     void SetWidthVariable(int NewWidth)
     {
         m_width = NewWidth;