- virtual void SetTitle( const wxString &title );
-
- void SetWidth( int width ) { m_width = width; }
- int GetWidth() { return m_width; }
-
+ // 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 );
+
+
+ // 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;
+
+