X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/648d396ceb17618acc8b2dfd35f97e50d5491ab7..2c3ebf8be5f192f23d8266603a72d19a7267c7c5:/wxPython/contrib/gizmos/wxCode/include/wx/treelistctrl.h diff --git a/wxPython/contrib/gizmos/wxCode/include/wx/treelistctrl.h b/wxPython/contrib/gizmos/wxCode/include/wx/treelistctrl.h index d92dc7c3b9..1edc024eb0 100644 --- a/wxPython/contrib/gizmos/wxCode/include/wx/treelistctrl.h +++ b/wxPython/contrib/gizmos/wxCode/include/wx/treelistctrl.h @@ -14,10 +14,6 @@ #ifndef TREELISTCTRL_H #define TREELISTCTRL_H -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "treelistctrl.h" -#endif - #include #include #include @@ -145,7 +141,9 @@ class GIZMODLLEXPORT wxTreeListCtrl : public wxControl public: // creation // -------- - wxTreeListCtrl() {} + wxTreeListCtrl() + : m_header_win(0), m_main_win(0), m_headerHeight(0) + {} wxTreeListCtrl(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -153,7 +151,7 @@ public: long style = wxTR_DEFAULT_STYLE, const wxValidator &validator = wxDefaultValidator, const wxString& name = wxTreeListCtrlNameStr ) - : m_header_win(0), m_main_win(0) + : m_header_win(0), m_main_win(0), m_headerHeight(0) { Create(parent, id, pos, size, style, validator, name); } @@ -530,6 +528,8 @@ public: wxTreeListMainWindow* GetMainWindow() const { return m_main_win; } + virtual wxSize DoGetBestSize() const; + protected: // header window, responsible for column visualization and manipulation wxTreeListHeaderWindow* m_header_win; @@ -539,11 +539,14 @@ protected: // // the common part of all ctors // void Init(); + void OnGetToolTip( wxTreeEvent &event ); void OnSize(wxSizeEvent& event); - + void CalculateAndSetHeaderHeight(); + void DoHeaderLayout(); private: size_t fill_column; + size_t m_headerHeight; DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxTreeListCtrl)