X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc211fe5ce245c52b87be787a8e4ec507a2a42b4..b9e5acc5400f99a5da9dc46adb83d421a0408a92:/src/generic/datavgen.cpp diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index dbe4a306c5..e3886ffcf4 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -603,6 +603,43 @@ wxDataViewColumn::wxDataViewColumn( const wxString &title, wxDataViewRenderer *c m_width = 80; } +wxDataViewColumn::wxDataViewColumn( const wxBitmap &bitmap, wxDataViewRenderer *cell, unsigned int model_column, + int width, int flags ) : + wxDataViewColumnBase( bitmap, cell, model_column, width, flags ) +{ + m_width = width; + if (m_width < 0) + m_width = 30; +} + +void wxDataViewColumn::SetAlignment( wxAlignment WXUNUSED(align) ) +{ + // TODO +} + +void wxDataViewColumn::SetSortable( bool WXUNUSED(sortable) ) +{ + // TODO +} + +bool wxDataViewColumn::GetSortable() +{ + // TODO + return false; +} + +void wxDataViewColumn::SetSortOrder( bool WXUNUSED(ascending) ) +{ + // TODO +} + +bool wxDataViewColumn::IsSortOrderAscending() +{ + // TODO + return true; +} + + wxDataViewColumn::~wxDataViewColumn() { } @@ -613,6 +650,12 @@ void wxDataViewColumn::SetTitle( const wxString &title ) } +void wxDataViewColumn::SetBitmap( const wxBitmap &bitmap ) +{ + wxDataViewColumnBase::SetBitmap( bitmap ); + +} + int wxDataViewColumn::GetWidth() { return m_width; @@ -1797,34 +1840,44 @@ bool wxDataViewCtrl::AppendColumn( wxDataViewColumn *col ) return true; } -void wxDataViewCtrl::SetSelection( int row ) +void wxDataViewCtrl::SetSelection( int WXUNUSED(row) ) { + // FIXME - TODO } -void wxDataViewCtrl::SetSelectionRange( unsigned int from, unsigned int to ) +void wxDataViewCtrl::SetSelectionRange( unsigned int WXUNUSED(from), unsigned int WXUNUSED(to) ) { + // FIXME - TODO } -void wxDataViewCtrl::SetSelections( const wxArrayInt& aSelections) +void wxDataViewCtrl::SetSelections( const wxArrayInt& WXUNUSED(aSelections) ) { + // FIXME - TODO } - -void wxDataViewCtrl::Unselect( unsigned int row ) + +void wxDataViewCtrl::Unselect( unsigned int WXUNUSED(row) ) { + // FIXME - TODO } -bool wxDataViewCtrl::IsSelected( unsigned int row ) const +bool wxDataViewCtrl::IsSelected( unsigned int WXUNUSED(row) ) const { + // FIXME - TODO + return false; } int wxDataViewCtrl::GetSelection() const { + // FIXME - TODO + return -1; } -int wxDataViewCtrl::GetSelections(wxArrayInt& aSelections) const +int wxDataViewCtrl::GetSelections(wxArrayInt& WXUNUSED(aSelections) ) const { + // FIXME - TODO + return 0; }