Change EnsureVisble() to including column parameter, implemented it for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6798451bb2
commit
6154212e51
@ -484,7 +484,8 @@ public:
|
||||
virtual void SelectAll() = 0;
|
||||
virtual void UnselectAll() = 0;
|
||||
|
||||
virtual void EnsureVisible( const wxDataViewItem & item ) = 0;
|
||||
virtual void EnsureVisible( const wxDataViewItem & item,
|
||||
wxDataViewColumn *column = NULL ) = 0;
|
||||
|
||||
protected:
|
||||
virtual void DoSetExpanderColumn() = 0 ;
|
||||
|
@ -371,7 +371,7 @@ public:
|
||||
virtual void UnselectAll();
|
||||
|
||||
virtual void EnsureVisible( int row );
|
||||
virtual void EnsureVisible( const wxDataViewItem & item );
|
||||
virtual void EnsureVisible( const wxDataViewItem & item, wxDataViewColumn *column = NULL );
|
||||
|
||||
virtual wxDataViewItem GetItemByRow( unsigned int row ) const;
|
||||
virtual int GetRowByItem( const wxDataViewItem & item ) const;
|
||||
|
@ -315,7 +315,7 @@ public:
|
||||
virtual void SelectAll();
|
||||
virtual void UnselectAll();
|
||||
|
||||
virtual void EnsureVisible( const wxDataViewItem & item );
|
||||
virtual void EnsureVisible( const wxDataViewItem & item, wxDataViewColumn *column = NULL );
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
@ -3622,7 +3622,7 @@ void wxDataViewCtrl::EnsureVisible( int row )
|
||||
m_clientArea->ScrollTo( row );
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item )
|
||||
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, wxDataViewColumn *column )
|
||||
{
|
||||
int row = m_clientArea->GetRowByItem(item);
|
||||
if( row >= 0 )
|
||||
|
@ -3033,8 +3033,13 @@ void wxDataViewCtrl::UnselectAll()
|
||||
{
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item )
|
||||
void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, wxDataViewColumn *column )
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
iter.user_data = (gpointer) item.GetID();
|
||||
GtkTreePath *path = m_internal->get_path( &iter );
|
||||
gtk_tree_view_scroll_to_cell( GTK_TREE_VIEW(m_treeview), path, NULL, false, 0.0, 0.0 );
|
||||
gtk_tree_path_free( path );
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::DoSetExpanderColumn()
|
||||
|
Loading…
Reference in New Issue
Block a user