- wxDataViewColumn( const wxString &title, wxDataViewRenderer *renderer,
- unsigned int model_column, int width = wxDVC_DEFAULT_WIDTH,
- wxAlignment align = wxALIGN_CENTER,
- int flags = wxDATAVIEW_COL_RESIZABLE );
- wxDataViewColumn( const wxBitmap &bitmap, wxDataViewRenderer *renderer,
- unsigned int model_column, int width = wxDVC_DEFAULT_WIDTH,
- wxAlignment align = wxALIGN_CENTER,
- int flags = wxDATAVIEW_COL_RESIZABLE );
- virtual ~wxDataViewColumn();
-
- // setters:
-
- virtual void SetTitle( const wxString &title )
- { m_title=title; }
- virtual void SetAlignment( wxAlignment align )
- { m_align=align; }
- virtual void SetMinWidth( int minWidth )
- { m_minWidth=minWidth; }
- virtual void SetWidth( int width );
- virtual void SetSortable( bool sortable );
- virtual void SetResizeable( bool resizeable );
- virtual void SetHidden( bool hidden );
- virtual void SetSortOrder( bool ascending );
- virtual void SetReorderable( bool reorderable );
-
- // getters:
-
- virtual wxString GetTitle() const
- { return m_title; }
- virtual wxAlignment GetAlignment() const
- { return m_align; }
- virtual int GetWidth() const
- { return m_width; }
- virtual int GetMinWidth() const
- { return m_minWidth; }
- virtual bool IsSortable() const
- { return (m_flags & wxDATAVIEW_COL_SORTABLE) != 0; }
- virtual bool IsResizeable() const
- { return (m_flags & wxDATAVIEW_COL_RESIZABLE) != 0; }
- virtual bool IsHidden() const
- { return (m_flags & wxDATAVIEW_COL_HIDDEN) != 0; }
- virtual bool IsSortOrderAscending() const;
- virtual bool IsReorderable() const
- { return (m_flags & wxDATAVIEW_COL_REORDERABLE) != 0; }
+ wxDataViewColumn(const wxString& title,
+ wxDataViewRenderer *renderer,
+ unsigned int model_column,
+ int width = wxDVC_DEFAULT_WIDTH,
+ wxAlignment align = wxALIGN_CENTER,
+ int flags = wxDATAVIEW_COL_RESIZABLE)
+ : wxDataViewColumnBase(renderer, model_column),
+ m_title(title)
+ {
+ Init(width, align, flags);
+ }