]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dataview.h
Improve mouse handling code in wxAuiToolBar.
[wxWidgets.git] / include / wx / dataview.h
index b0c7fde7afd2c6f64a8cb47ed5bb11427119d4c0..173039c072290d05413a07afc7c70383add64d9a 100644 (file)
@@ -126,8 +126,8 @@ public:
     virtual bool ValueChanged( const wxDataViewItem &item, unsigned int col ) = 0;
     virtual bool Cleared() = 0;
     
-    // this is needed for the virtual list model under GTK+
-    virtual bool BeforeReset( size_t WXUNUSED(old_size), size_t WXUNUSED(new_size) ) { return true; }
+    // some platforms, such as GTK+, may need a two step procedure for ::Reset()
+    virtual bool BeforeReset() { return true; }
     virtual bool AfterReset() { return Cleared(); }
 
     virtual void Resort() = 0;
@@ -249,8 +249,8 @@ public:
     bool ValueChanged( const wxDataViewItem &item, unsigned int col );
     bool Cleared();
 
-    // this is needed for the virtual list model under GTK+
-    bool BeforeReset( size_t old_size, size_t new_size );
+    // some platforms, such as GTK+, may need a two step procedure for ::Reset()
+    bool BeforeReset();
     bool AfterReset();
 
 
@@ -305,6 +305,8 @@ public:
     // helper methods provided by list models only
     virtual unsigned GetRow( const wxDataViewItem &item ) const = 0;
 
+    // returns the number of rows 
+    virtual unsigned int GetCount() const = 0;
 
     // implement some base class pure virtual directly
     virtual wxDataViewItem
@@ -339,6 +341,7 @@ public:
         return GetAttrByRow( GetRow(item), col, attr );
     }
 
+
     virtual bool IsListModel() const { return true; }
 };