another fix for wxUSE_DRAG_AND_DROP==0 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -713,8 +713,12 @@ public:
|
|||||||
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;
|
||||||
|
|
||||||
virtual bool EnableDragSource( const wxDataFormat &format );
|
#if wxUSE_DRAG_AND_DROP
|
||||||
virtual bool EnableDropTarget( const wxDataFormat &format );
|
virtual bool EnableDragSource(const wxDataFormat& WXUNUSED(format))
|
||||||
|
{ return false; }
|
||||||
|
virtual bool EnableDropTarget(const wxDataFormat& WXUNUSED(format))
|
||||||
|
{ return false; }
|
||||||
|
#endif // wxUSE_DRAG_AND_DROP
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void DoSetExpanderColumn() = 0 ;
|
virtual void DoSetExpanderColumn() = 0 ;
|
||||||
@@ -1026,17 +1030,17 @@ public:
|
|||||||
virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
|
virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
|
||||||
virtual bool AppendColumn( wxDataViewColumn *col );
|
virtual bool AppendColumn( wxDataViewColumn *col );
|
||||||
|
|
||||||
wxDataViewColumn *AppendTextColumn( const wxString &label,
|
wxDataViewColumn *AppendTextColumn( const wxString &label,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
||||||
wxDataViewColumn *AppendToggleColumn( const wxString &label,
|
wxDataViewColumn *AppendToggleColumn( const wxString &label,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE,
|
||||||
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
||||||
wxDataViewColumn *AppendProgressColumn( const wxString &label,
|
wxDataViewColumn *AppendProgressColumn( const wxString &label,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
||||||
wxDataViewColumn *AppendIconTextColumn( const wxString &label,
|
wxDataViewColumn *AppendIconTextColumn( const wxString &label,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
int width = -1, wxAlignment align = wxALIGN_LEFT, int flags = wxDATAVIEW_COL_RESIZABLE );
|
||||||
|
|
||||||
void AppendItem( const wxVector<wxVariant> &values, wxClientData *data = NULL )
|
void AppendItem( const wxVector<wxVariant> &values, wxClientData *data = NULL )
|
||||||
@@ -1051,7 +1055,7 @@ public:
|
|||||||
{ GetStore()->DeleteAllItems(); }
|
{ GetStore()->DeleteAllItems(); }
|
||||||
|
|
||||||
void SetValue( const wxVariant &value, unsigned int row, unsigned int col )
|
void SetValue( const wxVariant &value, unsigned int row, unsigned int col )
|
||||||
{ GetStore()->SetValueByRow( value, row, col );
|
{ GetStore()->SetValueByRow( value, row, col );
|
||||||
GetStore()->RowValueChanged( row, col); }
|
GetStore()->RowValueChanged( row, col); }
|
||||||
void GetValue( wxVariant &value, unsigned int row, unsigned int col )
|
void GetValue( wxVariant &value, unsigned int row, unsigned int col )
|
||||||
{ GetStore()->GetValueByRow( value, row, col ); }
|
{ GetStore()->GetValueByRow( value, row, col ); }
|
||||||
|
@@ -894,16 +894,6 @@ const wxDataViewModel* wxDataViewCtrlBase::GetModel() const
|
|||||||
return m_model;
|
return m_model;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDataViewCtrlBase::EnableDragSource( const wxDataFormat &WXUNUSED(format) )
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxDataViewCtrlBase::EnableDropTarget( const wxDataFormat &WXUNUSED(format) )
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxDataViewCtrlBase::ExpandAncestors( const wxDataViewItem & item )
|
void wxDataViewCtrlBase::ExpandAncestors( const wxDataViewItem & item )
|
||||||
{
|
{
|
||||||
if (!m_model) return;
|
if (!m_model) return;
|
||||||
|
Reference in New Issue
Block a user