// Purpose: All generic wxDataViewCtrl renderer classes
// Author: Robert Roebling, Vadim Zeitlin
// Created: 2009-11-07 (extracted from wx/generic/dataview.h)
-// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $
+// RCS-ID: $Id$
// Copyright: (c) 2006 Robert Roebling
// (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
bool SetValue( const wxVariant &value );
bool GetValue( wxVariant &value ) const;
- virtual bool RenderWithAttr(wxDC& dc,
- const wxRect& rect,
- int align,
- const wxDataViewItemAttr *attr,
- int state);
- virtual bool Render(wxRect cell, wxDC *dc, int state)
- {
- return DummyRender(cell, dc, state);
- }
-
- wxSize GetSize() const;
+ virtual bool Render(wxRect cell, wxDC *dc, int state);
+ virtual wxSize GetSize() const;
// in-place editing
virtual bool HasEditorCtrl() const;
bool GetValue( wxVariant &value ) const;
bool Render( wxRect cell, wxDC *dc, int state );
- bool Activate( wxRect cell, wxDataViewModel *model, const wxDataViewItem & item,
- unsigned int col );
wxSize GetSize() const;
+ // Implementation only, don't use nor override
+ virtual void WXOnActivate(wxDataViewModel *model,
+ const wxVariant& valueOld,
+ const wxDataViewItem& item,
+ unsigned int col);
private:
bool m_toggle;
bool SetValue( const wxVariant &value );
bool GetValue( wxVariant& value ) const;
- virtual bool RenderWithAttr(wxDC& dc,
- const wxRect& rect,
- int align,
- const wxDataViewItemAttr *attr,
- int state);
- virtual bool Render(wxRect cell, wxDC *dc, int state)
- {
- return DummyRender(cell, dc, state);
- }
+ virtual bool Render(wxRect cell, wxDC *dc, int state);
virtual wxSize GetSize() const;
private:
bool SetValue( const wxVariant &value );
bool GetValue( wxVariant &value ) const;
- virtual bool RenderWithAttr(wxDC& dc,
- const wxRect& rect,
- int align,
- const wxDataViewItemAttr *attr,
- int state);
- virtual bool Render(wxRect cell, wxDC *dc, int state)
- {
- return DummyRender(cell, dc, state);
- }
+ virtual bool Render(wxRect cell, wxDC *dc, int state);
virtual wxSize GetSize() const;
virtual bool HasEditorCtrl() const { return true; }
virtual bool Render( wxRect cell, wxDC *dc, int state );
virtual wxSize GetSize() const;
- virtual bool Activate( wxRect cell,
- wxDataViewModel *model,
- const wxDataViewItem& item,
- unsigned int col );
+
+ // Implementation only, don't use nor override
+ virtual void WXOnActivate(wxDataViewModel *model,
+ const wxVariant& valueOld,
+ const wxDataViewItem& item,
+ unsigned int col);
private:
wxDateTime m_date;