]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/headercol.h
going private for m_peer to give a foundation for better encapsulation
[wxWidgets.git] / include / wx / headercol.h
index 183e46d097bff611aa5f0dba2fb840ee664bab71..051ebbf14efcee9d477632eb6fad6d0b3e65498d 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "wx/bitmap.h"
 
+#if wxUSE_HEADERCTRL
+
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
 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
@@ -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;
@@ -268,5 +273,8 @@ private:
     bool m_sort,
          m_sortAscending;
 };
+
+#endif // wxUSE_HEADERCTRL
+
 #endif // _WX_HEADERCOL_H_