1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/dataview.h
3 // Purpose: wxDataViewCtrl GTK+2 implementation header
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKDATAVIEWCTRLH__
11 #define __GTKDATAVIEWCTRLH__
14 #include "wx/object.h"
16 #include "wx/control.h"
18 // ---------------------------------------------------------
20 // ---------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxDataViewCtrl
;
24 // ---------------------------------------------------------
26 // ---------------------------------------------------------
28 class WXDLLIMPEXP_CORE wxDataViewColumn
: public wxDataViewColumnBase
31 wxDataViewColumn( const wxString
&title
, wxDataViewCtrl
*ctrl
,
32 wxDataViewColumnType kind
, int flags
= 0 );
33 virtual ~wxDataViewColumn();
35 virtual void SetTitle( const wxString
&title
);
38 void* GetGtkHandle() { return m_column
; }
44 DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewColumn
)
47 // ---------------------------------------------------------
49 // ---------------------------------------------------------
51 class WXDLLIMPEXP_CORE wxDataViewCtrl
: public wxDataViewCtrlBase
59 wxDataViewCtrl( wxWindow
*parent
, wxWindowID id
,
60 const wxPoint
& pos
= wxDefaultPosition
,
61 const wxSize
& size
= wxDefaultSize
, long style
= 0,
62 const wxValidator
& validator
= wxDefaultValidator
)
64 Create(parent
, id
, pos
, size
, style
, validator
);
67 virtual ~wxDataViewCtrl();
71 bool Create(wxWindow
*parent
, wxWindowID id
,
72 const wxPoint
& pos
= wxDefaultPosition
,
73 const wxSize
& size
= wxDefaultSize
, long style
= 0,
74 const wxValidator
& validator
= wxDefaultValidator
);
76 virtual bool AssociateModel( wxDataViewListModel
*model
);
77 virtual bool AppendColumn( wxDataViewColumn
*col
);
80 DECLARE_DYNAMIC_CLASS(wxDataViewCtrl
)
81 DECLARE_NO_COPY_CLASS(wxDataViewCtrl
)
85 #endif // __GTKDATAVIEWCTRLH__