+class WXDLLIMPEXP_ADV wxDataViewColumn: public wxDataViewColumnBase
+{
+public:
+ wxDataViewColumn( const wxString &title, wxDataViewRenderer *renderer,
+ unsigned int model_column, int width = wxDVC_DEFAULT_WIDTH,
+ wxAlignment align = wxALIGN_CENTER,
+ int flags = wxDATAVIEW_COL_RESIZABLE );
+ wxDataViewColumn( const wxBitmap &bitmap, wxDataViewRenderer *renderer,
+ unsigned int model_column, int width = wxDVC_DEFAULT_WIDTH,
+ wxAlignment align = wxALIGN_CENTER,
+ int flags = wxDATAVIEW_COL_RESIZABLE );
+
+
+ // setters:
+
+ virtual void SetTitle( const wxString &title );
+ virtual void SetBitmap( const wxBitmap &bitmap );
+
+ virtual void SetOwner( wxDataViewCtrl *owner );
+
+ virtual void SetAlignment( wxAlignment align );
+
+ virtual void SetSortable( bool sortable );
+ virtual void SetSortOrder( bool ascending );
+ virtual void SetAsSortKey(bool sort = true);
+
+ virtual void SetResizeable( bool resizeable );
+ virtual void SetHidden( bool hidden );
+
+ virtual void SetMinWidth( int minWidth );
+ virtual void SetWidth( int width );
+
+ virtual void SetReorderable( bool reorderable );
+
+ virtual void SetFlags(int flags) { SetIndividualFlags(flags); }
+
+ // getters:
+
+ virtual wxString GetTitle() const;
+ virtual wxAlignment GetAlignment() const;
+
+ virtual bool IsSortable() const;
+ virtual bool IsSortOrderAscending() const;
+ virtual bool IsSortKey() const;
+
+ virtual bool IsResizeable() const;
+ virtual bool IsHidden() const;
+
+ virtual int GetWidth() const;
+ virtual int GetMinWidth() const;
+
+ virtual bool IsReorderable() const;
+
+ virtual int GetFlags() const { return GetFromIndividualFlags(); }
+
+ // implementation
+ GtkWidget* GetGtkHandle() { return m_column; }
+ GtkWidget* GetConstGtkHandle() const { return m_column; }
+
+private:
+ // holds the GTK handle
+ GtkWidget *m_column;
+
+ // holds GTK handles for title/bitmap in the header
+ GtkWidget *m_image;
+ GtkWidget *m_label;
+
+ // delayed connection to mouse events
+ friend class wxDataViewCtrl;
+ void OnInternalIdle();
+ bool m_isConnected;
+
+ void Init(wxAlignment align, int flags, int width);
+};
+
+WX_DECLARE_LIST_WITH_DECL(wxDataViewColumn, wxDataViewColumnList,
+ class WXDLLIMPEXP_ADV);
+
+// ---------------------------------------------------------