1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/datavcmn.cpp
3 // Purpose: wxDataViewCtrl base classes and common parts
4 // Author: Robert Roebling
7 // Copyright: (c) 2006, Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
18 #include "wx/dataview.h"
22 // ---------------------------------------------------------
24 // ---------------------------------------------------------
26 IMPLEMENT_ABSTRACT_CLASS(wxDataViewModel
, wxObject
)
28 // ---------------------------------------------------------
29 // wxDataViewListModel
30 // ---------------------------------------------------------
32 IMPLEMENT_ABSTRACT_CLASS(wxDataViewListModel
, wxDataViewModel
)
34 wxDataViewListModel::wxDataViewListModel()
39 wxDataViewListModel::~wxDataViewListModel()
45 bool wxDataViewListModel::RowAppended()
48 return m_notifier
->RowAppended();
53 bool wxDataViewListModel::RowPrepended()
56 return m_notifier
->RowPrepended();
61 bool wxDataViewListModel::RowInserted( size_t before
)
64 return m_notifier
->RowInserted( before
);
69 bool wxDataViewListModel::RowDeleted( size_t row
)
72 return m_notifier
->RowDeleted( row
);
77 bool wxDataViewListModel::RowChanged( size_t row
)
80 return m_notifier
->RowChanged( row
);
85 bool wxDataViewListModel::ValueChanged( size_t row
, size_t col
)
88 return m_notifier
->RowAppended();
93 bool wxDataViewListModel::Cleared()
96 return m_notifier
->Cleared();
101 void wxDataViewListModel::SetNotifier( wxDataViewListModelNotifier
*notifier
)
106 m_notifier
= notifier
;
109 wxDataViewListModelNotifier
* wxDataViewListModel::GetNotifier()
114 // ---------------------------------------------------------
115 // wxDataViewCtrlBase
116 // ---------------------------------------------------------
118 IMPLEMENT_ABSTRACT_CLASS(wxDataViewCtrlBase
, wxControl
)
120 wxDataViewCtrlBase::wxDataViewCtrlBase()
125 wxDataViewCtrlBase::~wxDataViewCtrlBase()
131 bool wxDataViewCtrlBase::AssociateModel( wxDataViewModel
*model
)
141 wxDataViewModel
* wxDataViewCtrlBase::GetModel()