-
- virtual ~wxDataViewCtrl();
-
- void Init();
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator );
-
- virtual bool AppendStringColumn( const wxString &label, int index );
-
- virtual bool AssociateStore( wxDataViewStore *store );
-
-
-private:
- DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
- DECLARE_NO_COPY_CLASS(wxDataViewCtrl)
-};
-
-#endif
-
-// -------------------- wxDataViewControl --------------------
-
-wxDataViewCtrlBase::wxDataViewCtrlBase()
-{
- m_store = NULL;
-}
-
-bool wxDataViewCtrlBase::AssociateStore( wxDataViewStore *store )
-{
- m_store = store;
-
- return true;
-}
-
-wxDataViewStore* wxDataViewCtrlBase::GetStore()
-{
- return m_store;
-}
-
-IMPLEMENT_DYNAMIC_CLASS(wxDataViewCtrl,wxControl)
-
-// -------------------- GTK2 implementaion --------------------
-
-#ifdef __WXGTK20__
-
-// wxDataViewListStore
-
-wxDataViewListStore::wxDataViewListStore()
-{
- m_store = gtk_list_store_new( 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING );
-}
-
-bool wxDataViewListStore::AppendRow()
-{
- GtkTreeIter iter;
- gtk_list_store_append( m_store, &iter );
-
- return true;
-}
-
-
-// wxDataViewCtrl
-
-wxDataViewCtrl::~wxDataViewCtrl()
-{
-}
-
-void wxDataViewCtrl::Init()
-{
-}
-
-bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
- const wxPoint& pos, const wxSize& size,
- long style, const wxValidator& validator )
-{
- Init();
-
- m_needParent = TRUE;
- m_acceptsFocus = TRUE;
-
- if (!PreCreation( parent, pos, size ) ||
- !CreateBase( parent, id, pos, size, style, validator ))