Add wxDataViewCtrl::GetSortingColumn() stubs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-09-13 12:57:40 +00:00
parent b741dd400f
commit 21f47fb900
8 changed files with 31 additions and 0 deletions

View File

@@ -260,6 +260,13 @@ Returns first selected item or an invalid item if none is selected.
Fills {\it sel} with currently selected items and returns Fills {\it sel} with currently selected items and returns
their number. their number.
\membersection{wxDataViewCtrl::GetSortingColumn}\label{wxdataviewctrlgetsortingcolumn}
\constfunc{virtual wxDataViewColumn*}{GetSortingColumn}{\void}
Returns the wxDataViewColumn currently responsible for sorting
or NULL if none has been selected.
\membersection{wxDataViewCtrl::HitTest}\label{wxdataviewctrlhittest} \membersection{wxDataViewCtrl::HitTest}\label{wxdataviewctrlhittest}
\constfunc{void}{HitTest}{\param{const wxPoint\& }{point}, \param{wxDataViewItem\& }{item}, \param{wxDataViewColumn *\&}{col}} \constfunc{void}{HitTest}{\param{const wxPoint\& }{point}, \param{wxDataViewItem\& }{item}, \param{wxDataViewColumn *\&}{col}}

View File

@@ -505,6 +505,8 @@ public:
{ m_expander_column = col ; DoSetExpanderColumn(); } { m_expander_column = col ; DoSetExpanderColumn(); }
wxDataViewColumn *GetExpanderColumn() const wxDataViewColumn *GetExpanderColumn() const
{ return m_expander_column; } { return m_expander_column; }
virtual wxDataViewColumn *GetSortingColumn() const = 0;
void SetIndent( int indent ) void SetIndent( int indent )
{ m_indent = indent ; DoSetIndent(); } { m_indent = indent ; DoSetIndent(); }

View File

@@ -392,6 +392,8 @@ public:
virtual bool DeleteColumn( wxDataViewColumn *column ); virtual bool DeleteColumn( wxDataViewColumn *column );
virtual bool ClearColumns(); virtual bool ClearColumns();
virtual wxDataViewColumn *GetSortingColumn() const;
virtual wxDataViewItem GetSelection() const; virtual wxDataViewItem GetSelection() const;
virtual int GetSelections( wxDataViewItemArray & sel ) const; virtual int GetSelections( wxDataViewItemArray & sel ) const;
virtual void SetSelections( const wxDataViewItemArray & sel ); virtual void SetSelections( const wxDataViewItemArray & sel );

View File

@@ -343,6 +343,8 @@ public:
virtual bool DeleteColumn( wxDataViewColumn *column ); virtual bool DeleteColumn( wxDataViewColumn *column );
virtual bool ClearColumns(); virtual bool ClearColumns();
virtual wxDataViewColumn *GetSortingColumn() const;
virtual wxDataViewItem GetSelection() const; virtual wxDataViewItem GetSelection() const;
virtual int GetSelections( wxDataViewItemArray & sel ) const; virtual int GetSelections( wxDataViewItemArray & sel ) const;
virtual void SetSelections( const wxDataViewItemArray & sel ); virtual void SetSelections( const wxDataViewItemArray & sel );

View File

@@ -531,6 +531,8 @@ public:
virtual wxDataViewColumn* GetColumn(unsigned int pos) const; virtual wxDataViewColumn* GetColumn(unsigned int pos) const;
virtual unsigned int GetColumnCount(void) const; virtual unsigned int GetColumnCount(void) const;
virtual wxDataViewColumn *GetSortingColumn() const;
virtual void Collapse(wxDataViewItem const& item); virtual void Collapse(wxDataViewItem const& item);
virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr=NULL); virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr=NULL);
virtual void Expand(wxDataViewItem const& item); virtual void Expand(wxDataViewItem const& item);

View File

@@ -3794,6 +3794,11 @@ bool wxDataViewCtrl::ClearColumns()
return true; return true;
} }
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;
}
//Selection code with wxDataViewItem as parameters //Selection code with wxDataViewItem as parameters
wxDataViewItem wxDataViewCtrl::GetSelection() const wxDataViewItem wxDataViewCtrl::GetSelection() const
{ {

View File

@@ -1256,6 +1256,7 @@ void wxDataViewRenderer::SetMode( wxDataViewCellMode mode )
break; break;
} }
// This value is most often ignored in GtkTreeView
GValue gvalue = { 0, }; GValue gvalue = { 0, };
g_value_init( &gvalue, gtk_cell_renderer_mode_get_type() ); g_value_init( &gvalue, gtk_cell_renderer_mode_get_type() );
g_value_set_enum( &gvalue, gtkMode ); g_value_set_enum( &gvalue, gtkMode );
@@ -3111,6 +3112,11 @@ bool wxDataViewCtrl::ClearColumns()
return true; return true;
} }
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;
}
void wxDataViewCtrl::Expand( const wxDataViewItem & item ) void wxDataViewCtrl::Expand( const wxDataViewItem & item )
{ {
GtkTreeIter iter; GtkTreeIter iter;

View File

@@ -890,6 +890,11 @@ unsigned int wxDataViewCtrl::GetColumnCount(void) const
return this->m_ColumnPointers.size(); return this->m_ColumnPointers.size();
} /* wxDataViewCtrl::GetColumnCount(void) const */ } /* wxDataViewCtrl::GetColumnCount(void) const */
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
{
return NULL;
}
void wxDataViewCtrl::Collapse(wxDataViewItem const& item) void wxDataViewCtrl::Collapse(wxDataViewItem const& item)
{ {
wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(this->m_peer)); wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(this->m_peer));