public:
wxDataViewColumn( const wxString &title, wxDataViewRenderer *renderer, unsigned int model_column,
int width = 80, int flags = wxDATAVIEW_COL_RESIZABLE );
+ wxDataViewColumn( const wxBitmap &bitmap, wxDataViewRenderer *renderer, unsigned int model_column,
+ int width = 80, int flags = wxDATAVIEW_COL_RESIZABLE );
virtual ~wxDataViewColumn();
virtual void SetTitle( const wxString &title );
+ virtual void SetBitmap( const wxBitmap &bitmap );
+
+ virtual void SetAlignment( wxAlignment align );
+
+ virtual void SetSortable( bool sortable );
+ virtual bool GetSortable();
+ virtual void SetSortOrder( bool ascending );
+ virtual bool IsSortOrderAscending();
virtual int GetWidth();
private:
// holds the GTK handle
void* m_column;
-
+
+ // delayed connection to mouse events
+ friend class wxDataViewCtrl;
+ void OnInternalIdle();
+ bool m_isConnected;
+
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumn)
};
virtual void SetSelection( int row ); // -1 for unselect
virtual void SetSelectionRange( unsigned int from, unsigned int to );
virtual void SetSelections( const wxArrayInt& aSelections);
+ virtual void Unselect( unsigned int row );
virtual bool IsSelected( unsigned int row ) const;
virtual int GetSelection() const;
virtual int GetSelections(wxArrayInt& aSelections) const;
-
private:
friend class wxDataViewCtrlDC;
+ friend class wxDataViewColumn;
friend class wxGtkDataViewListModelNotifier;
GtkWidget *m_treeview;
wxDataViewListModelNotifier *m_notifier;
+ virtual void OnInternalIdle();
+
private:
DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
DECLARE_NO_COPY_CLASS(wxDataViewCtrl)