X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcb6cbecc890c65e15ade46ca416b4c353bb7e8f..0cc1991e2a3ae8df8f716d5a9bf1a59e2a17d0b3:/include/wx/headercol.h diff --git a/include/wx/headercol.h b/include/wx/headercol.h index 183e46d097..815c41f82a 100644 --- a/include/wx/headercol.h +++ b/include/wx/headercol.h @@ -13,6 +13,8 @@ #include "wx/bitmap.h" +#if wxUSE_HEADERCTRL + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -20,7 +22,10 @@ enum { // special value for column width meaning unspecified/default - wxCOL_WIDTH_DEFAULT = -1 + wxCOL_WIDTH_DEFAULT = -1, + + // size the column automatically to fit all values + wxCOL_WIDTH_AUTOSIZE = -2 }; // bit masks for the various column attributes @@ -92,7 +97,7 @@ public: // unspecified/default virtual int GetWidth() const = 0; - // minimal width can be set for resizeable columns to forbid resizing them + // minimal width can be set for resizable columns to forbid resizing them // below the specified size (set to 0 to remove) virtual int GetMinWidth() const = 0; @@ -153,7 +158,7 @@ protected: // wxSettableHeaderColumn: column which allows to change its fields too // ---------------------------------------------------------------------------- -class wxSettableHeaderColumn : public wxHeaderColumn +class WXDLLIMPEXP_CORE wxSettableHeaderColumn : public wxHeaderColumn { public: virtual void SetTitle(const wxString& title) = 0; @@ -172,8 +177,8 @@ public: void ClearFlag(int flag); void ToggleFlag(int flag); - virtual void SetResizeable(bool resizeable) - { ChangeFlag(wxCOL_RESIZABLE, resizeable); } + virtual void SetResizeable(bool resizable) + { ChangeFlag(wxCOL_RESIZABLE, resizable); } virtual void SetSortable(bool sortable) { ChangeFlag(wxCOL_SORTABLE, sortable); } virtual void SetReorderable(bool reorderable) @@ -268,5 +273,8 @@ private: bool m_sort, m_sortAscending; }; + +#endif // wxUSE_HEADERCTRL + #endif // _WX_HEADERCOL_H_