Applied #11389: dataview GetValueByRow, SetValueByRow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,6 +120,24 @@ public:
|
|||||||
// set value, call ValueChanged() afterwards!
|
// set value, call ValueChanged() afterwards!
|
||||||
virtual bool SetValue( wxVariant &variant, unsigned int col, unsigned int row ) = 0;
|
virtual bool SetValue( wxVariant &variant, unsigned int col, unsigned int row ) = 0;
|
||||||
|
|
||||||
|
#if wxABI_VERSION >= 20812
|
||||||
|
// Notes:
|
||||||
|
// - In wx 2.9 GetValue/SetValue are removed, replaced with GetValueByRow and SetValueByRow
|
||||||
|
// - GetValueByRow/SetValueByRow has (row,col) parameters, GetValue/SetValue is vice versa, (col,row)
|
||||||
|
|
||||||
|
// virtual in wx 2.9
|
||||||
|
void GetValueByRow(wxVariant& variant, unsigned row, unsigned col) const
|
||||||
|
{
|
||||||
|
const_cast<wxDataViewListModel*>(this)->GetValue(variant, col, row);
|
||||||
|
}
|
||||||
|
|
||||||
|
// virtual in wx 2.9
|
||||||
|
bool SetValueByRow(const wxVariant& variant, unsigned row, unsigned col)
|
||||||
|
{
|
||||||
|
return SetValue((wxVariant&)variant, col, row);
|
||||||
|
}
|
||||||
|
#endif // wx >= 2.8.12
|
||||||
|
|
||||||
// delegated notifiers
|
// delegated notifiers
|
||||||
virtual bool RowAppended();
|
virtual bool RowAppended();
|
||||||
virtual bool RowPrepended();
|
virtual bool RowPrepended();
|
||||||
|
@@ -23,6 +23,12 @@
|
|||||||
# released with the generic branch version due to the final wildcard below,
|
# released with the generic branch version due to the final wildcard below,
|
||||||
# and once released its version cannot be changed.
|
# and once released its version cannot be changed.
|
||||||
|
|
||||||
|
# public symbols added in 2.8.12 (please keep in alphabetical order):
|
||||||
|
@WX_VERSION_TAG@.12 {
|
||||||
|
*wxDataViewListModel*GetValueByRow*;
|
||||||
|
*wxDataViewListModel*SetValueByRow*;
|
||||||
|
};
|
||||||
|
|
||||||
# public symbols added in 2.8.11 (please keep in alphabetical order):
|
# public symbols added in 2.8.11 (please keep in alphabetical order):
|
||||||
#
|
#
|
||||||
# NB: Convert{From,To}IeeeExtended() were not really added but they were not
|
# NB: Convert{From,To}IeeeExtended() were not really added but they were not
|
||||||
|
Reference in New Issue
Block a user