virtual wxDC *GetDC();
private:
- wxDC *m_dc;
- int m_align;
- wxDataViewCellMode m_mode;
+ wxDC *m_dc;
+ int m_align;
+ wxDataViewCellMode m_mode;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewRenderer)
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCustomRenderer)
};
+
// ---------------------------------------------------------
// wxDataViewTextRenderer
// ---------------------------------------------------------
bool Render( wxRect cell, wxDC *dc, int state );
wxSize GetSize() const;
+ // in-place editing
+ virtual bool HasEditorCtrl();
+ virtual wxControl* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
+ virtual bool GetValueFromEditorCtrl( wxControl* editor, wxVariant &value );
+
private:
- wxString m_text;
+ wxString m_text;
protected:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer)
int m_flags;
wxAlignment m_align;
wxString m_title;
+ bool m_ascending;
void Init(int width);
// updates the header window after a change in a column setting
void OnColumnChange();
+ wxWindow *GetMainWindow() { return (wxWindow*) m_clientArea; }
+
private:
wxDataViewListModelNotifier *m_notifier;
wxDataViewMainWindow *m_clientArea;