Added wxDataViewColumn

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-02-22 00:19:04 +00:00
parent 7ef2db2570
commit fa28826dd3
4 changed files with 193 additions and 19 deletions

View File

@@ -21,6 +21,29 @@
class WXDLLIMPEXP_CORE wxDataViewCtrl;
// ---------------------------------------------------------
// wxDataViewColumn
// ---------------------------------------------------------
class WXDLLIMPEXP_CORE wxDataViewColumn: public wxDataViewColumnBase
{
public:
wxDataViewColumn( const wxString &title, wxDataViewCtrl *ctrl,
wxDataViewColumnType kind, int flags = 0 );
virtual ~wxDataViewColumn();
virtual void SetTitle( const wxString &title );
// implementation
void* GetGtkHandle() { return m_column; }
private:
void* m_column;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumn)
};
// ---------------------------------------------------------
// wxDataViewCtrl
// ---------------------------------------------------------
@@ -50,10 +73,8 @@ public:
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator );
virtual bool AppendStringColumn( const wxString &label );
virtual bool AssociateModel( wxDataViewListModel *model );
virtual bool AppendColumn( wxDataViewColumn *col );
private:
DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)