Correct signature of HitTest()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#if defined(__WXGTK20__)
|
#if defined(__WXGTK20__)
|
||||||
// for testing
|
// for testing
|
||||||
#define wxUSE_GENERICDATAVIEWCTRL 1
|
// #define wxUSE_GENERICDATAVIEWCTRL 1
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
#else
|
#else
|
||||||
#define wxUSE_GENERICDATAVIEWCTRL 1
|
#define wxUSE_GENERICDATAVIEWCTRL 1
|
||||||
@@ -487,7 +487,7 @@ public:
|
|||||||
|
|
||||||
virtual void EnsureVisible( const wxDataViewItem & item,
|
virtual void EnsureVisible( const wxDataViewItem & item,
|
||||||
const wxDataViewColumn *column = NULL ) = 0;
|
const wxDataViewColumn *column = NULL ) = 0;
|
||||||
virtual void HitTest( const wxPoint & point, wxDataViewItem &item, wxDataViewColumn* column ) const = 0;
|
virtual void HitTest( const wxPoint & point, wxDataViewItem &item, wxDataViewColumn* &column ) const = 0;
|
||||||
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const = 0;
|
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -366,7 +366,7 @@ public:
|
|||||||
|
|
||||||
virtual void EnsureVisible( const wxDataViewItem & item,
|
virtual void EnsureVisible( const wxDataViewItem & item,
|
||||||
const wxDataViewColumn *column = NULL );
|
const wxDataViewColumn *column = NULL );
|
||||||
virtual void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column ) const;
|
virtual void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column ) const;
|
||||||
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const;
|
virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -319,7 +319,7 @@ public:
|
|||||||
const wxDataViewColumn *column = NULL );
|
const wxDataViewColumn *column = NULL );
|
||||||
virtual void HitTest( const wxPoint &point,
|
virtual void HitTest( const wxPoint &point,
|
||||||
wxDataViewItem &item,
|
wxDataViewItem &item,
|
||||||
wxDataViewColumn *column ) const;
|
wxDataViewColumn *&column ) const;
|
||||||
virtual wxRect GetItemRect( const wxDataViewItem &item,
|
virtual wxRect GetItemRect( const wxDataViewItem &item,
|
||||||
const wxDataViewColumn *column = NULL ) const;
|
const wxDataViewColumn *column = NULL ) const;
|
||||||
|
|
||||||
|
@@ -509,7 +509,7 @@ public:
|
|||||||
//Methods for building the mapping tree
|
//Methods for building the mapping tree
|
||||||
void BuildTree( wxDataViewModel * model );
|
void BuildTree( wxDataViewModel * model );
|
||||||
void DestroyTree();
|
void DestroyTree();
|
||||||
void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column );
|
void HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column );
|
||||||
wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn* column );
|
wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn* column );
|
||||||
private:
|
private:
|
||||||
wxDataViewTreeNode * GetTreeNodeByRow( unsigned int row );
|
wxDataViewTreeNode * GetTreeNodeByRow( unsigned int row );
|
||||||
@@ -2943,7 +2943,7 @@ wxDataViewTreeNode * wxDataViewMainWindow::FindNode( const wxDataViewItem & item
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDataViewMainWindow::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column )
|
void wxDataViewMainWindow::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column )
|
||||||
{
|
{
|
||||||
wxDataViewColumn *col = NULL;
|
wxDataViewColumn *col = NULL;
|
||||||
unsigned int cols = GetOwner()->GetColumnCount();
|
unsigned int cols = GetOwner()->GetColumnCount();
|
||||||
@@ -3791,7 +3791,7 @@ void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataVie
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDataViewCtrl::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* column ) const
|
void wxDataViewCtrl::HitTest( const wxPoint & point, wxDataViewItem & item, wxDataViewColumn* &column ) const
|
||||||
{
|
{
|
||||||
m_clientArea->HitTest(point, item, column);
|
m_clientArea->HitTest(point, item, column);
|
||||||
}
|
}
|
||||||
|
@@ -3102,10 +3102,10 @@ void wxDataViewCtrl::EnsureVisible( const wxDataViewItem & item, const wxDataVie
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxDataViewCtrl::HitTest( const wxPoint &point,
|
void wxDataViewCtrl::HitTest( const wxPoint &point,
|
||||||
wxDataViewItem &item, wxDataViewColumn *column ) const
|
wxDataViewItem &item, wxDataViewColumn *&column ) const
|
||||||
{
|
{
|
||||||
item = wxDataViewItem(0);
|
item = wxDataViewItem(0);
|
||||||
column = 0;
|
column = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxRect wxDataViewCtrl::GetItemRect( const wxDataViewItem &item,
|
wxRect wxDataViewCtrl::GetItemRect( const wxDataViewItem &item,
|
||||||
|
Reference in New Issue
Block a user