Implement wxDataViewChoiceByIndexRenderer for wxOSX

Add missing class implementation.

Closes #17452.
This commit is contained in:
wanup
2016-03-19 00:12:38 +01:00
committed by Vadim Zeitlin
parent 9829446755
commit c4e892629f
3 changed files with 63 additions and 0 deletions

View File

@@ -116,6 +116,25 @@ private:
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewChoiceRenderer);
};
// ----------------------------------------------------------------------------
// wxDataViewChoiceByIndexRenderer
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_ADV wxDataViewChoiceByIndexRenderer: public wxDataViewChoiceRenderer
{
public:
wxDataViewChoiceByIndexRenderer(const wxArrayString& choices,
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
int alignment = wxDVR_DEFAULT_ALIGNMENT);
virtual bool SetValue(const wxVariant& value) wxOVERRIDE;
virtual bool GetValue(wxVariant& value) const wxOVERRIDE;
virtual void OSXOnCellChanged(NSObject *value,
const wxDataViewItem& item,
unsigned col) wxOVERRIDE;
};
#endif // wxOSX_USE_COCOA
// ---------------------------------------------------------