X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17cbc2446bbbb51f2989e967e08317f6d02f4f61..63a65070911908802c27b52173c3306e93dd63bf:/include/wx/gtk/dvrenderer.h diff --git a/include/wx/gtk/dvrenderer.h b/include/wx/gtk/dvrenderer.h index cb7d617830..7f8d3d4782 100644 --- a/include/wx/gtk/dvrenderer.h +++ b/include/wx/gtk/dvrenderer.h @@ -3,7 +3,7 @@ // Purpose: wxDataViewRenderer for GTK wxDataViewCtrl implementation // Author: Robert Roebling, Vadim Zeitlin // Created: 2009-11-07 (extracted from wx/gtk/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 // Licence: wxWindows licence @@ -48,7 +48,7 @@ public: // // it validates the new value and notifies the model about the change by // calling GtkOnCellChanged() if it was accepted - void GtkOnTextEdited(const gchar *itempath, const wxString& value); + virtual void GtkOnTextEdited(const gchar *itempath, const wxString& value); GtkCellRenderer* GetGtkHandle() { return m_renderer; } void GtkInitHandlers(); @@ -77,6 +77,8 @@ public: // specific attributes: can return NULL if this renderer doesn't render any // text virtual GtkCellRendererText *GtkGetTextRenderer() const { return NULL; } + + wxDataViewCellMode GtkGetMode() { return m_mode; } protected: virtual void GtkOnCellChanged(const wxVariant& value, @@ -84,8 +86,9 @@ protected: unsigned col); - GtkCellRenderer *m_renderer; - int m_alignment; + GtkCellRenderer *m_renderer; + int m_alignment; + wxDataViewCellMode m_mode; // true if we hadn't changed any visual attributes or restored them since // doing this