// see the explanation of the following WXOnXXX() methods in wx/generic/dvrenderer.h
- virtual bool WXOnActivate(wxRect cell,
+ virtual bool WXOnActivate(const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col)
return Activate(cell, model, item, col);
}
- virtual bool WXOnLeftClick(wxPoint cursor,
- wxRect cell,
+ virtual bool WXOnLeftClick(const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem &item,
unsigned int col)
// in-place editing
virtual bool HasEditorCtrl() const;
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
- const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
+ const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
protected:
wxString m_text;
wxSize GetSize() const;
// Implementation only, don't use nor override
- virtual bool WXOnLeftClick(wxPoint cursor,
- wxRect cell,
+ virtual bool WXOnLeftClick(const wxPoint& cursor,
+ const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col);
virtual wxSize GetSize() const;
virtual bool HasEditorCtrl() const { return true; }
- virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
- const wxVariant &value );
- virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+ virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
+ const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
private:
wxDataViewIconText m_value;
virtual wxSize GetSize() const;
// Implementation only, don't use nor override
- virtual bool WXOnActivate(wxRect cell,
+ virtual bool WXOnActivate(const wxRect& cell,
wxDataViewModel *model,
const wxDataViewItem& item,
unsigned int col);