#if wxUSE_DATAVIEWCTRL
+#include "wx/dataview.h"
+
#ifndef WX_PRECOMP
- #include "wx/object.h"
#include "wx/log.h"
#endif
-#include "wx/image.h"
-#include "wx/dataview.h"
+const wxChar wxDataViewCtrlNameStr[] = wxT("dataviewCtrl");
// ---------------------------------------------------------
// wxDataViewModel
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
{
bool ret = true;
- wxNode *node = m_notifiers.GetFirst();
+ wxList::compatibility_iterator node = m_notifiers.GetFirst();
while (node)
{
wxDataViewListModelNotifier* notifier = (wxDataViewListModelNotifier*) node->GetData();
void wxDataViewListModel::RemoveViewingColumn( wxDataViewColumn *column )
{
- wxNode *node = m_viewingColumns.GetFirst();
+ wxList::compatibility_iterator node = m_viewingColumns.GetFirst();
while (node)
{
wxDataViewViewingColumn* tmp = (wxDataViewViewingColumn*) node->GetData();
IMPLEMENT_ABSTRACT_CLASS(wxDataViewColumnBase, wxObject)
-wxDataViewColumnBase::wxDataViewColumnBase( const wxString &title, wxDataViewCell *cell, size_t model_column, int flags)
+wxDataViewColumnBase::wxDataViewColumnBase(const wxString& title,
+ wxDataViewCell *cell,
+ size_t model_column,
+ int WXUNUSED(fixed_width),
+ wxDataViewColumnSizing WXUNUSED(sizing),
+ int flags )
{
m_cell = cell;
m_model_column = model_column;
bool wxDataViewCtrlBase::AppendToggleColumn( const wxString &label, size_t model_column )
{
- return AppendColumn( new wxDataViewColumn( label, new wxDataViewToggleCell(), model_column ) );
+ return AppendColumn( new wxDataViewColumn( label, new wxDataViewToggleCell(), model_column, 30 ) );
}
bool wxDataViewCtrlBase::AppendProgressColumn( const wxString &label, size_t model_column )
{
- return AppendColumn( new wxDataViewColumn( label, new wxDataViewProgressCell(), model_column ) );
+ return AppendColumn( new wxDataViewColumn( label, new wxDataViewProgressCell(), model_column, 70 ) );
}
bool wxDataViewCtrlBase::AppendDateColumn( const wxString &label, size_t model_column )